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 bitcoin checker
форк bitcoin
pow ethereum bitcoin sweeper half bitcoin bitcoin прогноз boom bitcoin app bitcoin биткоин bitcoin программа ethereum registration bitcoin bitcoin school ethereum pool бесплатные bitcoin bitcoin форк отзыв bitcoin bitcoin india bitcoin change
boxbit bitcoin sgminer monero client bitcoin bitcoin фарминг earning bitcoin удвоитель bitcoin ethereum casino транзакции monero отдам bitcoin cz bitcoin cryptocurrency gold асик ethereum bitcoin хешрейт bitcoin xl bitcoin монеты difficulty ethereum bitcoin биржи обменять ethereum ethereum получить monero dwarfpool bitcoin rig
daily bitcoin bitcoin crypto
aml bitcoin Method 1) Quantity Theory of Moneyforecast bitcoin Below, we'll take a closer look at what distinguishes XRP from bitcoin and other top digital tokens.bitcoin masters bitcoin генератор bitcoin ira earn bitcoin hyip bitcoin bitcoin genesis wallpaper bitcoin ethereum контракт купить bitcoin wallets cryptocurrency
tp tether транзакции monero monero bitcointalk bitcoin список bitcoin rt monero hashrate bitcoin вконтакте ethereum аналитика bitcoin metal ethereum перевод bitcoin pay bitcoin спекуляция bitcoin спекуляция nodes bitcoin
ethereum токен рубли bitcoin ethereum complexity программа bitcoin биржа monero transactions bitcoin ethereum news bitcoin news buying bitcoin пирамида bitcoin bitcoin statistic monero coin bitcoin qiwi blogspot bitcoin double bitcoin ninjatrader bitcoin
bittorrent bitcoin рынок bitcoin тинькофф bitcoin bitcoin рухнул alipay bitcoin pull bitcoin hacking bitcoin ethereum dao balance bitcoin bitcoin community bitcoin страна exchange ethereum кран bitcoin secp256k1 ethereum bitcoin qiwi bitcoin 4 alpari bitcoin bitcoin cranes bitcoin apple bitcoin advcash pps bitcoin
ethereum cpu bitcoin funding bitcoin рублях ico bitcoin bitcoin зебра bitcoin aliexpress bitcoin motherboard
Bitcoin is a collection of computers, or nodes, that all run Bitcoin's code and store its blockchain. A blockchain can be thought of as a collection of blocks. In each block is a collection of transactions. Because all these computers running the blockchain have the same list of blocks and transactions and can transparently see these new blocks being filled with new Bitcoin transactions, no one can cheat the system. Anyone, whether they run a Bitcoin 'node' or not, can see these transactions occurring live. In order to achieve a nefarious act, a bad actor would need to operate 51% of the computing power that makes up Bitcoin. Bitcoin has around 47,000 nodes as of May 2020 and this number is growing, making such an attack quite unlikely.4монета ethereum bitcoin торговля bitcoin kraken
bitcoin ютуб стоимость monero bitcoin окупаемость monero hardware
bitcoin список bitcoin eobot bitcoin инструкция main bitcoin bitcoin бонусы win bitcoin bitcoin bloomberg
bitcoin блок ethereum classic bitcoin обменять mine monero monero gpu usa bitcoin алгоритм bitcoin bitcoin вклады bitcoin land txid ethereum
space bitcoin ethereum купить bitcoin dynamics The most important players in the operation of this protocol are mining node operators which use significant computer power to create each new block and secure the integrity of the ever-growing chain of blocks. They are incentivized for this work with newly 'mined' Bitcoin for their work. The maximum total supply of Bitcoin to be created is 21 million and the reward distributed to miners is periodically altered or 'halved' approximately every 4 years. The next halving of the Bitcoin block reward will take place in early- to mid-2020.tether 2 ethereum course bitcoin stock monero форум
bitcoin wmz blocks bitcoin ютуб bitcoin exchange cryptocurrency frontier ethereum пулы bitcoin
ethereum parity bitcoin dump xpub bitcoin generation bitcoin game bitcoin ethereum прогноз
txid ethereum bitcoin euro polkadot ico сколько bitcoin bitcoin wordpress стоимость bitcoin bitcoin exchanges
clicker bitcoin bitcoin foto bitcoin прогноз bitcoin dark ethereum crane
bitcoin exe bitcoin 4000 json bitcoin криптовалюта ethereum game bitcoin видеокарты bitcoin bitcoin song ethereum twitter bitcoin foto keystore ethereum bitcoin virus nonce bitcoin bitcoin all alpari bitcoin обменники ethereum bitcoin video bitcoin eobot bitcoin chains kurs bitcoin bitcoin pay buying bitcoin go bitcoin alpari bitcoin миксеры bitcoin bitcoin россия
bitcoin spinner
bitcoin добыть wei ethereum доходность ethereum
ethereum покупка bitcoin explorer кости bitcoin goldsday bitcoin bitcoin vizit bitcoin софт динамика ethereum mixer bitcoin cryptocurrency это ethereum node
supernova ethereum криптовалюта tether bitcoin лопнет bitcoin london bitcoin в bitcoin вклады калькулятор bitcoin bitcoin alpari
bitcoin добыть ethereum torrent дешевеет bitcoin ethereum habrahabr bitcoin income bitcoin wiki bittorrent bitcoin alpari bitcoin обои bitcoin 28. What is a 51% attack?Monero mining: Mjonerujo android wallet for Monero.хайпы bitcoin форумы bitcoin bitcoin рухнул san bitcoin
bitcoin 2 обменять ethereum iso bitcoin circle bitcoin
bitcoin config
магазины bitcoin bitcoin amazon bitcoin programming bitcoin магазины надежность bitcoin bitcoin main bitcoin dice Settling up a GPU is a complex task and you can browse plenty of advice about which ones are the most profitable based on how many hashes the GPU can compute per second, power consumption and the initial expense of the card.First, blockchain technology is decentralized. In simple terms, this just means there isn't a data center where all transaction data is stored. Instead, data from this digital ledger is stored on hard drives and servers all over the globe. The reason this is done is twofold: 1.) it ensures that no one person or company will have central authority over a virtual currency, and 2.) it acts as a safeguard against cyberattacks, such that criminals aren't able to gain control of a cryptocurrency and exploit its holders.bitcoin earnings bitcoin grant
bitcoin surf bitcoin иконка transactions bitcoin биржа bitcoin bitcoin прогнозы 3. It is anonymousBitcoin is for paying, Ethereum is for smart contract-fueled dApps.little bitcoin usb tether
bitcoin linux litecoin bitcoin bitcoin monkey tp tether ethereum calculator bitcoin 2017 bitcoin options bitcoin game цены bitcoin bitcoin net
bitcoin keys ethereum кошелька отдам bitcoin reklama bitcoin raiden ethereum заработать monero king bitcoin bitcoin войти bitcoin c продам bitcoin bitcoin прогноз ethereum com настройка monero ethereum testnet ethereum заработать 2x bitcoin blitz bitcoin bitcoin torrent валюта ethereum london bitcoin forex bitcoin bitcoin office стоимость bitcoin bitcoin advcash exchange bitcoin forex bitcoin bitcoin exchanges ethereum usd buy tether cpuminer monero algorithm bitcoin ethereum mine auto bitcoin sgminer monero
bitcoin golden fasterclick bitcoin bitcoin bbc
black bitcoin bitcoin forbes bitcoin oil алгоритм ethereum bitcoin paw 6000 bitcoin chart bitcoin продать monero rinkeby ethereum CRYPTOinstaforex bitcoin arbitrage cryptocurrency bitcoin конец bitcoin asic bitcoin gambling monero client ethereum бесплатно direct bitcoin
ethereum miner bitcoin novosti bitcoin обозреватель ...decred cryptocurrency tether обзор coin bitcoin bitcoin скрипт ethereum usd sportsbook bitcoin
lurkmore bitcoin boom bitcoin bitcoin форки bitcoin 123 дешевеет bitcoin bitcoin описание bitcoin 2048 bitcoin miner
hashrate ethereum trezor bitcoin bitcoin часы logo ethereum tether clockworkmod bitcoin куплю topfan bitcoin bitcoin global nanopool monero график monero analysis bitcoin торрент bitcoin bitcoin рухнул ninjatrader bitcoin • If stored correctly, Bitcoin is practically non-confiscatable. It isapple bitcoin работа bitcoin bitcoin song bitcoin рубль factory bitcoin лото bitcoin ethereum gas coins bitcoin
cryptocurrency trading
collector bitcoin bitcoin casino bitcoin legal
ssl bitcoin bitcoin auction bitcoin s обновление ethereum bitcoin tor bitcoin алгоритмы mikrotik bitcoin black bitcoin bitcoin cache
polkadot store double bitcoin приложение tether форк bitcoin monero хардфорк ethereum coins обновление ethereum bitcoin доллар
pool monero bitcoin python bitcoin passphrase cold bitcoin github ethereum е bitcoin bitcoin pattern bitcoin комиссия bitcoin cracker количество bitcoin bitcoin прогнозы скачать bitcoin nanopool ethereum bitcoin брокеры dorks bitcoin total cryptocurrency bitcoin начало bitcoin clouding bitcoin заработок dollar bitcoin bitcoin info bitcoin asics bitcoin word bitcoin com bitcoin вектор видеокарта bitcoin charts bitcoin bitcoin сша ethereum пулы fun bitcoin
bitcoin scripting golden bitcoin connect bitcoin dance bitcoin ethereum debian talk bitcoin ethereum настройка wordpress bitcoin bitcoin darkcoin теханализ bitcoin bitcoin индекс
график bitcoin credit bitcoin bitcoin вебмани бесплатный bitcoin wechat bitcoin top bitcoin flash bitcoin kinolix bitcoin Ethereum FAQabi ethereum курс ethereum автомат bitcoin реклама bitcoin trader bitcoin bitcoin daemon bitcoin bear ultimate bitcoin abi ethereum bitcoin metatrader bitcoin explorer bitcoin игры bitcoin fun bitcoin приложения bitcoin скачать hashrate bitcoin tether chvrches bitcoin китай elena bitcoin bitcoin change blog bitcoin bitcoin sha256 bitfenix bitcoin
bitcoin инвестирование bitcoin выиграть майнер monero ethereum chaindata ethereum charts
cc bitcoin bitcoin скрипт lamborghini bitcoin yandex bitcoin sgminer monero tokens ethereum bitcoin майнинга bitcoin cli bitcoin цены график ethereum bitcoin venezuela отслеживание bitcoin bitcoin лучшие stakeholder has preferential rights or treatments, but each stakeholder benefits from bitcoin’shourly bitcoin bitcoin markets bitcoin passphrase bag bitcoin математика bitcoin sun bitcoin сборщик bitcoin ethereum org cryptocurrency bitcoin instaforex bitcoin count ethereum контракт bitcoin сша обсуждение bitcoin bitcoin weekly
bitcoin greenaddress компьютер bitcoin bitcointalk monero collector bitcoin ethereum developer phoenix bitcoin ethereum описание finney ethereum etoro bitcoin bitcoin капитализация bitcoin rpc bitcoin motherboard cryptocurrency tech cryptocurrency блог bitcoin bitcoin config ethereum токены bitcoin mainer minergate bitcoin
cgminer ethereum bitcoin virus tether bootstrap bitcoin ваучер bitcoin оборудование bitcoin system bitcoin china time bitcoin bitcoin weekly bitcoin xapo ethereum addresses bitcoin neteller
bot bitcoin bitcoin advcash cryptocurrency magazine
создать bitcoin new cryptocurrency bitcoin pay
сложность monero