ONE TOPIC · THREE LEVELS OF EXPLANATION
Proof of work: how does mining work?
After this lesson: Understand why Bitcoin requires work from miners and who checks their blocks.
01 / BEGINNER
First, what is it?
Proof of work (PoW) is a mechanism Bitcoin uses to produce blocks and choose between competing histories. Miners make many attempts to find a calculation result satisfying a condition. Producing that proof requires work; checking it is much easier.
Words to know
- Hash
- A fingerprint computed from data.
- Difficulty
- The setting making an acceptable result more or less rare.
- Full node
- Software checking the rules without needing to mine.
The idea to understand
Without a participation cost, thousands of invented identities could look like thousands of independent votes. Bitcoin weights history selection by accumulated work, not a simple count of claimed computers.
SEE IT IN PRACTICE
Now, a concrete example
A Bitcoin miner finds a valid proof but its block contains a spend lacking the required authorisation. Full nodes enforcing the rules reject that block. Computing power does not replace a signature.
YOUR TURN
Can a very powerful miner freely change anyone’s balance?
Form an answer before opening the explanation. You can also discuss it aloud.
Compare with the explanation
No. It can threaten transaction ordering or inclusion, but its blocks must obey the rules to be accepted by nodes enforcing them. Reorganisation and stealing a key are different problems.
02 / INTERMEDIATE
How it works, and why
Without a participation cost, thousands of invented identities could look like thousands of independent votes. Bitcoin weights history selection by accumulated work, not a simple count of claimed computers.
A miner prepares a candidate block, changes header data and recomputes its hash, looking for a result below a target. This is not solving a scientific problem with a use outside this competition.
When a block is proposed, nodes check the proof and all block rules. A valid computation does not authorise a miner to spend somebody else’s BTC or create an excessive reward.
Hardware and electricity are real costs. Rewards and fees incentivise mining, but profitability depends on costs and markets. Security also involves mining concentration and the capacity to reorganise history.
SEE IT IN PRACTICE
Apply the mechanism
A Bitcoin miner finds a valid proof but its block contains a spend lacking the required authorisation. Full nodes enforcing the rules reject that block. Computing power does not replace a signature.
YOUR TURN
Can a very powerful miner freely change anyone’s balance?
Form an answer before opening the explanation. You can also discuss it aloud.
Compare with the explanation
No. It can threaten transaction ordering or inclusion, but its blocks must obey the rules to be accepted by nodes enforcing them. Reorganisation and stealing a key are different problems.
03 / ADVANCED
The rules behind the interface
Bitcoin selects the valid chain with the most accumulated work, not simply the most blocks. The target determines expected work; a particular proof does not reveal the exact number of attempts made.
A confirmation is not absolute finality. A recent branch can be replaced. A double-spend attack aims to have a payment accepted and then impose a competing history replacing it; it does not allow arbitrary forgery of victims’ signatures.
YOUR TURN
Two valid branches contain 12 and 13 blocks since a common ancestor. Is that count enough to choose?
Form an answer before opening the explanation. You can also discuss it aloud.
Compare with the explanation
No. Compare the branches’ accumulated work. Counting blocks without considering difficulty targets can give the wrong conclusion.
Use the official sources at the end of this page to inspect these mechanisms further.
A useful companion: Bitcoin explained: mining, uses and limits
THE SHORT ANSWER
Proof of work asks miners to find a cryptographic result that meets a difficulty target. The network can easily check that proof and the proposed block’s transactions. Computation costs help protect the history, but consume energy and do not make attacks impossible.
Sources and further reading
Page updated on
Documentation checked on · WhyTheBlockchain · Editorial approach