Stably Blog

Understanding Proof of Work

If you haven’t already, read Understanding Hash Functions and Understanding Blocks as a primer for this article.

Proof-of-Work (PoW) is a consensus mechanism for distributed blockchains. PoW is used to create new blocks and forces miners to use massive amounts of electricity and computing power to produce a valid block.

When a miner produces a valid block, they are rewarded and given the ‘block reward’. In Bitcoin, that block reward is currently 12.5 Bitcoin.

Target Hash

To produce a valid block, the hash of the block must be of a certain value. Hashes are just large numbers represented in hexadecimal form. In order for a block to be valid, the hash (a number) must be below a target value. This target value is adjusted based on the amount of computing (or hashing) power of all the miners.

Nonce

Recall that blocks include something called a nonce. A nonce is a number that is combined with the rest of the data in the block to produce a hash.

Miners are racing to find the correct nonce (a number) to combine with the other block data. If the hash of this nonce and block data is above the target value, it is not a valid block.

The miner will then retry with a new nonce, and hash the data again. This is done over and over again until a miner finds a nonce that when combined with block data, produces a valid block.

This process of trying different nonces, hashing, and then comparing to the target value is what Proof-of-Work is. This process requires a lot of computing power and therefore a lot of electricity.

Why PoW?

Proof-of-Work is necessary for stopping attacks on the Bitcoin network. Due to how much electricity miners must use, PoW incentivizes honest behavior. Mining on a different version of the blockchain or going back and trying to change blocks is just a waste of electricity, a waste of money.

PoW makes it so a malicious miner must have 51% of the network’s computing (hashing) power in order to successfully carry out an attack, this is known as a 51% attack. Equipment costs and electricity costs to achieve 51% of the Bitcoin network’s computing power make this attack much less likely.


----

Sign up for our newsletter to receive recent news & updates, and follow us on social media:

Website | Twitter | Linkedin | Facebook | Telegram

Contact:

Legal: legal@stably.io

Press: marketing@stably.io

Exchanges or Market Makers: exchanges@stably.io

Partnerships: info@stably.io

Investors: Kory Hoang, CEO — kory@stably.io

14 views

Subscribe to the Staby Newsletter for all the latest updates!

Bottom.png

Copyright © 2019-2020 Stably Corporation. All Rights Reserved 

Social Icon-04-stably.png
Social Icon-03-stably.png
Social Icon-02-stably.png
Social Icon-01-stably.png
Social Icon-05-stably.png
Social Icon-06-stably.png

Like being first? Subscribe to the Stably Newsletter!

Company

About

Partners


Careers

Blog

Contact