Unit 2 – Technologies Borrowed in Blockchain · 20
Mining and Mining Difficulty
Bitcoin mining is the repeated search for a block header hash below a target. Difficulty adjusts so blocks arrive at a roughly steady rate as total mining power changes; miners also choose transactions and receive protocol-defined rewards when valid blocks are accepted.
Animated diagram
Miners repeatedly draw lottery tickets until one meets a public threshold; more machines mean tickets are drawn faster, so the threshold adjusts
The idea in one line
Make the invisible feel visible.
Bitcoin mining is the repeated search for a block header hash below a target. Difficulty adjusts so blocks arrive at a roughly steady rate as total mining power changes; miners also choose transactions and receive protocol-defined rewards when valid blocks are accepted.
Real-life lens
Think of it like this
Miners repeatedly draw lottery tickets until one meets a public threshold; more machines mean tickets are drawn faster, so the threshold adjusts.
Under the hood
How it works, step by step
Start with the idea
Bitcoin mining is the repeated search for a block header hash below a target. Difficulty adjusts so blocks arrive at a roughly steady rate as total mining power changes; miners also choose transactions and receive protocol-defined rewards when valid blocks are accepted.
Follow the example
A miner changes a nonce or other header data, hashes again and shares a block when its hash is at or below the current target.
Notice the benefit
Mining makes rewriting recent history costly and lets open participants compete to propose blocks.
Check the limitation
Proof of work uses substantial energy and hardware, and mining rewards do not guarantee any particular miner will find the next block.
Make it concrete
Mining and Mining Difficulty in practice
Mining and Mining Difficulty in practice
A miner changes a nonce or other header data, hashes again and shares a block when its hash is at or below the current target.
Key point: Proof of work uses substantial energy and hardware, and mining rewards do not guarantee any particular miner will find the next block.
Balanced view
Advantages & disadvantages
Advantages
- Mining makes rewriting recent history costly and lets open participants compete to propose blocks.
Disadvantages
- Proof of work uses substantial energy and hardware, and mining rewards do not guarantee any particular miner will find the next block.
Keep these close
Takeaways & common traps
What to remember
- Bitcoin mining is the repeated search for a block header hash below a target. Difficulty adjusts so blocks arrive at a roughly steady rate as total mining power changes; miners also choose transactions and receive protocol-defined rewards when valid blocks are accepted.
- Mining makes rewriting recent history costly and lets open participants compete to propose blocks.
- Proof of work uses substantial energy and hardware, and mining rewards do not guarantee any particular miner will find the next block.
Watch out for
- Do not assume mining and mining difficulty guarantees more than its design can prove.
- Do not ignore the trade-off: Proof of work uses substantial energy and hardware, and mining rewards do not guarantee any particular miner will find the next block.
Quick check
Questions people ask
Why is mining and mining difficulty useful?
Mining makes rewriting recent history costly and lets open participants compete to propose blocks.
What is an important limitation?
Proof of work uses substantial energy and hardware, and mining rewards do not guarantee any particular miner will find the next block.