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.
hosting bitcoin
ethereum проблемы
кошель bitcoin config bitcoin ethereum видеокарты ethereum blockchain bitcoin android
conference bitcoin polkadot ico bitcoin рублях
bitcoin jp bitcoin терминал
перспектива bitcoin monero обменник
криптовалюты bitcoin loan bitcoin разработчик bitcoin bitcoin упал bitcoin lion bitcoin блок bitcoin money trezor ethereum bitcoin торги форум bitcoin bitcoin accepted monero валюта polkadot ico криптовалюта bitcoin bitcoin database
bitcoin 123 seed bitcoin nvidia bitcoin криптовалюту bitcoin ethereum картинки
bitcoin x2 транзакции monero bitcoin capitalization bitcoin clouding
bitcoin wmz nicehash bitcoin forum bitcoin bitcoin formula ethereum platform accelerator bitcoin bitcoin shops bitcoin автоматически выводить bitcoin
bitcoin ruble 6000 bitcoin
рубли bitcoin кошельки bitcoin логотип ethereum alipay bitcoin cryptocurrency charts bitcoin central альпари bitcoin bitcoin s bitcoin vip msigna bitcoin порт bitcoin bitcoin автоматически заработать ethereum bitcoin xl bitcoin talk продать monero bitcoin location monero faucet bitcoin статистика bitcoin работа epay bitcoin bitcoin atm rpg bitcoin cryptonight monero bitcoin fees
ставки bitcoin tokens ethereum coin bitcoin attack bitcoin bitcoin knots зарабатывать ethereum daily bitcoin accept bitcoin trade bitcoin monero график ethereum обвал bitcoin mmgp bitcoin приват24 сложность bitcoin monero xeon bitcoin форекс bitcoin выиграть асик ethereum bitcoin динамика reindex bitcoin koshelek bitcoin ethereum com statistics bitcoin ethereum studio график monero addnode bitcoin ann monero homestead ethereum
bitcoin ocean ethereum контракты ethereum rub bitcoin price erc20 ethereum bitcoin мошенничество ethereum developer mt5 bitcoin криптовалюта tether bistler bitcoin
autobot bitcoin io tether кошелька ethereum 4000 bitcoin bitcoin motherboard мастернода ethereum шифрование bitcoin takara bitcoin кошелька ethereum bitcoin bcc ethereum blockchain bitcoin magazin cubits bitcoin wei ethereum сложность monero
получить bitcoin работа bitcoin
Ключевое слово ethereum io ethereum usd bitcoin buy bitcoin вконтакте webmoney bitcoin cryptocurrency tech bitcoin collector reverse tether проверить bitcoin проверка bitcoin
rx580 monero
black bitcoin raiden ethereum atm bitcoin миксер bitcoin mainer bitcoin blog bitcoin bitcoin информация зарегистрироваться bitcoin Bitcoin appeals to tech-savvy libertarians, because it so far exists outside the institutional banking system and the control of governments. However, researchers looking to uncover the reasons for interest in bitcoin did not find evidence in Google search data that this was linked to libertarianism.So, that answers part of 'how does Bitcoin work?', but it doesn’t answer all of it. To really learn how Bitcoin works, we should move on to how the Bitcoin transactions work…ethereum twitter сборщик bitcoin bitcoin работа golden bitcoin видео bitcoin bitcoin green etf bitcoin bitcoin greenaddress форекс bitcoin bitcoin картинка пул bitcoin arbitrage cryptocurrency metropolis ethereum bitcoin scrypt
bitcoin india андроид bitcoin ethereum *****u pixel bitcoin часы bitcoin monero hashrate bitcoin fx In order to speculate on the valuations of cryptos such as Bitcoin and Ether, traders must ask key questions such as:bitcoin оборудование homestead ethereum bitcoin открыть ethereum btc bitcoin machine tether coin bitcoin продать
tether верификация фильм bitcoin github bitcoin bitcoin base tether майнить валюта tether free bitcoin капитализация bitcoin график bitcoin
ethereum org bitcoin список mine ethereum продам bitcoin
difficulty bitcoin bitcoin основы bitcoin suisse connect bitcoin bitcoin evolution карты bitcoin bitcoin авито
ютуб bitcoin взлом bitcoin love bitcoin bitcoin tor bitcoin обучение hyip bitcoin
bitcointalk monero bitcoin main
bitcoin оборот bitcoin get bitcoin бумажник fields bitcoin bitcoin сети testnet ethereum bitcoin 50 bitcoin gadget
bitcoin services проекта ethereum bitcoin футболка buy tether bitcoin demo monero usd monero wallet bitcoin change bitcoin mainer токены ethereum bitcoin forex
ethereum github importprivkey bitcoin ethereum wallet ethereum forum bitcoin nvidia *****uminer monero конец bitcoin bitcoin golden краны monero 2x bitcoin bitcoin plus500 bitcoin formula supernova ethereum bitcoin sec bitcoin node математика bitcoin transactions bitcoin bitcoin investing bitcoin download tx bitcoin bitcoin fun cryptocurrency law сбор bitcoin bitcoin государство ethereum miners boxbit bitcoin bitcoin ваучер pool bitcoin банкомат bitcoin bitcoin roulette monero windows обналичивание bitcoin raiden ethereum bitcoin 100 yota tether explorer ethereum bitcoin escrow bitcoin alert bitcoin pools rush bitcoin hacker bitcoin bitcoin alert bitcoin price bitcoin wallet Ключевое слово bitcoin анонимность зарегистрироваться bitcoin статистика ethereum ethereum кошельки пулы ethereum monero rur bitcoin euro bitcoin tor монета ethereum ethereum 1070 cryptocurrency dash ethereum прогноз
bitmakler ethereum bitcoin address bitcoin maps ethereum описание ethereum ubuntu ethereum заработать bitcoin rpg bubble bitcoin se*****256k1 ethereum
торговать bitcoin rpg bitcoin bitcoin bit сайте bitcoin keys bitcoin
bitcoin airbit bitcoin фарминг bitcoin options tether download
bitcoin *****u habrahabr bitcoin 6000 bitcoin flappy bitcoin банк bitcoin bitcoin capitalization monero simplewallet bitcoin foto ethereum видеокарты If demand grows more slowly in percent terms than it has in the past, the price is likely to undershoot PlanB’s historical model’s projections in the years ahead, even if it follows the same general shape. That would be my base case: bullish with an increase to new all-time highs from current levels within two years, but not necessarily a 10x increase within two years. On the other hand, we can’t rule out the bullish moonshot case if demand grows sharply and/or if some global macro currency event adds another catalyst.buy tether avto bitcoin bitcoin стоимость coin ethereum monero gpu bitcoin loto tera bitcoin bitcoin вывести bitcoin live
gold cryptocurrency bitrix bitcoin асик ethereum бесплатные bitcoin bitcoin код
bitcoin investment rotator bitcoin metropolis ethereum продам ethereum bitcoin escrow bitcoin electrum ethereum metropolis polkadot cadaver exchange bitcoin bitcoin litecoin system bitcoin bitcoin casino рулетка bitcoin фри bitcoin эфир bitcoin waves cryptocurrency обменять monero продам bitcoin bitcoin location bitcoin weekend bear bitcoin decred cryptocurrency bitcoin пулы bitcoin покер stats ethereum cryptocurrency ethereum java bitcoin bitcoin растет
bitcoin save bitcoin vpn bitcoin torrent bitcoin debian bitcoin приложение alipay bitcoin monero freebsd casper ethereum bitcoin 20 торрент bitcoin cryptocurrency mining ethereum 4pda exchange ethereum bitcoin dat arbitrage cryptocurrency protocol bitcoin bitcoin мошенники
bitcoin india сайт ethereum алгоритмы ethereum ethereum хешрейт bitcoin 5 теханализ bitcoin
free bitcoin s bitcoin 1080 ethereum rx560 monero bitcoin prominer vizit bitcoin
proxy bitcoin рынок bitcoin monero dwarfpool bitcoin fpga bitcoin даром новости bitcoin bitcoin упал monero вывод будущее bitcoin
bitcoin sberbank Uncle Blocksstatus bitcoin
p2pool monero bio bitcoin транзакции ethereum
bitcoin вывод bitcoin отследить bitcoin растет bitcoin investment андроид bitcoin bitcoin de bitcoin chains bitcoin cz flypool ethereum monero xeon bitcoin бизнес hub bitcoin bitcoin рубль обсуждение bitcoin bitcoin life вики bitcoin cryptocurrency market
кости bitcoin халява bitcoin monero майнить bitcoin xt bitcoin grant bitcoin portable polkadot store анализ bitcoin ethereum клиент ava bitcoin bitcoin cz bitcoin poker bitcoin bat ethereum контракты магазины bitcoin bux bitcoin bitcoin trust ethereum токен bitcoin продажа
ethereum перспективы bitcoin пулы segwit2x bitcoin bitcoin fake проверка bitcoin ethereum прибыльность The Subtle Risks of Treasury BondsMost buyers and sellers of cryptocurrencies are speculating, meaning they are just looking at price charts and guessing that it may go up or down with technical analysis.bonus bitcoin qtminer ethereum monero pro майн ethereum monero amd bitcoin стоимость cryptocurrency bitcoin мошенничество balance bitcoin мастернода bitcoin total cryptocurrency аналитика bitcoin 99 bitcoin client ethereum bitcoin anonymous monero обмен bitcoin blue Why would any merchant — online or in the real world — want to accept Bitcoin as payment, given the currently small number of consumers who want to pay with it? My partner Chris Dixon recently gave this example:was used for accelerating business development (most often to unlock a