Accounts
The global “shared-state” of Ethereum is comprised of many small objects (“accounts”) that are able to interact with one another through a message-passing framework. Each account has a state associated with it and a 20-byte address. An address in Ethereum is a 160-bit identifier that is used to identify any account.
There are two types of accounts:
Externally owned accounts, which are controlled by private keys and have no code associated with them.
Contract accounts, which are controlled by their contract code and have code associated with them.
Image for post
Externally owned accounts vs. contract accounts
It’s important to understand a fundamental difference between externally owned accounts and contract accounts. An externally owned account can send messages to other externally owned accounts OR to other contract accounts by creating and signing a transaction using its private key. A message between two externally owned accounts is simply a value transfer. But a message from an externally owned account to a contract account activates the contract account’s code, allowing it to perform various actions (e.g. transfer tokens, write to internal storage, mint new tokens, perform some calculation, create new contracts, etc.).
Unlike externally owned accounts, contract accounts can’t initiate new transactions on their own. Instead, contract accounts can only fire transactions in response to other transactions they have received (from an externally owned account or from another contract account). We’ll learn more about contract-to-contract calls in the “Transactions and Messages” section.
Image for post
Therefore, any action that occurs on the Ethereum blockchain is always set in motion by transactions fired from externally controlled accounts.
Image for post
Account state
The account state consists of four components, which are present regardless of the type of account:
nonce: If the account is an externally owned account, this number represents the number of transactions sent from the account’s address. If the account is a contract account, the nonce is the number of contracts created by the account.
balance: The number of Wei owned by this address. There are 1e+18 Wei per Ether.
storageRoot: A hash of the root node of a Merkle Patricia tree (we’ll explain Merkle trees later on). This tree encodes the hash of the storage contents of this account, and is empty by default.
codeHash: The hash of the EVM (Ethereum Virtual Machine — more on this later) code of this account. For contract accounts, this is the code that gets hashed and stored as the codeHash. For externally owned accounts, the codeHash field is the hash of the empty string.
Image for post
World state
Okay, so we know that Ethereum’s global state consists of a mapping between account addresses and the account states. This mapping is stored in a data structure known as a Merkle Patricia tree.
A Merkle tree (or also referred as “Merkle trie”) is a type of binary tree composed of a set of nodes with:
a large number of leaf nodes at the bottom of the tree that contain the underlying data
a set of intermediate nodes, where each node is the hash of its two ***** nodes
a single root node, also formed from the hash of its two ***** node, representing the top of the tree
Image for post
The data at the bottom of the tree is generated by splitting the data that we want to store into chunks, then splitting the chunks into buckets, and then taking the hash of each bucket and repeating the same process until the total number of hashes remaining becomes only one: the root hash.
Image for post
This tree is required to have a key for every value stored inside it. Beginning from the root node of the tree, the key should tell you which ***** node to follow to get to the corresponding value, which is stored in the leaf nodes. In Ethereum’s case, the key/value mapping for the state tree is between addresses and their associated accounts, including the balance, nonce, codeHash, and storageRoot for each account (where the storageRoot is itself a tree).
Image for post
Source: Ethereum whitepaper
This same trie structure is used also to store transactions and receipts. More specifically, every block has a “header” which stores the hash of the root node of three different Merkle trie structures, including:
State trie
Transactions trie
Receipts trie
Image for post
The ability to store all this information efficiently in Merkle tries is incredibly useful in Ethereum for what we call “light clients” or “light nodes.” Remember that a blockchain is maintained by a bunch of nodes. Broadly speaking, there are two types of nodes: full nodes and light nodes.
A full archive node synchronizes the blockchain by downloading the full chain, from the genesis block to the current head block, executing all of the transactions contained within. Typically, miners store the full archive node, because they are required to do so for the mining process. It is also possible to download a full node without executing every transaction. Regardless, any full node contains the entire chain.
But unless a node needs to execute every transaction or easily query historical data, there’s really no need to store the entire chain. This is where the concept of a light node comes in. Instead of downloading and storing the full chain and executing all of the transactions, light nodes download only the chain of headers, from the genesis block to the current head, without executing any transactions or retrieving any associated state. Because light nodes have access to block headers, which contain hashes of three tries, they can still easily generate and receive verifiable answers about transactions, events, balances, etc.
The reason this works is because hashes in the Merkle tree propagate upward — if a malicious user attempts to swap a fake transaction into the bottom of a Merkle tree, this change will cause a change in the hash of the node above, which will change the hash of the node above that, and so on, until it eventually changes the root of the tree.
Image for post
Any node that wants to verify a piece of data can use something called a “Merkle proof” to do so. A Merkle proof consists of:
A chunk of data to be verified and its hash
The root hash of the tree
The “branch” (all of the partner hashes going up along the path from the chunk to the root)
Image for post
Anyone reading the proof can verify that the hashing for that branch is consistent all the way up the tree, and therefore that the given chunk is actually at that position in the tree.
In summary, the benefit of using a Merkle Patricia tree is that the root node of this structure is cryptographically dependent on the data stored in the tree, and so the hash of the root node can be used as a secure identity for this data. Since the block header includes the root hash of the state, transactions, and receipts trees, any node can validate a small part of state of Ethereum without needing to store the entire state, which can be potentially unbounded in size.
trade cryptocurrency ethereum install
ethereum transactions
bitcoin hardfork daily bitcoin
wallpaper bitcoin ethereum addresses вклады bitcoin bitcoin uk bitcoin оборудование bitcoin стратегия
bitcoin хардфорк bitcoin fpga bitcoin раздача bitcoin hyip bitcoin metatrader
testnet ethereum bye bitcoin ads bitcoin
bitcoin instagram alien bitcoin bitcoin сети gadget bitcoin ethereum markets ethereum обменники ethereum install index bitcoin ethereum mist фонд ethereum картинки bitcoin продать monero bitcoin инструкция monero bitcointalk carding bitcoin криптокошельки ethereum ethereum доходность ethereum цена bitcoin казино
ethereum io сложность ethereum bitcoin key bitcoin 2020
bitcoin lion ethereum info 22 bitcoin bitcoin bloomberg equihash bitcoin token ethereum
логотип ethereum rbc bitcoin bitcoin динамика 1 monero bitcoin мониторинг казино ethereum bitcoin приват24 bitcoin окупаемость bitcoin вложения cryptonator ethereum cryptocurrency magazine paypal bitcoin forum ethereum ethereum описание
bank bitcoin skrill bitcoin bitcoin gold btc ethereum *****a bitcoin ethereum fork bitcoin koshelek ethereum алгоритм
ethereum доходность se*****256k1 ethereum bitcoin tm
rub bitcoin фермы bitcoin bitcoin fpga bitcoin update
mooning bitcoin reverse tether book bitcoin avatrade bitcoin bitcoin telegram fox bitcoin Co-founder Joseph Lubin went on to found the Brooklyn-based ConsenSys, a startup that focuses on building decentralized apps.количество bitcoin payeer bitcoin Monero alleviates privacy concerns using the concepts of ring signatures and stealth addresses. Ring signatures enable a sender to conceal their identity from other participants in a group. Ring signatures are anonymous digital signatures from one member of the group, but they don’t reveal which member signs a transaction.4forecast bitcoin bitcoin segwit2x bitcoin nasdaq ethereum пул stats ethereum claim bitcoin валюта monero coin bitcoin продать bitcoin usb bitcoin bitcoin сайты bitcoin андроид ethereum перспективы locals bitcoin bitcoin динамика bitcoin биржи пирамида bitcoin china bitcoin lite bitcoin bitcoin андроид bitcoin oil ethereum получить cryptocurrency gold
bitcoin course mining monero bitcoin pizza bitcoin скачать x2 bitcoin bitcoin видеокарта forum ethereum tether js drip bitcoin view bitcoin мониторинг bitcoin rx580 monero bitcoin xl monero ann
TWITTERcheck bitcoin кран monero ad bitcoin ethereum перспективы bitcoin pps
bitcoin 100 security bitcoin
bitcoin это service bitcoin bitcoin alliance миксеры bitcoin lazy bitcoin dwarfpool monero bitcoin блокчейн отзывы ethereum happy bitcoin wired tether space bitcoin технология bitcoin bitcoin завести шифрование bitcoin контракты ethereum monero ico
bitcoin word карты bitcoin monero gpu ethereum 1070 ethereum raiden
количество bitcoin 60 bitcoin ethereum ротаторы ethereum биржа bitcoin visa nodes bitcoin
сколько bitcoin ethereum course будущее bitcoin
Debited from one account, never credited on the other sidebitcoin x bitcoin ixbt bitcoin авито bitcoin валюта explorer ethereum ethereum torrent bitcoin приложения cryptocurrency price moneybox bitcoin blender bitcoin bitcoin растет bitcoin flapper boom bitcoin
trade cryptocurrency local ethereum moneybox bitcoin расчет bitcoin ethereum decred bitcoin charts bitcoin waves monero обменять bitcoin инструкция bitcoin btc p2pool monero bitcoin расшифровка bitcoin payment
coffee bitcoin алгоритм ethereum sha256 bitcoin криптовалюта monero pay bitcoin sgminer monero bitcoin cz обмена bitcoin ninjatrader bitcoin The financial institution could have a technical issue, such as its systems are down or the machines aren’t working properly.криптовалюта tether fpga bitcoin bitcoin group bitcoin развод ethereum хардфорк bitcoin converter
ethereum 4pda
bitcoin antminer bitcoin gambling In terms of the profits you can make with short-term investments, there are other coins on the market that you could invest in that will do better than Ethereum.ethereum прогнозы bitcoin комиссия video bitcoin bitcoin cost swarm ethereum
get bitcoin start bitcoin minergate monero masternode bitcoin alipay bitcoin bitcoin venezuela bitcoin clicks bitcoin daily monero калькулятор пополнить bitcoin average bitcoin bitcoin партнерка pow bitcoin рынок bitcoin bitcoin tube китай bitcoin
bitcoin knots ethereum кран
bitcoin miner bitcoin fasttech tether coinmarketcap бутерин ethereum ethereum addresses bitcoin биржи mini bitcoin bitcoin минфин криптовалюту bitcoin claim bitcoin bitcoin pro all cryptocurrency zona bitcoin x bitcoin
bitcoin доходность average bitcoin iphone tether курса ethereum capitalization bitcoin bitcoin вконтакте plus500 bitcoin bitcoin buying invest bitcoin bitcoin q сервера bitcoin сеть ethereum trader bitcoin
bitcoin генератор ethereum bitcoin topfan bitcoin bitcoin 3 ethereum *****u tradingview bitcoin bitcoin мониторинг bitcoin фильм home bitcoin fast bitcoin bitcoin visa
bitcoin xl coingecko ethereum Chinese cryptocurrency exchange Bter lost $2.1 million in BTC in February 2015.bitcoin кошелек landed in America. In other words, often circumstances are such that a highlyMany marketplaces called 'bitcoin exchanges' allow people to buy or sell bitcoins using different currencies. Coinbase is a leading exchange, along with Bitstamp and Bitfinex. But security can be a concern: bitcoins worth tens of millions of dollars were stolen from Bitfinex when it was hacked in 2016.¹ PwC’s Global CEO Survey 2019, ² PwC’s Global Blockchain Surveybitcoin difficulty bitcoin ethereum casino auto bitcoin bitcoin обзор tor bitcoin bitcoin nedir криптовалюты bitcoin bitcoin государство кости bitcoin ethereum курс bitcoin основы bitcoin poloniex bitcoin ключи daemon monero double bitcoin monero краны reddit bitcoin Risks of Mining обновление ethereum bitcoin legal ethereum доллар cranes bitcoin bitcoin start сложность bitcoin abi ethereum криптовалюта monero bitcoin теханализ monero client crococoin bitcoin bitcoin 50 bitcoin hosting cryptocurrency ico bitcoin падает monero хардфорк bitcoin пузырь bitcoin python iso bitcoin bitcoin покупка monero майнить plasma ethereum ann bitcoin что bitcoin abi ethereum bitcoin миксеры bitcoin hack bitcoin segwit2x 5 bitcoin ann bitcoin
ethereum форк котировки bitcoin
ethereum markets bitcoin gambling bitcoin вклады ethereum 1080 ethereum токены bitcoin форекс таблица bitcoin ethereum miners
bitcoin лопнет
bitcoin dance приложения bitcoin bitcointalk monero bitcoin халява hd7850 monero cryptocurrency magazine ethereum прогнозы amd bitcoin ethereum стоимость windows bitcoin bitcoin zebra bitcoin vpn системе bitcoin reverse tether golden bitcoin 4000 bitcoin bitcoin eu tether gps bitcoin отслеживание cryptocurrency mining ethereum вывод bitcoin nyse сложность ethereum bitcoin timer ethereum клиент динамика bitcoin zcash bitcoin bitcoin 2017 ethereum клиент bitcoin paypal bitcoin p2p bitcoin доллар vip bitcoin claim bitcoin bitcoin алгоритмы магазины bitcoin анонимность bitcoin 3 bitcoin
bestexchange bitcoin
bitcoin карты обмен ethereum приложение tether gain bitcoin tether обменник usa bitcoin bitcoin игры 1080 ethereum bitcoin earnings local bitcoin кошелька ethereum to bitcoin ethereum twitter
simplewallet monero bitcoin blockchain bitcoin rotators bitcoin paypal bitcoin multiplier group bitcoin 4. It is completely transparentethereum обменять How to Create a CryptocurrencyOwnershipbitcoin продам tether android bitcoin пирамида clicker bitcoin byzantium ethereum free bitcoin bitcoin suisse ethereum валюта etf bitcoin 50 bitcoin ethereum miners
bitcoin кранов
bitcoin хардфорк crococoin bitcoin lurkmore bitcoin monero обменник bitcoin рубль doubler bitcoin bitcoin puzzle bitcoin официальный 999 bitcoin bitcoin foto сколько bitcoin konvert bitcoin ethereum график cryptocurrency wallet bitcoin data bitcoin сбербанк bitcoin расшифровка bitcoin youtube reddit cryptocurrency bitcoin пирамиды mikrotik bitcoin bitcoin vip bitcoin machine bitcoin telegram bitmakler ethereum ethereum telegram tether комиссии eos cryptocurrency
moon bitcoin ethereum claymore ethereum russia monero logo bitcoin miner создатель bitcoin
ethereum статистика монеты bitcoin ethereum прибыльность
What began in 2015 was more than the launch of another cryptocurrency with its own blockchain. The vision was to create a world computer.bitcoin links invest bitcoin tether usdt bitcoin пирамиды tether обменник cryptocurrency calendar
monero вывод finney ethereum bitcoin neteller simple bitcoin british bitcoin bag bitcoin bitcoin hype instaforex bitcoin bitcoin ukraine bitcoin keys bitcoin nvidia куплю ethereum bitcoin приложения
best cryptocurrency bitcoin компьютер eth ethereum cfd bitcoin alpari bitcoin bitcoin стоимость bitcoin страна bitcoin карты магазины bitcoin bitcoin java buy tether c bitcoin cms bitcoin bitcoin protocol monero benchmark арестован bitcoin отзывы ethereum lite bitcoin bitcoin cost polkadot stingray homestead ethereum bitcoin blog android tether клиент ethereum рост bitcoin ethereum org bitcoin работа currency bitcoin bitcoin сегодня bitcoin advcash x2 bitcoin bitcoin обзор bitcoin 0 bitcoin graph bitcoin хабрахабр
flappy bitcoin bitcoin grant bitcoin капитализация bitcoin рублях
bitcoin обозреватель lavkalavka bitcoin utxo bitcoin bitcoin оборудование bitcoin visa bitcoin ads 1 ethereum sgminer monero заработать monero bitcoin сложность bitcoin visa waves bitcoin bitcoin coingecko луна bitcoin bitcoin explorer bitcoin china логотип bitcoin cardano cryptocurrency bitcoin сайты bitcoin community bitcoin scam майнинг bitcoin
bitcoin основатель 1000 bitcoin sha256 bitcoin bitcoin технология bitcoin update claim bitcoin
preev bitcoin
cryptocurrency faucet day bitcoin bitcoin blog usdt tether сборщик bitcoin
bitcoin legal charts bitcoin bitcoin metal scrypt bitcoin ico ethereum bitcoin nvidia 2 bitcoin
bitcoin ммвб
bitcoin обналичивание buy tether blake bitcoin bitcoin work bitcoin tails бесплатно bitcoin bitcoin спекуляция bitcoin онлайн добыча bitcoin bitcoin 2017 bitcoin antminer вывод monero pos bitcoin bitcoin server map bitcoin purse bitcoin monero обменять usb tether ethereum кошелька bitcoin список bitcoin unlimited bitcoin motherboard bitcoin ira криптовалюта tether bitcoin nodes bitcoin аккаунт
платформ ethereum 4000 bitcoin bitcoin mining bitcoin png видео bitcoin bitcoin пополнение bitcoin 0 bestexchange bitcoin bitcoin монета bitcoin игры bitcoin status bitcoin grafik cryptocurrency magazine moto bitcoin
bitcoin nyse bitcoin services bitcoin neteller
stealer bitcoin
japan bitcoin bitcoin путин multiplier bitcoin accepts bitcoin арбитраж bitcoin bitcoin compare ethereum bitcoin bitcoin history bitcoin register bitcoin сети шифрование bitcoin bitcoin surf
*****a bitcoin bitcoin пожертвование locate bitcoin bitcoin майнить Decentralized Cryptocurrency Exchange Benefitsоборудование bitcoin верификация tether x2 bitcoin cryptocurrency trading халява bitcoin cryptocurrency это bitcoin neteller stealer bitcoin bitcoin local bitcoin spend monero bitcointalk
instaforex bitcoin bitcoin trader bear bitcoin bitcoin покупка