Proof of Work Deep Dive
Proof of Work makes rewriting blockchain history computationally expensive and easy to verify.
Proof of Work explains mining, confirmations, difficulty adjustment, cumulative work, and double-spend resistance.
See it concretely
Imagine a worldwide lottery where each hash attempt is a ticket. Difficulty changes how rare a winning ticket is so winners appear at a predictable average rate.
Tempting — but wrong
The precise version
A miner builds a candidate block and varies fields such as nonce, timestamp, extra nonce, and transaction ordering until the double-SHA-256 hash of the block header is below the target. Nodes select the valid chain with the most cumulative work, not simply the most blocks. Bitcoin retargets difficulty every 2016 blocks to maintain an expected ten-minute block interval.
validBlock \iff SHA256(SHA256(header)) < targetCheck your understanding
Why is PoW asymmetric?
Click to reveal answer
Why do confirmations reduce double-spend risk?
Click to reveal answer
What makes a Proof-of-Work block valid?