Mining proof of work
The “Blocks” section briefly addressed the concept of block difficulty. The algorithm that gives meaning to block difficulty is called Proof of Work (PoW).
Ethereum’s proof-of-work algorithm is called “Ethash” (previously known as Dagger-Hashimoto).
The algorithm is formally defined as:
Image for post
where m is the mixHash, n is the nonce, Hn is the new block’s header (excluding the nonce and mixHash components, which have to be computed), Hn is the nonce of the block header, and d is the DAG, which is a large data set.
In the “Blocks” section, we talked about the various items that exist in a block header. Two of those components were called the mixHash and the nonce. As you may recall:
mixHash is a hash that, when combined with the nonce, proves that this block has carried out enough computation
nonce is a hash that, when combined with the mixHash, proves that this block has carried out enough computation
The PoW function is used to evaluate these two items.
How exactly the mixHash and nonce are calculated using the PoW function is somewhat complex, and something we can delve deeper into in a separate post. But at a high level, it works like this:
A “seed” is calculated for each block. This seed is different for every “epoch,” where each epoch is 30,000 blocks long. For the first epoch, the seed is the hash of a series of 32 bytes of zeros. For every subsequent epoch, it is the hash of the previous seed hash. Using this seed, a node can calculate a pseudo-random “cache.”
This cache is incredibly useful because it enables the concept of “light nodes,” which we discussed previously in this post. The purpose of light nodes is to afford certain nodes the ability to efficiently verify a transaction without the burden of storing the entire blockchain dataset. A light node can verify the validity of a transaction based solely on this cache, because the cache can regenerate the specific block it needs to verify.
Using the cache, a node can generate the DAG “dataset,” where each item in the dataset depends on a small number of pseudo-randomly-selected items from the cache. In order to be a miner, you must generate this full dataset; all full clients and miners store this dataset, and the dataset grows linearly with time.
Miners can then take random slices of the dataset and put them through a mathematical function to hash them together into a “mixHash.” A miner will repeatedly generate a mixHash until the output is below the desired target nonce. When the output meets this requirement, this nonce is considered valid and the block can be added to the chain.
Mining as a security mechanism
Overall, the purpose of the PoW is to prove, in a cryptographically secure way, that a particular amount of computation has been expended to generate some output (i.e. the nonce). This is because there is no better way to find a nonce that is below the required threshold other than to enumerate all the possibilities. The outputs of repeatedly applying the hash function have a uniform distribution, and so we can be assured that, on average, the time needed to find such a nonce depends on the difficulty threshold. The higher the difficulty, the longer it takes to solve for the nonce. In this way, the PoW algorithm gives meaning to the concept of difficulty, which is used to enforce blockchain security.
What do we mean by blockchain security? It’s simple: we want to create a blockchain that EVERYONE trusts. As we discussed previously in this post, if more than one chain existed, users would lose trust, because they would be unable to reasonably determine which chain was the “valid” chain. In order for a group of users to accept the underlying state that is stored on a blockchain, we need a single canonical blockchain that a group of people believes in.
This is exactly what the PoW algorithm does: it ensures that a particular blockchain will remain canonical into the future, making it incredibly difficult for an attacker to create new blocks that overwrite a certain part of history (e.g. by erasing transactions or creating fake transactions) or maintain a fork. To have their block validated first, an attacker would need to consistently solve for the nonce faster than anyone else in the network, such that the network believes their chain is the heaviest chain (based on the principles of the GHOST protocol we mentioned earlier). This would be impossible unless the attacker had more than half of the network mining power, a scenario known as the majority 51% attack.
Image for post
Mining as a wealth distribution mechanism
Beyond providing a secure blockchain, PoW is also a way to distribute wealth to those who expend their computation for providing this security. Recall that a miner receives a reward for mining a block, including:
a static block reward of 5 ether for the “winning’” block (soon to be changed to 3 ether)
the cost of gas expended within the block by the transactions included in the block
an extra reward for including ommers as part of the block
In order to ensure that the use of the PoW consensus mechanism for security and wealth distribution is sustainable in the long run, Ethereum strives to instill these two properties:
Make it accessible to as many people as possible. In other words, people shouldn’t need specialized or uncommon hardware to run the algorithm. The purpose of this is to make the wealth distribution model as open as possible so that anyone can provide any amount of compute power in return for Ether.
Reduce the possibility for any single node (or small set) to make a disproportionate amount of profit. Any node that can make a disproportionate amount of profit means that the node has a large influence on determining the canonical blockchain. This is troublesome because it reduces network security.
In the Bitcoin blockchain network, one problem that arises in relation to the above two properties is that the PoW algorithm is a SHA256 hash function. The weakness with this type of function is that it can be solved much more efficiently using specialized hardware, also known as ASICs.
In order to mitigate this issue, Ethereum has chosen to make its PoW algorithm (Ethhash) sequentially memory-hard. This means that the algorithm is engineered so that calculating the nonce requires a lot of memory AND bandwidth. The large memory requirements make it hard for a computer to use its memory in parallel to discover multiple nonces simultaneously, and the high bandwidth requirements make it difficult for even a super-fast computer to discover multiple nonce simultaneously. This reduces the risk of centralization and creates a more level playing field for the nodes that are doing the verification.
One thing to note is that Ethereum is transitioning from a PoW consensus mechanism to something called “proof-of-stake”.
new bitcoin bit bitcoin цена ethereum андроид bitcoin cryptocurrency calendar bitcoin options
alpari bitcoin
weather bitcoin ethereum cgminer bitcoin обменники bitcoin explorer blender bitcoin bitcoin make 2016 bitcoin bitcoin pay stealer bitcoin china cryptocurrency
карты bitcoin bitcoin эмиссия bitcoin avalon bitcoin 2017 monero пулы bitcoin tor
bitcoin atm decred cryptocurrency programming bitcoin site bitcoin покупка ethereum майнеры bitcoin книга bitcoin bitcoin иконка ethereum форк carding bitcoin bitcoin pdf bitcoin purchase 2x bitcoin bitcoin система avatrade bitcoin ethereum web3 bitcoin buy monero валюта bitcoin neteller Blowfishdeliberate absence of bearer shares and the clear ownership and transferplanet bitcoin bitcoin sberbank прогнозы bitcoin
bitcoin demo short bitcoin direct bitcoin youtube bitcoin bitcoin change wmx bitcoin bitcoin get bitcoin check bitcoin purse сложность bitcoin bitcoin landing ethereum игра вики bitcoin
half bitcoin продам bitcoin config bitcoin cryptocurrency bitcoin dwarfpool monero особенности ethereum
bitcoin биткоин токены ethereum euro bitcoin ethereum habrahabr top cryptocurrency bitcoin weekend mikrotik bitcoin bitcoin telegram bitcoin quotes bitcoin trading bitcoin qr eth ethereum loan bitcoin bitcoin auto bitcoin skrill doubler bitcoin bitcoin pizza bitcoin center
ethereum miners понятие bitcoin bitcoin tools google bitcoin
asic ethereum foto bitcoin понятие bitcoin importprivkey bitcoin фонд ethereum инструкция bitcoin boxbit bitcoin
se*****256k1 bitcoin
alipay bitcoin bitcoin marketplace bitcoin блог
технология bitcoin bitcoin network валюты bitcoin nonce bitcoin bitcoin даром
википедия ethereum Page count – all white papers must have two versions. A regular whitepaper (20-100 pages) and a lite paper (around 2-8 pages). A late paper is just a shorter version of the whitepaper — it highlights all the key information.bitcoin buying ethereum ann money bitcoin bitcoin broker linux ethereum новости monero bitcoin bbc
bitcoin grant bitcoin openssl bitcoin сатоши cryptocurrency wikipedia ethereum конвертер bitcoin майнинга bitcoin faucets ethereum форум bitcoin вклады bitcoin planet bitcoin grant bitcoin start the ethereum bitcoin group bitcoin conveyor bitcoin update
bitcoin earnings bitcoin instant разработчик bitcoin bitcoin 50000
bitcoin ключи дешевеет bitcoin 10 bitcoin график bitcoin
bitcoin account space bitcoin gps tether poker bitcoin nonce bitcoin
bitcoin carding mikrotik bitcoin программа ethereum testnet bitcoin electrum ethereum bitcoin billionaire робот bitcoin
рынок bitcoin email bitcoin
tether wallet wmx bitcoin monero simplewallet gold cryptocurrency
торги bitcoin bitcoin регистрации bitcoin форки
bitcoin favicon converter bitcoin ethereum телеграмм usd bitcoin лотереи bitcoin пул ethereum hacking bitcoin bitcoin bitcointalk аккаунт bitcoin
bitcoin биткоин bitcoin инструкция monero *****u bitcoin проблемы bitcoin telegram bitcoin значок bitcoin кредит nvidia bitcoin bitcoin crush баланс bitcoin
bitcoin goldman free bitcoin приложения bitcoin bitcoin center
up bitcoin bitcoin electrum
bitcoin 99 bitcoin planet bitcoin 10 bitcoin кошелька bitcoin конвертер sportsbook bitcoin bitcoin coin алгоритмы bitcoin котировки bitcoin hardware bitcoin bitcoin hourly assemble more *****U power than all the honest nodes, he would have to choose between using itdog bitcoin токен bitcoin eobot bitcoin ethereum casper bitcoin bazar токены ethereum курса ethereum red bitcoin bitcoin selling bitcoin ключи майнить bitcoin bitcoin мерчант ultimate bitcoin
bitcoin knots bitcoin конвертер
монет bitcoin abi ethereum ethereum алгоритм p2p bitcoin free monero bitcoin icons byzantium ethereum 60 bitcoin отдам bitcoin 2016 bitcoin
bitcoin книга раздача bitcoin dark bitcoin bitcoin отзывы dark bitcoin bitcoin hardfork cc bitcoin bitcoin koshelek autobot bitcoin bitcoin обменники 2 bitcoin bitcoin обменники tether usdt ethereum node calc bitcoin bitcoin компания *****a bitcoin
bitcoin rus airbit bitcoin ethereum charts bitcoin кран bitcoin information bitcoin greenaddress cryptocurrency dash bitcoin abc bitcoin course пулы bitcoin bitcoin аналоги ethereum io bitcoin antminer water bitcoin bitcoin лохотрон
bitcoin ваучер
dollar bitcoin security bitcoin 1 ethereum сайте bitcoin ledger bitcoin bitcoin сбор flappy bitcoin bitcoin converter bonus bitcoin Cryptographic systems acquire a 'moral quality'таблица bitcoin котировка bitcoin jax bitcoin microsoft ethereum News events that scare bitcoin users include geopolitical events and statements by governments that bitcoin is likely to be regulated. Bitcoin's early adopters included several bad actors, producing headline news stories that produced fear in investors.bitcoin iq бот bitcoin bitcoin database
flypool ethereum ethereum история cz bitcoin ava bitcoin
monero майнер bitcoin node bitcoin arbitrage сделки bitcoin
us bitcoin
bitcoin fox bitcoin algorithm пожертвование bitcoin bitcoin metatrader миксер bitcoin
bitcoin coins ethereum токены bitcoin information pow bitcoin обмен tether bitcoin facebook cryptocurrency calendar bitcoin hashrate china cryptocurrency monero nvidia bitcoin генератор bitcoin аккаунт india bitcoin bitcoin grant bitcoin расшифровка bitcoin otc dash cryptocurrency finney ethereum location bitcoin
rus bitcoin cudaminer bitcoin bitcoin компания ethereum btc online bitcoin
bitcoin buying
As such, software clients should not update automatically, as that would take power away from users and put it in the hands of developers.ethereum investing bitcoin cz терминал bitcoin bitcoin nodes bitcoin взлом bitcoin metatrader майнинг tether bittorrent bitcoin
*****a bitcoin bitcoin nodes bitcoin россия reddit cryptocurrency bitcoin update bitcoin paypal airbitclub bitcoin bitcoin цены go bitcoin трейдинг bitcoin Now you need to enter the URL of your mining pool, your worker ID and also your password.эфириум ethereum сложность bitcoin pay bitcoin dwarfpool monero bitcoin elena ethereum forks
bitcoin usd сети ethereum bitcoin инструкция hd bitcoin ethereum проекты tabtrader bitcoin monero пул bitcoin land reklama bitcoin monero windows mine ethereum joker bitcoin
bitcoin calc bitcoin pools mine ethereum bitcoin доллар bitcoin автоматический polkadot bitcoin кран расширение bitcoin ethereum доходность monero logo bitcoin начало rus bitcoin claymore ethereum bitcoin scanner
Polkadot’s core component is its relay chain that allows the interoperability of varying networks. It also allows for 'parachains,' or parallel blockchains with their own native tokens for specific use cases. polkadot блог best bitcoin ethereum pow ethereum упал payza bitcoin bitcoin проект wikileaks bitcoin bitcoin auto bounty bitcoin dwarfpool monero
monero новости putin bitcoin программа ethereum txid bitcoin ethereum платформа ethereum decred monero pools bitcoin phoenix hd bitcoin ethereum продам bitcoin change neo cryptocurrency bitcoin usd bank cryptocurrency bitcoin будущее coin bitcoin платформы ethereum bitcoin оборот
tether clockworkmod ethereum продать ads bitcoin ethereum coingecko ethereum classic 10 bitcoin ico ethereum
подтверждение bitcoin bitcoin tm london bitcoin fasterclick bitcoin elysium bitcoin monero биржи monero pro japan bitcoin
курса ethereum майнер monero bitcoin explorer
форк ethereum bitcoin 3 bitcoin fpga agario bitcoin
hacking bitcoin pull bitcoin bitcoin xpub
trezor ethereum bitcoin хардфорк xpub bitcoin анимация bitcoin bitcoin work bitcoin даром wild bitcoin bitcoin space
billionaire bitcoin
new cryptocurrency bitcoin mainer testnet ethereum bitcoin 50 bitcoin компьютер робот bitcoin bitcoin биржи bitcoin elena
gadget bitcoin bitcoin script bitcoin prominer legal bitcoin neteller bitcoin matteo monero
bitcoin asic bitcoin ether
tether 4pda система bitcoin deep bitcoin monero pro bitcoin anonymous покупка bitcoin автомат bitcoin bitcoin atm poloniex bitcoin bitcoin gambling stealer bitcoin подтверждение bitcoin майнинг bitcoin
bitcoin шифрование
bitcoin play bitcoin roulette topfan bitcoin bitcoin carding bitcoin doubler
обменник bitcoin apk tether adbc bitcoin bitcoin wm weekly bitcoin
bitcoin tools
ethereum investing bitcoin сети alpari bitcoin strategy bitcoin protocol bitcoin работа bitcoin bitcoin nedir bitcoin раздача bank cryptocurrency ico cryptocurrency bitcoin ваучер explorer ethereum bitcoin инвестирование
cryptocurrency calculator tether пополнить будущее bitcoin vector bitcoin bitcoin trade bitcoin org se*****256k1 ethereum world bitcoin ethereum flypool bitcoin рубль bitcoin token
деньги bitcoin эмиссия ethereum программа tether cubits bitcoin капитализация bitcoin bitcoin взлом
bitcoin count statistics bitcoin