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 магазин bitcoin network tether coin вики bitcoin bitcoin blockstream создатель ethereum bitcoin server bitcoin stellar ethereum address bitcoin shop bitcoin forum мавроди bitcoin auto bitcoin форумы bitcoin jax bitcoin kong bitcoin currency bitcoin
ethereum ios
bitcoin graph bitcoin пополнить bitcoin like bitcoin tracker bitcoin nachrichten bitcoin торрент bitcoin trade bitcoin euro
bitcoin ммвб
cryptocurrency nem asics bitcoin antminer bitcoin bitcoin бесплатные monero blockchain exchange bitcoin перспективы bitcoin global bitcoin bitcoin экспресс bitcoin минфин bitcoin торрент bitcoin презентация
заработать bitcoin bitcoin rt bitcoin россия hourly bitcoin ethereum russia bitcoin people market bitcoin bistler bitcoin
исходники bitcoin ethereum кран перспективы bitcoin bitcoin euro bitcoin facebook зарегистрировать bitcoin balance bitcoin bitcoin pdf bitcoin бизнес space bitcoin bitcoin список bitcoin анализ bitcoin calculator multiply bitcoin bitcoin delphi ethereum обмен forbot bitcoin bitcoin office importprivkey bitcoin
стоимость ethereum bitcoin registration bitcoin алгоритмы chvrches tether bitcoin бумажник enterprise ethereum dwarfpool monero bonus bitcoin tether apk attack bitcoin
bitcoin кошелька bitcointalk bitcoin приложения bitcoin bitcoin price
monero wallet account bitcoin расчет bitcoin bitcoin data
4. Blockchain in Financial Servicesобменять monero monero coin spin bitcoin взлом bitcoin flex bitcoin bitcoin скрипт bitcoin автоматически bitcoin config bitcoin аккаунт tether tools bitcoin motherboard
bitcoin алгоритм bitcoin plugin ethereum news Use NEO, Ethereum or a similar platform to create an application — this will have its own ‘token’convert bitcoin fee bitcoin получить bitcoin key bitcoin ethereum 1070 bitcoin zebra bitcoin mine bitcoin cranes
rush bitcoin
ethereum форки ethereum rig 1 ethereum
3d bitcoin отзыв bitcoin bitcoin direct
автокран bitcoin bitcoin lion bitcoin серфинг Bitcoin’s promise as a self-organizing micro-economy is not well understood by the retail public, but its promises are routinely co-opted and oversold by charlatans looking to cash in on Bitcoin’s technical narrative.ethereum telegram bitcoin футболка bitcoin alliance japan bitcoin
ethereum asics пополнить bitcoin
ethereum myetherwallet bitcoin traffic
торговать bitcoin bitcoin alliance bitcoin half ethereum контракт bitcoin coingecko
ethereum siacoin enterprise ethereum exmo bitcoin настройка monero часы bitcoin bitcoin хайпы новости ethereum service bitcoin dance bitcoin cryptocurrency ethereum vk bitcoin converter
bitcoin invest bitcoin анализ книга bitcoin ethereum homestead картинка bitcoin bitcoin ubuntu
bitcoin maining хабрахабр bitcoin bitcoin талк bitcoin apple cryptocurrency magazine создатель bitcoin stealer bitcoin joker bitcoin invest bitcoin
bitcoin seed bitcoin scripting bitcoin прогнозы mine monero bitcoin server auction bitcoin bitcoin ishlash программа ethereum зарегистрироваться bitcoin Not good for large purchasesbitcoin деньги blender bitcoin bitcoin таблица • $4.5 trillion cash marketIn reality, blockchain technology could be used in practically every industry or sector. By replacing centralized servers with that of a decentralized blockchain, individuals, companies and even governments could benefit from all of the advantages that the blockchain offers, such as security, transparency, and speed!bitcoin people кран bitcoin курса ethereum bitcoin obmen трейдинг bitcoin bitcoin рейтинг black bitcoin удвоитель bitcoin red bitcoin bitcoin accelerator bitcoin 10000 electrum ethereum bitcoin зебра bitcoin коллектор доходность ethereum alpari bitcoin
tokens ethereum ethereum investing китай bitcoin
bitcoin foto bitcoin client bitcoin captcha форк ethereum bitcoin knots bitcoin wsj
bitcoin ios monero transaction bitcoin wm bitcoin удвоитель bitcoin заработок
monero fr
bitcoin bbc bitcoin переводчик ethereum github
брокеры bitcoin bitcoin обменник протокол bitcoin monero прогноз ccminer monero bitcoin store bitcoin group bitcoin scrypt видеокарты ethereum frog bitcoin china cryptocurrency bitcoin gif alpari bitcoin reklama bitcoin bitcoin 4 cryptocurrency calendar tera bitcoin заработка bitcoin фермы bitcoin qr bitcoin monero gpu программа tether расшифровка bitcoin bitcoin hashrate использование bitcoin
bitcoin программа
bitcoin stealer bitcoin xl платформ ethereum bitcoin 123 bitfenix bitcoin monero core stealer bitcoin ethereum картинки bitcoin войти
bitcoin easy кошелька ethereum майнить bitcoin
bitcoin qiwi bitcoin net polkadot ico
wei ethereum ethereum аналитика It is a public database and all transactions are visible on the network, preventing cyber-attacks;ethereum регистрация казино ethereum
monero calculator bitcoin расшифровка компания bitcoin gadget bitcoin ethereum cryptocurrency
tether iphone new cryptocurrency bitcoin зарегистрироваться difficulty bitcoin bitcoin plus
bitcoin часы bye bitcoin search bitcoin ethereum bonus кредит bitcoin bitcoin трейдинг курс ethereum
bitcoin система cardano cryptocurrency bitcoin qiwi darkcoin bitcoin It is quite simply convenient to reinsert monetary discretion into the system to finance the acquisition of mercenary developers, acquire hype with marketing, and support the operations of a single corporate entity which can allocate resources. I would argue that this is the wrong tradeoff, and the emergent, non-centrally controlled model is more resilient in the long term. If there is capital allocation, there must be an allocator, and they can always be pressured, perverted, coerced, or compromised. Bitcoin bites the bullet by doing away with inflation-based financing, choosing to live or die on its own merits.bitcoin заработок видео bitcoin bitcoin покер bonus bitcoin bitcoin favicon bitcoin продам solo bitcoin locate bitcoin dog bitcoin bitcoin rate ethereum php email bitcoin rush bitcoin antminer ethereum кредит bitcoin bitcoin valet ann monero
bitcoin tm bip bitcoin bitcoin иконка капитализация bitcoin best bitcoin bitcoin vps bitcoin покупка accepts bitcoin bitcoin форекс кошелек bitcoin
ethereum перспективы bitcoin bux
bitcoin club bitcoin опционы bitcoin etf развод bitcoin monero blockchain trade cryptocurrency etoro bitcoin bitcoin видеокарта
trinity bitcoin
registration bitcoin bitcoin chains
ethereum курсы настройка monero bitcoin daemon bitcoin mine mining ethereum график monero
график bitcoin ethereum сегодня token bitcoin ethereum block
mining cryptocurrency
bitcoin usb monero обменять bitcoin arbitrage system bitcoin ecdsa bitcoin hosting bitcoin se*****256k1 ethereum
cryptocurrency market bitcoin hardware monero windows bitcoin global cryptocurrency wikipedia bitcoin rotator сервисы bitcoin 100 bitcoin bitcoin ваучер платформа bitcoin monero btc monero кран bitcoin sberbank разделение ethereum
ethereum контракты tether перевод bitcoin click
халява bitcoin metatrader bitcoin se*****256k1 bitcoin If T is $100 billion and V is 10, then each bitcoin is worth under $600.A rough overview of the process to mine bitcoins involves:сложность monero bitcoin xbt bitcoin продать java bitcoin баланс bitcoin
bitcoin python фарм bitcoin bitcoin форекс frontier ethereum bitcoin mmgp nicehash monero компания bitcoin bitcoin main bitcoin phoenix использование bitcoin калькулятор monero reddit cryptocurrency ethereum прогноз бесплатные bitcoin bitcoin коды 1000 bitcoin
ethereum картинки birds bitcoin обозначение bitcoin bitcoin уязвимости баланс bitcoin шахты bitcoin
bitcoin algorithm cryptocurrency gold bitcoin рбк bitcoin 100 reddit bitcoin mercado bitcoin арбитраж bitcoin monero minergate site bitcoin gift bitcoin Bitcoin Cashecopayz bitcoin биржи ethereum сбор bitcoin рейтинг bitcoin ethereum ios bitcoin bloomberg программа bitcoin bitcoin расшифровка cryptocurrency exchanges local ethereum app bitcoin rise cryptocurrency
bitcoin png bitcoin casino bitcoin scan партнерка bitcoin reddit cryptocurrency cryptocurrency trading bitcoin математика bitcoin лотерея ethereum course wallet cryptocurrency капитализация bitcoin fork ethereum lealana bitcoin moneypolo bitcoin bitcoin знак bitcoin investing clame bitcoin bitcoin machines bux bitcoin cryptocurrency forum bitcoin сигналы accepts bitcoin ethereum logo bitcoin payoneer bitcoin код bitcoin курс bitcoin vizit mining bitcoin bitcoin addnode stock bitcoin bitcoin ann bitcoin капча
bitcoin bazar raiden ethereum hd bitcoin
пул monero bitcoin pizza
ubuntu bitcoin byzantium ethereum bitcoin machines
сети bitcoin bitcoin ocean bitcoin net delphi bitcoin bitcoin цена bitcoin калькулятор asrock bitcoin краны monero prune bitcoin
ethereum прогноз bitcoin easy ethereum ethash bitcoin приложение bitcoin bitcointalk bitcoin nodes bitcoin 2018 bitcoin poloniex ethereum картинки bitcoin ether bitcoin banks bitcoin forbes bitcoin уполовинивание ethereum twitter bitcoin community bitcoin fpga bitcoin usa bitcoin обменники cryptocurrency это project ethereum
bitcoin вложить смысл bitcoin monero обменник