Consensus: How Truth is Decided
If nobody controls the blockchain, who decides which transactions are valid? Who stops someone from spending the same coins twice? The answer is the consensus mechanism โ the rulebook every node follows to agree on reality.
01 The Byzantine Generals Problem
In 1982, computer scientists described a puzzle that would become the foundation of blockchain design. Imagine ten generals who must collectively decide whether to attack or retreat. They communicate only through messengers. Some generals are traitors sending conflicting messages to different colleagues.
How can the honest generals reach a reliable agreement? This is the exact problem blockchains solve: how do thousands of unknown, potentially dishonest computers agree on one shared version of truth?
02 Proof of Work โ Bitcoin's Engine
Bitcoin's answer: make it expensive to lie. To add a block to the chain, you must prove you did an enormous amount of computational work โ essentially solving a very hard puzzle.
03 Proof of Stake โ The Energy-Efficient Answer
Used by Ethereum (since 2022), Solana, Cardano, and most modern blockchains. Instead of burning electricity, validators lock up cryptocurrency as collateral. Misbehave, and you lose it.
04 Proof of History โ Solana's Clock
Solana invented something unique. Most blockchains struggle with speed because nodes must constantly synchronise with each other to agree on the order of events. Solana's solution: encode time itself into the chain.
Proof of History creates a cryptographic clock โ a continuous sequence of hash computations where each output becomes the input for the next. Every event gets stamped with a verifiable timestamp without any coordination needed between nodes. This is what allows Solana to process 65,000+ transactions per second. We'll explore this fully in Level 2.
05 The Trade-offs
No consensus mechanism is perfect. Every design is a set of deliberate trade-offs:
| Mechanism | Used by | Energy | Speed | Security model |
|---|---|---|---|---|
| Proof of Work | Bitcoin | Very High | ~7 TPS | Computational cost |
| Proof of Stake | Ethereum | Very Low | ~30 TPS | Economic stake |
| PoS + PoH | Solana | Very Low | 2,000+ TPS | Stake + clock |
| FBA | XRP | Minimal | ~1,500 TPS | Trusted validator set |