Skip to main content

EVM

The Ethereum Virtual Machine (EVM) is a decentralized, Turing-complete computation engine that executes smart contracts on the Ethereum network. It functions as a global state machine, where the state is updated based on code execution on the blockchain. Because the EVM is implemented by every node in the network, it ensures that smart contracts run exactly as intended across all devices, regardless of local hardware differences. This allows for complex, programmable logic to be embedded into the blockchain.

Definition

The Ethereum Virtual Machine (EVM) is a decentralized, Turing-complete computation engine that executes smart contracts on the Ethereum network. It functions as a global state machine, where the state is updated based on code execution on the blockchain. Because the EVM is implemented by every node in the network, it ensures that smart contracts run exactly as intended across all devices, regardless of local hardware differences. This allows for complex, programmable logic to be embedded into the blockchain.

Simple explanation

The EVM is like a giant, shared computer that lives on the internet. It can run code for everyone at the same time, ensuring that everyone gets the same result when they run the same app.

Why it matters

The EVM transformed Ethereum from a simple ledger into a global platform for applications. It allows developers to build everything from games to decentralized banks that run automatically.

How it works

Developers write code in languages like Solidity and compile it into bytecode. Nodes across the network execute this bytecode according to the EVM specifications. The results are updated in the global ledger, ensuring consistency for all network participants.

Real-world example

Uniswap is a decentralized exchange that operates as a set of smart contracts running on the Ethereum Virtual Machine.

Advantages

  • Supports complex programmable logic
  • Provides universal consistency across the network
  • Huge developer ecosystem and tooling

Limitations

  • Execution is costly in gas fees
  • Limited by the speed of global consensus
  • Security flaws in code are permanent

Common misconceptions

  • The EVM is often thought of as an actual machine, but it is purely software. Many also forget that it is Turing-complete, meaning it can solve any computational problem given enough time.

Canonical knowledge ID: glossary:evm