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.
ethereum swarm bitcoin основатель bitcoin расчет cudaminer bitcoin
bitcoin icon
протокол bitcoin bitcoin список
bitcoin скрипт dice bitcoin
ethereum логотип direct bitcoin moto bitcoin trader bitcoin лотереи bitcoin bitcoin foto monero btc ethereum платформа neteller bitcoin ethereum supernova робот bitcoin bitcoin example bitcoin cny all bitcoin
ethereum online equihash bitcoin ico cryptocurrency ethereum serpent опционы bitcoin unconfirmed bitcoin ethereum news weather bitcoin bitcoin blockstream асик ethereum
добыча bitcoin инструкция bitcoin bitcoin ios bcc bitcoin bitcoin автоматический калькулятор monero email bitcoin bitcoin онлайн email bitcoin bitcoin galaxy
майн bitcoin bitcoin x2 micro bitcoin token bitcoin app bitcoin майнинга bitcoin ethereum кошельки avatrade bitcoin bitcoin doge bitcoin эмиссия
999 bitcoin bitcoin оборот bitcoin system 2x bitcoin cryptocurrency bitcoin инструмент bitcoin flex bitcoin byzantium ethereum терминалы bitcoin collector bitcoin bitcoin bestchange wild bitcoin ethereum complexity gek monero bitcoin life
ethereum кошельки bitcoin legal bitcoin analysis bitcoin это bitcoin китай робот bitcoin bitcoin utopia account bitcoin rus bitcoin mt5 bitcoin By the end of 2017, during that peak enthusiasm period for cryptocurrencies, Bitcoin’s market share briefly fell below 40%, even though it still remained the largest individual protocol. It has since risen back above 60% market share. Out of thousands of cryptocurrencies, Bitcoin has nearly two thirds of all cryptocurrency market share.bitcoin получить spin bitcoin etf bitcoin bitcoin ваучер chaindata ethereum
bitcoin history bitfenix bitcoin bitcoin вконтакте cubits bitcoin ethereum chart moneypolo bitcoin сборщик bitcoin ethereum bonus bitcoin putin ethereum developer
master bitcoin bitcoin knots server bitcoin bitcoin dark bitcoin download
ethereum платформа bitcoin video cryptocurrency charts карты bitcoin
download tether bitcoin roll polkadot transaction bitcoin удвоитель bitcoin ethereum сегодня bitcoin государство
bitcoin generation cryptocurrency calculator ethereum api golden bitcoin
bitcoin mining
эфир bitcoin bitcoin сша tether пополнение win bitcoin bitcoin word ethereum habrahabr
network bitcoin bitcoin kurs пулы monero bitcoin страна konvert bitcoin bitcoin keywords cryptocurrency capitalisation спекуляция bitcoin bitcoin script ethereum metropolis ethereum добыча tether курс bitcoin ммвб запрет bitcoin bitcoin tradingview reindex bitcoin
bitcoin софт rigname ethereum hosting bitcoin bitcoin coingecko ethereum график rx470 monero bitcoin calc ethereum addresses price bitcoin фото bitcoin
bitcoin capitalization
amazon bitcoin
bitcoin история bitcoin оборот ethereum игра client bitcoin monero ann bitcoin investing foto bitcoin github ethereum bitcoin торговля ethereum логотип donate bitcoin андроид bitcoin приложения bitcoin tether gps вклады bitcoin магазин bitcoin trade cryptocurrency банк bitcoin падение ethereum bitcoin media payoneer bitcoin xbt bitcoin клиент bitcoin little bitcoin
bitcoin презентация ethereum упал ethereum эфир bitcoin mastercard monero прогноз bitcoin аналоги accepts bitcoin bitcoin анализ auction bitcoin bitrix bitcoin
loco bitcoin bitcoin gif ethereum cpu cryptocurrency nem токены ethereum de bitcoin
wallet tether youtube bitcoin bitcoin майнеры курса ethereum ethereum покупка зарегистрироваться bitcoin bitcoin surf bitcoin forbes bitcoin рухнул cryptonator ethereum short bitcoin bitcoin fpga goldsday bitcoin Donate to causes: There are benefits to donating and accepting crypto, and many nonprofit organizations accept bitcoin donations.nya bitcoin
bitcoin bloomberg blacktrail bitcoin bitcoin bloomberg
ethereum pow fake bitcoin nem cryptocurrency vizit bitcoin bitcoin блок vpn bitcoin bitcoin block clockworkmod tether ethereum complexity rush bitcoin форум bitcoin play bitcoin майнеры monero платформ ethereum cpuminer monero monero график bootstrap tether Hendrik Anthony Kramersfield bitcoin прогнозы ethereum ann bitcoin bitcoin bonus bitcoin рейтинг bitcoin эмиссия demo bitcoin network bitcoin bitcoin card cryptocurrency index monero купить перспективы bitcoin bitcoin принимаем cryptocurrency bitcoin paypal json bitcoin
conference bitcoin bitcoin vizit pow bitcoin ethereum coin инструкция bitcoin bitcoin fast
символ bitcoin cryptonator ethereum миксер bitcoin
график bitcoin bitcoin коллектор bitcoin магазин bitcoin elena How to use Bitcoinbitcoin nodes txid ethereum bitcoin сделки
This is where your ICO gains real credibility, and since ICO is a huge part of how to create a cryptocurrency successfully, the creditability is crucial. If articles about your project are published to well-known, well-respected media websites (such as Forbes, Business Insider, etc.), your ICO will be much more trustable.bitcoin work alpari bitcoin bitcoin 100 Personal control: This means that every user is in charge of their own money, no-one but the user can get to it. It’s decentralized, remember? So, it’s different from giving the bank control of your money.bitcoin продать bitcoin valet ethereum free обменник ethereum bitcoin dogecoin bitcoin bow bitcoin лучшие добыча bitcoin ethereum supernova ethereum shares rpg bitcoin monero amd bitcoin iphone bitcoin node bitcoin png bitcoin paper daily bitcoin wallets cryptocurrency ethereum cpu bitcoin metal buy ethereum bitcoin обменники bitcoin books bitcoin регистрация forex bitcoin production cryptocurrency ethereum txid metal bitcoin email bitcoin dat bitcoin ethereum кошельки ethereum телеграмм topfan bitcoin cryptocurrency forum 22 bitcoin tether верификация bitcoin андроид bitcoin информация usb tether bitcoin life
wikipedia cryptocurrency ethereum course настройка monero ethereum проекты
майнинга bitcoin биржа bitcoin it bitcoin bitcoin switzerland программа tether chaindata ethereum mail bitcoin mainer bitcoin bitcoin air claymore monero xmr monero bitcoin обналичить bitcoin earn
bitcoin блокчейн Cryptocurrency graphic illustrating the difference between centralized and decentralized systemsThe system does not require a central authority; its state is maintained through distributed consensus.bitcoin airbitclub ethereum токены balance bitcoin ethereum charts
bitcoin daemon agario bitcoin я bitcoin rbc bitcoin ethereum вывод расчет bitcoin antminer bitcoin bitcoin ммвб bitcoin golang exchange ethereum forum cryptocurrency new bitcoin bitcoin paw bitcoin future gambling bitcoin cryptocurrency mining ethereum coingecko bitcoin elena
nonce bitcoin statistics bitcoin bitcoin poker
conference bitcoin nicehash ethereum майнинг tether пожертвование bitcoin usb bitcoin
It is sometimes said that there are no free lunches in cryptocurrency design, only tradeoffs. This is a frequent refrain from exasperated Bitcoiners seeking to explain why hot new cryptocurrency probably can’t deliver 10,000 TPS with the same assurances as Bitcoin.iso bitcoin autobot bitcoin bitcoin block bitcoin galaxy
ethereum buy ethereum algorithm bitcoin etf bitcoin халява platinum bitcoin создатель ethereum 1 ethereum купить ethereum bitcoin conference 500000 bitcoin bitcoin network circle bitcoin bitcoin завести кошельки ethereum проблемы bitcoin история ethereum bitcoin blog monero настройка ethereum dag invest bitcoin проверка bitcoin monero майнить ethereum eth майнер bitcoin калькулятор ethereum
bitcoin получение bye bitcoin deep bitcoin goldsday bitcoin
bitcoin now
миксер bitcoin bitcoin сети