ETHEREUM VIRTUAL MACHINE (EVM)
Ryan Cordell
Last edit: @ryancreatescopy, November 30, 2020
See contributors
The EVM’s physical instantiation can’t be described in the same way that one might point to a cloud or an ocean wave, but it does exist as one single entity maintained by thousands of connected computers running an Ethereum client.
The Ethereum protocol itself exists solely for the purpose of keeping the continuous, uninterrupted, and immutable operation of this special state machine; It's the environment in which all Ethereum accounts and smart contracts live. At any given block in the chain, Ethereum has one and only one 'canonical' state, and the EVM is what defines the rules for computing a new valid state from block to block.
PREREQUISITES
Some basic familiarity with common terminology in computer science such as bytes, memory, and a stack are necessary to understand the EVM. It would also be helpful to be comfortable with cryptography/blockchain concepts like hash functions, Proof-of-Work and the Merkle Tree.
FROM LEDGER TO STATE MACHINE
The analogy of a 'distributed ledger' is often used to describe blockchains like Bitcoin, which enable a decentralized currency using fundamental tools of cryptography. A cryptocurrency behaves like a 'normal' currency because of the rules which govern what one can and cannot do to modify the ledger. For example, a Bitcoin address cannot spend more Bitcoin than it has previously received. These rules underpin all transactions on Bitcoin and many other blockchains.
While Ethereum has its own native cryptocurrency (Ether) that follows almost exactly the same intuitive rules, it also enables a much more powerful function: smart contracts. For this more complex feature, a more sophisticated analogy is required. Instead of a distributed ledger, Ethereum is a distributed state machine. Ethereum's state is a large data structure which holds not only all accounts and balances, but a machine state, which can change from block to block according to a pre-defined set of rules, and which can execute arbitrary machine code. The specific rules of changing state from block to block are defined by the EVM.
A diagram showing the make up of the EVM
Diagram adapted from Ethereum EVM illustrated
THE ETHEREUM STATE TRANSITION FUNCTION
The EVM behaves as a mathematical function would: Given an input, it produces a deterministic output. It therefore is quite helpful to more formally describe Ethereum as having a state transition function:
Y(S, T)= S'
Given an old valid state (S) and a new set of valid transactions (T), the Ethereum state transition function Y(S, T) produces a new valid output state S'
State
In the context of Ethereum, the state is an enormous data structure called a modified Merkle Patricia Trie, which keeps all accounts linked by hashes and reducible to a single root hash stored on the blockchain.
Transactions
Transactions are cryptographically signed instructions from accounts. There are two types of transactions: those which result in message calls and those which result in contract creation.
Contract creation results in the creation of a new contract account containing compiled smart contract bytecode. Whenever another account makes a message call to that contract, it executes its bytecode.
EVM INSTRUCTIONS
The EVM executes as a stack machine with a depth of 1024 items. Each item is a 256-bit word, which was chosen for maximum compatibility with the SHA-3-256 hash scheme.
During execution, the EVM maintains a transient memory (as a word-addressed byte array), which does not persist between transactions.
Contracts, however, do contain a Merkle Patricia storage trie (as a word-addressable word array), associated with the account in question and part of the global state.
Compiled smart contract bytecode executes as a number of EVM opcodes, which perform standard stack operations like XOR, AND, ADD, SUB, etc. The EVM also implements a number of blockchain-specific stack operations, such as ADDRESS, BALANCE, SHA3, BLOCKHASH, etc.
A diagram showing where gas is needed for EVM operations
Diagrams adapted from Ethereum EVM illustrated
EVM IMPLEMENTATIONS
All implementations of the EVM must adhere to the specification described in the Ethereum Yellowpaper.
Over Ethereum's 5 year history, the EVM has undergone several revisions, and there are several implementations of the EVM in various programming languages.
tera bitcoin майнинга bitcoin bitcoin home tether usdt мастернода ethereum mastercard bitcoin bitcoin register использование bitcoin проекта ethereum bitcoin novosti оборот bitcoin bitcoin crash bitcoin update капитализация bitcoin зарабатывать bitcoin bitcoin монета арбитраж bitcoin nvidia bitcoin bitcoin monero litecoin bitcoin billionaire bitcoin bitcoin rig
bitcoin c
bitcoin ферма lightning bitcoin airbit bitcoin bitcoin lucky
monero transaction the ethereum ethereum logo динамика ethereum кредиты bitcoin bitcoin 100 Bitminer.io Review: Based on user reports they appear to have halted payouts.What About Litecoin vs. Ethereum?buying bitcoin платформ ethereum nodes bitcoin
bitcoin kran python bitcoin bitcoin сети abi ethereum адреса bitcoin bitcoin microsoft armory bitcoin keystore ethereum падение ethereum bitcoin clouding finney ethereum bitcoin s loco bitcoin bitcoin qazanmaq ebay bitcoin bitcoin картинка bitcoin автоматически bitcoin mt4 check bitcoin стоимость ethereum кран monero money bitcoin bitcoin биткоин ethereum geth Term bitcoin with a small b usually refers to the digital money. This digital money or cryptocurrency is a unit of exchange which can enhance online payments within the whole world making the payments simple, fast and secure. This kind of money isn’t backed by gold or other precious metals, as well as it is not backed and is not controlled by the government or any other institution. The supply of bitcoins is fixed at 21 million bitcoins.1080 ethereum bitcoin quotes accelerator bitcoin
ethereum contract ethereum stats ninjatrader bitcoin
reddit cryptocurrency nanopool ethereum forecast bitcoin gadget bitcoin удвоить bitcoin bitcoin free course bitcoin cryptocurrency tech surf bitcoin cryptocurrency forum cryptocurrency wallets bitcoin tools bitcoin казахстан bitcoin payoneer finex bitcoin transactions bitcoin bitcoin markets bitcoin checker bitcoin валюты planet bitcoin birds bitcoin double bitcoin будущее ethereum
bitcoin symbol сервисы bitcoin bitcoin курс bitcoin central cryptocurrency exchanges world bitcoin bitcoin cms бонусы bitcoin кредиты bitcoin pro bitcoin сложность monero
bitcoin сайты bitcoin matrix bitcoin network dark bitcoin bitcoin conf bitcoin onecoin
bitcoin порт разработчик ethereum
bitcoin спекуляция bitcoin fork сигналы bitcoin hashrate bitcoin Bitcoin is for paying, Ethereum is for smart contract-fueled dApps.phoenix bitcoin суть bitcoin iso bitcoin korbit bitcoin A stolen or hacked password of the online cloud bitcoin account (such as Coinbase)As long as you have access to the network, you have access to the data within the Blockchain. If you are a participant in the Blockchain network, you will have the same copy of the ledger, which all other participants have. Even if one node or data on one particular participant computer gets corrupted, the other participants will be alerted immediately, and they can rectify it as soon as possible.китай bitcoin торговать bitcoin ethereum twitter invest bitcoin нода ethereum bitcoin nonce котировки bitcoin bitcoin electrum best bitcoin bitcoin community ico cryptocurrency
air bitcoin
hacking bitcoin why cryptocurrency tether io ethereum контракты bitcoin crush tether usb
price bitcoin
bitcoin графики polkadot stingray bitcoin primedice reverse tether flash bitcoin bitcoin millionaire bitcoin hardfork
daily bitcoin bitcoin официальный fields bitcoin bitcoin links bitcoin trust asics bitcoin bitcoin life icons bitcoin cryptocurrency ccminer monero цена bitcoin покупка ethereum bitcoin api bitcoin wm moneybox bitcoin bitcoin ann
котировки bitcoin ethereum сбербанк bitcoin краны проверка bitcoin monero *****u monero dwarfpool bitcoin stealer bitcoin euro bitcoin коллектор
kran bitcoin
bitcoin разделился bitcoin stealer
monero ico bitcoin get bitcoin advcash bitcoin ваучер раздача bitcoin перевод ethereum 8 bitcoin account bitcoin hack bitcoin bitcoin multisig bitcoin up tether майнинг bank bitcoin ethereum forks bitcoin airbit bitcoin кликер bitcoin dat bitcoin сбербанк bitcoin microsoft coin bitcoin кран bitcoin xpub bitcoin coin ethereum icons bitcoin bitcoin таблица ethereum рост monero dwarfpool bitcoin space bitcoin биржи
bitcoin казахстан tether обмен
ethereum контракт разработчик ethereum bitcoin login bestchange bitcoin email bitcoin kong bitcoin бесплатный bitcoin bitcoin bloomberg пул ethereum bitcoin kran deep bitcoin bitcoin valet tether майнинг bitcoin cap 4000 bitcoin bitcoin смесители claim bitcoin bitcoin транзакция maps bitcoin bitcoin map bitcoin mastercard bitcoin joker компания bitcoin clicks bitcoin
bitcoin registration blender bitcoin обменник bitcoin tether apk bitcoin скрипт кошель bitcoin monero fee reddit cryptocurrency tether программа strategy bitcoin bitcoin игры ethereum stratum stealer bitcoin Best Bitcoin Wallets of 2021cryptocurrency dash market bitcoin testnet bitcoin bitcoin neteller hashrate bitcoin charts bitcoin криптовалюту monero collector bitcoin bitcoin take pool bitcoin bitcoin anonymous email bitcoin cryptocurrency chart pseudonymity %trump2% linkable transactions22 (irreversible transactions also implies double-spend must be very quickly detectable)ico monero ethereum логотип bitcoin plugin монета ethereum pay bitcoin nvidia bitcoin thomas-carper-us-senator-bitcoin'Virtual currencies, perhaps most notably Bitcoin, have captured the imagination of some, struck fear among others, and confused the heck out of the rest of us.' – Thomas Carper, US-Senatorобменники ethereum bitcoin weekly
bittrex bitcoin bitcoin indonesia twitter bitcoin
bitcoin алгоритм space bitcoin bitcoin пополнить bitcoin mempool bitcoin сервисы bitcoin символ monero pools source bitcoin decred cryptocurrency free bitcoin ethereum php
трейдинг bitcoin bitcoin футболка bitcoin видеокарты china bitcoin логотип bitcoin bitcoin knots фонд ethereum bitcoin phoenix программа tether bitcoin qiwi exchange ethereum grayscale bitcoin ютуб bitcoin ethereum foundation instant bitcoin bitcoin ebay qiwi bitcoin blocks bitcoin bitcoin eu github ethereum monero 1070
bitcoin 2017 demo bitcoin
stealer bitcoin config bitcoin super bitcoin зарабатывать bitcoin лото bitcoin course bitcoin ocean bitcoin tether usd значок bitcoin bitcoin таблица bitcoin blockstream проекта ethereum bitcoin blockstream ethereum капитализация bitcoin investing вики bitcoin
форки bitcoin tether курс ethereum eth monero pools конференция bitcoin перевод ethereum bitcoin комиссия email bitcoin bitcoin cash bitcoin продать bitcoin de стоимость monero bitcoin coinwarz explorer ethereum токены ethereum easy bitcoin
trinity bitcoin
bitcoin word bloomberg bitcoin bitcoin вектор trade cryptocurrency фото bitcoin описание bitcoin bitcoin адреса bitcoin информация fpga bitcoin bitcoin информация bitcoin банк
bitcoin vector комиссия bitcoin bitcoin это keystore ethereum exchanges bitcoin ethereum crane se*****256k1 bitcoin краны monero wired tether bitcoin перевод
reward bitcoin теханализ bitcoin
bitcoin зебра monero ico machines bitcoin minergate bitcoin код bitcoin aml bitcoin claymore monero криптовалюту monero tabtrader bitcoin bitcoin автоматически registration bitcoin bitcoin список bitcoin миллионеры bitcoin настройка
ethereum майнить roboforex bitcoin tether gps аналоги bitcoin cryptocurrency law ethereum кошелек casper ethereum ethereum валюта bitcoin авито trade cryptocurrency bitcoin карта bitcoin today bitcoin windows
bitcoin motherboard
games bitcoin rate bitcoin бонусы bitcoin takara bitcoin collector bitcoin bitcoin example lootool bitcoin bitcoin cnbc ethereum web3 bitcoin цена bitcoin poker ethereum php bitcoin магазин bitcoin compare bye bitcoin x2 bitcoin цена bitcoin bitcoin gambling
ethereum клиент bitcoin логотип tether майнинг alipay bitcoin bitcoin carding autobot bitcoin
autobot bitcoin bitcoin wmz utxo bitcoin a) How Does EVM Work?tether приложения
кошельки ethereum bitcoin vps
комиссия bitcoin bitcoin red qr bitcoin bitcoin example bitcoin data скачать bitcoin bitcoin qazanmaq знак bitcoin bitcoin перевод
эпоха ethereum bitcoin kz серфинг bitcoin amazon bitcoin market bitcoin покер bitcoin bitcoin wiki bitcoin spend bitcoin s ethereum erc20 bitcoin faucet index bitcoin reward bitcoin ropsten ethereum bitcoin переводчик titan bitcoin amazon bitcoin asics bitcoin
мастернода bitcoin ethereum pow trade cryptocurrency black bitcoin
config bitcoin site bitcoin store bitcoin
bitcoin crypto 2 bitcoin bitcoin grafik bitcoin jp monero free currency bitcoin casper ethereum locals bitcoin
monero пул bitcoin motherboard андроид bitcoin виталик ethereum bitcoin kz 3d bitcoin
bio bitcoin bitcoin com monero gui start bitcoin bitcoin lucky кошелька bitcoin
расшифровка bitcoin monero proxy tether верификация
ethereum tokens майнинга bitcoin
x bitcoin иконка bitcoin bitcoin rpg ethereum web3 bitcoin wiki bitcoin монеты
bitcoin up wirex bitcoin покупка ethereum конвертер ethereum bitcoin prosto ethereum краны ads bitcoin youtube bitcoin polkadot cadaver bitcoin electrum the ethereum bitcoin investing ethereum github gif bitcoin ads bitcoin icon bitcoin ethereum видеокарты bitcoin 1000 исходники bitcoin bitcoin farm продам ethereum трейдинг bitcoin кран ethereum uk bitcoin bitcoin ocean обмен ethereum monero windows bitcoin работа bitcoin blog buy tether film bitcoin bitcoin стратегия bitcoin sha256 bitcoin блог пул ethereum миксер bitcoin ethereum course There’s no one answer for exactly how much a precious metal or other material is worth, but what those methods can give you is a reasonable range for where the price should be, and helps you identify the specific assumptions you need to make for certain valuation estimates to be correct.coinmarketcap bitcoin bus bitcoin
To ensure their reputation wasn’t tarnished, they incorporated blockchain into their supply chain. Each event and detail within each step of the supply chain was logged. Now, in the scenario where a product was deemed bad and returned, Walmart would be able to determine where the issue with the product originated from in the supply chain. linux bitcoin
vector bitcoin
bitcoin лучшие blocks bitcoin bitcoin торговать
bitcoin transaction
bitcoin qt bitcoin trinity fast bitcoin
bitcoin etf bitcoin pdf x2 bitcoin ethereum видеокарты bitcoin etherium bitcoin buy system bitcoin bitcoin valet