Proof of work: pay with electricity
Bitcoin uses proof of work. A miner is a computer that bundles waiting transactions into a candidate block, then guesses a number (the nonce) over and over until the block's hash (lesson 01) comes out below a target. That is why winning hashes start with many zeros.
There is no shortcut: finding a winning hash takes trillions of guesses, costing hardware and electricity. The winner's block is easy for every node to check, and the winner collects the block reward. The difficulty adjusts every 2,016 blocks so blocks keep arriving about every 10 minutes, however many miners join.
A mining pool is many miners combining machines and sharing the rewards.
To rewrite history, an attacker would need more guessing power than the rest of the network combined, which costs real money every hour.
Proof of stake: pay with locked-up coins
Ethereum, the second-largest network (next lesson), has used proof of stake since 2022. Its coin is ETH.
A validator is a participant who has locked up at least 32 ETH and runs the network's software. The ETH goes into a deposit contract, a program on the blockchain that holds it (programs like this are lesson 04). Locking coins this way is staking. Per ethereum.org:
- Time runs in 12-second slots (32 slots make an epoch). In each slot one validator is picked at random to propose a block, and others vote that it is valid (a vote is an attestation).
- Honest work earns rewards in ETH. Validators that go offline lose a little.
- Provably cheating, such as signing two conflicting blocks, is punished by slashing: part or all of the stake is destroyed and the validator is thrown out.
- After about 13 minutes of votes from two-thirds of staked ETH, blocks are finalised. Reversing one would mean destroying at least a third of all staked ETH.
So an attacker pays not in electricity but in ETH, which it risks having destroyed.
Side by side
| Proof of work (Bitcoin) | Proof of stake (Ethereum) | |
|---|---|---|
| Who adds blocks | Miners | Validators |
| What they put up | Hardware and electricity | Staked coins (32 ETH minimum each) |
| Punishment for cheating | Wasted electricity | Stake destroyed (slashing) |
| Who is paid | The winning miner | Proposers and voting validators |
Where the analogy stops
A common picture: proof of work is a lottery where tickets are bought with electricity; proof of stake is a lottery where tickets are deposits you lose if you cheat. Fair for who gets picked. It stops at "lottery": in both systems the winner can't add whatever it likes. Every node still checks every rule and rejects invalid blocks.
Neither design is simply "better". Proof of work uses far more energy; proof of stake rests on coins that can pile up with a few large staking providers (firms that run validators for other people's ETH; Module 13). Analysts track both risks.