How do thousands of strangers agree on a single truth? Proof of Work makes it expensive to lie; Proof of Stake makes it expensive to own the right to lie.
The consensus problem in blockchains is a variant of the classical Byzantine Generals Problem: how can a group of actors reach agreement when some participants may be faulty or actively malicious? Traditional solutions require trust in a central authority. Blockchain's insight is to replace trust with economic incentives — make honest behaviour the most profitable strategy.
A consensus mechanism answers: who gets the right to add the next block? Different mechanisms answer this differently. In Proof of Work, the right is earned by burning computational energy. In Proof of Stake, the right is earned by locking up economic value. Both make attacking the network more expensive than participating honestly.
PoW requires finding a nonce — a number — such that SHA256(block_data + nonce) starts with a required number of leading zeros. This is a brute-force search: there is no shortcut. On average it takes 10 minutes and sextillions of hash attempts for Bitcoin miners to find a valid nonce. The difficulty adjusts every 2016 blocks to keep the average time at 10 minutes.
Why leading zeros? Because they make valid hashes rare. With difficulty 4, a valid hash must start with 0000 — only 1 in 65,536 hashes qualifies. Increasing difficulty by one zero makes it 16× harder. The hash is easy to verify (one SHA256 call) but hard to find (billions of attempts). This asymmetry is the foundation of PoW security.
PoS replaces computational work with economic stake. Validators lock up ("stake") cryptocurrency as collateral. The protocol randomly selects a validator to propose the next block, weighted by the amount staked. If the validator behaves dishonestly, their stake is slashed — partially or fully destroyed. This aligns incentives without requiring massive energy consumption.
The choice of consensus mechanism has cascading effects on throughput, finality, energy use, and decentralisation. No mechanism wins on all dimensions — blockchain designers must navigate these trade-offs based on their use case.
Say the answer out loud before revealing — recalling is what makes it stick.
What is a nonce in Proof of Work?
How does Proof of Stake deter dishonesty?
What is finality?
Why did Ethereum switch from PoW to PoS?