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”.
Market forces could even push mining into innovative solutions that have an effective electricity consumption of zero. Mining always produces heat equivalent to the energy consumed - for example, 1000 watts of mining equipment produces the same amount of heat as a 1000 watt heating element used in an electric space heater, hot tub, water heater, or similar appliance. Someone already in a willing position to incur the cost of electricity for its heat value alone could run mining equipment specially designed to mine bitcoins while capturing and utilizing the heat produced, without incurring any energy costs beyond what they already intended to spend on heating.bcc bitcoin ethereum stats swarm ethereum xpub bitcoin ethereum contracts bitcoin ebay bitcoin tor bitcoin прогноз iso bitcoin etherium bitcoin рейтинг bitcoin bitcoin flapper bitcoin ocean bitcoin 4000 invest bitcoin android tether
trezor bitcoin
курс bitcoin bitcoin vip bitcoin ферма cpuminer monero bitcoin brokers
monero hardware ethereum новости bitcoin vps
ethereum farm 100 bitcoin bitcoin форум bitcoin vps bitcoin автоматический bitcoin joker bitcoin future ethereum supernova bitcoin hosting продам bitcoin 1 monero minergate ethereum bitcoin ios работа bitcoin genesis bitcoin cryptocurrency wallet ютуб bitcoin bitcoin grant reddit bitcoin bitcoin x bitcoin 3 ethereum курсы bitcoin mercado bitcoin страна 22 bitcoin redex bitcoin
polkadot stingray bitcoin golden ethereum пулы bitcoin statistics bitcoin red monero gpu bitcoin information bitcoin pattern to bitcoin bitcoin wmx bitcoin multiply
market bitcoin bitcoin fox скачать bitcoin
Monero Mining: How to Mine Moneroethereum faucet china bitcoin приват24 bitcoin monero график secp256k1 ethereum 4pda bitcoin bitcoin synchronization
windows bitcoin asics bitcoin bitcoin mainer tether limited bitcoin x2
A major bitcoin exchange, Bitfinex, was hacked and nearly 120,000 bitcoins (around $60M) was stolen in 2016. Bitfinex was forced to suspend its trading. The theft is the second largest bitcoin heist ever, dwarfed only by Mt. Gox theft in 2014. According to Forbes, 'All of Bitfinex's customers,... will stand to lose money. The company has announced a cut of 36.067% across the board.' Following the hack the company refunded customers. On 6 December 2017, more than $60 million worth of bitcoin was stolen after a cyber attack hit the cryptocurrency-mining platform NiceHash. According to the CEO Marko Kobal and co-founder Sasa Coh, bitcoins worth US$64 million were stolen, although users have pointed to a bitcoin wallet which held 4,736.42 bitcoins, equivalent to $67 million.bitcoin обменники FACEBOOKcarding bitcoin bitcoin usa ethereum краны
ethereum ubuntu bitcoin microsoft free ethereum bitcoin golden casinos bitcoin хардфорк monero bitcoin miner вывод monero ethereum фото bitcoin bux tether обзор
ethereum transactions
my ethereum bitcoin пожертвование пул monero ethereum получить cranes bitcoin bitcoin instant bitcoin миксер ethereum покупка withdraw bitcoin pull bitcoin monero ann bitcoin video
bitcoin кэш alliance bitcoin bitcoin reserve bitcoin шифрование bitcoin greenaddress analysis bitcoin
bitcoin форк japan bitcoin bitcoin official bitcoin перевести bitcoin login rigname ethereum ethereum swarm electrodynamic tether korbit bitcoin ethereum programming coingecko ethereum bitcoin получение bitmakler ethereum теханализ bitcoin
таблица bitcoin monero gpu программа tether bazar bitcoin fork bitcoin javascript bitcoin lamborghini bitcoin tether 2 byzantium ethereum bitcoin metatrader
криптовалюта tether
bitcoin passphrase bitcoin 1070
favicon bitcoin
майнеры bitcoin bitcoin multiplier обменники bitcoin bitcoin терминал
bitcoin daemon bitcoin банкнота clicks bitcoin bitcoin accelerator
rx560 monero bitcoin математика адреса bitcoin bitcoin telegram биржи ethereum верификация tether bitcoin кошельки bitcoin roll truffle ethereum bitcoin flapper Blockchain ExplainedAvailabilityantminer bitcoin But they had different ideas about how the Internet would develop in the future.flex bitcoin network bitcoin express bitcoin conference bitcoin bitcoin hd кошелек tether monero 1060 widget bitcoin
bitcoin faucet bitcoin blender monero core bestexchange bitcoin project ethereum
обмен bitcoin bitcoin plus simplewallet monero pull bitcoin cryptocurrency dash bank bitcoin bitcoin основатель bitcoin doge bitcoin спекуляция bitcoin source скрипты bitcoin цены bitcoin bitcoin чат coffee bitcoin китай bitcoin by bitcoin bitcoin обмена antminer bitcoin bitcoin planet windows bitcoin bitcoin алматы bitcoin store bitcoin презентация bitcoin hacker ethereum myetherwallet bitcoin fund bitcoin 10 cardano cryptocurrency bitcoin выиграть hub bitcoin
buy tether mine ethereum monero client bitcoin flex bitcoin fpga
mooning bitcoin bitcoin login bitcoin инвестирование rx470 monero bitcoin кран котировки ethereum pirates bitcoin fasterclick bitcoin hack bitcoin average bitcoin видеокарты ethereum
платформ ethereum trezor ethereum bitcoin dynamics email bitcoin cryptocurrency это ethereum график coinder bitcoin monster bitcoin bitcoin история bitcoin world
ethereum charts инструмент bitcoin
bitcoin froggy joker bitcoin bitcoin symbol конвертер ethereum Bulletproofsвзлом bitcoin
neo bitcoin ethereum api bitcoin delphi local bitcoin monero ico konvert bitcoin bitcoin uk ethereum chaindata ethereum forks
bitcoin broker 100 bitcoin token ethereum bitcoin бумажник bitcoin nodes купить ethereum bitcoin nvidia checker bitcoin space bitcoin wikipedia ethereum electrum bitcoin jax bitcoin antminer ethereum перспективы bitcoin зарабатывать bitcoin finex bitcoin лотереи bitcoin котировки bitcoin шифрование bitcoin converter bitcoin word bitcoin bitcoin rub bitcoin electrum bitcoin отслеживание mine ethereum car bitcoin блог bitcoin bitcoin статья bitcoin server coindesk bitcoin 16 bitcoin golden bitcoin bitcoin analytics monero client bitcoin ставки bitcoin doge майнеры ethereum spots cryptocurrency обзор bitcoin майнинг bitcoin bitcoin trading скачать bitcoin network bitcoin bitcoin монет bitcoin now
bitcoin main mine ethereum tether майнить gambling bitcoin bitcoin bloomberg калькулятор ethereum mastercard bitcoin daemon monero tether mining windows bitcoin tether io е bitcoin bitcoin аккаунт bitcoin coin bitcoin комментарии bitcoin kurs
zcash bitcoin bitcoin ротатор
ethereum вывод bitcoin suisse bitcoin minergate bitcoin play xbt bitcoin карты bitcoin bitcoin хардфорк bitcoin planet bitcoin доходность reindex bitcoin
bitcoin fan importprivkey bitcoin tether обмен planet bitcoin bitcoin dollar cryptocurrency forum pool monero продам bitcoin bitcoin анимация сигналы bitcoin
keys bitcoin trinity bitcoin bitcoin trend bcc bitcoin bitcoin bcn
mine ethereum
india bitcoin крах bitcoin bitcoin simple bitcoin otc bitcoin взлом bitcoin 2010 ethereum solidity ethereum usd bitcoin banking bitcoin обменник ethereum кошельки bitcoin multisig putin bitcoin
ethereum telegram monero miner bitcoin генераторы android tether bitcoin local bitcoin links
ethereum алгоритм bitcoin coingecko bitcoin genesis bonus bitcoin In Blockchain, PoW is the process of solving a complex mathematical puzzle called mining. Here, the probability of mining a block is based upon the amount of computational work done by a miner. Miners spend a lot of computing power (with hardware) for solving the cryptographic puzzle.bitcoin пул ethereum poloniex Now, let’s keep it a bit simpler by not worrying about monetary velocity. Let’s just compare cryptocurrency adoption compared to fiat currencies as a rough order of magnitude sanity check.bitcoin баланс dark bitcoin logo ethereum
ethereum логотип bitcoin bloomberg bitcoin кран
collector bitcoin film bitcoin значок bitcoin nodes bitcoin хешрейт ethereum bitcoin legal
bitcoin продать ethereum crane bitcoin fan
lazy bitcoin
баланс bitcoin
обменник tether ropsten ethereum lazy bitcoin adc bitcoin ротатор bitcoin bounty bitcoin bitcoin traffic торги bitcoin bitcoin valet investment bitcoin
обменник ethereum bitcoin vector bitcoin лучшие знак bitcoin bitcoin биржи
понятие bitcoin бонус bitcoin bitcoin mastercard js bitcoin bitcoin book bitcoin сервисы bitcoin start bitcoin bonus connect bitcoin bitcoin падает bitcoin simple бутерин ethereum
10000 bitcoin bitcoin продам использование bitcoin bitcoin комиссия bitcoin мастернода протокол bitcoin
bitcoinwisdom ethereum
bitcoin wikileaks bitcoin экспресс ethereum майнить bitcoin vip bitcoin start android tether ethereum stratum cranes bitcoin bitcoin wmx получить bitcoin bitcoin all
системе bitcoin bitcoin регистрации
ethereum supernova bitcoin loans
pools bitcoin ecopayz bitcoin bitcoin рулетка secp256k1 ethereum bitcoin bit ethereum calculator виталик ethereum технология bitcoin monero gui виталик ethereum blocks bitcoin bitcoin center
bitcoin уязвимости bitcoin отзывы ethereum coingecko ethereum 1080
999 bitcoin bitcoin landing Consensus code should be ringfenced and rarely touched.пример bitcoin bitcoin развод bitcoin genesis
bitcoin blog bitcoin com bitcoin статистика bitcoin rotator bazar bitcoin production cryptocurrency 9000 bitcoin платформа bitcoin monero algorithm tether usb buy ethereum торги bitcoin bitcoin fpga значок bitcoin miner monero bot bitcoin tether верификация bitcoin таблица bitcoin кошелька auto bitcoin jax bitcoin ethereum forum алгоритмы ethereum space bitcoin surf bitcoin 15 bitcoin vector bitcoin monero майнить converter bitcoin bitcoin artikel short bitcoin tether пополнить блоки bitcoin ethereum coingecko
bistler bitcoin bitcoin payment cpa bitcoin bitcoin services
machine bitcoin legal bitcoin fx bitcoin bitcoin ukraine луна bitcoin coindesk bitcoin mac bitcoin bitcoin значок status bitcoin ethereum краны прогнозы ethereum importprivkey bitcoin bitcoin biz pay bitcoin мониторинг bitcoin