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 word ethereum cryptocurrency cgminer monero
tether addon
удвоитель bitcoin
alpha bitcoin
реклама bitcoin терминалы bitcoin collector bitcoin кран ethereum сборщик bitcoin bitcoin сбербанк xpub bitcoin
анализ bitcoin
криптовалюта monero продажа bitcoin ethereum supernova bitcoin greenaddress bitcoin биткоин coinmarketcap bitcoin decred ethereum bitcoin биткоин bitcoin safe bitcoin гарант coinbase ethereum monero rur
ethereum game
bitcoin гарант calc bitcoin Exodus – Software Walletкриптовалют ethereum monero difficulty bitcointalk ethereum bitcoin описание платформ ethereum рынок bitcoin auto bitcoin bitcoin информация
connect bitcoin теханализ bitcoin bitcoin sec In some parts of the world, bitcoin is still a more efficient and cheaper way to transfer money across borders, and several remittance startups make use of this feature. Last year, Coinbase added cross-border transfers and custody services for high-volume clients in Asia and Europe. A recent partnership between crypto exchange Bitex and Uruguay-based banking service provider Bantotal now facilitates direct bitcoin payments across 60 banks in Latin America. cryptocurrency calendar bitcoin 3 bitcoin neteller автомат bitcoin cryptocurrency mining
wikileaks bitcoin
bitcoin greenaddress top cryptocurrency short bitcoin bitcoin лайткоин арбитраж bitcoin миксер bitcoin bitcoin trader golang bitcoin sgminer monero digi bitcoin торговля bitcoin новости monero usb bitcoin fasterclick bitcoin
bitcoin hub bcn bitcoin birds bitcoin bio bitcoin hourly bitcoin mooning bitcoin
status bitcoin monero кран bitcoin подтверждение bitcoin attack facebook bitcoin fast bitcoin bitcoin валюта ethereum википедия
bitmakler ethereum rotator bitcoin download tether майнить monero bitcoin land Jan. 3, 2009: The first Bitcoin block is mined, Block 0. This is also known as the 'genesis block' and contains the text: 'The Times 03/Jan/2009 Chancellor on brink of second bailout for banks,' perhaps as proof that the block was mined on or after that date, and perhaps also as relevant political commentary.7TeamClientLanguagebitcoin work бесплатный bitcoin ethereum контракты миллионер bitcoin лотерея bitcoin bye bitcoin bitcoin etf machine bitcoin
андроид bitcoin
reddit bitcoin bitcoin бесплатные займ bitcoin валюты bitcoin взлом bitcoin bitcoin фарм bitcoin кошелька flappy bitcoin world bitcoin ecopayz bitcoin 6000 bitcoin abi ethereum alpari bitcoin
tx bitcoin cryptocurrency tech
bitcoin pools bitcoin майнинг chaindata ethereum Sh*t coinsbitcoin earnings bitcoin оплатить сайт bitcoin best bitcoin asic monero bitcoin bear bitcoin development bitcoin bitminer
monero miner cold bitcoin hourly bitcoin bitcointalk ethereum Consensus code should be ringfenced and rarely touched.monero прогноз 'Not philosophy, fact. One way or other, what you get, you pay for.'A code base high in technical debt means that feature delivery slows to a crawl, which creates a lot of frustration and awkward moments in conversation about business capability. When new developers are hired or consultants brought in, they know that they’re going to have to face confused looks, followed by those newbies trying to hide mild contempt. To tie this back to the tech debt metaphor, think of someone with mountains of debt trying to explain being harassed by creditors. It’s embarrassing, which is, in turn, demoralizing.майнер ethereum
ethereum price japan bitcoin bitcoin minecraft
продажа bitcoin wikileaks bitcoin ethereum майнить bitcoin doge ethereum address bitcoin кошелька spin bitcoin koshelek bitcoin ethereum график
bitcoin баланс калькулятор bitcoin monero форк ethereum pow bitcoin кран bitcoin инвестиции bitcoin суть bitcoin кошелька
bitcoin world bitcoin приват24 tether apk car bitcoin zcash bitcoin смесители bitcoin bitcoin department иконка bitcoin лото bitcoin bitcoin начало рубли bitcoin
bitcoin steam bitcoin database bitcoin io bitcoin картинки ltd bitcoin 100 bitcoin майн ethereum
bitcoin node buy tether bitcoin bloomberg
kurs bitcoin bitcoin knots шифрование bitcoin система bitcoin bitcoin 2 лото bitcoin homestead ethereum
ethereum контракты bitcoin wm алгоритмы ethereum bitcoin москва bitcoin in is bitcoin андроид bitcoin ethereum poloniex bitcoin сбор япония bitcoin ethereum новости вики bitcoin bitcoin отследить bitcoin футболка bitcoin spend amazon bitcoin bitcoin kazanma bitcoin мониторинг ad bitcoin bitcoin system отследить bitcoin кошель bitcoin bitcoin etf pk tether Monero enforces privacy by default. It uses different technologies that complement each other to achieve anonymity and fungibility. It aims to meet two criteria: untraceability (having multiple possible senders for a transaction) and unlinkability (being unable to prove that multiple transactions were sent to the same person). Untraceability protects the sender with ring signatures, while unlinkability protects the receiver with stealth addresses.bitcoin форум monero transaction биржи bitcoin bitcoin видеокарта golden bitcoin график monero команды bitcoin