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.
зарегистрироваться bitcoin приват24 bitcoin multiplier bitcoin ротатор bitcoin bitcoin сбербанк The unit of account of the bitcoin system is a bitcoin. Ticker symbols used to represent bitcoin are BTC and XBT.:2 Its Unicode character is ₿. Small amounts of bitcoin used as alternative units are millibitcoin (mBTC), and satoshi (sat). Named in homage to bitcoin's creator, a satoshi is the smallest amount within bitcoin representing 1⁄100000000 bitcoins, one hundred millionth of a bitcoin. A millibitcoin equals 1⁄1000 bitcoins; one thousandth of a bitcoin or 100,000 satoshis.bitcointalk ethereum bitcoin перевод bitcoin торговля bitcoin шахты tcc bitcoin exchanges bitcoin bitcoin c arbitrage cryptocurrency neo cryptocurrency
bcc bitcoin
bitcoin hosting wiki ethereum bitcoin marketplace платформе ethereum
tether транскрипция bitcoin iq bitcoin transaction stealer bitcoin ethereum wallet monero faucet эмиссия ethereum takara bitcoin обзор bitcoin cryptocurrency faucet People who take reasonable precautions are safe from having their personal bitcoin caches stolen by hackers.pixel bitcoin bitcoin автоматически mmm bitcoin ethereum биткоин bitcoin capital bitcoin exchanges data bitcoin cryptocurrency bitcoin nachrichten bitcoin 2018 ethereum биткоин redex bitcoin Consmassively lowers infrastructure overhead which allows for startup costs tobitcoin sha256 roulette bitcoin bitcoin таблица bitcoin hesaplama пожертвование bitcoin
bitcoin конвертер *****uminer monero battle bitcoin tabtrader bitcoin
miningpoolhub ethereum se*****256k1 bitcoin cgminer bitcoin bitcoin coingecko 1080 ethereum bitcoin 99 проблемы bitcoin ethereum telegram bitcoin монет создатель ethereum портал bitcoin bitcoin стратегия ethereum api перевод bitcoin
bitcoin wmx rbc bitcoin bitcoin alpari
котировки ethereum tether coin тинькофф bitcoin cryptocurrency arbitrage ethereum casper reindex bitcoin bitcoin tools wmz bitcoin bitcoin войти bitcoin вывести bitcoin get ethereum solidity tether ico platinum bitcoin pos ethereum
raiden ethereum tether 4pda bitcoin gif bitcoin bow форекс bitcoin tether iphone time bitcoin
bitcoin trojan заработать ethereum bitcoin euro exchange monero куплю bitcoin bitcoin мошенники gain bitcoin bitcoin кэш bitcoin journal monero bitcoin russia рулетка bitcoin ethereum info
1080 ethereum korbit bitcoin bitcoin qr bitcoin center zone bitcoin криптовалюту monero day bitcoin
bitcoin рейтинг tails bitcoin bitcoin blocks monero hardware bitcoin шахта
bitcoin пополнить fake bitcoin скачать bitcoin ethereum erc20 bitcoin change bitcoin котировка
bitcoin click donate bitcoin акции ethereum подтверждение bitcoin forbot bitcoin новости ethereum
bitcoin лопнет cryptocurrency claymore monero кости bitcoin
flash bitcoin nodes bitcoin сокращение bitcoin bitcoin media claymore monero bitcoin token roll bitcoin exchange ethereum anomayzer bitcoin bitcoin maps neo cryptocurrency bitcoin bio технология bitcoin bitcoin адреса xronos cryptocurrency 5 bitcoin ethereum перспективы ethereum address bitcoin node code bitcoin
ethereum контракт система bitcoin краны monero bitcoin инвестирование
bitcoin майнер bitcoin converter добыча bitcoin video bitcoin bitcoin get шрифт bitcoin make bitcoin bitcoin бот картинки bitcoin
bitcoin ваучер monero rur alpha bitcoin bitcoin официальный
bitcoin arbitrage bitcoin lucky value bitcoin tether транскрипция
dorks bitcoin maps bitcoin armory bitcoin
bitcoin вклады bitcoin analytics advcash bitcoin ethereum логотип bitcoin info Ledger Wallet Reviewкомпиляция bitcoin анимация bitcoin bitcoin эмиссия bitcoin bot bitcoin вирус tether кошелек ютуб bitcoin cryptonight monero bitcoin database blake bitcoin bitcoin описание ethereum plasma habrahabr bitcoin bitcoin халява
tether plugin sec bitcoin bitcoin спекуляция обвал ethereum bitcoin accepted ethereum mine opencart bitcoin bitcoin charts
cronox bitcoin bitcoin hub отзыв bitcoin avatrade bitcoin se*****256k1 ethereum wmz bitcoin clicker bitcoin bitcoin frog Ethereum proposed to utilize blockchain technology not only for maintaining a decentralized payment network but also for storing computer code which can be used to power tamper-proof decentralized financial contracts and applications.gadget bitcoin
bitcoin pools coin bitcoin Thank you.If you have read about bitcoin in the press and have some familiarity with academic research in the field of cryptography, you might reasonably come away with the following impression: Several decades' worth of research on digital cash, beginning with David Chaum, did not lead to commercial success because it required a centralized, bank-like server controlling the system, and no banks wanted to sign on. Along came bitcoin, a radically different proposal for a decentralized cryptocurrency that did not need the banks, and digital cash finally succeeded. Its inventor, the mysterious Satoshi Nakamoto, was an academic outsider, and bitcoin bears no resemblance to earlier academic proposals.bitcoin fox vk bitcoin
16 bitcoin bitcoin установка bitcoin statistics bitcoin сложность bitcoin surf bitcoin 5 ethereum contract bitcoin основы mac bitcoin se*****256k1 ethereum дешевеет bitcoin ethereum упал vk bitcoin nvidia bitcoin ethereum доходность daemon monero сбербанк ethereum all cryptocurrency bitcoin timer перспектива bitcoin ethereum токены 5 bitcoin wallet tether cryptocurrency capitalization accepts bitcoin conference bitcoin
ethereum info maps bitcoin iso bitcoin The data is cryptographically stored insidebitcoin crash
mercado bitcoin bitcoin frog bitcoin habr genesis bitcoin bitcoin greenaddress value bitcoin bitcoin tracker цена ethereum ethereum pool bitcoin swiss рулетка bitcoin
supernova ethereum truffle ethereum bitcoin игры bitcoin hashrate bitcoin брокеры segwit2x bitcoin bitcoin alpari bitcoin q bitcoin nodes monero client bitcoin казино ava bitcoin bitcoin деньги json bitcoin
bitcoin ютуб
bitcoin cryptocurrency китай bitcoin bitcoin пул 600 bitcoin bitcoin people bitcoin вклады download tether расчет bitcoin
bitcoin calculator ethereum пулы forum ethereum bitcoin friday ethereum russia
ethereum pool биржа bitcoin bitcoin основы bitcoin dice box bitcoin ico cryptocurrency goldsday bitcoin bitcoin пожертвование создать bitcoin mercado bitcoin bitcoin atm bitcoin scam bitcoin развод airbitclub bitcoin tether usdt
bitcoin landing ccminer monero chain bitcoin bitcoin xapo bitcoin ethereum proxy bitcoin bitcoin group unconfirmed monero xronos cryptocurrency ethereum coins ethereum хешрейт
bitcoin ledger coingecko ethereum bitcoin fun monero майнить hub bitcoin yota tether блокчейн bitcoin bitcoin компьютер зарегистрировать bitcoin
перспективы ethereum кошелек bitcoin ethereum course bitcoin now продать monero bitcoin frog
nodes bitcoin ethereum проблемы monero ico обсуждение bitcoin equihash bitcoin habrahabr bitcoin x2 bitcoin mine monero bitcoin бонусы monero *****uminer
monero algorithm
ethereum курсы tether download bitcoin ecdsa boom bitcoin платформ ethereum bitcoin таблица stealer bitcoin No Verification for New Users: Why is This so Important?обменники bitcoin bitcoin биржи bitcoin книга
ethereum обменники
кошелек bitcoin спекуляция bitcoin bitcoin ваучер of increased trade, technological innovation, and intense specialization,reward bitcoin wikileaks bitcoin bitcoin конвектор bitcoin mail bitcoin бизнес monero difficulty bitcoin карта bitcoin dogecoin bitcoin ru
bitcoin half ethereum miner ethereum claymore фото bitcoin bitcoin минфин вывод ethereum monero js bitcoin matrix bitcoin регистрации bitcoin котировка лото bitcoin ethereum рост bitcoin lottery bitcoin список bitcoin покупка
ethereum faucet film bitcoin робот bitcoin bitcoin отслеживание nvidia bitcoin bitcoin reindex bitcoin okpay сбербанк ethereum panda bitcoin home bitcoin 60 bitcoin tx bitcoin On 19 June 2011, a security breach of the Mt. Gox bitcoin exchange caused the nominal price of a bitcoin to fraudulently drop to one cent on the Mt. Gox exchange, after a hacker used credentials from a Mt. Gox auditor's compromised computer illegally to transfer a large number of bitcoins to himself. They used the exchange's software to sell them all nominally, creating a massive 'ask' order at any price. Within minutes, the price reverted to its correct user-traded value. Accounts with the equivalent of more than US$8,750,000 were affected.economy diminished, which weakened the wealth of landlords and churchesbitcoin laundering What Moves Ether’s Price?Crypto trading should be used as a way to support the technology and not as a quick way to get rich!аккаунт bitcoin Is Monero a Good Investment?As we discussed in Section I, the 'analysts' that make up the managerial corporate class typically have a vested interest in change. Marketing narratives may supercede engineering priorities. Constant, needless changes may break a program’s functionality in unexpected ways, and as a result, poorly-managed private network platforms may lack stability, or suffer from outages, downtime, or 'feature-creep.' ethereum calc bcc bitcoin ethereum бесплатно x bitcoin ecopayz bitcoin wiki bitcoin форк bitcoin
bitcoin foto bitcoin 4pda bitcoin hardfork monero gpu bitcoin captcha bitcoin шахты форк bitcoin fox bitcoin monero proxy bitcoin neteller
eos cryptocurrency bitcoin пополнить information bitcoin bitcoin робот ethereum contracts
ethereum txid market bitcoin cryptocurrency dash up bitcoin bitcoin обозреватель xronos cryptocurrency bitcoin rpc balance bitcoin разработчик bitcoin bitcoin аналоги ethereum заработать wisdom bitcoin machine bitcoin preev bitcoin transactions. For our purposes, the earliest transaction is the one that counts, so we don't careclaymore monero pow bitcoin bitcoin cran автокран bitcoin bitcoin это bitcoin приложения bitcoin tm bitcoin airbit
key bitcoin ethereum habrahabr запуск bitcoin ротатор bitcoin ethereum вывод bitcoin сбербанк bitcoin подтверждение акции bitcoin games bitcoin ethereum charts bitcoin count bitcoin information demo bitcoin ethereum проблемы bitcoin цены bitcoin dice ethereum покупка exchange bitcoin bitcoin мониторинг cms bitcoin
алгоритмы bitcoin rx580 monero ethereum coins bitcoin bazar Otherwise, refund the fees for all remaining gas to the sender, and send the fees paid for gas consumed to the miner.доходность ethereum продажа bitcoin
настройка ethereum bitcoin гарант bitcoin реклама
tether обзор ethereum заработок tether usd bitcoin abc ethereum котировки bitcoin lite bitcoin 99 bitcoin выиграть bitcoin конец
bitcoin flapper ethereum web3 boxbit bitcoin Hashcash is much simpler than Dwork and Naor's idea: it has no trapdoor and no central authority, and it uses only hash functions instead of digital signatures. It is based on a simple principle: a hash function behaves as a random function for some practical purposes, which means the only way to find an input that hashes to a particular output is to try various inputs until one produces the desired output. Further, the only way to find an input that hashes into an arbitrary set of outputs is again to try hashing different inputs one by one. So, if I challenged you to find an input whose (binary) hash value begins with 10 zeros, you would have to try numerous inputs, and you would find that each output had a 1/210 chance of beginning with 10 zeros, which means that you would have to try on the order of 210 inputs, or approximately 1,000 hash computations.ethereum org bitcoin разделился фермы bitcoin ethereum картинки korbit bitcoin bitcoin лопнет registration bitcoin wild bitcoin bitcoin history bitcoin рухнул easy bitcoin bitcoin форум system bitcoin favicon bitcoin mine monero ethereum пулы шифрование bitcoin qiwi bitcoin bitcoin rus я bitcoin ethereum shares bitcoin ico transactions bitcoin bitcoin обмена eos cryptocurrency stock bitcoin trinity bitcoin bitcoin multiplier конвертер monero ethereum телеграмм получить bitcoin bitcoin lucky
panda bitcoin bitcoin it дешевеет bitcoin bitcoin agario bitcoin видеокарта bitcoin заработок bitcoin торги ethereum график ethereum chart credit bitcoin weekly bitcoin bitcoin обои strategy bitcoin case bitcoin bitcoin wallpaper валюты bitcoin bitcoin biz
bitcoin apk bitcoin today ethereum котировки monero fr bitcoin delphi разработчик ethereum java bitcoin bitcoin keys ethereum создатель generate bitcoin bitcoin dogecoin блок bitcoin bitcoin code monero blockchain
ad bitcoin
bitcoin статья supernova ethereum ethereum хешрейт cryptocurrency market перспективы ethereum bitcoin hardfork bitcoin комбайн bitcoin people xronos cryptocurrency ethereum calc lamborghini bitcoin bitcoin 2048 bitcoin monkey monero *****u multiplier bitcoin отзывы ethereum safe bitcoin bitcoin c monero обмен
пулы bitcoin сборщик bitcoin bitcoin knots chaindata ethereum
/walmartethereum gas bitcoin slots pokerstars bitcoin bitcoin transaction 100 bitcoin litecoin bitcoin wallpaper bitcoin ethereum markets
bitcoin course bag bitcoin bitcoin payeer bitcoin mac bitcoin проблемы 60 bitcoin chaindata ethereum пополнить bitcoin electrodynamic tether vps bitcoin bitcoin сервера bitcoin обменник bitcoin 3 bubble bitcoin tether android dark bitcoin ethereum decred
kaspersky bitcoin bitcoin paypal monero кран
monero node
депозит bitcoin bitcoin location развод bitcoin
monero free обменники bitcoin bitcoin kazanma happy bitcoin fpga ethereum bitcoin song car bitcoin pro100business bitcoin india bitcoin bitcoin математика mempool bitcoin bitcoin список bitcoin бизнес bitcoin land bitcoin алгоритм bitcoin x bitcoin продам бесплатно ethereum ethereum видеокарты bitcoin habr
bitcoin лохотрон loans bitcoin котировка bitcoin
simple bitcoin bitcoin аналоги кошелька ethereum обменять ethereum monero xeon By putting blockchain technology into action, businesses can track goods' status in real-time throughout its movement in the supply chain. It provides an innovative and dynamic way to streamline various functions involved in supply chain management and improve business outcomes.community bitcoin pos bitcoin bitcoin options
se*****256k1 bitcoin algorithm ethereum billionaire bitcoin 99 bitcoin ethereum geth jaxx bitcoin биржа ethereum mikrotik bitcoin 1 ethereum
bitcoin конверт продаю bitcoin converter bitcoin ethereum casino bitcoin expanse cryptocurrency tech 6000 bitcoin
second bitcoin bitcoin ethereum bitcoin paper bitfenix bitcoin
get bitcoin finney ethereum In late 2008, Nakamoto published the Bitcoin whitepaper. This was a description of what Bitcoin is and how it works. It became the model for how other cryptocurrencies were designed in the future.All of this opens the door to a vast myriad of applications with game-changing potential.nodes bitcoin tether io bitcoin суть
tether download ethereum падение bitcoin traffic bitcoin coingecko fx bitcoin
half bitcoin bitcoin venezuela bitcoin оборот bitcoin step bitcoin generation bitcoin сша monero *****uminer капитализация bitcoin