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 info future bitcoin bistler bitcoin
теханализ bitcoin
bitcoin презентация mixer bitcoin ethereum russia
okpay bitcoin pool bitcoin js bitcoin cryptonator ethereum 1 monero buy tether bitcoin tails bitcoin play prune bitcoin
monero новости 8 bitcoin bitcoin hyip
теханализ bitcoin bitcoin 1070 wikileaks bitcoin комиссия bitcoin торги bitcoin index bitcoin
bitcoin 2 bitcoin история poloniex monero bitcoin анализ bitcoin hash l bitcoin bitcoin сеть ethereum контракты фарм bitcoin bitcoin planet ethereum пулы skrill bitcoin ethereum swarm takara bitcoin cryptocurrency tech bitcoin usd uk bitcoin bitcoin обучение ethereum addresses faucet cryptocurrency ethereum упал ethereum cryptocurrency ico cryptocurrency pos ethereum bitcoin mail bitcoin минфин bitcoin rotator bitcoin coin poloniex monero trezor bitcoin market bitcoin love bitcoin
bitcoin виджет bitcoin satoshi эмиссия bitcoin bitcoin сервер lucky bitcoin казино ethereum bitcoin куплю lurkmore bitcoin bitcoin халява charts bitcoin 6000 bitcoin график monero bitcoin vpn
keystore ethereum bitcoin cost
bitcoin cgminer оплатить bitcoin эмиссия ethereum bitcoin sha256 bitcoin hd bitcoin london All of the above examples are proof that this technology is here to stay and will be a vital source in the future. So, now that you have gained the theoretical knowledge, it’s time for you to master the technique and utilize tools like Ganache, Truffle, Meta Mask, and Geth to build Blockchain applications, learn how to set up a private blockchain network using Hyperledger Composer, and deploy smart contracts on Ethereum through the Blockchain Certification training course.1024 bitcoin dwarfpool monero faucet cryptocurrency x bitcoin bitcoin сервисы torrent bitcoin bitcoin продажа ethereum виталий polkadot alpari bitcoin scrypt bitcoin bitcoin 5 отзыв bitcoin china cryptocurrency weekly bitcoin
fpga ethereum bitcoin куплю
bitcoin click bitcoin приложение bitcoin xt cryptocurrency chart подарю bitcoin bitcoin x2
bitcoin кранов bitcoin обменник bitcoin иконка ethereum ann bitcoin kazanma bitcoin putin currency bitcoin ethereum цена ethereum myetherwallet bestexchange bitcoin polkadot stingray bitcoin knots ethereum homestead bank bitcoin компьютер bitcoin bitcoin game
кран bitcoin
hit bitcoin bitcoin links currency bitcoin основатель ethereum life bitcoin purse bitcoin
bitcoin hashrate alpari bitcoin bitcoin synchronization что bitcoin яндекс bitcoin bitcoin cc
эмиссия ethereum monero blockchain bitcoin форк bitcoin c in bitcoin agario bitcoin bitcoin reserve video bitcoin cryptocurrency trading bitcoin вход
monero 1070 bitcoin nachrichten математика bitcoin сборщик bitcoin ethereum pool bitcoin antminer 999 bitcoin reklama bitcoin bitcoin сигналы боты bitcoin bitcoin пул
bitcoin sha256 vps bitcoin скачать ethereum bitcoin 9000 2 bitcoin bitcoin запрет advcash bitcoin iobit bitcoin динамика ethereum bitcoin blog bitcoin dynamics ethereum хешрейт mooning bitcoin free bitcoin tether обменник bitcoin parser bitcoin flapper minergate ethereum hit bitcoin ethereum контракты ethereum пул remix ethereum bitcoin traffic обмена bitcoin coindesk bitcoin bitcoin hack bitcoin c bitcoin ixbt bitcoin india 4 bitcoin
bitcoin algorithm bitcoin комментарии вложить bitcoin earn bitcoin tether майнинг bitcoin putin data bitcoin monero dwarfpool cubits bitcoin протокол bitcoin ninjatrader bitcoin bitcoin telegram дешевеет bitcoin bitcoin банк bitcoin greenaddress monero amd ethereum сбербанк bitcoin bubble china bitcoin
bitcoin заработок car bitcoin bitcoin q карты bitcoin bitcoin transactions bitcoin автокран bitcoin обменник bitcoin цена bitcoin casinos
bitcoin block monero сложность ethereum habrahabr ethereum serpent bitcoin carding bitcoin капитализация bitcoin node GermanyThis is where you and other miners share your resources (such as computing power and electricity), which gives you more of a chance to get the block reward as you are able to generate more power! This also means that you will get more of a consistent income.miner monero talk bitcoin bitcoin сбербанк кредит bitcoin analysis bitcoin bitcoin block bitcoin 3 ethereum сложность monero usd bitcoin обменники tracker bitcoin bitcoin half bitcoin qiwi
bitfenix bitcoin отзыв bitcoin cryptocurrency trade monero криптовалюта карты bitcoin получение bitcoin bitcoin футболка bitcoin кредиты кошель bitcoin создатель bitcoin bitcoin обои avalon bitcoin bitcoin рубль bitcoin заработать
bitcoin ruble bitcoin казахстан терминалы bitcoin kaspersky bitcoin bitcoin mempool blockchain bitcoin краны ethereum video bitcoin Proof-of-Stake Technologyобмен bitcoin
bitcoin тинькофф
rpg bitcoin script bitcoin bitcoin зарегистрироваться red bitcoin bitcoin land hit bitcoin bitcoin p2p bitcoin google фьючерсы bitcoin bitcoin froggy ethereum go wallet tether flappy bitcoin bitcoin стоимость
bitcoin conveyor reddit ethereum 4pda tether 6000 bitcoin bitcoin цены ethereum конвертер bitcoin страна finney ethereum bitcoin poloniex bitcoin keywords monero сложность
tether майнинг china bitcoin 3d bitcoin ethereum io claim bitcoin bistler bitcoin bitcoin bazar bitcoin роботы is bitcoin rocket bitcoin alpha bitcoin создать bitcoin ферма ethereum tether tools ethereum coins
bitcoin prominer ethereum contract кости bitcoin bitcoin boom vk bitcoin tether usdt captcha bitcoin bitcoin сбор nicehash monero bitcoin surf polkadot блог invest bitcoin Bitcoins are traded from one personal wallet to another. A wallet is a small personal database that is stored on a computer drive, smartphone, tablet, or in the cloud.