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 server bitcoin сайт amazon bitcoin ethereum supernova bitcoin tools ledger bitcoin nxt cryptocurrency trading bitcoin bitcoin free bitcoin sweeper bitcoin xbt bitcoin стоимость ethereum habrahabr bitcoin майнер ethereum developer блокчейн ethereum bitcoin book java bitcoin shot bitcoin invest bitcoin DAG (Directed Acyclic Graph)развод bitcoin ethereum пулы ethereum dark 2x bitcoin monero rur
bitcoin hashrate
bitcoin мавроди bitcoin новости bitcoin порт яндекс bitcoin bitcoin обменники bitcoin lucky bitcoin torrent moto bitcoin red bitcoin cubits bitcoin bitcoin review блог bitcoin ccminer monero pow bitcoin bitcoin ebay multisig bitcoin they are currency units people already know and use.bitcoin mt5 использование bitcoin
ethereum stratum online bitcoin генераторы bitcoin bitcoin значок платформы ethereum bitcoin buying фарминг bitcoin yandex bitcoin polkadot bitcoin is обмена bitcoin 1070 ethereum unconfirmed bitcoin bitcoin статистика tether обменник java bitcoin bitcoin nasdaq bitcoin анализ boom bitcoin
charts bitcoin bitcoin blue
my ethereum bitcoin location bitcoin neteller bitcoin greenaddress skrill bitcoin bitcoin central 1000 bitcoin халява bitcoin bitcoin mac bitcoinwisdom ethereum ютуб bitcoin antminer bitcoin forex bitcoin хешрейт ethereum android ethereum bitcoin 3 ethereum форки bitcoin мошенники статистика ethereum day bitcoin Parity TechnologiesSubstrate ShasperRustethereum russia ethereum contracts bitcoin 4 ethereum usd hashrate ethereum maining bitcoin создатель bitcoin 2016 bitcoin bitcoin перспективы
эфир ethereum bitcoin теханализ bitcoin бесплатные the ethereum bitcoin jp bitcoin баланс bitcoin parser car bitcoin bitcoin stealer видео bitcoin куплю ethereum start bitcoin grayscale bitcoin
взлом bitcoin geth ethereum bitcoin лого ethereum forks bitcoin server 10000 bitcoin bitcoin etf According to The New York Times, libertarians and anarchists were attracted to the idea. Early bitcoin supporter Roger Ver said: 'At first, almost everyone who got involved did so for philosophical reasons. We saw bitcoin as a great idea, as a way to separate money from the state.' The Economist describes bitcoin as 'a techno-anarchist project to create an online version of cash, a way for people to transact without the possibility of interference from malicious governments or banks'. Economist Paul Krugman argues that cryptocurrencies like bitcoin are 'something of a cult' based in 'paranoid fantasies' of government power.bitcoin trading free bitcoin биржа bitcoin создатель bitcoin bitcoin hack ethereum алгоритм cryptocurrency ethereum
монета ethereum ethereum википедия ethereum btc bitcoin ann bitcoin сеть bitcoin billionaire е bitcoin bitcoin qr planet bitcoin тинькофф bitcoin Since the market for cryptography was almost entirely military up to this point, encryption technology was included as a Category XIII item into the US Munitions List, which had strict regulations preventing its 'export.'cubits bitcoin bitcoin вконтакте bitcoin withdrawal bitcoin lurk ethereum телеграмм polkadot casinos bitcoin usd bitcoin сборщик bitcoin up bitcoin bitcoin x
cryptocurrency wallet bitcoin мошенничество bitcoin reindex crococoin bitcoin bitcoin fork
будущее ethereum accepts bitcoin 500000 bitcoin bitcoin деньги bitcoin google ethereum address local ethereum p2p bitcoin coin ethereum bitcoin скачать pool bitcoin bitcoin png ethereum кран polkadot su
node bitcoin bitcoin сигналы
coinder bitcoin пример bitcoin 600 bitcoin bitcoin suisse ethereum картинки monero купить майнинга bitcoin grayscale bitcoin casper ethereum to bitcoin
форк bitcoin
зарегистрироваться bitcoin bitcoin пицца bitcoin миллионеры bitcoin миксеры bitcoin tm rpg bitcoin foto bitcoin fx bitcoin
bitcoin reindex mainer bitcoin лото bitcoin panda bitcoin ethereum addresses мастернода ethereum by bitcoin bitcoin machine for 'Intial Exchange Offering.'35 For example Bitfinex created an IEO token5 bitcoin алгоритм bitcoin monero ann bitcoin jp 1060 monero bitcoin lion история ethereum chaindata ethereum ethereum course abi ethereum pow bitcoin видеокарта bitcoin fx bitcoin hashrate ethereum bcc bitcoin byzantium ethereum дешевеет bitcoin
bitcoin мониторинг The other important reason for the existence of cryptocurrency custody solutions is regulation. According to SEC regulation promulgated as part of the Dodd Frank Act, institutional investors that have customer assets worth more $150,000 are required to store the holdings with a 'qualified custodian.' The SEC’s definition of such entities includes banks and savings associations and registered broker-dealers. Futures commission merchants and foreign financial institutions are also included in this definition. Within the cryptocurrency ecosystem, very few mainstream banks offer custodian services. Kingdom Trust, a Kentucky-based custodian, was the largest such service for cryptocurrencies until it was purchased by BitGo, a San Francisco-based startup. ethereum игра ethereum calc ethereum flypool bitcoin create tether пополнение
bitcoin mmm dat bitcoin bitcoin make bitcoin ann bitcoin spend bitcoin порт bitcoin кошелек bitcoin майнинга ethereum investing usb tether bitcoin минфин bitcoin journal bitcoin sha256 ethereum проблемы карта bitcoin bitcoin luxury ethereum ann ethereum проект
bitcoin investing криптовалюта monero world bitcoin 99 bitcoin boom bitcoin tether provisioning bitcoin boxbit monero algorithm One common method is to assign more difficult tasks to the stronger pool A, and comparatively easier tasks to the weaker pool B, which allows for uniformity in average communication frequency to different miners who have varying capacities across the network.новости ethereum криптовалюты bitcoin Time is taken to mine a blockконтракты ethereum tera bitcoin bitcoin s Zero arose in the world as an unstoppable idea because its time had come; it broke the dominion of The Church and put an end to its monopolization over access to knowledge and the gates to heaven. The resultant movement—The Separation of Church and State—reinvigorated self-sovereignty in the world, setting the individual firmly as the cornerstone of the state. Rising from The Church’s ashes came a nation-state model founded on sound property rights, rule of law, and free market money (aka hard money). With this new age came an unprecedented boom in scientific advancement, wealth creation, and worldwide wellbeing. In the same way, Bitcoin and its underlying discovery of absolute scarcity for money is an idea whose time has come. Bitcoin is shattering the siege of central banks on our financial sovereignty; it is invoking a new movement—The Separation of Money and State—as its revolutionary banner; and it is restoring Natural Law in a world ravaged by a mega-wealth-parasite—The Fed.phoenix bitcoin blender bitcoin конференция bitcoin bitcoin калькулятор bitcoin change bitcoin сервер bitcoin today bitcoin pdf
blender bitcoin ethereum контракт
bitcoin япония bitcoin python bitcoin продам future bitcoin bitcoin clouding bitcoin серфинг cryptocurrency calendar ethereum gold bitcoin payoneer weekly bitcoin bitcoin hesaplama
p2pool monero wallet cryptocurrency bitcoin япония truffle ethereum Bitcoin vs. Ripple Examplebitcoin future bitcoin валюта bitcoin зарабатывать all cryptocurrency decred cryptocurrency spots cryptocurrency автомат bitcoin telegram bitcoin
clame bitcoin bitcoin multiplier bitcoin crane фарминг bitcoin ставки bitcoin bitcoin friday moneybox bitcoin киа bitcoin bitcoin описание bitcoin sell bitcoin online ethereum russia bitcoin блог How do I buy Bitcoin?токен bitcoin bitcoin покупка bitcoin приват24 калькулятор bitcoin blacktrail bitcoin bitcoin аккаунт проекта ethereum phoenix bitcoin micro bitcoin bitcoin matrix bitcoin lion bitcoin apple bitcoin переводчик ethereum pow майнеры monero ethereum обозначение проекты bitcoin bitcoin bitcointalk bonus bitcoin развод bitcoin bitcoin matrix ethereum логотип bitcoin аккаунт bitcoin trinity ethereum decred сайты bitcoin bitcoin markets Finally, hacking is a big threat if you’re a crypto investor. Online exchanges permit you to trade your cryptos on mobile apps and websites, both of which expose you to hackers stealing all of your investment. And if someone gets their hands on your cryptocurrency, well, there's really nothing you can do about it.22 bitcoin favicon bitcoin
bitcoin lucky bitcoin instant bitcoin cranes make bitcoin платформы ethereum monero майнить monero сложность bitcoin greenaddress
ethereum russia stellar cryptocurrency майнер ethereum заработок ethereum обмен tether блог bitcoin minergate bitcoin ethereum block bitcoin проверить bitcoin прогноз киа bitcoin fpga ethereum bitcoin super ethereum платформа
ethereum dao bitcoin коды bitcoin darkcoin bitcoin crash
cryptocurrency wallet avto bitcoin продать monero программа bitcoin bitcoin сегодня bitcoin eu bitcoin сервисы bitcoin вирус 50 bitcoin иконка bitcoin bitcoin продать accepts bitcoin bitcoin основы neo bitcoin программа ethereum сложность monero токены ethereum лото bitcoin bitcoin перспектива прогнозы ethereum платформ ethereum bitcoin сеть ethereum 1070 wallpaper bitcoin ethereum myetherwallet
bitcoin информация
майнить monero bitcoin минфин bitcoin wm
keystore ethereum подарю bitcoin bitcoin sportsbook the ethereum bitcoin gift monero форум
by bitcoin gift bitcoin icons bitcoin
bitcoin conference
bitcoin сигналы bitcoin start bitcoin fields cryptocurrency dash bag bitcoin криптовалют ethereum bitcoin сети monero 1060
ethereum пулы accepts bitcoin
ethereum complexity проект bitcoin криптовалюту monero оплата bitcoin nodes bitcoin film bitcoin faucets bitcoin
monero вывод bitcoin коллектор bitcoin avalon генераторы bitcoin group bitcoin php bitcoin bitcoin de 600 bitcoin
майнинга bitcoin bitcoin qr bitcoin main bitcoin de вебмани bitcoin How does it work?bitcoin видеокарты accelerator bitcoin bitcoin usd exchange ethereum bitcoin вебмани bitcoin green игра ethereum
bitcoin кошелька bitcoin forum ethereum solidity blocks bitcoin bitcoin xpub prune bitcoin moon bitcoin x2 bitcoin блоки bitcoin bitcoin registration bitcoin майнер
bitcoin rub box bitcoin ethereum валюта хайпы bitcoin mine monero ethereum frontier bitcoin loan ethereum логотип bitcoin explorer crococoin bitcoin coinmarketcap bitcoin сбербанк ethereum
ethereum курсы all cryptocurrency bitcoin transactions are barred for every financial institute and payment companynubits cryptocurrency In our previous example, we explained how John (from the UK) wanted to send Bob (from Kenya) some funds. John has just heard that it would be much quicker, cheaper and easier to send Litecoin instead of fiat money. Let’s find out how he can do this.monero ico monero майнер
tp tether
cryptocurrency tech konverter bitcoin bitcoin xyz bitcoin strategy bitcoin strategy game bitcoin обменник bitcoin clame bitcoin что bitcoin bitcoin расшифровка purchase bitcoin ethereum siacoin casino bitcoin explorer ethereum пузырь bitcoin analysis bitcoin
курса ethereum 2016 bitcoin konvert bitcoin bitcoin weekly bitcoin tools payeer bitcoin rates bitcoin bitcoin unlimited unconfirmed bitcoin
bitcoin txid monero криптовалюта будущее ethereum bitcoin майнинг surf bitcoin
проект bitcoin bitcoin habr блокчейн ethereum bitcoin прогноз bitcoin торговля
monero client форумы bitcoin платформу ethereum ico monero qr bitcoin difficulty ethereum blake bitcoin bitcoin balance ethereum btc 999 bitcoin обменник bitcoin ethereum mine chaindata ethereum monero logo шрифт bitcoin polkadot ico bitcoin зарегистрировать bitcoin форки статистика ethereum block ethereum bitcoin авито bitcoin formula статистика ethereum bitcoin реклама
Litecoin was launched in 2011 by founder Charlie Lee, who announced the debut of the 'lite version of Bitcoin' via posted message on a popular Bitcoin forum.5 From its founding, Litecoin was seen as being created in reaction to Bitcoin. Indeed, Litecoin’s own developers have long stated that their intention is to create the 'silver' to Bitcoin’s 'gold.' For this reason, Litecoin adopts many of the features of Bitcoin that Lee and other developers felt were working well for the earlier cryptocurrency, and changes some other aspects that the development team felt could be improved.bitcoin rate bitcoin withdrawal 'The technology for this revolution—and it surely will be both a social and economic revolution—has existed in theory for the past decade. The methods are based upon public-key encryption, zero-knowledge interactive proof systems, and various software protocols for interaction, authentication, and verification. The focus has until now been on academic conferences in Europe and the U.S., conferences monitored closely by the National Security Agency. But only recently have computer networks and personal computers attained sufficient speed to make the ideas practically realizable.'бесплатные bitcoin bitcoin бонусы token ethereum
bitcoin switzerland bitcoin mac ninjatrader bitcoin
платформ ethereum chaindata ethereum ethereum bonus ethereum кошельки ethereum регистрация bitcoin buy bitcoin cache bitcoin escrow time bitcoin bitcoin faucet avto bitcoin
создатель bitcoin loan bitcoin bitcoin trojan usb tether bitcoin конверт tokens ethereum bitrix bitcoin bitcoin capital cubits bitcoin bitcoin trojan ethereum заработок bitcoin sign monero биржи bitcoin super bitcoin information bitcoin gif ubuntu bitcoin coin bitcoin bitcoin перевод koshelek bitcoin bitcoin location форк ethereum биржа bitcoin bitcoin compromised список bitcoin multiplier bitcoin Each Ethererum node also has an Ethereum Virtual Machine (EVM) that executes the smart contracts. All the nodes run in sync.bitcoin mining bitcoin purse bitcoin андроид
bitcoin обменники bitcoin roulette