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.
1080 ethereum фри bitcoin analysis bitcoin
new cryptocurrency
bitcoin boxbit alipay bitcoin bitcoin tm transaction bitcoin monero fr ethereum хардфорк компиляция bitcoin doubler bitcoin dag ethereum tp tether clame bitcoin cryptocurrency server bitcoin пулы bitcoin avto bitcoin Blocksproject ethereum
python bitcoin Validate blocks produced by miners, enforcing rules on miners who (if malicious) may be motivated to collude and change the rules.bitcoin аналоги история ethereum обновление ethereum bitcoin 99 цены bitcoin
forbot bitcoin криптовалюта tether продать ethereum bitcoin adder bip bitcoin bitcoin prominer monero node habrahabr bitcoin bitcoin casinos monero hashrate bitcoin space обменники ethereum game bitcoin ethereum core
galaxy bitcoin взлом bitcoin parity ethereum monero прогноз prune bitcoin bitcoin проект bubble bitcoin transactions bitcoin
bitcoin linux bitcoin проблемы форк bitcoin bitcoin казино bitcoin foto bitcoin халява
брокеры bitcoin биржа bitcoin usb tether
wallets cryptocurrency bitcoin puzzle clicker bitcoin claim bitcoin
bitcoin protocol bitcoin yen moon bitcoin bitcoin make film bitcoin bitcoin миксеры 6000 bitcoin зарабатывать bitcoin email bitcoin
ethereum node Recent research on the lightning network shows signs of increased vulnerability due to the centralization of a number of nodes in the network that control a majority of funds. Developers are continuously exploring new possibilities to enhance the privacy and efficiency of the lightning, as well as ways to incorporate other technologies such as Schnorr into the network. There’s no doubt that it’ll be some time before such system-wide updates can successfully take place.One of the first questions that prospective cryptocurrency miners face is whether to mine solo or join a ‘pool’. There are a multitude of reasons both for and against mining pools. Here’s what you need to know.pplns monero проблемы bitcoin динамика bitcoin обновление ethereum bitcoin atm monero fr bitcoin stealer legal bitcoin tether android bitcoin упал bitcoin easy bitcoin лохотрон importprivkey bitcoin debian bitcoin truffle ethereum bitcoin компьютер 600 bitcoin config bitcoin
рынок bitcoin bitcoin waves dog bitcoin сатоши bitcoin cryptocurrency forum bitcoin 100 bitcoin ru проверка bitcoin bitcoin pdf bitcoin nvidia bitcoin multisig php bitcoin server bitcoin магазин bitcoin
bitcoin group bitcoin map bitcoin mastercard bitcoin joker компания bitcoin clicks bitcoin
bitcoin registration blender bitcoin обменник bitcoin tether apk bitcoin скрипт кошель bitcoin monero fee reddit cryptocurrency tether программа strategy bitcoin bitcoin игры ethereum stratum stealer bitcoin bitcoin register dance bitcoin видео bitcoin bitcoin dollar Ключевое слово ethereum twitter bitcoin окупаемость
bitcoin сети 1000 bitcoin bitcoin antminer bitcoin mmgp
зарабатывать bitcoin bitcoin aliens bitcoin блоки home bitcoin ethereum новости dogecoin bitcoin bitcoin neteller
ethereum майнеры ethereum обменять bitcoin network decred cryptocurrency bitcoin в bitcoin trend email bitcoin рубли bitcoin bitcoin goldmine san bitcoin ethereum vk clockworkmod tether
bitcoin loan
ethereum coin
bitcoin boom bitcoin книги покупка ethereum bitcoin goldman bitcoin стратегия panda bitcoin bitcoin код collector bitcoin
криптовалюта tether air bitcoin хабрахабр bitcoin
bitcoin rigs bitcoin loto
bitcoin страна
bitcoin life bitcoin рублей технология bitcoin лохотрон bitcoin сборщик bitcoin bitcoin заработок Since there is no central validator in this network, users do not need to identify themselves when sending bitcoin to others. When a sender initiates a transaction, the protocol checks all previous transactions to confirm the sender has the necessary bitcoin as well as the authority to send them. Put another way, bitcoin users theoretically operate in semi-anonymity and the network is self-policing, ensuring that bad actors cannot be rewarded. сайт ethereum The biggest difference between Ethereum and Bitcoin is the purpose of the two coins.bitcoin nodes bitcoin in
invest bitcoin bitcoin calc 1080 ethereum bitcoin робот bitcoin analysis bitcoin de теханализ bitcoin bitcoin carding спекуляция bitcoin ethereum википедия
ethereum platform bitcoin center bitcoin pro bitcoin demo стратегия bitcoin bitcoin motherboard bitcoin машины pump bitcoin bitcoin example
ico cryptocurrency ethereum supernova символ bitcoin bitcoin blog nicehash bitcoin вебмани bitcoin fpga bitcoin курс ethereum se*****256k1 bitcoin bitcoin scanner bitcoin click app bitcoin tether купить bitcoin anonymous dash cryptocurrency bitcoin 5 форк bitcoin bitcoin download miner monero circle bitcoin bitcoin vector bitcoin generation bitcoin tx bitcoin capitalization bitcoin смесители bitcoin s
кости bitcoin claim bitcoin трейдинг bitcoin ethereum solidity суть bitcoin cryptocurrency trading ethereum frontier раздача bitcoin bitcoin rbc новости bitcoin bitcoin форум monero calc programming bitcoin ethereum transactions bitcoin usa china bitcoin
bitcoin реклама bear bitcoin сбербанк bitcoin wikipedia bitcoin bitcoin fpga double bitcoin программа bitcoin in bitcoin cap bitcoin кран ethereum plasma ethereum ethereum vk planet bitcoin bitcoin calculator bitcoin кэш neo bitcoin
tether верификация ethereum доходность bitcoin valet
autobot bitcoin rpg bitcoin bitcoin qt майнеры monero bitcoin раздача tether limited euro bitcoin
bitcoin project bitcoin lurkmore взломать bitcoin bitcoin dance bitcoin бесплатные usa bitcoin видео bitcoin bitcoin like best bitcoin bitcoin вход ethereum калькулятор
шахты bitcoin bitcoin habr
bitcoin paper кошель bitcoin zona bitcoin mmgp bitcoin ethereum charts bitcoin play bitcoin bloomberg microsoft ethereum инвестирование bitcoin putin bitcoin bitcoin технология книга bitcoin
bitcoin куплю bitcoin x2 bitcoin bounty форки ethereum bitcoin оборот bitcoin instant half bitcoin monero сложность деньги bitcoin email bitcoin bitcoin block bitcoin картинки ethereum токены bitcoin earnings bitcoin double bitcoin golang space bitcoin bitcoin earning кошельки bitcoin bitcoin ставки bitcoin programming bitcoin icons форк bitcoin
bitcoin команды bitcoin passphrase monero nvidia bitcoin banks bitcoin bloomberg bitcoin yen direct bitcoin locals bitcoin сколько bitcoin ico bitcoin bitcoin nachrichten bitcoin tracker bitcoin services nxt cryptocurrency обозначение bitcoin ico bitcoin пожертвование bitcoin
токены ethereum nanopool ethereum bitcoin 3 location bitcoin
вики bitcoin bitcoin ключи bitcoin создатель bitcoin проверить bitcoin запрет day bitcoin Plasma, TrueBit, and Raiden are a few examples of this technology. But they each have a different goal in mind. For instance, TrueBit scales computations by pushing many of them outside of the blockchain, while Raiden increases the number of regular transactions that are possible within the blockchain.The use of networks and nodes in cryptocurrencies.ethereum платформа monero cryptonote
bitcoin monkey карта bitcoin bitcoin hardware bitcoin анализ british bitcoin bitcoin fan ethereum linux bitcoin мошенничество мерчант bitcoin air bitcoin short bitcoin wmx bitcoin ethereum supernova
торги bitcoin ethereum asics bitcoin оборот bitcoin пожертвование
bitcoin сервисы dwarfpool monero bitcoin биржи monero blockchain
mercado bitcoin metropolis ethereum кошельки bitcoin bitcoin matrix bitcoin dynamics ethereum падение bitcoin коды bitcoin cny algorithm bitcoin
gift bitcoin flex bitcoin ethereum blockchain добыча bitcoin bitcoin создатель bitcoin markets tether io краны monero bitcoin apk ethereum news platinum bitcoin обмен tether dwarfpool monero бумажник bitcoin