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 bitcoin scrypt логотип bitcoin
ethereum node
магазины bitcoin
bitcoin автокран neo bitcoin новости bitcoin перспектива bitcoin iobit bitcoin
bitcoin sberbank bitcoin direct bitcoin etf конференция bitcoin r bitcoin goldmine bitcoin bitcoin trojan bitcoin buying ethereum 1070 torrent bitcoin bitcoin journal википедия ethereum bitcoin code blogspot bitcoin монет bitcoin автосборщик bitcoin By JAKE FRANKENFIELDethereum russia algorithm ethereum calculator cryptocurrency боты bitcoin
bitcoin de bitcoin net bitcoin php se*****256k1 bitcoin ферма ethereum key bitcoin
платформы ethereum bitcoin traffic bitcoin пицца bitcoin валюта xmr monero bitcoin video ethereum заработать
bitcoin депозит
bitcoin millionaire торги bitcoin ферма bitcoin bitcoin motherboard bitcoin сша майнер ethereum перспективы ethereum Across the broader blockchain ecosystem, current staking rates (the percentage of total coins engaged in staking) vary. On the most popular PoS blockchains such as Tezos and Cosmos, they approach 80%. At the same time, the participation rates for some smaller networks can be as low as 10-20%. How these rates will affect market volumes and returns is something to keep an eye on.bitcoin завести collector bitcoin bitcoin cache 999 bitcoin bitcoin login получение bitcoin bitcoin apple
1000 bitcoin
monero gpu kong bitcoin bitcoin зарегистрироваться bitcoin matrix
coingecko bitcoin bitcoin чат monero wallet cryptocurrency charts trading bitcoin bitcoin расшифровка bitcoin pizza
bitcoin форумы bitcoin sweeper bitcoin slots dash cryptocurrency cubits bitcoin bitcoin mail bitcoin widget bitcoin options
bitcoin obmen bitcoin rpg акции ethereum
bitcoin fund monero кошелек byzantium ethereum зарегистрироваться bitcoin bitcoin example mini bitcoin delphi bitcoin
сложность ethereum bitcoin goldman bitcoin bitrix
клиент bitcoin top tether bitcoin weekend обмен tether
лотерея bitcoin
сколько bitcoin капитализация bitcoin bitcoin 1000 qiwi bitcoin ann bitcoin bitcoin трейдинг get bitcoin bitcoin generation cryptocurrency ethereum
bitcoin прогноз abc bitcoin stealer bitcoin
майнить monero bitcoin analysis бутерин ethereum miningpoolhub ethereum bitcoin fan china bitcoin gift bitcoin работа bitcoin excel bitcoin bitcoin microsoft ethereum php coingecko bitcoin
bitcoin мастернода теханализ bitcoin bonus bitcoin flex bitcoin tether coin купить ethereum nvidia bitcoin Precision10−12bitcoin roulette bitcoin настройка withdraw bitcoin ethereum cryptocurrency bitcoin make ethereum russia bitcoin best ethereum wiki bitcoin приложение bitcoin ubuntu bitcoin 0 mining cryptocurrency geth ethereum bitcoin государство ethereum telegram stock bitcoin bitcoin dollar график bitcoin майнинг ethereum обмена bitcoin bitcoin обвал bitcoin взлом динамика ethereum bitcoin legal bitcoin краны bitcoin терминал
фермы bitcoin заработок bitcoin сатоши bitcoin bot bitcoin bitcoin зебра Spend Bitcoinutxo bitcoin Bitcoin, on the other hand, has so many devices verifying the network that they collectively consume more electricity per year than a small country, like Greece or Switzerland. The cost and computing power to try to attack the Bitcoin network is immense, and there are safeguards against it even if attempted at that scale by a nation state or other massive entity.cryptocurrency law vip bitcoin bitcoin переводчик monero pro bitcoin reddit bitcoin баланс ethereum coin bitcoin galaxy bitcoin valet bitcoin пирамиды майнинга bitcoin
хешрейт ethereum ethereum btc bitcoin server bitcoin tube checker bitcoin eobot bitcoin forum ethereum In terms of utility, try bringing $250,000 worth of gold through an international airport vs bringing $250,000 worth of bitcoins with you instead, via a small digital wallet, or via an app on your phone, or even just by remembering a 12-word seed phrase. In addition, Bitcoin is more easily verifiable than gold, in terms of being a reserve asset and being used as collateral. It’s more frictionless to transfer than gold, and has a hard-capped supply. And I like gold too; I’ve been long it since 2018, and still am.bitcoin карта And what this means is that a money-based system is not actually something separate from a barter system at all. It’s just a barter system that’s been running for a while. A barter system that has coalesced around one or several commonly traded items.At the same time, the praxis of Initial Coin Distribution (ICO), mostly facilitated by Ethereum‘s smart contracts, gave life to incredibly successful crowdfunding projects, in which often an idea is enough to collect millions of dollars. In the case of 'The DAO,' it has been more than 150 million dollars.monero windows How to Buy ZCash: Where and Howсложность monero easy bitcoin продажа bitcoin bitcoin addnode Think of a railway company. We buy tickets on an app or the web. The credit card company takes a cut for processing the transaction. Blockchains, not only can the railway operator save on credit card processing fees, it can move the entire ticketing process to the blockchain. The two parties in the transaction are the railway company and the passenger. The ticket is a block, which will be added to a ticket blockchain. Just as a monetary transaction on the blockchain is a unique, independently verifiable and unfalsifiable record (like Bitcoin), so can your ticket be. Incidentally, the final ticket blockchain is also a record of all transactions for, say, a certain train route, or even the entire train network, comprising every ticket ever sold, every journey ever taken.node bitcoin bitcoin перевод удвоитель bitcoin ethereum форки bitcoin 2000
bitcoin school bitcoin investment spin bitcoin bitcoin блокчейн bitcoin деньги bitcoin автоматически casper ethereum надежность bitcoin bitcoin center bitcoin ставки bitcoin golden boxbit bitcoin monero core
ethereum crane bitcoin qiwi
ethereum dao japan bitcoin kupit bitcoin bitcoin будущее bitcoin сбор tether 4pda
coins bitcoin история bitcoin
exchanges bitcoin trade cryptocurrency tether купить by bitcoin ethereum swarm ethereum plasma monero xeon компания bitcoin Walmart was facing an issue where people were returning goods citing quality issues. Now, in an organization of Walmart’s size and scope, it was quite a task to determine where bad products originated from within their supply chain. Their supply chain involved the following steps: importprivkey bitcoin
bitcoin golden card bitcoin bitcoin список bitcoin скрипт iota cryptocurrency fx bitcoin addnode bitcoin ethereum plasma
bitcoin кран
bitcoin xl buying bitcoin криптовалюту monero bitcoin script криптовалюту monero china bitcoin pplns monero 1060 monero
bitcoin cap bitcoin халява bitcoin china sun bitcoin bitcoin cap bitcoin multibit qiwi bitcoin
bubble bitcoin pixel bitcoin boxbit bitcoin bitcoin multiply bitcoin investment eth bitcoin ethereum plasma trezor ethereum reddit cryptocurrency bitcoin lucky bitcoin capital bitcoin paw вложения bitcoin monero github bitcoin yen bitcoin книга
alien bitcoin video bitcoin теханализ bitcoin monero usd bitcoin compare 4pda tether monero ico курс ethereum bitcoin scripting bitcoin авто wikipedia cryptocurrency алгоритм bitcoin bip bitcoin
bitcoin шрифт ethereum chaindata cranes bitcoin bitcoin рбк кликер bitcoin monero новости ethereum coins новости monero bitcoin advcash bitcoin kurs pos bitcoin tether usdt форк bitcoin