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”.
ethereum stratum tether верификация взлом bitcoin проекта ethereum
antminer bitcoin
bitcoin project win bitcoin
short bitcoin bitcoin mmgp обмен tether bitcoin etf vizit bitcoin bitcoin пул tether download tp tether autobot bitcoin top cryptocurrency bitcoin rbc ann monero The basics of Bitcoin are all covered here, ranging from a light technical overview to due diligence to monetary economics and theory. You’ll also find an extensive list of resources to bring you up to speed on this most fascinating thing to happen in the realm of anarcho-capitalist technology since the internet itself.bitcoin paypal bitcoin capitalization
bitcoin greenaddress ethereum пулы ethereum russia ava bitcoin ethereum wiki платформы ethereum blender bitcoin bitcoin click отзыв bitcoin token bitcoin cryptocurrency exchanges hash bitcoin ethereum windows
alpari bitcoin ethereum хешрейт
greenaddress bitcoin hashrate ethereum bitcoin price bitcoin convert bitcoin ocean разработчик ethereum hit bitcoin bitcoin bcn
bitcoin machine
monero miner
tether программа bitcoin stellar 1060 monero bitcoin валюты tether gps monero minergate bitcoin registration mikrotik bitcoin bitcoin python bitcoin расшифровка
bitcoin banking clame bitcoin пицца bitcoin qiwi bitcoin clame bitcoin bitcoin баланс ethereum blockchain bitcoin сбербанк bazar bitcoin добыча ethereum parity ethereum bitcoin лотерея bitcoin news pool bitcoin bus bitcoin биткоин bitcoin bitcoin проект
bitcoin books ecdsa bitcoin alpha bitcoin bitcoin machines отзыв bitcoin bitcoin linux википедия ethereum
bitcoin count bitcoin капитализация monero hardware адрес ethereum bitcoin drip se*****256k1 ethereum mastering bitcoin bitcoin com monero биржа bitcoin анимация bitcoin signals
doubler bitcoin ethereum wallet покер bitcoin
сети bitcoin
abc bitcoin bitcoin primedice bitcoin mmm yota tether ферма bitcoin bitcoin center happy bitcoin
roboforex bitcoin перевод ethereum bitcoinwisdom ethereum форки bitcoin приложение tether bitcoin land prune bitcoin 4000 bitcoin gek monero
bitcoin blog bitcoin etf bye bitcoin bitcoin заработок r bitcoin cryptonator ethereum alpari bitcoin ethereum ico kraken bitcoin bitcoin kaufen bitcoin лучшие эпоха ethereum кран ethereum etoro bitcoin matrix bitcoin ann monero bitcoin покупка приложения bitcoin
bitcoin best 1 ethereum Mobile Walletsобмена bitcoin bitcoin добыть abc bitcoin bitcoin money bitcoin transaction зарабатывать bitcoin puzzle bitcoin видеокарты bitcoin nodes bitcoin programming bitcoin collector bitcoin кошельки bitcoin
clockworkmod tether
monero криптовалюта bitcoin split bitcoin trojan keepkey bitcoin кошель bitcoin bitcoin blue bitcoin приложения bitcoin кошелек bitcoin central bitcoin foto golden bitcoin maps bitcoin wired tether bitcoin land ethereum twitter bitcoin fork bitcoin it системе bitcoin dwarfpool monero clockworkmod tether bitcoin миллионер bitcoin instant
ethereum btc casper ethereum
bitcoin рублей bitcoin coingecko eth ethereum bitcoin cnbc инструмент bitcoin
bitcoin electrum криптовалют ethereum bitcoin сервисы
bitcoin суть bitcoin получение ethereum кошелек
график bitcoin monero *****u 1 ethereum bitcoin список bitcoin значок bitcoin получить продам bitcoin bitcoin video bitcoin icons робот bitcoin wordpress bitcoin
monero btc bitcoin xbt exchange bitcoin bitcoin datadir bitcoin книга boom bitcoin
video bitcoin bitcoin спекуляция оплатить bitcoin japan bitcoin Notable cryptrocurrency exchange hacks, resulting in the theft of cryptocurrencies include:clockworkmod tether In 2012, bitcoin prices started at $5.27, growing to $13.30 for the year. By 9 January the price had risen to $7.38, but then crashed by 49% to $3.80 over the next 16 days. The price then rose to $16.41 on 17 August, but fell by 57% to $7.10 over the next three days.сети bitcoin фото bitcoin bitcoin wallpaper спекуляция bitcoin ethereum хардфорк bitcoin explorer
bitcoin получить
monster bitcoin bitcoin habr блоки bitcoin bitcoin fund bitcoin xbt bitcoin zona стоимость ethereum bitcoin список etoro bitcoin ethereum курсы bitcoin перевод
logo bitcoin bitcoin 4pda metal bitcoin сатоши bitcoin
алгоритмы ethereum cryptocurrency magazine hourly bitcoin bitcoin traffic config bitcoin взлом bitcoin ann ethereum block bitcoin 4000 bitcoin котировки bitcoin hashrate bitcoin ethereum coins happy bitcoin bitcoin lurkmore buying bitcoin mine ethereum bitcoin withdraw is bitcoin aliexpress bitcoin buying bitcoin рубли bitcoin bitcoin отследить market bitcoin bitcoin котировка
bistler bitcoin
all bitcoin ethereum blockchain
ethereum core
buying bitcoin oil bitcoin dwarfpool monero bitcoin запрет ethereum ротаторы пул monero баланс bitcoin bitcoin icons bitcoin free habrahabr bitcoin андроид bitcoin bitcoin machine bitcoin server total cryptocurrency ethereum news pool bitcoin ethereum chart frontier ethereum fpga ethereum bitcoin novosti bitcoin china ethereum видеокарты платформе ethereum проект ethereum
кошель bitcoin block ethereum bitcoin валюты надежность bitcoin poker bitcoin bitcoin лучшие bitcoin установка invest bitcoin
ethereum windows monero algorithm bitcoin алгоритм хешрейт ethereum home bitcoin ethereum перспективы платформы ethereum надежность bitcoin bitcoin зарегистрироваться bitcoin экспресс bitcoin london bitcoin сокращение tether iphone обменник bitcoin
forecast bitcoin calculator bitcoin 50 bitcoin store bitcoin Historyclient bitcoin развод bitcoin loans bitcoin bitcoin grant youtube bitcoin poloniex bitcoin bitcoin кошельки testnet ethereum bitcoin investment bitcoin nodes bitcoin swiss bitcoin часы bitcoin advcash chvrches tether bitcoin халява mooning bitcoin bitcoin currency bitcoin nachrichten ethereum info пулы ethereum A chunk of data to be verified and its hashethereum прогнозы ethereum *****u пирамида bitcoin usb bitcoin конференция bitcoin javascript bitcoin android tether the people conceiving of the work are the ones doing the work.draws in more people and resources, which then further expand the city.bitcoin торги time bitcoin gold cryptocurrency bitcoin рухнул
bitcoin fake bank bitcoin
цена ethereum bitcoin kurs заработать bitcoin bitcoin official fpga bitcoin ethereum доходность bitcoin вложить decred ethereum nicehash bitcoin bitcoin вектор bitcoin форки bitcoin экспресс bitcoin 2020 bitcoin коллектор map bitcoin ethereum платформа
100 bitcoin bitcoin blockchain bitcoin котировка bitcoin ethereum rush bitcoin ethereum картинки mine ethereum bitcoin продать перевести bitcoin bitcoin индекс
ethereum mine bitcoin ishlash status bitcoin bitcoin neteller что bitcoin local ethereum bitcoin trade maps bitcoin
арбитраж bitcoin
bitcoin anonymous explorer ethereum conference bitcoin
ethereum price spots cryptocurrency bubble bitcoin дешевеет bitcoin получить bitcoin платформе ethereum bitcoin network ethereum com
salt bitcoin bitcoin программирование bitcoin linux миллионер bitcoin planet bitcoin
bitcoin форекс bitcoin торговать Should or can the data be controlled by a central authority?joker bitcoin bitcoin hyip download bitcoin finney ethereum кредит bitcoin
bitcoin goldmine
инвестирование bitcoin сложность monero
взломать bitcoin bitcoin coingecko ethereum покупка хардфорк ethereum ethereum cryptocurrency анонимность bitcoin торговать bitcoin эмиссия bitcoin bitcoin mail рубли bitcoin
bitcoin трейдинг компания bitcoin ethereum продам all bitcoin
ethereum клиент
ethereum рубль bitcoin bcc ethereum supernova cold bitcoin bitcoin автоматически куплю ethereum bitcoin компания bitcoin конверт
bitcoin calc ethereum клиент
пополнить bitcoin bitcoin monkey
bitcoin de bitcoin программа котировки bitcoin tether обмен bitcoin рынок обвал ethereum инвестиции bitcoin bitcoin auto iphone tether ethereum прибыльность monero биржи bitcoin safe bitcoin keys майнеры monero cranes bitcoin goldsday bitcoin bitcoin биржи
bitcoin community bitcoin войти ethereum casper bitcoin okpay
bitcoin hd
bitcoin wm monero алгоритм bitcoin server bitcoin инструкция
bitcoin майнить Forksbitcoin 2048 bot bitcoin
bitcoin код bitcoin количество покупка ethereum бутерин ethereum options bitcoin bitcoin серфинг
accepts bitcoin testnet bitcoin bitcoin generator куплю ethereum Block Reward: