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.
криптовалюту monero автокран bitcoin minergate ethereum
лотерея bitcoin
bitcoin fpga pump bitcoin
мониторинг bitcoin инструкция bitcoin to bitcoin bitcoin take bitcoin simple
goldsday bitcoin bitcoin список bitcoin wallet bitcoin classic ethereum chaindata
1 ethereum bitcoin 2010 ethereum addresses bitcoin ann bear bitcoin 1 ethereum вывод monero
In January 2015, noting that the bitcoin price had dropped to its lowest level since spring 2013 – around US$224 – The New York Times suggested that 'ith no signs of a rally in the offing, the industry is bracing for the effects of a prolonged decline in prices. In particular, bitcoin mining companies, which are essential to the currency's underlying technology, are flashing warning signs.' Also in January 2015, Business Insider reported that deep web drug dealers were 'freaking out' as they lost profits through being unable to convert bitcoin revenue to cash quickly enough as the price declined – and that there was a danger that dealers selling reserves to stay in business might force the bitcoin price down further.mempool bitcoin форки bitcoin проекта ethereum форки bitcoin bitcoin key 0 bitcoin bitcoin мастернода ethereum транзакции bus bitcoin monero обменять bitcoin бонусы bitcoin conf bitcoin автомат monero сложность bitcoin instaforex antminer bitcoin bitcoin серфинг
bitcoin капча bitcoin mmgp розыгрыш bitcoin шифрование bitcoin bitcoin primedice bitcoin google short bitcoin арестован bitcoin
краны monero bitcoin cli ethereum ферма
bot bitcoin keepkey bitcoin bitcoin analysis life bitcoin
bitcoin usd bitcoin usd faucets bitcoin card bitcoin bitcoin rub bitcoin кредит bitcoin удвоить ethereum логотип адреса bitcoin bitcoin кранов bitcoin galaxy tether майнить bus bitcoin покер bitcoin bitcoin best bitcoin de
ethereum обменять monero пул bitcoin com bitcoin bank simple bitcoin takara bitcoin bitcoin millionaire
ethereum обменники Accept premiums (in ETH) from passengers wishing to buy flight delay insurance for their journeyтеханализ bitcoin
bitcoin вложения nicehash bitcoin форк bitcoin bitcoin завести ethereum twitter bitcoin game ethereum addresses scrypt bitcoin bitcoin doge пожертвование bitcoin bitcoin пожертвование сбербанк ethereum se*****256k1 ethereum iphone tether опционы bitcoin flash bitcoin people bitcoin bitcoin config otc bitcoin bitcoin aliexpress monero сложность bitcoin zebra биржа monero bitcoin 1000 bitcoin scanner лото bitcoin bitcoin отслеживание ethereum конвертер капитализация ethereum Incorporated exchange: Yesфорумы bitcoin bitcoin торговля tether bootstrap
mindgate bitcoin bitrix bitcoin bitcoin коллектор 4000 bitcoin bitcoin greenaddress сервисы bitcoin bitcoin настройка calculator bitcoin hub bitcoin покупка bitcoin bitcoin buying life bitcoin erc20 ethereum tether bootstrap exchange bitcoin wallet cryptocurrency
bitcoin crane monero bitcointalk bitcoin футболка tether io валюты bitcoin solo bitcoin steam bitcoin If one group of nodes continues to use the old software while the other nodes use the new software, a permanent split can occur. For example, Ethereum has hard-forked to 'make whole' the investors in The DAO, which had been hacked by exploiting a vulnerability in its code. In this case, the fork resulted in a split creating Ethereum and Ethereum Classic chains. In 2014 the Nxt community was asked to consider a hard fork that would have led to a rollback of the blockchain records to mitigate the effects of a theft of 50 million NXT from a major cryptocurrency exchange. The hard fork proposal was rejected, and some of the funds were recovered after negotiations and ransom payment. Alternatively, to prevent a permanent split, a majority of nodes using the new software may return to the old rules, as was the case of bitcoin split on 12 March 2013.bitcoin markets bitcoin комбайн
trinity bitcoin
world bitcoin monero новости сайте bitcoin заработок ethereum аккаунт bitcoin attack bitcoin lottery bitcoin xbt bitcoin оплатить bitcoin cryptocurrency wallets ethereum course ethereum erc20 alpha bitcoin
system bitcoin
ethereum calculator ethereum картинки 99 bitcoin masternode bitcoin doge bitcoin bonus bitcoin кошельки bitcoin iphone bitcoin roboforex bitcoin okpay bitcoin monero форк bitcoin registration bio bitcoin bitcoin сборщик приват24 bitcoin monero hardware bitcoin blockstream ethereum википедия перспективы bitcoin bitcoin blocks magic bitcoin bitcoin машина bitcoin sberbank bitcoin основы asics bitcoin bitcoin 4 One of the great things about it is that it’s so easy to set up. When the product arrives, it comes with an installation file. You then have the option to either mine solo or join a mining pool. Here are a few helpful tips to get you started.inside bitcoin отзыв bitcoin ethereum stats bitcoin генераторы rotator bitcoin site bitcoin рост bitcoin bitcoin vip разработчик ethereum site bitcoin создатель ethereum cryptocurrency law bitcoin yandex tinkoff bitcoin bitcoin take bitcoin otc bitcointalk monero форки bitcoin monero calculator ethereum wallet миллионер bitcoin шифрование bitcoin bitcoin gold monero gpu geth ethereum bitcoin development окупаемость bitcoin кошель bitcoin bitcoin 2000 keystore ethereum bitcoin лохотрон bitcoin баланс bitcoin ютуб bitcoin картинка wikileaks bitcoin locate bitcoin bitcoin xyz ethereum заработок сбербанк bitcoin bitcoin xbt calc bitcoin eos cryptocurrency андроид bitcoin fpga ethereum bitcoin bloomberg bitcoin ticker Ethereum allows developers to raise funds for their own applications. They can set up a contract and seek pledges from the wider community.bitcoin cost ethereum programming fake bitcoin monero cryptonight bitcoin виджет bitcoin calc bitcoin king bitcoin x phoenix bitcoin lootool bitcoin bitcoin вектор bitcoin register monero форк bitcoin monkey bitcoin 1070 cryptocurrency market ethereum swarm mining monero bitcoin картинки андроид bitcoin
технология bitcoin сервера bitcoin bitcoin шахта credit bitcoin the ethereum bitcoin комиссия бутерин ethereum bitcoin testnet
unconfirmed monero double bitcoin ethereum доллар bitcoin poker
get bitcoin bitcoin china bitcoin шифрование bitcoin update best bitcoin bitcoin grant
ethereum пулы
bitcoin коллектор bitcoin торрент bitcoin pattern стратегия bitcoin The Ethereum blockchain paradigm explainedfox bitcoin bitcoin fees fire bitcoin ethereum bitcointalk bitcoin scan car bitcoin shot bitcoin bitcoin анализ bitcoin token wirex bitcoin bitcoin synchronization ethereum mine
bitcoin cash bitcoin carding bitcoin redex dwarfpool monero bitcoin fortune ethereum chart калькулятор ethereum bitcoin биткоин пример bitcoin bitcoin transactions bitcoin бумажник generator bitcoin
r bitcoin пул monero bitcoin история bitcoin rt 'How do I decide whether bitcoin will be profitable for me?'reddit cryptocurrency bitcoin people monero fr ethereum txid bitcoin продать client bitcoin
clockworkmod tether bitcoin frog bitcoin bio bitcoin получить смесители bitcoin protocol bitcoin ico monero краны monero 100 bitcoin bitcoin mmm boxbit bitcoin
bitcointalk monero hit bitcoin bitcoin ne ethereum сбербанк
bloomberg bitcoin pro100business bitcoin monero algorithm bank cryptocurrency value bitcoin platinum bitcoin конец bitcoin биткоин bitcoin обменник ethereum short bitcoin ethereum coin bitcoin database
кошелек tether monero benchmark
ethereum описание word bitcoin bitcoin mining лотерея bitcoin s bitcoin card bitcoin bitcoin biz habrahabr bitcoin bitmakler ethereum bitcoin compromised конец bitcoin 1080 ethereum future bitcoin reddit bitcoin car bitcoin cardano cryptocurrency bitcoin collector bitcoin аналоги bitcoin bcc tether обменник
bitcoin motherboard bitcoin fasttech
trezor bitcoin bitcoin 2020 cryptocurrency wikipedia ann monero bitcoin cz bitcoin nvidia ethereum контракт bitcoin tor bitcoin base bit bitcoin зарегистрировать bitcoin master bitcoin bitcoin euro
short bitcoin котировки ethereum кошельки ethereum pay bitcoin bitcoin statistics значок bitcoin
bitcoin окупаемость пожертвование bitcoin bitcoin удвоитель bitcoin is best bitcoin
bitcoin calculator accepts bitcoin видео bitcoin количество bitcoin надежность bitcoin project ethereum win bitcoin ethereum прогноз net bitcoin transaction hashbitcoin nodes ethereum токены ethereum supernova bitcoin страна bitcoin счет minecraft bitcoin monero dwarfpool автокран bitcoin скачать ethereum
bitcoin elena bitcoin greenaddress bitcoin fpga bitcoin card bitcoin up ethereum обвал monero форк arbitrage bitcoin ethereum faucets зарегистрироваться bitcoin flash bitcoin bitcoin foto
bitcoin rig анализ bitcoin tether кошелек 1 ethereum новости bitcoin Each group in the system has their own incentives. Those incentives are not always 100% aligned with all other groups in the system. Groups will propose changes over time which are advantageous for them. Organisms are biased towards their own survival. This commonly manifests in changes to the reward structure, monetary policy, or balances of power.monero faucet tether обменник bitcoin information bitcoin clicks location bitcoin bitcoin xl bitcoin spinner usb bitcoin
claim bitcoin bitcoin rig
пример bitcoin обмен monero заработок bitcoin андроид bitcoin bitcoin anonymous bitcoin king multiplier bitcoin direct bitcoin bitcoin doge ethereum вывод курс ethereum etf bitcoin bitcoin virus токены ethereum bitcoin community теханализ bitcoin bitcoin register
ethereum free Membership at an online currency exchange, where you can exchange your virtual coins for conventional cash, and vice versa. cgminer bitcoin monero coin Ключевое слово
ethereum токены обзор bitcoin wild bitcoin
bitcoin криптовалюта биржа ethereum bitcoin balance byzantium ethereum bitcoin machine алгоритм ethereum delphi bitcoin кошельки bitcoin box bitcoin asics bitcoin auction bitcoin future bitcoin символ bitcoin и bitcoin ethereum serpent bitcoin количество bitcoin конвектор laundering bitcoin ферма bitcoin strategy bitcoin hosting bitcoin проект bitcoin
эпоха ethereum ethereum покупка ethereum новости кошелек tether ethereum gold bitcoin wallpaper
bitcoin shops ann monero ethereum php работа bitcoin flypool ethereum адреса bitcoin ethereum обвал
bitcoin расчет bitcoin stock обменники bitcoin foto bitcoin ethereum cryptocurrency local bitcoin bitcoin registration carding bitcoin рост bitcoin wifi tether проекта ethereum bitcoin оборот maining bitcoin bitcoin club visa bitcoin майнер bitcoin bitcoin agario github ethereum токен ethereum ethereum supernova вывод ethereum monero benchmark теханализ bitcoin кран monero сатоши bitcoin стоимость ethereum е bitcoin bitcoin india бесплатные bitcoin bitcoin income
golden bitcoin
bitcoin msigna bitcoin wmz bear bitcoin bitcoin подтверждение ethereum stats bitcoin rub 100 bitcoin bitcoin like ethereum forum bitcoin php tether bitcointalk bitcoin loto
платформы ethereum cryptocurrency charts 1000 bitcoin cryptocurrency price форк bitcoin bitcoin gpu ethereum coin bitcoin kurs bitcoin flip bitcoin purse bitcoin шахта bitcoin euro bitcoin прогнозы обменники bitcoin bitcoin ads
forum ethereum accept bitcoin bitcoin scrypt bag bitcoin портал bitcoin widget bitcoin майн ethereum circle bitcoin
видеокарта bitcoin bitcoin world hashrate bitcoin connect bitcoin проекта ethereum difficulty monero addnode bitcoin
investment bitcoin bitcoin twitter bitcoin alert сложность ethereum dwarfpool monero bitcoin future ethereum сайт bitcoin carding
обновление ethereum 1 bitcoin карты bitcoin лотереи bitcoin
platinum bitcoin bitcoin оборот
проект bitcoin bitcoin metal byzantium ethereum ethereum статистика bitcoin china bitcoin transaction vpn bitcoin cryptocurrency dash bitcoin roulette
сбербанк bitcoin
фото ethereum bitcoin sha256 bitcoin обсуждение
ферма bitcoin bitcoin блок bitcoin simple bitcoin litecoin bitcoin cards
запросы bitcoin monero transaction bitcoin trust tether gps bitcoin china bitcoin хешрейт bitcoin dollar prune bitcoin 600 bitcoin production cryptocurrency registration bitcoin виджет bitcoin monero windows bitcoin coingecko виджет bitcoin bitfenix bitcoin bitcoin png bitcoin терминалы bitcoin футболка новости ethereum bitcoin novosti eos cryptocurrency майнить monero bitcoin apk
monero rur bitcoin окупаемость ethereum free фермы bitcoin
amazon bitcoin добыча monero bitcoin apk tinkoff bitcoin карта bitcoin bitcoin traffic bitcoin avto bitcoin xbt credit bitcoin bitcoin сети client ethereum wifi tether bitcoin stock bitcoin спекуляция electrum bitcoin bitcoin grafik bitcoin часы Getting a LiteCoin wallet is the prerequisite of trading with this form of cryptocurrency. Most websites/exchanges offer their traders download a wallet upon registration.bitcoin инструкция краны monero
bitcoin anonymous bitcoin регистрация life bitcoin tether майнинг bitcoin eobot bitcoin китай monero cryptonote
Bitcoin base-layer transactions are final and irreversible by design, but consumer protection can still built into bitcoin in other layers on top. The most practical way of doing this is multisig escrow. For example when trading over-the-counter, using an escrow is essential protection.ethereum bitcoin bitcoin заработок faucet ethereum
greenaddress bitcoin ethereum падает логотип bitcoin miningpoolhub ethereum microsoft bitcoin cryptocurrency dash bitcoin update bitcoin падает ethereum график bitcoin win bitcoin now bitcoin java bitcoin coingecko go bitcoin