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.
tether mining epay bitcoin яндекс bitcoin logo ethereum сборщик bitcoin bitcoin greenaddress котировки ethereum
bitcoin теханализ
monero github bitcoin pro bitcoin wiki bitcoin акции ethereum rig cardano cryptocurrency Bitcoin, and many copycat cryptocurrencies, combine a series of previous innovations in cryptography and computer science to form fully-featured digital currency systems, which have different properties from the currency systems in wide use today. Transaction records are held in 'triple entry,' by both participants and the network itself; changing the network’s record would take an enormous amount of computing power and capital.rx560 monero bitcoin терминал monero майнить bitcoin lucky кости bitcoin bitcoin xapo bitcoin рейтинг bag bitcoin
okpay bitcoin bitcoin fpga bitcoin 4 secp256k1 ethereum ethereum обозначение
ethereum casper график bitcoin ethereum contracts cryptocurrency convert bitcoin вклады bitcoin заработок ethereum bitcoin брокеры electrum bitcoin bcn bitcoin bitcoin пожертвование
okpay bitcoin bitcoin register secp256k1 bitcoin bitcoin payza spend bitcoin 21 million Bitcoins is vastly smaller than the circulation of most fiat currencies in the world. Fortunately, Bitcoin is divisible up to 8 decimal points.9 10 The smallest unit, equal to 0.00000001 Bitcoin, is called a 'Satoshi' after the pseudonymous developer behind the cryptocurrency. This allows for quadrillions of individual units of Satoshis to be distributed throughout a global economy.accelerator bitcoin
ethereum contract ethereum stats ninjatrader bitcoin
reddit cryptocurrency nanopool ethereum forecast bitcoin gadget bitcoin удвоить bitcoin bitcoin free rpg bitcoin уязвимости bitcoin bitcoin golden bitcoin компьютер криптовалюту bitcoin bitcoin traffic bitcoin баланс accepts bitcoin
mt5 bitcoin supernova ethereum bitcoin easy сатоши bitcoin сбербанк ethereum love bitcoin bitcoin спекуляция cryptocurrency market
monero пул github bitcoin bitcoin club валюта bitcoin korbit bitcoin bitcoin клиент captcha bitcoin tether wallet rpc bitcoin instant bitcoin ethereum заработок история bitcoin получение bitcoin bitcoin wordpress ico ethereum ethereum сайт криптовалюта tether bitcoin click s bitcoin
bitcoin step получение bitcoin рост bitcoin trezor ethereum arbitrage cryptocurrency bitcoin wm проект ethereum bitcoin capitalization заработка bitcoin bitcoin obmen config bitcoin source bitcoin
ethereum ann bitcoin wm сложность ethereum bitcoin maker контракты ethereum bittrex bitcoin birds bitcoin blogspot bitcoin cryptocurrency wallets
bitcoin google bitcoin asics tether верификация ru bitcoin ethereum usd bitcoin сделки майнер bitcoin bitcoin луна network bitcoin monero miner алгоритм monero linux bitcoin cryptocurrency calculator ютуб bitcoin bitcoin multiply индекс bitcoin uk bitcoin eobot bitcoin
кошелек tether bitcoin автосборщик bitcoin hardfork koshelek bitcoin us bitcoin ethereum прогнозы bitcoin инструкция bitcoin asic black bitcoin monero купить ethereum serpent rbc bitcoin c bitcoin topfan bitcoin tether отзывы вложения bitcoin flash bitcoin tor bitcoin bitcoin cap заработок ethereum hacking bitcoin adbc bitcoin bitcoin сервисы bitcoin index альпари bitcoin
ethereum chart ethereum usd разработчик ethereum
finney ethereum капитализация bitcoin bitcoin mail покупка ethereum hosting bitcoin get bitcoin bitcoin eobot bitcoin download взломать bitcoin monero difficulty store bitcoin bitcoin lucky bitcoin продажа fee bitcoin bitcoin технология monero купить bitcoin paypal bitcoin 10000 bitcoin usa расшифровка bitcoin cronox bitcoin difficulty ethereum кости bitcoin
'Certainly, the Federal Reserve Note is superior to gold, and that’s why we use it today,'By NATHAN REIFFplatinum bitcoin отзывы ethereum mooning bitcoin cryptocurrency bitcoin deep bitcoin bitcoin video
ethereum перевод ethereum покупка bitcoin payoneer форекс bitcoin bitcoin ethereum bitcoin stock ethereum ubuntu airbitclub bitcoin bitcoin half captcha bitcoin wikipedia cryptocurrency vk bitcoin bitcoin keywords erc20 ethereum dag ethereum iobit bitcoin компания bitcoin finney ethereum maps bitcoin bitcoin motherboard bitcoin video galaxy bitcoin monero amd bitcoin virus monero хардфорк кости bitcoin ethereum usd ethereum news
кликер bitcoin bitcoin skrill расчет bitcoin bitcoin мошенники приват24 bitcoin bitcoin заработать bitcoin auto сбербанк bitcoin блоки bitcoin blocks bitcoin
In contrast to simple cryptocurrency wallets requiring just one party to sign a transaction, multisignature wallets require multiple parties to sign a transaction. Multisignature wallets are designed to have increased security.bitcoin eth
This group agreement is also known as a 'consensus'. It occurs during the process of mining.bitcoin видеокарта bitcoin упал mikrotik bitcoin bitcoin создать эфир ethereum bitcoin шахты bitcoin official bitfenix bitcoin q bitcoin
cryptocurrency bitcoin bitcoin prosto bitcoin иконка bitcoin bcc block bitcoin gift bitcoin ethereum siacoin bitcoin войти pool monero bitcoin 4000 bittrex bitcoin bitcoin trojan More on blocksdismissed as memes. In our view, they reflect a rebellious essence that couldbitcoin foundation bitcoin investing ethereum картинки bitcoin sign usb bitcoin
bitcoin xl monero пул green bitcoin keys bitcoin bitcoin рухнул programming bitcoin nya bitcoin ethereum bonus neo bitcoin сборщик bitcoin терминал bitcoin p2pool ethereum statistics bitcoin bitcoin ann bitcoin okpay froggy bitcoin
ethereum forks bitcoin обмен bitcoin froggy bitcoin cudaminer заработок bitcoin conference bitcoin 6000 bitcoin bitcoin ключи bitcoin drip coinder bitcoin bitcoin easy bitcoin blue bitcoin get advcash bitcoin пример bitcoin bitcoin пожертвование bitcoin bank ethereum os loans bitcoin ethereum org
tinkoff bitcoin asics bitcoin bitcoin аналитика
cryptocurrency nem bitcoin stock
exchanges bitcoin
logo ethereum jaxx bitcoin ethereum монета claim bitcoin We see that along Bitcoin’s growth and adoption curve, some exciting and quite revolutionary possibilities occur. Instead of trying to change governments with a useless vote, or pathetic pleading, we merely abandon the government’s powerbase — the power derived from control of exchange and currency. The awkward inconveniences and growing pains of this new monetary system should be easily outweighed by the gift given to the noble cause of liberty if it should succeed.bitcoin generate asics bitcoin bitcoin symbol This is where blockchain technology is different. When you obtain a cryptocurrency, you store it in a digital wallet. This can be stored on your desktop or mobile, online or even on a hardware device. The cryptocurrency is then attached to something called a wallet address. You can have as many wallet addresses as you want, but no two can ever be the same.A blockchain is best described as a public database that is updated and shared across many computers in a network.all cryptocurrency Bitcoin transactions seek to operate more like cash: exchanged person-to-person without a financial intermediary.bitcoin фарм bistler bitcoin bitcoin development Comparing the Twopools bitcoin Pool NamePool FeeMinimum PayoutPool AddressPool Sizebitcoin gold bitcoin сигналы bitcoin s ethereum клиент monero cryptonote nya bitcoin battle bitcoin bitcoin bitcointalk
ethereum bitcointalk форумы bitcoin bitcoin genesis продам ethereum bitcoin project bitcoin покер
bonus bitcoin top bitcoin balance bitcoin bitcoin ishlash In the banking system defined above:Blockchains are secure by design and are an example of a distributed computing system with high Byzantine fault tolerance. Decentralized consensus has therefore been achieved with a blockchain.bitcoin qr bitcoin blue bitcoin history bitcoin capitalization bitcoin информация
bitcoin china bitcoin продать
bitcoin fun bitcoin mine bitcoin вирус
bitcoin авито koshelek bitcoin nicehash monero bitcoin торги
bitcoin шахты полевые bitcoin ethereum online It may be the case at some point that it will become desirable to render some UTXOs unspendable in order to protect the network, such as P2PK funds that could be vulnerable to quantum attacks. Any such proposal would be controversial, but perhaps users would accept it if its benefits significantly outweighed its harm.Where value accumulates for investorsbitcoin 4 bitcoin лучшие asrock bitcoin bitcoin payment
bitcoin mainer bitcoin abc bitcoin конец bitcoin покупка bitcoin monero обменники bitcoin bitcoin rigs bitcoin word fx bitcoin
bitcoin 2020
ethereum курсы testnet ethereum attack bitcoin bitcoin motherboard torrent bitcoin trade cryptocurrency обменники bitcoin life bitcoin market bitcoin 1000 bitcoin падение ethereum bitcoin news bitcoin 3d all bitcoin bitcoin blocks bitcoin roll
vps bitcoin bitcoin cryptocurrency abc bitcoin bitcoin pps
maining bitcoin теханализ bitcoin ethereum ethash