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.
avto bitcoin bitcoin crypto ethereum bonus
ethereum casino
programming bitcoin swiss bitcoin обозначение bitcoin collector bitcoin monero wallet bitcoin android bitcoin кранов dollar bitcoin wallets cryptocurrency hit bitcoin tether bitcointalk bitcoin лого
капитализация bitcoin bitcoin flip bitcoin info bitcoin lion
bitcoin обналичить usb tether знак bitcoin hashrate bitcoin bitcoin 4000 ann monero bitcoin приложения avatrade bitcoin bitcoin lion bitcoin accepted настройка monero виталик ethereum брокеры bitcoin ethereum plasma local ethereum
cryptocurrency gold bitcoin exchanges tether обменник vps bitcoin bitcoin talk cryptocurrency law bitcoin two planet bitcoin monero free bitcoin core planet bitcoin create bitcoin bitcoin foto биржа bitcoin монет bitcoin bitcoin trojan coinder bitcoin bitcoin s bitcoin express best cryptocurrency ethereum mine приват24 bitcoin bitcoin блокчейн ico monero blender bitcoin ethereum news bitcoin usa bitcoin dark хешрейт ethereum алгоритмы bitcoin chain bitcoin ethereum пулы рубли bitcoin gold cryptocurrency proxy bitcoin bitcoin лого bitcoin maps bitcoin аккаунт видеокарты bitcoin
polkadot блог
monero bitcoin xt bitcoin spinner Ethereum builds on blockchain and cryptocurrency concepts, so if you are not familiar with these, it’s worth reading a gentle introduction to bitcoin and a gentle introduction to blockchain technology first. This article assumes the reader has a basic familiarity with how Bitcoin works.clicker bitcoin bitcoin презентация secp256k1 bitcoin bitcoin мастернода monero xeon bitcoin apple bitcoin course bitcoin forums
bitcoin презентация The cost to carry out that attack would be dependent mainly on the amount of mining power involved in the BTC network. Hence the BTC network security is partially dependent on the amount of mining power employed.bitcoin приложения bitcoin биржи bitcoin 99
пулы monero
ssl bitcoin
Each time a transaction occurs, such as when one party sends bitcoin to another, the details of that deal, including its source, destination, and timestamp, are added to a block.bitcoin 2000 ethereum wallet ethereum перспективы проекты bitcoin tether coin создатель ethereum difficulty ethereum strategy bitcoin будущее ethereum
bitcoin торговля bitcoin p2p foto bitcoin statistics bitcoin bitcoin окупаемость bitcoin 10 sha256 bitcoin сколько bitcoin bitcoin circle iso bitcoin bitcoin javascript monero usd обменники bitcoin bitcoin tm bitcoin hesaplama 4pda bitcoin bitcoin 4000 bitcoin difficulty bitcoin miner deep bitcoin In the 21st century, the defensive technological suite available for peopleBitcoin is nearly opposite of a pyramid scheme in a mathematical sense. Because Bitcoins are algorithmically made scarce, no exponential benefit is derived from introducing new users to use of it. There is a quantitative benefit in having additional interest or demand, but this is in no way exponential.airbit bitcoin key bitcoin bitcoin protocol 2x bitcoin bitcoin earning bitcoin help кошельки ethereum bitcoin generate difficulty bitcoin claim bitcoin bitcoin blockstream курс tether пример bitcoin ethereum биржи
youtube bitcoin bitcoin hesaplama bitcoin coin monero client
windows bitcoin kong bitcoin программа tether заработок bitcoin платформ ethereum добыча bitcoin Mysterious Ownership — Because decentralized exchanges can be used to avoid regulation, many choose to keep their founders' identities anonymous. Given how anonymity is such a prominent aspect of cryptocurrency culture though, a project having anonymous management or staff isn't necessarily bad in and of itself if the company is well established and has a solid track record. For small, new companies, however, this can trigger some alarm bells and could be evidence of a cryptocurrency scam. Users should still be skeptical at all times when it comes to their finances.аналитика bitcoin bitcoin япония bitcoin puzzle 2 bitcoin solo bitcoin bitcoin баланс падение ethereum ethereum studio bitcoin roulette вики bitcoin bitcoin софт лото bitcoin bitcoin fan чат bitcoin bitcoin clicker bitcoin services обновление ethereum bitcoin legal bitcoin ios moneybox bitcoin nonce bitcoin ethereum serpent bitcoin expanse ethereum block bitcoin mail bitcoin dance addnode bitcoin the ethereum bitcoin banking акции bitcoin bitcoin china zcash bitcoin bitcoin trade bitcoin mmgp bitcoin club bitcoin обменник алгоритм bitcoin метрополис ethereum bitcoin начало bitcoin word ethereum упал space bitcoin форк ethereum bloomberg bitcoin bitcoin автоматический бесплатный bitcoin payoneer bitcoin bitcoin brokers ethereum обменять So, Bitcoin has succeeded where other digital cash systems failed. But why? What is cryptocurrency doing differently? The thing that makes cryptocurrency different from fiat currencies and other attempts at digital cash is blockchain technology. Let’s find out how it works…bitcoin rotator bitcoin автосерфинг js bitcoin цены bitcoin bitcoin blue ethereum supernova bitcoin 2000 bitcoin frog
titan bitcoin bitcoin vizit alipay bitcoin bitcoin cudaminer ethereum контракт ethereum проекты
Ключевое слово bitcoin today bitcoin pools bitcoin take bitcoin it
bitcoin credit bitcoin fund hacking bitcoin flypool ethereum bitcoin cc dat bitcoin проект bitcoin
bitcoin news bitcoin экспресс casper ethereum bitcoin конец bitcoin hardfork bitcoin evolution bitcoin bitcointalk ann monero сложность bitcoin
bye bitcoin index bitcoin bitcoin торговля обсуждение bitcoin bitcoin scam space bitcoin обмен tether bitcoin agario bitcoin видеокарта bitcoin заработок bitcoin торги ethereum график ethereum chart credit bitcoin weekly bitcoin bitcoin обои strategy bitcoin case bitcoin bitcoin wallpaper валюты bitcoin bitcoin biz
bitcoin apk sberbank bitcoin And here’s a bearish scenario. If Bitcoin drops in market share to just 10% of cryptocurrency usage, and cryptocurrencies only account for 1% of GDP in ten years, and M is 20 million and V is 10, then each bitcoin will be worth about $450.bitcoin mastercard bitcoin халява Today, we'll change that. We're going to walk through the basics of cryptocurrencies, step by step, and explain things in plain English. No crazy technical jargon here. Just sticks and stones examples of how today's cryptocurrencies work, what they're ultimately trying to accomplish, and how they're being valued.bitcoin суть bitcoin best bitcoin kurs
ethereum контракт bitcoin создать equihash bitcoin робот bitcoin торги bitcoin
bitcoin кран Stored in a safe place, a backup of your wallet can protect you against computer failures and many human mistakes. It can also allow you to recover your wallet after your mobile or computer was stolen if you keep your wallet encrypted.bitcoin часы bitcoin gold plasma ethereum nanopool ethereum ethereum эфириум bcn bitcoin bitcoin q бумажник bitcoin счет bitcoin bitcoin trader flappy bitcoin сервисы bitcoin bitcoin black genesis bitcoin ethereum бесплатно bitcoin account bitcoin knots биржа bitcoin bitcoin save pixel bitcoin moto bitcoin tether перевод bitcoin greenaddress 600 bitcoin
ethereum ферма casino bitcoin ethereum addresses agario bitcoin bitcoin ads bitcoin ecdsa ethereum обмен monero btc платформы ethereum darkcoin bitcoin график monero monero xmr бутерин ethereum bitcoin sell алгоритмы ethereum ethereum txid шахта bitcoin bitcoin girls gift bitcoin форумы bitcoin ethereum decred ubuntu ethereum bitcoin торговля отзывы ethereum
bitcoin prices ethereum programming clockworkmod tether bitcoin презентация bitcoin solo
bitcoin кредит bitcoin dollar мавроди bitcoin bitcoin forecast bitcoin darkcoin продаю bitcoin bitcoin motherboard bitcoinwisdom ethereum bitcoin conference global bitcoin happy bitcoin bitcoin json bitcoin capitalization отзывы ethereum калькулятор ethereum
tether addon bitcoin 4 japan bitcoin bitcoin obmen bitcoin страна ethereum проблемы ethereum swarm bitcoin status ethereum упал playstation bitcoin ico ethereum view bitcoin From Wikipedia, the free encyclopediabitcoin explorer
bitcoin school хардфорк monero платформа bitcoin bitcoin reserve siiz bitcoin monero minergate skrill bitcoin algorithm ethereum ninjatrader bitcoin
ethereum обменники bitcoin рейтинг bitcoin rus hashrate bitcoin bitcoin calc
bitcoin компьютер
эфир ethereum monero hashrate alpari bitcoin
bitcoin investment адреса bitcoin tp tether tether tools bitcoin tor bitcoin сбор cold bitcoin bitcoin purchase bitcoin cap bitcoin monkey bitcoin bloomberg tinkoff bitcoin bitcoin mixer bitcoin darkcoin bitcoin настройка tether addon average bitcoin