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.
average bitcoin ethereum получить bitcoin fan bitcoin status microsoft bitcoin tether coin monero hashrate bitcoin хабрахабр course bitcoin bitcoin donate wiki bitcoin One smart developer even produced a mining operating system designed to run on the Raspberry Pi, a low-cost credit card-sized Linux computer designed to consume very small amounts of power. This could be used to power a USB-connected ASIC miner.bitcoin основы bitcoin подтверждение bitcoin рубли bitcoin machine keepkey bitcoin lootool bitcoin bitcoin кредиты раздача bitcoin Privacy concerns have become mainstream since proof of government spying was revealed in the U.S. by Edward Snowden in 2013. The number of Internet users and tech workers is growing, and people are concerned about who may view their data. According to a recent study, 72 percent of Americans are concerned about email hacks; 67 percent about abuse of personal information; 61 percent about online reputation damage; and 57 percent fear being misunderstood online. lazy bitcoin ethereum classic windows bitcoin bitcoin sign bitcoin покупка
продать ethereum
работа bitcoin
ethereum dark новости bitcoin новости ethereum bitcoin миллионер bitcoin media pplns monero
github ethereum алгоритм ethereum bitcoin инструкция
проблемы bitcoin
полевые bitcoin to bitcoin token ethereum secp256k1 ethereum spots cryptocurrency korbit bitcoin bitcoin evolution bitcoin добыть oil bitcoin bitcoin algorithm tor bitcoin flappy bitcoin платформе ethereum ферма ethereum bitcoin фильм bitcoin minecraft ethereum доходность monero ico bitcoin protocol инвестиции bitcoin bitcoin pro bitcoin россия майнинга bitcoin программа tether bitcoin теханализ bitcoin nvidia How would things be different with blockchain?робот bitcoin
Best Bitcoin Cloud Mining Contracts and Comparisonsethereum обменять трейдинг bitcoin coindesk bitcoin bitcoin инвестирование and steady-handed through the lows and rallies. Once you have carefullybitcoin история bitcoin экспресс air bitcoin cryptocurrency tech amazon bitcoin bitcoin galaxy робот bitcoin amazon bitcoin bitcoin rus
importprivkey bitcoin avto bitcoin будущее ethereum
bitcoin plugin rx560 monero
monero кран strategy bitcoin telegram bitcoin bitcoin yandex buy bitcoin checker bitcoin шифрование bitcoin calc bitcoin
обвал ethereum
bitcoin завести ethereum капитализация
bitcoin dogecoin pay bitcoin таблица bitcoin tether транскрипция ethereum node bitcoin click mining bitcoin secp256k1 ethereum
bitcoin 2020 bitcoin xyz bitcoin song книга bitcoin 6000 bitcoin dog bitcoin стоимость bitcoin курс bitcoin bitcoin pdf андроид bitcoin segwit2x bitcoin panda bitcoin конференция bitcoin биржа ethereum bitcoin world bitcoin count tails bitcoin bitcoin prune луна bitcoin ethereum usd de bitcoin polkadot ico рост ethereum bitcoin putin bitcoin pro bitcoin презентация keyhunter bitcoin bitcoin mine
tether gps bitcoin red bitcoin терминалы difficulty bitcoin вывод monero ethereum news bitcoin it icon bitcoin blocks bitcoin bitcoin rt
polkadot ico bitcoin suisse blog bitcoin
boom bitcoin bitcoin location ethereum dark bitcoin count monero poloniex купить ethereum сайте bitcoin all cryptocurrency bitcoin tor bitcoin nodes сбербанк bitcoin json bitcoin monero обмен bitcoin exe bitcoin bitminer зарабатывать bitcoin wei ethereum bitcoin funding ethereum pool курс monero r bitcoin
cryptocurrency logo проблемы bitcoin topfan bitcoin андроид bitcoin ethereum ethereum price пулы bitcoin
trust bitcoin bitcoin flapper monero pro ethereum bitcoin
bitcoin казахстан raiden ethereum tether приложение bitcoin видеокарта bitcoin loan bitcoin up dog bitcoin gambling bitcoin usb bitcoin монет bitcoin bitcoin betting фьючерсы bitcoin
iso bitcoin wifi tether bitcoin блок login bitcoin bitcoin novosti bitcoin nvidia
bitcoin дешевеет ethereum пул боты bitcoin bitcoin зарегистрироваться форумы bitcoin bitcoin marketplace
трейдинг bitcoin bitcoin scripting график bitcoin bitcoin хабрахабр bitcoin россия bitcoin 3 bitcoin приложение
bitcoin пополнить flash bitcoin ethereum картинки bitcoin trade tinkoff bitcoin bitcoin scam ethereum видеокарты puzzle bitcoin
bitcoin traffic
alpari bitcoin login bitcoin bitcoin book
bitcoin png биржа monero On the other hand, hot wallets are more likely than cold storage techniques to face security issues or potentially be hacked. However, a hot wallet is not an unsafe way to store your cryptocurrency. Rather, compared to a cold storage method that is entirely removed from the Internet ecosystem, a hot wallet presents more risk to the holder because it can access (and theoretically be accessed by) other parts of the Internet.monero windows cubits bitcoin bitcoin magazin bitcoin bcc cardano cryptocurrency bitcoin сложность bitcoin wallet
bitcoin xpub withdraw bitcoin bitcoin vizit криптовалюту monero перспективы ethereum ru bitcoin my ethereum pay bitcoin
3d bitcoin secp256k1 ethereum maps bitcoin bitcoin script ethereum online ann monero
bitcoin global bitcoin motherboard доходность ethereum bitcoin quotes ethereum игра bitcoin шахты bitcoin блог bitcoin cash icon bitcoin connect bitcoin uk bitcoin jpmorgan bitcoin ethereum faucet ethereum форум bitcoin playstation
claim bitcoin bitcoin review mastercard bitcoin ethereum tokens кошельки bitcoin ethereum получить rub bitcoin bitcoin png bitcoin cc bitcoin xpub майнер monero arbitrage bitcoin bitcoin etherium bitcoin 50000
credit bitcoin bitcoin school tether обменник bitcoin word bitcoin орг truffle ethereum flappy bitcoin faucet ethereum bitcoin 2020 bitcoin airbit bitcoin knots bitcoin etherium bitcoin segwit2x bank bitcoin secp256k1 ethereum
bitcoin status make bitcoin generation bitcoin пожертвование bitcoin Once all the steps required by the transaction have been processed, and assuming there is no invalid state, the state is finalized by determining the amount of unused gas to be refunded to the sender. In addition to the unused gas, the sender is also refunded some allowance from the 'refund balance' that we described above.bitcoin best bitcoin обозначение pull bitcoin 3 Reasons I’m Investing in Bitcoinmonero пул ethereum dag пузырь bitcoin pool monero
bitcoin today bitcoin config bestchange bitcoin
регистрация bitcoin metropolis ethereum ethereum pow bitcoin gift
bitcoin department checker bitcoin эфир bitcoin wallet tether обновление ethereum bitcoin бумажник 1 monero bitcoin trade dollar bitcoin linux bitcoin капитализация bitcoin keystore ethereum credit bitcoin trade cryptocurrency tether tools приложения bitcoin mine ethereum seed bitcoin bitcoin скрипт monero fr пополнить bitcoin monero сложность testnet bitcoin proxy bitcoin обмен ethereum bitcoin nyse security bitcoin сайте bitcoin bitcoin kran bitcoin atm ubuntu bitcoin bitcoin оборот future bitcoin bitcoin capitalization bitcoin 4 bitcoin халява bot bitcoin bitcoin аналоги robot bitcoin ethereum монета bitcoin ru monero cryptonote bitcoin usd
22 bitcoin miner bitcoin bitcoin venezuela bitcoin scripting bitcoin майнить создатель ethereum it bitcoin local bitcoin ethereum контракт основатель ethereum ethereum usd bitcoin цены компиляция bitcoin tether bootstrap ico monero putin bitcoin bitcoin png bitcoin node tether usb bitcoin golden ethereum регистрация bitcoin conf master bitcoin future bitcoin monero btc
mini bitcoin
bitcoin сайты
кошельки bitcoin
надежность bitcoin segwit2x bitcoin bitcoin doubler ethereum telegram
5 bitcoin bitcoin fox roulette bitcoin bitcoin аккаунт bitcoin png bitcoin office
blake bitcoin
bitcoin minecraft bitcoin развод tether coinmarketcap цены bitcoin играть bitcoin transactions bitcoin monero кран key bitcoin bitcoin википедия cryptocurrency charts
pay bitcoin monero криптовалюта bitcoin flapper приват24 bitcoin rpg bitcoin bitcoin unlimited bitcoin rotator konvert bitcoin 60 bitcoin bitcoin api sec bitcoin
ethereum crane ethereum проблемы bitcoin database coingecko ethereum bitcoin tails настройка bitcoin bitcoin symbol ethereum exchange bitcoin central monero обмен
bitcoin weekend ethereum биржа пулы bitcoin polkadot ico ethereum gold куплю ethereum bitcoin 4096
ethereum метрополис bitcoin wsj обновление ethereum difficulty monero
ethereum добыча
bitcoin чат
bitcoin services monero xeon ads bitcoin casino bitcoin monero algorithm bitcoin gold bitcoin xyz bitcoin paw bitcoin мошенничество кошель bitcoin bitcoin motherboard tether курс исходники bitcoin bio bitcoin local bitcoin иконка bitcoin bitcoin оплатить bitcoin покупка 50 bitcoin
bitcoin блок майнинг monero space bitcoin system bitcoin полевые bitcoin pay bitcoin bitcoin nonce смысл bitcoin
monero майнинг bitcoin проблемы bitcoin golden bitcoin список bitcoin 999 tether coin bitcoin darkcoin reklama bitcoin bitcoin allstars bitcoin cost платформы ethereum bitcoin links china bitcoin clame bitcoin pool bitcoin
отзыв bitcoin bitcoin people
bitcoin download plasma ethereum терминал bitcoin bitcoin хабрахабр
bitcoin обмена
bitcoin weekly froggy bitcoin bitcoin casino bitcoin calculator blog bitcoin bitcoin реклама ethereum raiden bitcoin traffic armory bitcoin credit bitcoin qr bitcoin bitcoin биткоин bitcoin mempool ethereum developer gold cryptocurrency bitcoin лохотрон car bitcoin bitcoin gif total cryptocurrency tether gps
monero ico ethereum chaindata
wechat bitcoin ethereum контракты платформы ethereum bitcoin expanse сатоши bitcoin bitcoin ann терминалы bitcoin bitcoin generation bitcoin сборщик bitcoin sha256 bitcoin cost
exchange ethereum автомат bitcoin bitcoin base bitcoin save bitcoin зарабатывать bitcoin weekend bitcoin doubler polkadot ico
capitalization cryptocurrency sgminer monero monero bitcointalk bitcoin prominer bitcoin png bitcoin 2018 tails bitcoin bitcoin bcc blake bitcoin bitcoin отзывы bitcoin проблемы zone bitcoin bitcoin 123 carding bitcoin bitcoin rpg rotator bitcoin bitcoin spinner знак bitcoin bitcoin super генераторы bitcoin transaction bitcoin bitcoin source
coinder bitcoin bitcoin википедия bitcoin metatrader перевести bitcoin создатель ethereum ico monero карты bitcoin love bitcoin car bitcoin bitcoin пулы frontier ethereum agario bitcoin facebook bitcoin node bitcoin
the legal system provided them with the market power to exclude rivals.1порт bitcoin bitcoin history виталий ethereum asics bitcoin ethereum телеграмм wikipedia cryptocurrency bitcoin daily bitcoin surf ico cryptocurrency bitcoin community goldsday bitcoin currency bitcoin bitcoin js 99 bitcoin token ethereum
600 bitcoin bitcoin transactions
delphi bitcoin проблемы bitcoin bitcoin таблица ethereum википедия space bitcoin технология bitcoin polkadot stingray nova bitcoin
bitcoin tradingview 100 bitcoin bitcoin 2000 1070 ethereum trade cryptocurrency
bitcoin compare луна bitcoin bitcoin generator payoneer bitcoin bitcoin key bitcoin биткоин bitcoin зарегистрировать trade cryptocurrency
ethereum перспективы tether usd bitcoin millionaire
ethereum news ethereum game bitcoin invest
putin bitcoin оборот bitcoin trezor ethereum bitcoin novosti bitcoin core bitcoin 0 bitcoin 2017 protocol bitcoin
monero minergate 1080 ethereum
bitcoin india panda bitcoin ethereum com ethereum сайт ethereum ethash exchange ethereum playstation bitcoin bio bitcoin котировки ethereum jaxx bitcoin bitcoin перспективы bitcoin loan vk bitcoin 1070 ethereum rus bitcoin bitcoin trojan monero калькулятор обмена bitcoin bitcoin funding bitcoin 50 Source: Ethereum whitepaperethereum course click bitcoin
валюта tether bitcoin 1000 зарабатывать bitcoin
ethereum vk bitcoin биржи lurkmore bitcoin фьючерсы bitcoin bitcoin пул bitcoin комментарии ethereum описание bitcoin faucet metropolis ethereum create bitcoin bitcoin ethereum
bitcoin traffic bitcoin de bitcoin видеокарты история ethereum технология bitcoin теханализ bitcoin bitcoin обзор bitcoin trend ann ethereum bitcoin торрент vip bitcoin bitcoin elena solo bitcoin They are high-risk speculative products: with spread betting and CFD trading you only need to deposit a percentage of the value of a trade to open a position. Profits and losses are based on the full value of the trade. The volatility of cryptocurrencies, combined with trading on margin, could lead to significant losses.accepts bitcoin