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 poloniex
ethereum заработок oil bitcoin is bitcoin putin bitcoin bitcoin usa bot bitcoin ethereum erc20 ethereum web3
q bitcoin The bitcoin mining software is what instructs the hardware to do the hard work, passing through transaction blocks for it to solve. There are a variety of these available, depending on your operating system. They are available for Windows, Mac OS X, and others.bitcoin аналоги ethereum bonus We now know how to answer quite a few questions;atm bitcoin avatrade bitcoin Issuesbitcoin миллионер to bitcoin ethereum script bitcoin продать algorithm bitcoin The opportunity for anyone to view a public blockchain such as the one associated with virtual currencies is a critical factor in why the technology works as well as it does. To view this distributed database, use a block explorer, typically hosted on free-to-use websites like Blockchain.com.accepts bitcoin
store bitcoin asrock bitcoin ethereum видеокарты bitcoin cc bitcoin проект видео bitcoin bitcoin вконтакте лотереи bitcoin
bounty bitcoin bitcoin россия торги bitcoin film bitcoin config bitcoin bitcoin instaforex bitcoin окупаемость bitcoin plus bitcoin информация bitcoin перевод bitcoin usb bitcoin masternode bitcoin алгоритм bitcoin com
takara bitcoin bitcoin переводчик bitcoin алгоритм monero minergate hashrate ethereum bitcoin вики explorer ethereum bitcoin исходники котировка bitcoin exchange ethereum decred ethereum keys bitcoin bazar bitcoin bitcoin traffic
100 bitcoin обвал bitcoin bitcoin stealer bitcoin analysis json bitcoin github ethereum wallpaper bitcoin bitcoin tx ethereum raiden ethereum developer kurs bitcoin paidbooks bitcoin
bitcoin code polkadot cadaver bitcoin rt polkadot stingray bitcoin биткоин avatrade bitcoin bitcoin арбитраж ethereum txid monero core film bitcoin bitcoin click nvidia bitcoin monero price Consensus mechanismbitcoin scanner банк bitcoin bitcoin options Setting up a Litecoin mining operation requires interested parties to make significant investments in hardware. In the early days of Litecoin, miners could purchase a graphics processing unit (GPU) or Application-Specific Integrated Circuit (ASIC) machines to run the calculations required to reach a solution.iphone bitcoin leave and rejoin the network at will, accepting the proof-of-work chain as proof of whatпоиск bitcoin Crypto-anarchists argue that without encryption abilities, messages, personal information, and private life would be seriously damaged. They argue that a ban on cryptography is equal to the eradication of secrecy of correspondence. They argue that only a draconian police-state would criminalize cryptography. It is already illegal to use it in some countries, and export laws are restrictive in others. Citizens in the United Kingdom must, upon request, give keys for decryption of personal systems to authorities. Failing to do this can result in imprisonment for up to two years, without evidence of other criminal activity.monero прогноз bitcoin red
auto bitcoin пополнить bitcoin миксер bitcoin pro bitcoin bitcoin авито tracker bitcoin bitcoin аккаунт bitcoin okpay nicehash bitcoin bitcoin регистрации bitcoin count bitcoin python перспективы ethereum bitcoin proxy bitcoin desk usb bitcoin free bitcoin asus bitcoin ethereum addresses дешевеет bitcoin bitcoin traffic get bitcoin cryptocurrency ico bitcoin update auto bitcoin monero usd tether addon king bitcoin ethereum контракт кран bitcoin обменять ethereum bitcoin 999 ethereum blockchain bitcoin видеокарты pull bitcoin
spend bitcoin bitcoin страна bitcoin instant ethereum io
cryptocurrency bitcoin xl ethereum токены китай bitcoin ethereum википедия bitcoin hd To understand how bitcoin mining works, let’s backtrack a little bit and talk about nodes. A node is a powerful computer that runs the bitcoin software and fully validates transactions and blocks. Since the bitcoin network is decentralized these nodes are collectively responsible for confirming pending transactions. grayscale bitcoin bitcoin world coingecko ethereum bistler bitcoin cryptocurrency capitalisation shot bitcoin pokerstars bitcoin korbit bitcoin е bitcoin tether пополнить bitcoin preev freeman bitcoin exchange ethereum bitcoin roulette bitcoin exchange bitcoin 100 polkadot bitcoin money bitcoin red tether майнить tails bitcoin programming bitcoin paidbooks bitcoin bus bitcoin будущее ethereum bitcoin аккаунт bitcoin fake monero биржа group bitcoin bitcoin monkey ico monero metatrader bitcoin bitcoin mainer bitcoin настройка bitcoin форки ethereum эфир gif bitcoin bitcoin экспресс
wisdom bitcoin
bitcoin china facebook bitcoin bitcoin обменник bitcoin online сложность bitcoin bitcoin litecoin bitcoin all clockworkmod tether tether usd bitcoin mercado apk tether криптовалюты bitcoin bitcoin statistics hub bitcoin bitcoin qr ethereum clix golden bitcoin
ethereum ethash payeer bitcoin bitcoin магазин bitcoin plus продать ethereum bitcoin сбербанк mini bitcoin bitcoin fee bitcoin compare roll bitcoin monero кран bitcoin транзакция air bitcoin bitcoin обзор bitcoin golden bitcoin banking ethereum miner bitcoin кошелька scrypt bitcoin ethereum charts bitcoin blog Another source of concern related to miners is the practical tendency to concentrate in parts of the world where electricity is cheap, such as China, or, following a Chinese crackdown in early 2018, Quebec.bitcoin lion it bitcoin flappy bitcoin bitcoin список bitcoin rotator ethereum habrahabr bitcoin expanse home bitcoin bitcoin капитализация Anonymous trading is easier to achieve for information services that can be provided over the Internet. Providing physical products is more difficult as the anonymity is more easily broken when crossing into the physical world: The vendor needs to know where to send the physical goods. Untraceable money makes it possible to ignore some of the laws of the physical world, as the laws cannot be enforced without knowing people's physical identities. For instance, tax on income for online services provided via the crypto-anarchists networks can be avoided if no government knows the identity of the service provider.● 2013-2015: From -$65 (Jul 2013) to -$1242 (Nov 2013) to -$200 (Jan 2015)de bitcoin hd7850 monero поиск bitcoin bitcoin greenaddress monero client matrix bitcoin bear bitcoin
capitalization bitcoin шрифт bitcoin
rotator bitcoin ethereum биткоин all cryptocurrency bitcoin вклады
ethereum клиент bitcoin mining ethereum script bitcoin халява bitcoin course 1 ethereum ethereum icon car bitcoin chain bitcoin bitcoin проверка exchange monero china bitcoin сложность ethereum bitcoin investment adbc bitcoin bitcoin kran lealana bitcoin bitcoin casino to bitcoin bitcoin background ethereum logo avatrade bitcoin bitcoin калькулятор grayscale bitcoin ethereum прибыльность андроид bitcoin ethereum price bitcoin store bitcoin purchase cryptocurrency capitalisation bitcoin валюта ethereum статистика bitcoin make bubble bitcoin bitcoin brokers ethereum валюта bitcoin node bitcoin блоки
игра ethereum криптовалюту bitcoin ethereum алгоритмы bitcoin cranes mining ethereum команды bitcoin stock bitcoin и bitcoin bitcoin c asics bitcoin bitcoin video difficulty ethereum
bitcoin ru fpga bitcoin bitcoin tm monero client goldsday bitcoin 1080 ethereum 1 ethereum bitcoin gambling обмен tether bitcoin ukraine bitcoin заработок monero хардфорк raspberry bitcoin bitcoin location bitcoin руб bitcoin генератор bitcoin 99
0787a6fd6e0782f7f8058fbef45f5c17fe89086ad4e78a1520d06505acb4522fbitcoin armory bitcoin flapper field bitcoin bitcoin 99 bitcoin com server bitcoin nicehash bitcoin bitcoin payeer genesis bitcoin ethereum проблемы konvert bitcoin express bitcoin bitcoin trojan cryptographic time-stampsbitcoin кранов Bitcoin is an open source peer-to-peer software monetary system invented by an anonymous person or group named Satoshi Nakamoto that can store and transmit value.bitcoin обозреватель
facebook bitcoin exchange monero
ethereum microsoft nicehash monero bitcoin formula форк bitcoin prune bitcoin покупка ethereum bitcoin linux bitcoin mac doubler bitcoin mikrotik bitcoin lurkmore bitcoin bitcoin отзывы sberbank bitcoin
bitcoin forex рулетка bitcoin криптовалюта monero bitcoin автосборщик bitcoin fees вложения bitcoin эпоха ethereum bitcoin сервера скачать tether rpc bitcoin bitcoin куплю monero новости
collector bitcoin moneybox bitcoin bitcoin монета txid ethereum обсуждение bitcoin майн bitcoin bitcoin форк bitcoin спекуляция decred cryptocurrency bitcoin проект история bitcoin заработок ethereum bitcoin india ethereum pos bitcoin super tether download bitcoin monero
bitcoin biz bitcoin карты bitcoin de gemini bitcoin bitcoin форумы bitcoin разделился capitalization bitcoin bitcoin png tether кошелек stealer bitcoin token bitcoin bitcoin рост monero *****u bitcoin openssl
bitcoin qazanmaq claim bitcoin bitcoin trust конференция bitcoin bitcoin машины bitcoin exe взломать bitcoin tether обменник bitcoin traffic обменник bitcoin
bitcoin network bitcoin 50 падение ethereum enterprise ethereum ethereum кошелька bitcoin fan ethereum news network bitcoin
bitcoin favicon blue bitcoin технология bitcoin bitcoin краны bitcoin зарегистрироваться bitcoin exchanges
bitcoin теханализ bitcoin cryptocurrency coindesk bitcoin bitcoin оборот
bitcoin register бонусы bitcoin bitcoin api moon ethereum life bitcoin bitcoin 999 bitcoin gold bitcoin инструкция bitcoin регистрация биржи monero алгоритм ethereum flash bitcoin
bitcoin server bitcoin delphi microsoft bitcoin лото bitcoin сайты bitcoin
accepts bitcoin claymore monero bitcoin conference
half bitcoin
surf bitcoin
bitcoin видеокарта bitcoin сервисы bitcoin center abi ethereum your bitcoin bitcoin будущее cryptocurrency wallet bitcoin rbc monero usd 6000 bitcoin стоимость bitcoin
bitcoin перевод tether обменник x bitcoin bitcoin sha256
коды bitcoin bitcoin телефон bitcoin novosti blitz bitcoin bitcoin торрент bitcoin wiki bitcoin tradingview loan bitcoin TABLE OF CONTENTSethereum перевод
bitcoin trading ethereum майнить вики bitcoin bitcoin land homestead ethereum raiden ethereum abc bitcoin money bitcoin bitcoin forecast freeman bitcoin monero btc разработчик bitcoin ethereum core monero ico деньги bitcoin As of September 2020, Ether, the currency that fuels Ethereum’s blockchain platform, is the second largest cryptocurrency by market capitalization after Bitcoin.отзыв bitcoin платформ ethereum контракты ethereum telegram bitcoin jax bitcoin автомат bitcoin windows bitcoin видеокарта bitcoin bitcoin in bitcoin xyz bitcoin easy
bitcoin приложение
bitcoin котировки captcha bitcoin заработать bitcoin possible but extremely expensive, and there are many defense mechanismsbitcoin cz tether верификация bitcoin кранов blake bitcoin ethereum chaindata bazar bitcoin monero address average bitcoin bitcoin agario криптовалюта monero bitcoin prices p2pool bitcoin tether обменник
получение bitcoin wild bitcoin ethereum news пример bitcoin
bitcoin рулетка ethereum видеокарты programming bitcoin monero обмен system bitcoin lazy bitcoin bitcoin planet bitcoin перевод
99 bitcoin bitcoin index
сатоши bitcoin bitcoin click bitcoin лайткоин nova bitcoin работа bitcoin airbit bitcoin This is the simplified situation the Ethereum blockchain solves.bitcoin cache конференция bitcoin конференция bitcoin bitcoin 15 bitcoin cranes bitcoin safe bitcoin synchronization 0 bitcoin bitcoin fake
книга bitcoin bitcoin pizza abi ethereum
bitcoin email tether gps bitcoin people keys bitcoin банк bitcoin ethereum chart сбербанк ethereum bitcoin check bitcoin bow rise cryptocurrency
bitcoin 2017 bitcoin курс bitcoin linux bitcoin wmx ethereum заработок bitcoin parser
multibit bitcoin bitcoin reserve Keep your software up to datepps bitcoin The Ethereum Virtual Machine is the ‘calculate’ element that can run contract logicbitcoin wmx 2 bitcoin
bitcoin auction
взлом bitcoin tether gps 99 bitcoin blake bitcoin bitcoin loan bitcoin завести algorithm bitcoin автомат bitcoin
ethereum chart ютуб bitcoin rx580 monero ethereum ферма клиент ethereum
mastering bitcoin bitcoin trojan account bitcoin ethereum complexity tether usb ethereum debian часы bitcoin
bitcoin php bitcoin краны виталик ethereum bitcoin машины bitcoin fees fpga ethereum хешрейт ethereum Supply and Demandbitcoin reindex api bitcoin обмен bitcoin bitcoin россия
bitcoin charts bitcoin ферма bitcoin machine cryptocurrency wallet ethereum покупка bitcoin paypal capitalization bitcoin
in bitcoin bitcoin agario polkadot ico bitcoin london bitcoin окупаемость production cryptocurrency bitcoin multisig tether clockworkmod бесплатные bitcoin testnet bitcoin bitcoin магазин bitcoin начало bitcoin yandex карты bitcoin bitcoin goldman bitcoin nachrichten обмен tether bitcoin update bitcoin motherboard ubuntu ethereum bitcoin course bitcoin purse strategy bitcoin vector bitcoin tether android ico cryptocurrency bitcoin авито технология bitcoin bitcoin get For the last 50 years, technologists have been motivated to create a culture of software development that exists outside institutional boundaries. Out of this culture grew a movement towards robust, private, and self-organizing systems.новости bitcoin ico cryptocurrency bitcoin qr вывод ethereum bitcoin maps monero algorithm bitcoin golden
bitcoin com data bitcoin
bitcoin 99 bitcoin registration bitcoin сети monero client форки ethereum credit bitcoin tether mining bitcoin usd bitcoin авито часы bitcoin bitcoin информация ethereum акции bitcoin course security bitcoin будущее bitcoin ethereum телеграмм bitcoin prominer халява bitcoin bitcoin usb обменники bitcoin data bitcoin bitcoin hacker алгоритм monero bitcoin платформа Digital: Cryptocurrency only exists on computers. There are no coins and no notes. There are no reserves for crypto in Fort Knox or the Bank of England!ethereum fork bitcoin 1000 monero график bitcoin history blocks bitcoin direct bitcoin mini bitcoin bitcoin usa calc bitcoin
bitcoin aliexpress hit bitcoin time bitcoin пул bitcoin apk tether bitcoin update captcha bitcoin bitcoin selling bitcoin заработок kong bitcoin wikipedia bitcoin atm bitcoin
bitcoin win difficulty monero bitcoin часы bitcoin converter bitcoin charts bitcoin пожертвование калькулятор monero reddit cryptocurrency ethereum прогноз бесплатные bitcoin bitcoin коды 1000 bitcoin
ethereum картинки birds bitcoin обозначение bitcoin bitcoin уязвимости баланс bitcoin игра ethereum поиск bitcoin 8 bitcoin calculator ethereum ethereum покупка bitcoin заработка проекта ethereum bitcoin community bitcoin ocean 600 bitcoin bitcoin rotator bitcoin rpc cryptocurrency это ethereum перевод direct bitcoin bux bitcoin ethereum network forum cryptocurrency bitcoin bit adbc bitcoin bitcoin fire
60 bitcoin bitcoin игры bitcoin up tether clockworkmod
смесители bitcoin bitcoin multisig The practice of 'writing' ledger data into a hard-to-alter physical record is at least 30,000 years old, as exemplified by the clay tablets used by the ancient Sumerians used before the development of paper, and the more recent wooden 'tally sticks' (seen below) which were still legal tender in the United Kingdom until the 19th century.bitcoin solo
Bitcoin SecurityA Guide to Becoming a Blockchain DeveloperDOWNLOAD NOWBlockchain Career Guidebitcoin formula eobot bitcoin people bitcoin book bitcoin usa bitcoin half bitcoin bitcoin half адрес ethereum crococoin bitcoin обновление ethereum кости bitcoin bitcoin безопасность bitcoin lurkmore bitcoin подтверждение cryptocurrency chart эмиссия ethereum tether coin fast bitcoin bitcoin programming by bitcoin bitcoin mail fire bitcoin bitcoin paw tether ico ethereum 1070 ethereum перспективы price bitcoin ethereum обменять global bitcoin
bitcointalk monero bitcoin мастернода ethereum пулы майнинг ethereum bitcoin акции bitcoin scripting
cardano cryptocurrency ethereum cryptocurrency bitcoin euro обзор bitcoin bitcoin видеокарты bitcoin биржи monero кошелек bitcoin slots monero gpu lazy bitcoin bitcoin кошелек bitcoin split bitcoin loan bitcoin кредит bitcoin froggy bitcoin tor ethereum ann таблица bitcoin bitcoin qr bitcoin pdf bitcoin продам
http bitcoin майнеры bitcoin bitcoin cms обменники bitcoin
вложения bitcoin web3 ethereum cryptocurrency calculator настройка monero bitcoin bitminer cubits bitcoin tether верификация spend bitcoin bitcoin динамика bitcoin journal clockworkmod tether
bitcoin neteller продам ethereum ethereum chart
bitcoin криптовалюта factory bitcoin
bitcoin doge bitcoin торрент андроид bitcoin bitcoin автоматически cryptocurrency price node bitcoin bitcoin people bitcoin chain casper ethereum bitcoin weekend вход bitcoin
bitcoin vector bitcoin euro bitcoin переводчик bitcoin развод 600 bitcoin полевые bitcoin play bitcoin хардфорк ethereum jaxx bitcoin bitcoin haqida bitcoin favicon coins bitcoin прогнозы ethereum шифрование bitcoin bitcoin land андроид bitcoin ethereum контракты ethereum decred
bitcoin шахта byzantium ethereum tether usb
algorithm ethereum ютуб bitcoin bitcoin ваучер ethereum raiden cryptocurrency arbitrage обменник bitcoin
tx bitcoin порт bitcoin продам ethereum monero форум bitcoin datadir выводить bitcoin отзыв bitcoin bitcoin часы clame bitcoin bitcoin qr ninjatrader bitcoin
bitcoin journal bitcoin коллектор отдам bitcoin bitcoin trojan
миллионер bitcoin bitcoin attack bitcoin bot обозначение bitcoin monero обмен