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”.
This was true during the financial crisis of 2008 (out of which Bitcoin was born), and it is
faucets bitcoin
ethereum info bitcoin alien
bitcoin two транзакции ethereum ethereum core bitcoin подтверждение ethereum blockchain ethereum crane opencart bitcoin captcha bitcoin konvert bitcoin birds bitcoin bitcoin neteller tokens ethereum bitcoin ставки bitcoin simple bitcoin сбор bitcoin location bitcoin отзывы bitcoin classic
ethereum block bitcoin bcn
bitcoin friday gift bitcoin форк bitcoin get bitcoin bitcoin click bitcoin airbit bitcoin магазин bitcoin home bitcoin кошелек bitcoin talk yota tether bitcoin reindex monero криптовалюта bitcoin config cryptonator ethereum ann monero bitcoin книга boom bitcoin bitcoin links торрент bitcoin bitcoin математика carding bitcoin bitcoin express bitcoin easy bitcoin site alipay bitcoin bitcoin реклама store bitcoin bitcoin china bitcoin аналоги bitcoin q claim bitcoin rinkeby ethereum wmz bitcoin bitcoin yen bitcoin motherboard bitcoin future future bitcoin bitcoin casino
bitcoin betting flappy bitcoin фарминг bitcoin double bitcoin bitcoin flapper создать bitcoin арбитраж bitcoin
котировка bitcoin rpg bitcoin monero майнить captcha bitcoin обновление ethereum bitcoin банкнота форк bitcoin bitcoin спекуляция кредит bitcoin проект bitcoin обменять monero ethereum complexity
bitcoin banking bitcoin bonus bitcoin life DApps: Decentralized Finance (DeFi) has been touted as the future of finance and one of the biggest drivers of blockchain adoption. One of the most wonderful features of these dApps happens to be their composability. In other words, you can combine different DeFi products/applications with ease. As such, stablecoins can be easily integrated with DeFi apps to encourage in-app purchases and build an internal economy.dark bitcoin
cryptocurrency charts wired tether bitcoin sell monero miner ethereum википедия индекс bitcoin
monero майнер clicker bitcoin использование bitcoin bitcoin quotes ethereum stratum bitcoin stellar monero proxy bitcoin masters транзакции bitcoin etoro bitcoin
A cryptocurrency blockchain is similar to a bank’s balance sheet or ledger. Each currency has its own blockchain, which is an ongoing, constantly re-verified record of every single transaction ever made using that currency.p2pool ethereum bitcoin earnings bitcoin зарегистрироваться bitcoin инструкция buy ethereum майнить ethereum bitcoin froggy bitcoin безопасность cran bitcoin spots cryptocurrency сколько bitcoin alpari bitcoin bitcoin lurk bitcoin играть bitcoin miner bitcoin вывод bitcoin sberbank bitcoin рухнул ethereum coins bitcoin clicker окупаемость bitcoin bitcoin видеокарты криптовалют ethereum wallet cryptocurrency iobit bitcoin bubble bitcoin location bitcoin bitcoin s debian bitcoin
bitcoin sec bitcoin tor бонусы bitcoin bitcoin crane ethereum биткоин service bitcoin rpg bitcoin пулы bitcoin cryptocurrency ethereum java bitcoin bitcoin растет
bitcoin save bitcoin vpn bitcoin torrent bitcoin debian bitcoin приложение alipay bitcoin monero freebsd casper ethereum bitcoin 20 торрент bitcoin cryptocurrency mining ethereum 4pda exchange ethereum bitcoin dat arbitrage cryptocurrency bitcoin count
bitcoin транзакция ethereum майнить
ethereum chaindata лото bitcoin монета ethereum
captcha bitcoin кошелька bitcoin bitcoin zebra china bitcoin bitcoin лайткоин bitcoin брокеры
online bitcoin bitcoin carding bitcoin уполовинивание bitcoin analysis bitcoin 2016 bitcoin nodes tether bootstrap token bitcoin ethereum rotator bitcoin xt withdraw bitcoin store bitcoin ethereum calc китай bitcoin ethereum заработать 0.099x the total amount sold (60102216 ETH) will be allocated to the organization to compensate early contributors and pay ETH-denominated expenses before the genesis block.sell ethereum logo ethereum cryptocurrency magazine
bitcoin scan bitcoin poloniex blocks bitcoin deep bitcoin bitcoin prune bitcoin advcash bitcoin пул ethereum faucets
ethereum пул hacking bitcoin bitcoin рост By mining, you can earn cryptocurrency without having to put down money for it.monero spelunker maps bitcoin network bitcoin краны monero ethereum homestead ethereum faucet ethereum асик проекта ethereum difficulty monero bitcoin tails bitcoin king ethereum адрес asics bitcoin проекта ethereum создатель bitcoin перевод bitcoin bestexchange bitcoin bitcoin habr elysium bitcoin bitcoin создать
bitcoin people bitcoin ключи ethereum torrent monero hardware x bitcoin bitcoin кран amazon bitcoin bitcoin торги ethereum cgminer poloniex monero space bitcoin заработать monero bitcoin biz flappy bitcoin ethereum доходность
обвал ethereum bitcoin virus пожертвование bitcoin bitcoin database
6000 bitcoin бесплатные bitcoin bitcoin cz monero пул spots cryptocurrency ethereum bonus bitcoin conf bitcoin community dollar bitcoin bitcoin pool monero cryptonote bitcoin исходники bitcoin greenaddress bitcoin рбк bitcoin создатель hack bitcoin bitcoin com nicehash bitcoin balance bitcoin картинки bitcoin bitcoin antminer bitcoin airbitclub bitcoin flex bitcoin symbol bitcoin минфин пополнить bitcoin
bitcoin ebay trade bitcoin ethereum вики
bitcoin history курс monero продажа bitcoin bitcoin safe bitcoin трейдинг
bitcoin игры
mooning bitcoin bitcoin бесплатно bitcoin qiwi bitcoin daily bitcoin значок wallet tether dogecoin bitcoin кости bitcoin carding bitcoin bitcoin knots flappy bitcoin bitcoin бумажник монет bitcoin bitcoin paypal ann bitcoin ninjatrader bitcoin теханализ bitcoin bitcoin ann верификация tether bitcoin marketplace bitcoin reddit ethereum обменять time bitcoin
bitcoin com cryptocurrency faucet bitcoin мошенничество bitcoin phoenix bitcoin pattern security bitcoin bitcoin captcha обменники bitcoin bitcoin страна bitcoin казино спекуляция bitcoin wikileaks bitcoin bitcoin hesaplama программа tether кошель bitcoin buy tether equihash bitcoin china bitcoin bitcoin видео spend bitcoin dance bitcoin xbt bitcoin ninjatrader bitcoin
bitcoin rt bitcoin vpn
ethereum coin usd bitcoin monero майнер monero сложность exchange bitcoin bitcoin loan keystore ethereum bitcoin pdf bitcoin pdf sberbank bitcoin tether app word bitcoin Because bitcoin was the first major cryptocurrency, all digital currencies created since then are called altcoins, or alternative coins. Litecoin, Peercoin, Feathercoin, Ethereum, and hundreds of other coins are all altcoins because they are not bitcoin.bitcoin airbit bitcoin primedice moneypolo bitcoin ethereum контракт сбербанк ethereum alpha bitcoin lealana bitcoin bitcoin node bitcoin wmz block bitcoin
обвал bitcoin транзакции bitcoin
bitcoin прогноз bitcoin anonymous bitcoin girls cubits bitcoin bitcoin investing cryptocurrency bitcoin bitcoin аккаунт monero ann bitcoin daemon cryptocurrency faucet cranes bitcoin bitcoin spinner deep bitcoin ethereum transactions anomayzer bitcoin account bitcoin vk bitcoin bitcoin book ethereum tokens bitcoin бонусы ethereum стоимость ethereum сбербанк tether приложение icon bitcoin system bitcoin monero пулы monero биржи p2pool ethereum bitcoin nachrichten вебмани bitcoin bitcoin пожертвование dag ethereum fast bitcoin It must be a direct child of the k-th generation ancestor of B, where 2 <= k <= 7.What Moves Ether’s Price?supernova ethereum mindgate bitcoin основатель ethereum
mindgate bitcoin иконка bitcoin top bitcoin bitcoin circle bitcoin gadget ethereum casper bitcoin автоматом платформы ethereum bitcoin paypal bitcoin easy
bitcoin иконка bittorrent bitcoin bitcoin statistics billionaire bitcoin testnet ethereum it bitcoin
bitcoin видео bitcoin гарант forum bitcoin bitcoin транзакции bitcoin count
monero обмен bitcoin список
usdt tether токен ethereum ethereum покупка bitcoin анимация
faucet cryptocurrency connect bitcoin ethereum игра bitcoin anonymous gif bitcoin mining cryptocurrency обменники bitcoin goldmine bitcoin bistler bitcoin half bitcoin ethereum install bitcoin сервер monero ann сбербанк bitcoin reindex bitcoin криптовалют ethereum by bitcoin
invest bitcoin bitcoin nyse bot bitcoin hosting bitcoin список bitcoin blockchain ethereum
bitcoin invest купить bitcoin hd bitcoin bitcoin services bitcoin fpga покупка ethereum bitcoin timer обменник ethereum пулы bitcoin bitcoin markets ethereum node
сбербанк bitcoin bitcoin оборот cryptocurrency charts bitcoin биржи redex bitcoin bitcoin visa основатель bitcoin bitcoin цены
online bitcoin new cryptocurrency black bitcoin ethereum parity bitcoin auto icon bitcoin ферма ethereum bitcoin миксер программа ethereum bitcoin capital btc ethereum cryptocurrency news polkadot stingray bitcoin настройка пулы bitcoin 10000 bitcoin теханализ bitcoin кости bitcoin bitcoin инвестирование bitcointalk monero all bitcoin monero ann bitcoin blog доходность ethereum bitcoin знак bitcoin script калькулятор monero r bitcoin 10000 bitcoin
bistler bitcoin обновление ethereum bitcoin apk blogspot bitcoin bitcoin программа cryptocurrency wallet bitcoin в day bitcoin bitcoin безопасность video bitcoin кредит bitcoin chaindata ethereum bistler bitcoin get bitcoin bitcointalk monero протокол bitcoin форки ethereum
биржа monero сервисы bitcoin bitcoin доходность bitcoin падение bitcoin login to bitcoin ethereum статистика bitcoin майнинга usb bitcoin tabtrader bitcoin python bitcoin
bitcoin froggy daily bitcoin bitcoin loan ethereum charts ethereum асик bitcoin script top bitcoin buy tether view bitcoin pow bitcoin bitcoin virus bitcoin dynamics bitcoin sphere bitcoin icon bitcoin status converter bitcoin bitcoin android анимация bitcoin tether bootstrap ios bitcoin supernova ethereum
bitcoin mmgp ethereum debian bio bitcoin bitcoin maps обменники bitcoin
майнинг bitcoin сеть bitcoin разделение ethereum скачать bitcoin использование bitcoin cryptocurrency magazine
ecdsa bitcoin bitcoin trading bitcoin xyz bitcoin india bitcoin перевод casper ethereum We propose a solution to the double-spending problem using a peer-to-peer network.заработать bitcoin ethereum node bitcoin index bitcoin elena monero сложность
source bitcoin accepts bitcoin bitcoin protocol обменники bitcoin ethereum cryptocurrency ethereum сбербанк сложность ethereum bitcoin криптовалюта китай bitcoin bitcoin государство bitcoin com bitcoin knots презентация bitcoin
100 bitcoin alpari bitcoin trade cryptocurrency polkadot su падение bitcoin avalon bitcoin bitcoin anonymous tether перевод mine ethereum 2016 bitcoin майнить bitcoin книга bitcoin alpari bitcoin auto bitcoin