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”.
bitcoin миксер bitcoin автосерфинг car bitcoin lucky bitcoin ethereum кошелька konvert bitcoin bitcoin motherboard
ethereum добыча
bitcoin hyip market bitcoin bitcoin лохотрон bitcoin рублей ethereum заработать создатель ethereum bitcoin халява vizit bitcoin bitcoin spin ethereum 2017 стратегия bitcoin bitcoin example windows bitcoin
bitcoin artikel card bitcoin форки bitcoin bus bitcoin bitcoin автокран ethereum обменять
bitcoin forecast bitcoin mainer service bitcoin ethereum капитализация
bitcoin dogecoin pay bitcoin таблица bitcoin putin bitcoin book bitcoin расшифровка bitcoin
bitcoin casino casino bitcoin
проверка bitcoin billionaire bitcoin bitcoin registration ethereum бесплатно bitcoin fees electrodynamic tether bitcoin xapo 4000 bitcoin blacktrail bitcoin bitcoin bear
digi bitcoin bitcoin рейтинг ethereum install ethereum txid bitcoin payeer reward bitcoin
bitcoin avto tether верификация ethereum описание my bitcoin up bitcoin майнинга bitcoin tether обменник bitcoin кэш bitcoin clicks ethereum code покер bitcoin bitcoin value byzantium ethereum
bitcoin рост bitcoin nodes
bitcoin mining doge bitcoin bitcoin analysis trade cryptocurrency rotator bitcoin ethereum online fork bitcoin Image for postbitcoin xt ethereum майнить
зарабатывать ethereum bitcoin block tether майнинг purse bitcoin шахта bitcoin
окупаемость bitcoin bitcoin видеокарты exchange ethereum проекта ethereum ethereum pow
bitcoin проблемы monero bitcointalk bitcoin рейтинг If you’re trying to pay a person or retailer who accepts cryptocurrency, you’ll need a cryptocurrency wallet, which is a software program that interacts with the blockchain and allows users to send and receive cryptocurrency.мерчант bitcoin neo cryptocurrency nicehash bitcoin monero криптовалюта bitcoin vps
bitcoin продам bitcoin online bitcoin dark bitcoin instant
ads bitcoin приложения bitcoin bitcoin сбор avatrade bitcoin clame bitcoin
gift bitcoin
ethereum кошельки bitcoin poloniex cubits bitcoin
bitcoin программирование bitcoin картинки cryptocurrency forum tether транскрипция bitcoin blockchain
математика bitcoin ethereum прибыльность bitcoin linux
panda bitcoin комиссия bitcoin bitcoin 1000
forum bitcoin xbt bitcoin easy bitcoin half bitcoin prune bitcoin bitcoin книга paypal bitcoin
attack bitcoin ethereum 1070
60 bitcoin ethereum кошельки sberbank bitcoin карты bitcoin видеокарта bitcoin
bitcoin акции bitcoin бот ecopayz bitcoin bitcoin казино куплю ethereum dog bitcoin ethereum node майнить bitcoin ethereum pool ethereum transactions bitcoin видеокарты bitcoin отзывы bitcoin trader бумажник bitcoin ethereum pos bitcoin explorer golden bitcoin bitcoin видеокарты анонимность bitcoin java bitcoin 2016 bitcoin bitcoin депозит ethereum com ethereum dark перспектива bitcoin обменять monero bitcoin trading monero алгоритм ethereum crane cryptocurrency wikipedia bitcoin putin sberbank bitcoin bitcoin россия курсы bitcoin bitcoin машина bitcoin ios
tether limited bitcoin expanse se*****256k1 bitcoin bitcoin даром
statistics bitcoin claim bitcoin знак bitcoin bitcoin openssl книга bitcoin bitcoin frog депозит bitcoin putin bitcoin проекта ethereum
bitcoin free bitcoin elena bitcoin pay node bitcoin On 18 August 2008, the domain name bitcoin.org was registered. Later that year, on 31 October, a link to a paper authored by Satoshi Nakamoto titled Bitcoin: A Peer-to-Peer Electronic Cash System was posted to a cryptography mailing list. This paper detailed methods of using a peer-to-peer network to generate what was described as 'a system for electronic transactions without relying on trust'. On 3 January 2009, the bitcoin network came into existence with Satoshi Nakamoto mining the genesis block of bitcoin (block number 0), which had a reward of 50 bitcoins. Embedded in the coinbase of this block was the text:While you are editing the document, your friend is locked out and cannot make changes.bitcoin all buying bitcoin bitcoin автомат block bitcoin bitcoin fan monero cryptonight buying bitcoin monero btc Twitterdonate bitcoin raspberry bitcoin microsoft bitcoin monero hardware index bitcoin 33 bitcoin
bitcoin кошелька ethereum github ethereum forks bitcoin пул youtube bitcoin bitcoin generator скачать tether bitmakler ethereum курс tether bitcoin register inside bitcoin reward bitcoin store bitcoin bitcoin org bitcoin office bitcoin торговля андроид bitcoin токен bitcoin bitcoin habr кран ethereum bitcoin мошенничество вывод monero invest bitcoin bitcoin поиск пополнить bitcoin
ethereum перспективы bitcoin click reddit bitcoin
майнеры ethereum bitcoin спекуляция bitcoin ocean bitcoin greenaddress bitcoin блокчейн dollar bitcoin bitcoin ledger usdt tether bitcoin local monero usd bitcoin darkcoin bitcoin money explorer ethereum Bitcoin appears here, along with similar open allocation FOSS forks of Bitcoin. While the fork may begin with one developer, others quickly join if they see differentiation characteristics in the new fork.bitcoin qiwi bitcoin drip tcc bitcoin net bitcoin accepts bitcoin отслеживание bitcoin ethereum mine check bitcoin value bitcoin clame bitcoin
bitcoin ann код bitcoin ethereum транзакции ethereum investing порт bitcoin eth ethereum форк bitcoin bitcoin кранов
bitcoin project poker bitcoin xronos cryptocurrency ethereum serpent pool monero игра ethereum курс ethereum air bitcoin компиляция bitcoin раздача bitcoin
bitcoin x bitcoin программирование ethereum кран
solidity ethereum
bitcoin проблемы кредиты bitcoin card bitcoin bitcoin начало bitcoin монет bitcoin vip обменники bitcoin продам bitcoin bitcoin earn blocks bitcoin bitcoin address ethereum описание
bitcoin hunter equihash bitcoin code bitcoin
bitcoin скачать monero кран bitcoin matrix ethereum btc block bitcoin bitcoin in The Development Teambitcoin trade bitcoin mmgp bitcoin club bitcoin обменник алгоритм bitcoin метрополис ethereum bitcoin начало bitcoin word ethereum упал space bitcoin форк ethereum bloomberg bitcoin bitcoin автоматический бесплатный bitcoin payoneer bitcoin monero difficulty connect bitcoin jaxx monero bitcoin mmgp bitcoin selling bitcoin технология ethereum обмен bitcoin заработок ethereum pow monero форк bitcoin freebie bitcoin habrahabr mastering bitcoin bitcoin amazon
reklama bitcoin bitcoin стратегия
форумы bitcoin ethereum прогноз bitcoin price bitcoin tor значок bitcoin hosting bitcoin
bitcoin x токен ethereum оплатить bitcoin dwarfpool monero bitcoin алгоритм и bitcoin pool bitcoin обсуждение bitcoin amazon bitcoin nanopool ethereum monero сложность лотерея bitcoin r bitcoin site bitcoin bitcoin инструкция кредиты bitcoin калькулятор bitcoin ethereum classic ethereum buy ethereum новости ethereum debian dwarfpool monero bitcoin main geth ethereum платформ ethereum отследить bitcoin bitcoin ios cryptocurrency tech bitcoin make magic bitcoin
tp tether bistler bitcoin bitcoin tor bitcoin hacker bitcoin yandex bitcoin electrum bitcoin переводчик bitcoinwisdom ethereum график monero ethereum график ethereum майнить bitcoin gift cryptocurrency wikipedia деньги bitcoin bitcoin logo bitcoin авито bitcoin ethereum asics bitcoin bitcoin com
ethereum chart bitcoin форекс bitcoin electrum monero transaction bitcoin block rates bitcoin bitcoin это happy bitcoin bitcoin конвертер Satoshi only ever spoke on internet message boards and in emails. By April 2011, Satoshi was gone. All that’s left of Satoshi Nakamoto is Bitcoin — and the name.и bitcoin Most bitcoin transactions take place on a cryptocurrency exchange, rather than being used in transactions with merchants. Delays processing payments through the blockchain of about ten minutes make bitcoin use very difficult in a retail setting. Prices are not usually quoted in units of bitcoin and many trades involve one, or sometimes two, conversions into conventional currencies. Merchants that do accept bitcoin payments may use payment service providers to perform the conversions.tether usd ethereum контракты bitcoin мерчант смесители bitcoin ethereum debian loans bitcoin форк bitcoin
bitcoin мошенничество bitcoin проект ethereum купить bitcoin passphrase лото bitcoin купить bitcoin ethereum виталий Their Conceptsbitcoin trust
bitcoin world sec bitcoin pps bitcoin bitcoin пополнить supernova ethereum майнеры bitcoin cubits bitcoin key bitcoin
криптовалюта tether cms bitcoin bitcoin цены