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.
amd bitcoin nxt cryptocurrency seed bitcoin blocks bitcoin Say you earned 1 BTC as interest (or mining or staking income for this matter). At the time of the receipt, this is worth $10,000. You would be taxed for $10,000 of income based on your ordinary income tax bracket. Say you later sold this coin for $18,000. Here, the delta of $8,000 ($18,000 - $10,000) will be taxed as capital gains. blogspot bitcoin статистика bitcoin bitcoin часы bitcoin cryptocurrency
wei ethereum
We can remove the dollar and various models from the price equation, and just look at Bitcoin priced in another scarce asset: grams of gold.python bitcoin
bitcoin добыча ethereum transactions bitcoin пополнить ethereum addresses
blue bitcoin buy tether
monero краны bitcoin сбербанк bitcoin fpga котировка bitcoin tails bitcoin us bitcoin конвектор bitcoin котировка bitcoin 1080 ethereum withdraw bitcoin bitcoin torrent
bitcoin login all cryptocurrency
цена bitcoin tether usdt conference bitcoin bitcoin information tinkoff bitcoin форк bitcoin bitcoin cz tether комиссии
bitcoin карты bitcoin перевод токен bitcoin kupit bitcoin bitcoin сервера криптовалюта monero bitcoin airbit fork bitcoin ethereum blockchain криптокошельки ethereum java bitcoin bitcoin конвертер linux ethereum calculator cryptocurrency Ultimately, monetary systems converge on one medium because their utility is liquidity rather than consumption or production. And liquidity consolidates around the most secure, long-term store of value; it would be irrational to store wealth in a less secure, less liquid monetary network if a more secure, more liquid network existed as an attainable option. The aggregate implication is that only one blockchain is viable and ultimately necessary. Every other cryptocurrency is competing for the identical use case as bitcoin, that of money; some realize it while others do not but value continues to consolidate around bitcoin because it is the most secure blockchain by orders of magnitude and all are competing for the same use case. Understanding these concepts is fundamental to bitcoin and it also provides a basic foundation to then consider and evaluate the noise beyond bitcoin. With basic knowledge of how bitcoin actually works, it becomes clear why there is no blockchain without bitcoin. bitcoin asic reddit bitcoin faucet cryptocurrency bitcoin blocks ethereum майнеры bitcoin conf bitcoin криптовалюта bitcoin rpc
Crypto makes it possible to transfer value online without the need for a middleman like a bank or payment processor, allowing value to transfer globally, near-instantly, 24/7, for low fees.‘money in the cloud.’ Not only can you organize your portfolio soSlush Pool2%1mBTC (with fee) 10mBTC (free)stratum+tcp://eu.stratum.slushpool.com:3333direct bitcoin ethereum токены ethereum news ethereum эфириум buying bitcoin local bitcoin abc bitcoin datadir bitcoin casper ethereum joker bitcoin bitcoin knots майн ethereum ethereum скачать lealana bitcoin логотип ethereum bitcoin options monero валюта future bitcoin bitcoin перевод monero форум bitcoin автоматический bitcoin 4 up bitcoin ico monero tether usb компиляция bitcoin bitcoin картинки pplns monero bitcoin key bitcoin cranes bitcoin central client ethereum cryptocurrency calendar ava bitcoin bitcoin монета ethereum стоимость store bitcoin pull bitcoin addnode bitcoin cranes bitcoin create bitcoin json bitcoin bitcoin fpga
bitcoin paw bitcoin математика обмен bitcoin wirex bitcoin forum bitcoin auto bitcoin bitcoin joker node bitcoin проверить bitcoin carding bitcoin multiply bitcoin polkadot ico bitcoin spinner видео bitcoin monero bitcointalk explorer ethereum goldsday bitcoin фото ethereum ethereum blockchain monero 1070 ethereum биткоин monero pro tether комиссии ethereum chart machine bitcoin global bitcoin transactionsRoot: the hash of the root node of the trie that contains all transactions listed in this blockethereum stratum trezor bitcoin
bitcoin фермы
sell bitcoin bitcoin компьютер bitcoin анонимность bitcoin бот программа tether лото bitcoin bitcoin wmx script bitcoin panda bitcoin bitcoin продам bitcoin 99 cc bitcoin хардфорк bitcoin ethereum stratum форк ethereum bitcoin darkcoin rinkeby ethereum
bitcoin сети bitcoin roll
ultimate bitcoin ethereum сложность nanopool ethereum ethereum frontier stock bitcoin 2x bitcoin bitcoin подтверждение
pow bitcoin bitcoin play bitcoin cryptocurrency bitcoin софт bitcoin trader ubuntu bitcoin top cryptocurrency bitcoin расшифровка transactions bitcoin bitcoin millionaire bitcoin kurs ethereum продать froggy bitcoin bitcoin school bitcoin rub
биржи bitcoin big bitcoin bitcoin money agario bitcoin ethereum miners приложение tether ethereum регистрация tether обменник выводить bitcoin reward bitcoin withdraw bitcoin bitcoin kran
tether bitcointalk bitcoin сеть cryptocurrency mining
spots cryptocurrency майнеры monero майнинга bitcoin bitcoin инвестирование
bitcoin pool rinkeby ethereum mt4 bitcoin
bitcoin fpga bitcoin update tether clockworkmod иконка bitcoin 3 bitcoin paypal bitcoin
bitcoin testnet шрифт bitcoin обновление ethereum bitcoin store bitcoin cms пулы bitcoin flex bitcoin Ключевое слово ethereum exchange asus bitcoin проверка bitcoin erc20 ethereum
strategy bitcoin sec bitcoin bitcoin деньги bitcoin 0 обои bitcoin bitcoin оборот black bitcoin bitcoin blockchain cryptocurrency prices кредиты bitcoin bitcoin страна проекта ethereum tether программа стоимость ethereum bitcoin price bitcoin разделился coin bitcoin проект ethereum 4pda bitcoin javascript bitcoin сложность ethereum tether кошелек genesis bitcoin
boom bitcoin сети bitcoin
cryptocurrency ethereum bitcoin fpga цена ethereum
cronox bitcoin blockchain ethereum monero miner bitcoin nachrichten
bitcoin будущее курсы bitcoin bitcoin часы
network bitcoin usb bitcoin
ethereum org bitcoin symbol bitcoin авто bitcoin parser monero кошелек ethereum упал ethereum geth bitcoin multiply clame bitcoin tcc bitcoin hashrate ethereum майнить monero bitcoin location reddit cryptocurrency ethereum chaindata london bitcoin бесплатные bitcoin
bitcoin мастернода download bitcoin ethereum russia moneybox bitcoin ethereum бесплатно mt5 bitcoin bitcoin сбербанк bitcoin algorithm koshelek bitcoin bitcoin fpga currency bitcoin invest bitcoin android tether Charles Vollum’s chart suggests a more than 10x increase in the years ahead if it bounces back to the top end of its historical range, which would imply a six figure dollar price (like PlanB’s model) if gold remains relatively static in dollar terms. However, he also notes that it has historically been less explosive in each cycle.значок bitcoin nicehash monero bitcoin get bitcoin quotes ethereum chart 1000 bitcoin bitcoin bounty
daemon bitcoin polkadot cadaver nicehash monero bitcoin blockstream ферма ethereum ru bitcoin keystore ethereum bitcoin map bitcoin play почему bitcoin 2016 bitcoin bitcoin crypto ico monero казахстан bitcoin bitcoin pps bitcointalk ethereum bitcoin fast кошельки bitcoin planet bitcoin bitcoin sha256 bitcoin china отслеживание bitcoin monero cryptonote lamborghini bitcoin make bitcoin описание bitcoin bitcoin настройка ethereum кошельки crypto bitcoin
ethereum markets ethereum coingecko tcc bitcoin blocks bitcoin cudaminer bitcoin abi ethereum weekly bitcoin multisig bitcoin cryptocurrency top skrill bitcoin mail bitcoin bitcoin instaforex ninjatrader bitcoin alpha bitcoin история ethereum основатель ethereum миллионер bitcoin free monero лотерея bitcoin difficulty monero
дешевеет bitcoin bitcoin unlimited moon bitcoin bitcoin сигналы bitcoin подтверждение ethereum 4pda
bitcoin location
avalon bitcoin bitcoin change ethereum упал xbt bitcoin bitcoin cc This channel between the two users also forms part of a web of interconnected channels. Funds can be transferred to anyone else with a Lightning wallet, with the most economical distance between the sender and recipient decided behind the scenes by algorithms.instaforex bitcoin