Cointime

Download App
iOS & Android

What Is an Ethereum Virtual Machine (EVM) And Why Do We Need It

Validated Venture

EVM is a Turing completeness machine, which means that it can theoretically process any calculation that can be performed on computers with sufficient computing resources.

EVM uses “gas” (gwei) as payment for smart contract execution, which is included in the transaction cost. The amount of gas required by the user is determined by the complexity of the calculations performed and the current load on the Ethereum blockchain.

The EVM creator

The concept of Ethereum Virtual Machine was outlined in the “Yellow Paper” in 2015 by the co-founder of Ethereum and the technical director of the Ethereum Foundation Gavin Wood.

He also developed the Solidity programming language, which is used to create smart contracts on the Ethereum blockchain. In 2016, Wood left Ethereum to develop a new project — Polkadot.

Why do we need an Ethereum Virtual Machine?

Without a centralized control body, EVM can be represented as a set of distributed computers in the same network that follow the same rules.

Unlike the bitcoin protocol, which is presented as a distributed registry, Ethereum represents a large data structure for which EVM is responsible for processing and modification. Any code written to the Ethereum block is executed independently on tens of thousands of virtual machines.

EWM guarantees that all transactions and smart contracts on the Ethereum blockchain will be carried out in accordance with the smart contract code. It is EVM that serves as a platform for performing operations with tokens on the Ethereum network, such as calling smart contracts, changing address balances, and application states.

Gwei for EVM

Gwei is an internal currency in Ethereum that is used as payment for EVM transactions. 1 gwei equals 0.000000001 ETH. “Gas” in Ethereum is analogous to automobile fuel, with which the user must “fill up” the transfer before proceeding.

The gas limit for each transaction will vary depending on the complexity of the operation and the workload of the Ethereum network. For example, in mid-2021, against the backdrop of the Shiba Inu meme cryptocurrency’s hype demand, the average transaction fee in Ethereum reached $60, the swap on Uniswap cost $135, and the deposit replenishment in Compound cost more than $200. The main reason for this was the high load on the blockchain — a large number of users performed operations with Shiba Inu in parallel.

If the operation proves too complex, the gas limit may not be sufficient, and EVM will stop processing the transaction without writing it to the Ethereum blockchain.

The absence of gas as a payment method for the operation of the EVM could result in infinitely complex calculations that could cause the network to crash due to overload. As a result, gas in Ethereum serves as a safeguard against blockchain intruders and attacks.

Where is EVM used?

Despite the fact that many crypto projects use their own virtual machines, the Ethereum blockchain is not the only platform that uses EVM. Here are some blockchain platforms that make use of Ethereum Foundation developments:

  • Ethereum Classic. A platform for creating and executing smart contracts based on the Proof-of-Work consensus algorithm.
  • VeСhain. A blockchain built on the Proof-of-Authority consensus mechanism.
  • Fantom. A platform for smart contracts using a directed acyclic graph (DAG), fully compatible with EVM.
  • Polygon. A network of protocols and blockchains deployed on top of Ethereum.

EVM-compatible blockchains

The Ethereum virtual machine has a number of drawbacks, including high data storage costs, limited scalability, high gas prices during Ethereum network congestion, and significant programming limitations.

EVM-compatible networks, which use a code execution environment similar to the Ethereum virtual machine but have much cheaper transactions due to special scaling solutions, can act as a solution to these problems. This enables Ethereum ecosystem developers to migrate to more scalable blockchains without having to rewrite smart contracts from scratch.

One group of such solutions is called sidechains (вставить ссылку). They can use a separate blockchain with their own consensus algorithm and block creation parameters, but an EVM-compatible virtual machine. Matic (Polygon PoS), Gnosis Chain, and Loom Network are examples of Ethereum sidechains.

Another option is second — level solutions (Layer 2) based on Rollups technology. The Optimism platform, which employs the Optimistic Rollups protocol, is one example of an L2 project. The EVM controls smart contracts in this blockchain, and the roll-up protocol performs calculations and stores contract status in a separate Optimistic Virtual Machine.

The development of Ethereum Virtual Machine (EVM)

A number of major updates should occur in Ethereum over the next few years, the first of which should be The Merge — the transition of the blockchain to a new Proof-of-Stake consensus algorithm.

In July 2022, Vitalik Buterin presented a phased plan for the development of the Ethereum blockchain. One of these major stages should be the transition from the Ethereum Virtual Machine to the Ethereum WebAssembly virtual machine (eWASM).

  Source: Twitter


Although there is no final and comprehensive documentation for eWASM, the developers highlight its following advantages:

Over the next few years, a number of major updates should take place in Ethereum, the first of which should be The Merge — the transition of the blockchain to a new Proof-of-Stake consensus algorithm.

  • The speed of execution of smart contracts, close to the native;
  • The ability to develop contracts in many popular languages, including C, C++, and Rust;
  • Access to a huge community of developers and Web Assembly tools.
Comments

All Comments

Recommended for you

  • CertiK: Hedgey vulnerability was exploited and $1.9 million was stolen

    CertiK Alert posted on social media that it has detected that the on-chain token infrastructure protocol Hedgey has been exploited and stolen approximately 1.9 million US dollars.The attacker abused the createLockedCampaign function in flash loans to obtain approval for the use of tokens on the victim's contract. The USDC, NOBL, and MASA tokens in the victim's contract have been depleted.

  • Binance executives' bail application postponed again, still in custody

    The bail hearing for Binance executive Tigran Gambaryan has been postponed again by a Nigerian court, and he remains detained at the Kuje Correctional Center. The hearing is now scheduled for April 22, with the EFCC requesting time to respond to new arguments from the defense. Gambaryan's lawyer criticized the prosecution for failing to respond promptly. Binance has been accused of concealing the source of its income, while Gambaryan is accused of money laundering. In addition, he has also filed a lawsuit against the government for violating his human rights.

  • BTC breaks through $64,000

    The market shows BTC breaking through $64,000, now reporting at $64,012.44, with an intraday increase of 4.95%. The market fluctuates greatly, so please be prepared for risk control.

  • SEC accuses Justin Sun of frequent trips to the U.S. to sell tokens

    The US SEC has amended its lawsuit against Tron founder Sun Yuchen, stating that his frequent travel to multiple locations in the US allows the court to have corresponding jurisdiction. The SEC accuses Sun Yuchen and his company of selling unregistered securities through Tron and BitTorrent (BTT) tokens and engaging in manipulative money laundering transactions. The SEC claims that Sun Yuchen spent more than 380 days in the US from 2017 to 2019, with travel destinations including New York, Boston, and San Francisco. Sun Yuchen argues that the token sales were conducted entirely overseas, avoiding the US market, and therefore the SEC has no jurisdiction over him and the Tron Foundation, which is headquartered in Singapore. (Cointelegraph)

  • Cyvers Alerts: Multiple phishing transactions detected this morning

    Cyvers Alerts reported on X platform that multiple phishing transactions were discovered by the system this morning. The victims have approved the external owned accounts (EOA) of the phishers. We strongly recommend revoking the relevant approvals.

  • BTC breaks through $63,000

    The market shows BTC has broken through $63,000 and is currently trading at $63,062.48, with an intraday increase of 3.53%. The market is volatile, so please be prepared for risk control.

  • CZ: Bitcoin halving is different from stock split, happy halving

    CZ wrote on X platform that Bitcoin halving is different from stock splitting. The fact that people are asking such questions shows that we are still in the early stages. He then attached a picture to explain his views on what might happen before and after the Bitcoin halving in 2023, and said "happy halving!"

  • Elon Musk: Accounts involved in farming activities will be frozen, including directing users to forward, comment and like posts

    Elon Musk posted on X platform stating that all accounts involved in farming activities will be frozen and tracked. DogeDesigner provided a detailed explanation, stating that farming activities include guiding users to like, share, or comment on posts to receive rewards; joining groups and commenting on each other's posts; and guiding users to @ other related accounts.

  • Chairman of the Russian State Duma Financial Market Committee: Digital financial assets may replace legal tender for international payments

    Anatoly Aksakov, Chairman of the Financial Market Committee of the State Duma of Russia, stated that digital financial assets issued by institutions regulated by the central bank can replace legal channels for international settlements. Aksakov also acknowledged that although digital assets are not controlled in this usage, they have been used for international payment settlements.

  • Ethereum network gas fee has dropped to 8 gwei

    Etherscan data shows that the current Ethereum network gas fee has dropped to 8 gwei.