Proof of Work
Proof of Work is the mechanism that makes Bitcoin’s ledger trustworthy without a trusted party. It forces anyone who wants to add to the ledger to burn real energy on a puzzle — so that writing history is expensive, and rewriting it is impossibly expensive.
The puzzle
Recall hash functions: one-way, deterministic, and impossible to predict. To add the next block, a miner must find a special number (a “nonce”) that, when hashed together with the block’s contents, produces a hash starting with a long run of zeros. There’s no clever shortcut — the only way to find it is to guess, hash, check, and repeat, billions of times a second, until one guess happens to work.
You saw the raw material in the hash lesson: change one character and the hash scrambles completely. Miners exploit that, tweaking the nonce over and over, spinning the roulette wheel until a hash lands below the target.
Hard to do, trivial to check. Finding a valid nonce takes the whole network astronomical effort. But once found, anyone can verify it in a millisecond — just hash it once and see the zeros. This asymmetry is the entire trick: costly to produce, effortless to check. It’s Hashcash, scaled up to secure a global ledger.
Difficulty that self-adjusts
Bitcoin aims for one new block roughly every ten minutes. If more miners join and blocks come too fast, the network automatically makes the puzzle harder (demanding more zeros); if miners leave, it eases off. This difficulty adjustment — recalibrated every two weeks — keeps the heartbeat steady no matter how much computing power is thrown at it.
Why it secures history
Each block’s hash is baked into the next, so the blocks form a chain (the next lesson, and the blockchain demo, make this vivid). To alter an old transaction, an attacker would have to redo that block’s proof of work AND every block after it — while the honest network keeps extending the real chain. Catching up would mean out-hashing the entire planet. The deeper a transaction is buried, the more energy would have to be re-burned to change it, so old history becomes effectively set in stone.
The people running these machines, racing to find nonces, are the miners — and they’re not doing it for charity. Their incentive is what actually holds the whole system together.
Spotted an error or have feedback on this lesson? Suggest a correction ↗
Comments
Powered by Nostr — reply from any Nostr client, and zap the lesson over Lightning.