Skill 7.1.1

Explain accounts, state and the Ethereum Virtual Machine

Key Concepts

Ethereum is a shared state machine. Its world state maps 20-byte addresses to accounts, each with a nonce, a balance in wei, a code hash and a storage root. An externally owned account (EOA) is controlled by a private key: its address is derived from the public key (the last 20 bytes of its Keccak-256 hash), it has no code and only it can sign and start transactions. A contract account has code and storage and runs only when called.

The Ethereum Virtual Machine (EVM) is a deterministic, stack-based machine with 256-bit words. It executes contract bytecode with access to persistent storage, temporary memory, calldata and context such as the caller and block. Because execution is deterministic, every node that applies the same transactions to the same state reaches the same new state, which is what lets the network agree.

All state is public: anyone running a node can read any account's balance and any contract's storage, including variables marked private.