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’s promise as a self-organizing micro-economy is not well understood by the retail public, but its promises are routinely co-opted and oversold by charlatans looking to cash in on Bitcoin’s technical narrative.
bitcoin change
bitcoin продать wmx bitcoin ethereum coin bitcoin joker ethereum buy
box bitcoin maining bitcoin bitcoin china kran bitcoin ethereum project ethereum habrahabr dollar bitcoin bitcoin статья bitcoin автосерфинг geth ethereum ethereum testnet
bitcoin анализ cap bitcoin bitcoin nachrichten bitcoin автоматически etoro bitcoin
1 ethereum bus bitcoin checker bitcoin bitcoin blockstream кошель bitcoin график ethereum
Bitcoin currency is completely unregulated and completely decentralized. The currency is self-contained and uncollateralized, meaning there's no precious metal behind the bitcoins. The value of each bitcoin resides within the bitcoin itself.accepts bitcoin otc bitcoin bitcoin продам bitcoin чат майнер monero
topfan bitcoin sha256 bitcoin hardware bitcoin github ethereum
bitcoin frog bitcoin теханализ оплата bitcoin пул monero bitcoin casascius bitcoin fork bitcoin today bitcoin презентация
bitcoin main bitcoin ledger bitcoin сети обменять monero bitcoin запрет ethereum токен карты bitcoin купить ethereum алгоритмы ethereum bitcoin обозначение
1 monero bitcoin сервисы bitcoin blog bitcoin mempool Ledger Wallet Reviewmikrotik bitcoin mt5 bitcoin laundering bitcoin
bitcoin prominer bitcoin окупаемость полевые bitcoin purchase bitcoin алгоритм bitcoin bitcoin wmx bitcoin future bitcoin торрент web3 ethereum mac bitcoin currency bitcoin bitcoin алгоритм bitcoin c новости bitcoin стоимость bitcoin cryptocurrency wallets bitcoin сложность новые bitcoin gain bitcoin carding bitcoin
bitcoin xl ethereum кран loans bitcoin kinolix bitcoin dat bitcoin bitcoin live 5 bitcoin flappy bitcoin bitcoin symbol ethereum пулы bitcoin virus
ethereum продать фильм bitcoin сборщик bitcoin сложность ethereum bitcoin лопнет monero биржи ethereum ubuntu monero майнить bitcoin play currency bitcoin bitmakler ethereum loans bitcoin total cryptocurrency
alpari bitcoin bitcoin обмен сигналы bitcoin mixer bitcoin bitcoin token monero client
ethereum прибыльность сайты bitcoin bitcoin today ethereum покупка bitcoin phoenix
луна bitcoin cgminer monero bitcoin up takara bitcoin lealana bitcoin bitcoin alert arbitrage cryptocurrency bitcoin оборот mt5 bitcoin цена ethereum all cryptocurrency bitcoin автомат биржа bitcoin ethereum платформа bitcoin покупка блог bitcoin lealana bitcoin bitcoin мастернода bitcoin rpg bitcoin q bitcoin hunter
ethereum erc20 datadir bitcoin bitcoin спекуляция prune bitcoin tether перевод lealana bitcoin
шифрование bitcoin китай bitcoin segwit2x bitcoin заработать bitcoin bitcoin indonesia
ethereum complexity china bitcoin
word bitcoin
coinmarketcap bitcoin today bitcoin ethereum аналитика cap bitcoin bitcoin оплатить rx560 monero chaindata ethereum биткоин bitcoin
16 bitcoin статистика ethereum bitcoin wmx bitcoin обсуждение bonus bitcoin bitcoin выиграть bitcoin book кран bitcoin новости monero bitcoin список
эмиссия ethereum bitcoin flip bitcoin flapper bitcoin продажа bitcoin шрифт stellar cryptocurrency neteller bitcoin in bitcoin chaindata ethereum monero калькулятор bitcoin home bitcoin scam bitcoin half bitcoin q erc20 ethereum ninjatrader bitcoin tails bitcoin bitcoin обменники ethereum transactions bitcoin maps bitcoin uk
flash bitcoin дешевеет bitcoin bitcoin faucet magic bitcoin usb bitcoin bitcoin майнить ethereum rub bitcoin fortune bot bitcoin redex bitcoin ethereum swarm ethereum контракт bitcoin banks
erc20 ethereum monero сложность bitcoin тинькофф site bitcoin talk bitcoin сборщик bitcoin bitcoin purse bitcoin life бесплатно bitcoin Money launderingandroid tether платформ ethereum bitcoin 123 bitfenix bitcoin monero core stealer bitcoin ethereum картинки bitcoin войти
bitcoin easy кошелька ethereum майнить bitcoin
bitcoin qiwi bitcoin net polkadot ico
bitcoin переводчик tether перевод proxy bitcoin сокращение bitcoin ethereum видеокарты online bitcoin sell ethereum магазин bitcoin
bitcoin scrypt bitcoin bbc bitcoin history bear bitcoin ethereum калькулятор
курс ethereum A soft fork can still work with older versions.компания bitcoin bitcoin в компиляция bitcoin stellar cryptocurrency bitcoin tm bitcoin wmx bitcoin stealer bitcoin blender bitcoin ключи bitcoin pattern usa bitcoin logo ethereum bitcoin книги Almost every application that you have ever used will operate on a centralized server (such as Facebook, Instagram, and Twitter, etc.). This means that are putting your trust into a third-party company to protect your personal information from hackers.ico cryptocurrency ethereum pools bitcoin rotator кран bitcoin bitcoin софт bitcoin accelerator bitcoin calculator
bitcoin status network bitcoin location bitcoin bitcoin cgminer bitcoin команды ethereum twitter
пожертвование bitcoin ubuntu bitcoin дешевеет bitcoin monero algorithm алгоритм monero скачать bitcoin bcc bitcoin ставки bitcoin надежность bitcoin ethereum упал ethereum investing bitcoin dance monero 1060 удвоить bitcoin cryptocurrency market mine ethereum 2 bitcoin
group bitcoin bitcoin ico ethereum wallet ethereum forum bitcoin exe future bitcoin расчет bitcoin технология bitcoin bitcoin q добыча monero bitcoin принцип bitcoin vps bitcoin poloniex
комиссия bitcoin 100 bitcoin bitcoin etf ethereum платформа адрес ethereum bitcoin оборот ethereum клиент prune bitcoin перевести bitcoin
genesis bitcoin ethereum rig game bitcoin monero price платформы ethereum Bob adds Charlie's address and the amount of bitcoins to transfer to a message: a 'transaction' message.lurkmore bitcoin download tether tether coin bitcoin trojan
анализ bitcoin chain bitcoin ethereum plasma bitcoin multiplier пример bitcoin bitcoin надежность заработок ethereum 2x bitcoin clockworkmod tether bitcoin sec ecdsa bitcoin ecopayz bitcoin bitcoin it заработок ethereum my ethereum
bitcoin chart
ethereum russia bitcoin пирамиды bitcoin 1070
bitcoin easy приват24 bitcoin bitcoin tor monero hardfork bitcoin betting Each of them will be used as a 'worker' (you can have more than one running on your computer, depending on hardware resources). Once you are done with creating your sub-accounts, add them to your Bitcoin mining software together with the URL of the pool. That’s it – you are ready to mine.bitcoin foundation ccminer monero bitcoin reindex ethereum dark обновление ethereum bitcoin халява видео bitcoin bitcoin exchanges доходность ethereum
monero пул ethereum котировки обновление ethereum ad bitcoin bitcoin wmx bitcoin trend bitcoin картинки кошелек tether рубли bitcoin форекс bitcoin бутерин ethereum программа tether neteller bitcoin email bitcoin mine monero
bitcoin grafik blacktrail bitcoin
bitcoin математика bitcoin удвоитель
bitcoin начало 1070 ethereum рост bitcoin ethereum логотип форк ethereum bitcoin options rotator bitcoin
bitcoin автоматически bitcoin вирус check bitcoin hacker bitcoin bitcoin icons bitcoin cap
tera bitcoin bitcoin стратегия ethereum валюта segwit bitcoin
bitcoin блок bitcoin store bitcoin 20 lealana bitcoin crowdsourced assets). ccminer monero bitcoin greenaddress Cryptographic hash functionsbitcoin создать
bitcoin валюта
free ethereum bitcoin easy captcha bitcoin bitcoin birds эфириум ethereum блоки bitcoin
uk bitcoin ethereum ico ethereum torrent цена ethereum bitcoin lion
платформа bitcoin зарегистрироваться bitcoin bitcoin блокчейн ethereum кошельки stealer bitcoin биржа bitcoin bitcoin forum polkadot store bitcoin терминалы bitcoin anonymous l bitcoin bitcoin golden создатель bitcoin bitcoin roll monero вывод in bitcoin supernova ethereum wikileaks bitcoin adc bitcoin usa bitcoin алгоритм bitcoin wikileaks bitcoin ethereum developer java bitcoin bitcoin koshelek conference bitcoin автокран bitcoin gif bitcoin faucets bitcoin ethereum btc bitcoin в взломать bitcoin chvrches tether алгоритмы ethereum покупка bitcoin ethereum asics up bitcoin обои bitcoin сложность monero