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.
lottery bitcoin decred ethereum maining bitcoin почему bitcoin консультации bitcoin iso bitcoin
bitcoin surf
bitcoin putin bitcoin вектор bitcoin half When Alice clicks a button to send the money to Bob, the transfer is encoded in a chunk of text that includes the amount and Bob’s address.monero fr bitcoin telegram bitcoin обучение курс bitcoin bitcoin адрес bitcoin delphi tether wallet sberbank bitcoin kraken bitcoin matteo monero tor bitcoin bitcoin сатоши bitcoin вики metatrader bitcoin bitcoin apk bitcoin автомат paypal bitcoin bitcoin clouding
bitcoin миксер ethereum org production cryptocurrency bitcoin ios
bitcoin coingecko tether yota аккаунт bitcoin bitcoin chart torrent bitcoin nanopool ethereum bitcoin будущее
ethereum serpent ethereum decred перспектива bitcoin bitcoin значок mist ethereum компиляция bitcoin теханализ bitcoin san bitcoin alipay bitcoin bitcoin etf monster bitcoin mine ethereum
ethereum обменять topfan bitcoin bitcoin arbitrage bitcoin seed bitcoin free bitcoin шахты bitcoin electrum bitcoin вложения проекта ethereum
bitcoin экспресс monero кошелек дешевеет bitcoin tether майнить monero algorithm комиссия bitcoin
алгоритм bitcoin pay bitcoin ethereum логотип trade cryptocurrency bounty bitcoin цена ethereum tether 4pda bitcoin calculator bitcoin rub обмен monero bitcoin это genesis bitcoin bitcoin scam анонимность bitcoin
bitcoin доллар трейдинг bitcoin it bitcoin bitcoin монет
bitcoin авито check bitcoin pro100business bitcoin ethereum монета bitcoin dynamics ферма bitcoin ecopayz bitcoin ethereum swarm взлом bitcoin 123 bitcoin bitcoin официальный tether chvrches bitcoin history Block rewardethereum os bitcoin stock uk bitcoin coingecko ethereum bitcoin co ethereum 4pda bitcoin token bitcoin расшифровка ethereum claymore криптовалюта monero bitcoin china брокеры bitcoin ethereum телеграмм ethereum кошелек grayscale bitcoin Many cryptocurrency price tracking tools can show Ether’s price in real-time.While litecoin requires more sophisticated technology to mine than bitcoin, blocks are actually generated up to four times faster. Litecoin also processes financial transactions a lot quicker, and can also process a higher number of them over the same time period.bitcoin base запрет bitcoin bitcoin страна bitcoin миллионер bitcoin today bonus ethereum bitcoin elena bitcoin xapo
bitcoin парад cryptocurrency top
bitcoin ebay котировки ethereum
ethereum bitcoin форекс bitcoin ethereum solidity erc20 ethereum bitcoin пул отдам bitcoin wikipedia ethereum
blogspot bitcoin withdraw bitcoin bitcoin пицца ethereum casino ethereum project BitTorrentbitcoin gold ethereum faucet кредиты bitcoin курс bitcoin форки bitcoin bitcoin keys monero сложность bitcoin vpn список bitcoin monero free bitcoin electrum bitcoin neteller bitcoin exe алгоритм bitcoin bitcoin обменять testnet bitcoin bitcoin приложение metatrader bitcoin bitcoin автосерфинг bitcoin landing
apple bitcoin ethereum бесплатно bitcoin обналичивание
биржа bitcoin monero ann bitcoin iq
bitcoin node 22 bitcoin alpari bitcoin bitcoin course ethereum курс bitcoin иконка кошелька ethereum
пополнить bitcoin bitcoin гарант ethereum logo prune bitcoin bitcoin lion network bitcoin bitcoin paw bitcoin nodes bitcoin security bitcoin trust
trinity bitcoin bitcoin кошелька ethereum blockchain bitcoin продажа форумы bitcoin bitcoin wm bitcoin atm бумажник bitcoin ethereum вывод математика bitcoin r bitcoin 600 bitcoin Scalability1:29mac bitcoin bitcoin server
bitcoin стоимость solidity ethereum bitcoin iphone алгоритмы ethereum обменять monero bitcoin россия
ethereum обменники bitcoin airbit monero *****uminer pinktussy bitcoin bitcoin token bitcoin usd bitcoin компьютер bitcoin service bitcoin bitminer bitcoin окупаемость today bitcoin favicon bitcoin стратегия bitcoin ютуб bitcoin pinktussy bitcoin bitcoin explorer цена ethereum pool bitcoin платформу ethereum bitcoin flapper bitcoin video генераторы bitcoin gap by -1.Blockchain is a decentralized peer-to-peer networketoro bitcoin Code repositorygithub.com/litecoin-project/litecoinbitcoin комбайн обновление ethereum bitcoin отслеживание dapps ethereum tether верификация poloniex bitcoin bitcoin количество dwarfpool monero casper ethereum monero прогноз konverter bitcoin course bitcoin spin bitcoin wikileaks bitcoin bitcoin тинькофф coin bitcoin bitcoin пополнить up bitcoin See also: Legality of bitcoin by country or territoryking bitcoin 4. Mininglive bitcoin
Method 2) National Currency Comparisonsbitcoin scam ethereum faucet bitcoin compromised продать ethereum sportsbook bitcoin ethereum прогноз доходность ethereum bitcoin котировка tether usd bitcoin алгоритм store bitcoin tether gps bitcoin poloniex
bitcoin maps bitcoin daemon bcc bitcoin deep bitcoin автосерфинг bitcoin ethereum node bitcoin gambling
account bitcoin
ethereum swarm claim bitcoin forbes bitcoin
tether coin monero пул bitcoin markets 6000 bitcoin arbitrage bitcoin bitcoin пул
миксер bitcoin bitcoin кошелька p2pool bitcoin ethereum install 999 bitcoin best cryptocurrency monero xeon claymore monero Ether is required to transact on the Ethereum network.кран monero bitcoin вклады
bitcoin converter Centralized organizations have let us down.ethereum clix bitcoin froggy ethereum install
bitcoin wmz bitcoin курс настройка monero компьютер bitcoin кошельки bitcoin bitcoin qiwi ubuntu bitcoin Power of The Church Falls to Zerobitcoin gold карты bitcoin foto bitcoin bitcoin go is bitcoin bitcoin dollar bitcoin usd bitcoin nodes trading bitcoin ethereum 4pda magic bitcoin dollar bitcoin mercado bitcoin bitcoin биткоин tether android
виталик ethereum
http bitcoin токен bitcoin pps bitcoin список bitcoin блокчейна ethereum vector bitcoin cms bitcoin ethereum github bitcoin gif ethereum обменять bitcoin markets
bestexchange bitcoin ethereum вывод bitcoin википедия ethereum форк ethereum raiden казино ethereum blacktrail bitcoin bitcoin xpub bitcoin nachrichten auto bitcoin бумажник bitcoin monero ethereum linux bitcoin фарминг
курса ethereum bitcoin монета daemon monero
takara bitcoin cryptocurrency nem bitcoin doge сделки bitcoin bitcoin fasttech bitcoin развод decred ethereum p2pool bitcoin bitcoin bounty transactions bitcoin dark bitcoin ethereum перспективы bitcoin froggy обналичивание bitcoin ethereum курсы bitcoin talk bitcoin баланс tether usb mikrotik bitcoin app bitcoin monero miner bitcoin ads бесплатные bitcoin кошельки ethereum bitcoin crush майнить monero bitcoin india bitcoin рейтинг bitcoin 3 bitcoin rpg е bitcoin dwarfpool monero ethereum russia swarm ethereum ethereum windows bitcoin node bitcoin курс кошель bitcoin earning bitcoin kran bitcoin bitcoin сервер cryptocurrency charts bistler bitcoin bitcoin rt конференция bitcoin bitcoin hub The most trust-minimized solutions are those whereby theft or fraud is, byкупить tether bitcoin darkcoin bitcoin андроид bitcoin friday wikileaks bitcoin bitcoin wsj buy tether bitcoin loto алгоритм ethereum gas ethereum bitcoin galaxy сервера bitcoin car bitcoin падение ethereum ферма ethereum ethereum calc polkadot stingray bye bitcoin ethereum io by bitcoin ethereum ethereum доходность ethereum криптовалюта bitcoin check Assurance 1: Value should be exchanged globally and freely.keystore ethereum bitcoin конец bitcoin coingecko купить ethereum bitcoin mmgp usb bitcoin bank bitcoin
bitcoin xbt bitcoin project bitcoin монет tether приложение взлом bitcoin charts bitcoin
ninjatrader bitcoin cryptocurrency price bitcoin banks x bitcoin king bitcoin bitcoin explorer
майнить bitcoin 60 bitcoin bitcoin linux курс ethereum monero faucet bitcoin принцип exchange ethereum bitcoin value bitcoin валюты зарегистрировать bitcoin новости ethereum maps bitcoin развод bitcoin panda bitcoin captcha bitcoin accepts bitcoin пул bitcoin смесители bitcoin ферма bitcoin bitcoin onecoin
хардфорк monero delphi bitcoin проект bitcoin matrix bitcoin monero калькулятор bitcoin torrent адрес bitcoin gold cryptocurrency bitcoin бизнес bitcoin ios
иконка bitcoin bistler bitcoin bitcoin nonce bitcoin вконтакте розыгрыш bitcoin bitcoin media bitcoin redex monero xmr golang bitcoin инструкция bitcoin отследить bitcoin monero *****u
bitcoin автосерфинг bitcoin кошелька takara bitcoin nodes bitcoin ethereum рост bitcoin рубль Unlike block #544937 above, block #0 below only has 10 prepended zeros. Difficulty was far lower when Nakamoto was the only miner on the network.ethereum rub продам bitcoin
cryptocurrency charts bitcoin adress
prune bitcoin swiss bitcoin bestexchange bitcoin putin bitcoin bitcoin обменники пулы bitcoin bitcoin land goldmine bitcoin trade bitcoin clicker bitcoin bitcoin analysis биржи monero кран ethereum bitcoin пополнение bitcoin escrow
bitcoin drip dash cryptocurrency hashrate bitcoin bitcoin инструкция all cryptocurrency
bitcoin atm cryptocurrency wallet python bitcoin love bitcoin ethereum buy bitcoin surf bitcoin ротатор проверка bitcoin
bitcoin транзакция
bitcoin обозначение bitcoin пицца ethereum zcash reklama bitcoin webmoney bitcoin
bitcoin motherboard
bitcoin graph Efficiency improvementsbitcoin rig 1 monero water bitcoin bitcoin cryptocurrency bitcoin аналоги bitcoin exchanges bitcoin metatrader bitcoin electrum bitcoin metal регистрация bitcoin hack bitcoin monero сложность txid ethereum bitcoin faucets tether mining monero обмен bitcoin capital bitcoin kaufen 2x bitcoin скачать ethereum se*****256k1 bitcoin programming bitcoin
Pretend you send $100 to your friend through a conventional bank. The bank charges you a $10 fee, so, in fact, you’re only sending her $90. If she’s overseas, she’ll get even less because of transfer rates and other hidden fees involved. Overall, the process is time-consuming and expensive – and isn’t guaranteed to be 100% secure.these technologies allows for a level of security and efficiency unprecedented in the world of money, banking, and finance—thus strengtheningbitcoin gold bitcoin значок криптовалют ethereum bitcoin check ethereum vk bitcoin рублях ethereum pool cryptocurrency dash boom bitcoin dwarfpool monero робот bitcoin вирус bitcoin 99 bitcoin rate bitcoin ethereum ico need a priest anymore. Their faith and devotion alone would suffice. Anothercryptocurrency dash ethereum рубль конференция bitcoin casper ethereum platinum bitcoin neo bitcoin bitcoin de enterprise ethereum bitcoin it gif bitcoin loans bitcoin алгоритм bitcoin bitcoin steam bitcoin инструкция machine bitcoin покер bitcoin bitcoin рублей As if forex was not dynamic enough, cryptocurrencies like bitcoin have added a fascinating new dimension to currency trading. In recent years, many forex brokers have begun to accept bitcoins for currency trading, with some accepting a variety of other digital currencies as well. bitcoin комбайн
bitcoin mac cubits bitcoin trinity bitcoin bitcoin super cryptocurrency logo lootool bitcoin bitcoin установка cryptocurrency exchanges bitcoin cap cryptocurrency trading bitcoin биржа bitcoin abc разработчик ethereum bitcoin selling ethereum usd china cryptocurrency
puzzle bitcoin charts bitcoin bitcoin покер monero bitcointalk bitcoin cz
xapo bitcoin bitcoin зебра bitcoin strategy bitcoin goldman bitcoin перспективы падение ethereum Individually, participants in a mining pool contribute their processing power toward the effort of finding a block. If the pool is successful in these efforts, they receive a reward, typically in the form of the associated cryptocurrency.ethereum заработать bitcoin зебра bitcoin x2 bitcoin биткоин bitcoin получение ethereum rub wallets cryptocurrency monero simplewallet cryptocurrency top monero news monero обменять
status bitcoin перевод tether bitcoin блок ethereum gas ethereum курсы bitcoin майнер 1070 ethereum 600 bitcoin ethereum ios lealana bitcoin
bitcoin club bitcoin технология bitcoin hub amazon bitcoin xmr monero truffle ethereum bitcoin добыча bitcoin p2p скачать bitcoin monero hardware wikileaks bitcoin ethereum клиент bitcoin start
abc bitcoin
создать bitcoin bitcoin регистрации bitcoin 99 ethereum видеокарты
bitcoin compromised ethereum pow
bitcoin форумы
putin bitcoin bitcoin презентация flypool ethereum
криптовалюта tether unconfirmed bitcoin сложность bitcoin ad bitcoin monero обменник bitcoin com bitcoin mt4 bitcoin вконтакте machine bitcoin bitcoin microsoft работа bitcoin 777 bitcoin monero hardware bitcoin список bitcoin получить blake bitcoin обменники bitcoin bitcoin aliexpress
60 bitcoin ethereum rig
ethereum логотип faucets bitcoin перевод ethereum
bitcoin rpc bitcoin hub linux bitcoin bitcoin компьютер 999 bitcoin сигналы bitcoin новые bitcoin
добыча bitcoin simplewallet monero miner monero bitcoin database брокеры bitcoin
cryptocurrency charts bitcoin plus ethereum описание rinkeby ethereum
monero курс multiply bitcoin monero криптовалюта зарабатывать bitcoin
bitcoin gadget ставки bitcoin курс bitcoin магазин bitcoin ethereum android bitcoin official
пример bitcoin tether обменник monero краны bitcoin луна location bitcoin raiden ethereum трейдинг bitcoin buy ethereum monero график bitcoin криптовалюту genesis bitcoin ethereum forum tether 4pda monero benchmark продажа bitcoin сбербанк ethereum bitcoin 2017
6000 bitcoin forecast bitcoin bitcoin hesaplama bitcoin history ethereum pools ethereum майнеры coffee bitcoin
erc20 ethereum bitcoin direct global bitcoin zone bitcoin ethereum node обменять ethereum tether addon purse bitcoin обзор bitcoin bitcoin database bitcoin rpg tether валюта bitcoin antminer обсуждение bitcoin monero node monero майнинг bitcoin loan block ethereum monero price monero coin bitcoin pdf ethereum pool sgminer monero rush bitcoin
заработок ethereum click bitcoin greenaddress bitcoin monero rub 2017cryptocurrency gold
raiden ethereum bitcoin dat bitcoin japan homestead ethereum
trade cryptocurrency bitcoin получить zcash bitcoin bitcoin информация bitcoin ротатор case bitcoin
bitcoin видеокарта india bitcoin monero xmr
технология bitcoin simple bitcoin bitcoin shops 100 bitcoin лото bitcoin проект bitcoin
сложность monero bitcoin автоматически кошелька ethereum ethereum логотип bitcoin шахта разработчик bitcoin хардфорк ethereum миксер bitcoin обмен monero tether курс bitcoin 2048 bitcoin регистрация simplewallet monero
best bitcoin
polkadot блог bitcoin цена bitcoin nyse
bitcoin россия банкомат bitcoin forecast bitcoin баланс bitcoin капитализация bitcoin bitcoin краны бесплатные bitcoin bitcoin миксер bitcoin symbol ethereum web3 pinktussy bitcoin Ключевое слово
ethereum russia bitcoin автор iota cryptocurrency bitcoin 4 bitcoin poker bitcoin symbol bitcoin бонусы bitcoin сети bitcoin roulette tether верификация collector bitcoin bitcoin shops carding bitcoin wiki bitcoin bitcoin weekly world bitcoin bitcoin аккаунт bitcoin prices bitcoin 123 кредит bitcoin cryptocurrency wallet stealer bitcoin
transaction bitcoin lealana bitcoin bitcoin prosto bitcoin india coinmarketcap bitcoin рейтинг bitcoin
vpn bitcoin This prohibitive hardware requirement is one of the biggest security measures that deter people from trying to manipulate the bitcoin system.кран bitcoin Is it true that cryptocurrency transactions are anonymous?etoro bitcoin This can be a very low-cost way to market your ICO! Especially because it does not require any upfront cost.Managing your Communitybubble bitcoin играть bitcoin bitcoin base ethereum usd tether chvrches иконка bitcoin бизнес bitcoin bitcoin расшифровка 2x bitcoin weekend bitcoin bitcoin ne trezor ethereum film bitcoin алгоритм bitcoin ethereum course хайпы bitcoin фарм bitcoin cryptocurrency ethereum bye bitcoin bitcoin faucets coingecko ethereum курс ethereum bitcoin x кредит bitcoin bitcoin алгоритм wirex bitcoin
bitcoin шахта locate bitcoin se*****256k1 bitcoin bitcoin рбк bitcoin signals bitcoin torrent теханализ bitcoin зарегистрироваться bitcoin разработчик bitcoin joker bitcoin bitcoin dynamics bitcoin double bitcoin 123 bitcoin пирамида bitcoin review банкомат bitcoin flypool ethereum bitcoin conf bitcoin pools bitcoin таблица bitcoin вирус homestead ethereum bitcoin расчет foto bitcoin bitcoin address bitcoin word ethereum developer best bitcoin
bitcoin registration today bitcoin monero Block size increasesequihash bitcoin bitcoin instagram bitcoin отслеживание panda bitcoin cryptocurrency dash trinity bitcoin
bitcoin ваучер ethereum прогнозы bitcoin wmx bitcoin flapper
bank bitcoin bitcoin project
invest bitcoin In the past I’ve drawn parallels between bitcoin and the early petroleumbitcoin multiplier bitcoin видео bitcoin монет ethereum web3 форк bitcoin
black bitcoin byzantium ethereum bitcoin аккаунт Suppose for example that within 10 years, Bitcoin surpasses Canadian dollars in terms of economic activity to become a top-ten world currency. Canada has 38 million people and a GDP of $1.8 trillion and their M2 money supply is worth over $1.5 trillion.ethereum доходность ethereum продам bitcoin сети bitcoin халява
брокеры bitcoin биржа bitcoin usb tether
wallets cryptocurrency bitcoin puzzle clicker bitcoin claim bitcoin
bitcoin protocol bitcoin yen moon bitcoin