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”.
segwit bitcoin block bitcoin сложность monero pro100business bitcoin monero обменять bot bitcoin bitcoin статистика monero майнеры accepts bitcoin
bear bitcoin
bitcoin капча ethereum android ethereum cgminer daemon bitcoin
торги bitcoin bitcoin исходники bitcoin биткоин Central Processing Unit (*****U) Miningtether майнинг
dog bitcoin payoneer bitcoin bitcoin steam bitcoin alliance
bitcoin convert moto bitcoin bitcoin аккаунт abc bitcoin monero btc mine ethereum masternode bitcoin bitcoin info
история ethereum tether limited
doge bitcoin de bitcoin bitcoin trend зарабатывать bitcoin apple bitcoin monero обменник bitcoin zone bitcoin 2048 tether пополнение луна bitcoin server bitcoin reklama bitcoin bitcoin spend
bitcoin приложение bitcoin markets claim bitcoin monetary asset.video bitcoin mmm bitcoin future bitcoin пул bitcoin carding bitcoin генераторы bitcoin stellar cryptocurrency курс ethereum ethereum вывод bitcoin comprar ethereum foundation erc20 ethereum bitcoin vip bitcoin song trezor ethereum кости bitcoin production cryptocurrency bitcoin antminer bitcoin trust зарабатывать bitcoin bitcoin bcc bitcoin make портал bitcoin alpari bitcoin bitcoin galaxy monero купить bitcoin new ethereum crane bitcoin it hosting bitcoin lootool bitcoin monero client bitcoin скачать bitcoin monkey отзыв bitcoin bitcoin grafik money bitcoin магазин bitcoin bitcoin github multiply bitcoin проверка bitcoin online bitcoin tether перевод bitcoin биржи maps bitcoin ocean bitcoin bank bitcoin bitcoin аналитика sgminer monero
ico bitcoin bitcoin мавроди tether программа bitcoin dynamics bitcoin daily cryptocurrency arbitrage blog bitcoin bitcoin mastercard convert bitcoin invest bitcoin bitcoin hesaplama Multipools switch between different altcoins and constantly calculate which coin is at that moment the most profitable to mine. Two key factors are involved in the algorithm that calculates profitability, the block time, and the price on the exchanges. To avoid the need for many different wallets for all possible minable coins, multipools may automatically exchange the mined coin to a coin that is accepted in the mainstream (for example bitcoin). Using this method, because the most profitable coins are being mined and then sold for the intended coin, it is possible to receive more coins in the intended currency than by mining that currency alone. This method also increases demand on the intended coin, which has the side effect of increasing or stabilizing the value of the intended coin.Cryptocurrency walletмагазин bitcoin виджет bitcoin bitcoin roll bitcoin direct
bitcoin earn 2 bitcoin
bitcoin индекс bitcoin создатель майнер monero bitcoin zona bitcoin обмен
bitcoin motherboard bitcoin analytics machine bitcoin bitcoin обменники bitcoin sberbank poloniex monero dogecoin bitcoin daemon bitcoin ethereum упал
bitcoin simple
Similarities Between Bitcoin and Litecoinмайнинг tether
ethereum пулы bitcoin программа bitcoin 2048 bitcoin чат
wikipedia cryptocurrency картинка bitcoin pull bitcoin day bitcoin bitcoin hype bitcoin компания pos ethereum boxbit bitcoin bitcoin чат pixel bitcoin windows bitcoin bitcoin magazin bitcoin world надежность bitcoin bitcoin анализ bitcoin значок bitcoin database bitcoin суть
кран ethereum convert bitcoin sun bitcoin bitcoin symbol ethereum википедия ethereum pool keys bitcoin сложность ethereum International Payments: A Big Advantageнастройка monero оборот bitcoin ethereum faucet fun bitcoin конец bitcoin konvert bitcoin bitcoin reindex bitcoin курс
bitcoin 2020 fork bitcoin bitcoin weekend bitcoin faucets bitcoin фильм ethereum обвал testnet bitcoin yota tether bitcoin 4096 exchanges bitcoin bitcoin 2048 форк bitcoin форум bitcoin bitcoin apk
перспективы ethereum ethereum stats bitcoin farm технология bitcoin bitcoin графики monero bitcoin окупаемость ethereum russia 6000 bitcoin bitcoin зарегистрировать
decred cryptocurrency bitcoin калькулятор coinmarketcap bitcoin ethereum com ethereum raiden сервер bitcoin casascius bitcoin zebra bitcoin sportsbook bitcoin Are there other major investors who are investing in it? It’s a good sign if other well-known investors want a piece of the currency.enterprise ethereum ethereum контракты bitcoin land bitcoin nonce tether usb future bitcoin ставки bitcoin
bitcoin foto bitcoin банк usdt tether bitcoin qt change bitcoin bitcoin обои ethereum crane ethereum twitter bitcoin ключи ethereum проблемы get bitcoin
net bitcoin майнинга bitcoin bitcoin мошенники bitcoin пирамиды Special Considerationsbitcoin symbol multisig bitcoin
vps bitcoin bitcoin price bitcoin weekend epay bitcoin client ethereum moneybox bitcoin андроид bitcoin
grayscale bitcoin monero hashrate investment bitcoin puzzle bitcoin bitcoin register ecopayz bitcoin
1000 bitcoin ethereum com ethereum проблемы bitcoin minecraft froggy bitcoin bitcoin apple
bitcoin майнер fork bitcoin bitcoin bitrix bitcoin click froggy bitcoin cryptocurrency logo фри bitcoin faucet cryptocurrency
polkadot su bitcoin пополнить
bitcoin продам puzzle bitcoin metal bitcoin flash bitcoin bitcoin frog bitcoin project bitcoin pdf cryptocurrency forum монета ethereum love bitcoin bitcoin desk bitcoin paypal bitcoin plus cryptocurrency это compensating for many of the losses incurred in the rest of the portfolio.vector bitcoin bitcoin explorer отзывы ethereum видеокарты bitcoin
обмена bitcoin monero ico byzantium ethereum получить bitcoin основатель ethereum bitcoin bazar
bitcoin aliens ninjatrader bitcoin ethereum vk bitcoin машины bitcoin traffic bitcoin putin bitcoin obmen iota cryptocurrency bitcoin linux новые bitcoin ethereum core bitcoin song dash cryptocurrency bitcoin спекуляция bitcoin mac bitcoin server отзыв bitcoin bitcoin books ethereum динамика bitcoin торговать установка bitcoin ethereum заработок bitcoin plus обменники ethereum bitcoin bitrix логотип bitcoin ethereum geth ethereum frontier bitcoin анонимность ethereum block pokerstars bitcoin programming bitcoin ethereum 1070 отзыв bitcoin keys bitcoin bitcoin tor rotator bitcoin exchanges bitcoin ethereum получить bitcoin compromised bitcoin sha256 контракты ethereum список bitcoin coinder bitcoin bitcoin mercado nicehash monero ethereum обвал bitcoin rotator bitcoin 2000 puzzle bitcoin ethereum contracts goldmine bitcoin bitcoin eobot bitcoin sha256 search bitcoin конвертер bitcoin
смысл bitcoin abi ethereum bear bitcoin казино ethereum вложить bitcoin decred cryptocurrency bitcoin 4096 bitcoin bitcointalk cubits bitcoin generator bitcoin neo cryptocurrency l bitcoin ethereum ann all cryptocurrency bitcoin debian bitcoin блог bitcoin vip bitcoin options bitcoin dance bitcoin video карты bitcoin tether bootstrap tera bitcoin bitcoin бесплатные майнер ethereum blogspot bitcoin
ethereum валюта avto bitcoin monero proxy
bitcoin email
bitcoin surf bank cryptocurrency tether iphone кости bitcoin bitcoin трейдинг ethereum platform key bitcoin auto bitcoin atm bitcoin
flash bitcoin bitcoin ads early-stage upstart) are reflected in Bitcoin prices. Bitcoin’s bubble-like adoption processairbitclub bitcoin loan bitcoin конвертер bitcoin bitcoin рубль ethereum клиент 2016 bitcoin day bitcoin bitcoin magazin bitcoin nvidia bitcoin коллектор maining bitcoin халява bitcoin
криптовалюта tether
frontier ethereum подтверждение bitcoin api bitcoin ethereum покупка japan bitcoin bitcoin расчет bitcoin openssl bitcoin ecdsa bitcoin адрес mine ethereum bitcoin сделки cryptocurrency calendar bitcoin 0 bitcoin msigna usd bitcoin bitcoin ферма monero btc bitcoin okpay avto bitcoin nicehash bitcoin bitcoin greenaddress bitcoin doge elena bitcoin casper ethereum
bitcoin обменники bitcoin flapper neo cryptocurrency bitcoin widget мавроди bitcoin вывод monero bitcoin blockstream
кран bitcoin gas ethereum bitcoin 2000 ethereum вывод ethereum кошельки topfan bitcoin bitcoin stock bitcoin arbitrage майнинга bitcoin network bitcoin ethereum купить iphone bitcoin bitcoin take super bitcoin Cons of Using a P2P Exchange:According to Mark T. Williams, as of 30 September 2014, bitcoin has volatility seven times greater than gold, eight times greater than the S%trump2%P 500, and 18 times greater than the US dollar. Hodl is a meme created in reference to holding (as opposed to selling) during periods of volatility.Also, if mining doesn't seem like your cup of tea, you could also just purchase some Bitcoin on one of the more-reliable exchanges, such as Coinbase or Binance.What is Blockchain?bitcoin bot Lack of possession of the Bitcoin mining hardwarebitcoin получение bitcoin ocean monero майнинг bitcoin сатоши
индекс bitcoin обмен monero bitcoin tor котировки ethereum As of 2016 it was estimated there were over 800 bitcoin ATMs operating globally, the majority (500+) being in the United States.simple bitcoin satoshi bitcoin
exchange monero bitcoin pools ethereum видеокарты bitcoin dice bitcoin masters monero кран coingecko ethereum ethereum алгоритм bitcoin сервисы заработать bitcoin dapps ethereum ethereum classic loans bitcoin Special Considerations