The mathematical problem that made cryptocurrency possible
Imagine several army divisions surrounding an enemy city. The generals must coordinate a unified attack. They can only communicate through messengers. But here's the catch: some generals might be traitors, sending conflicting messages to different divisions.
How can the loyal generals guarantee they all agree on the same plan, even if some participants are lying?
This is the Byzantine Generals Problem — a thought experiment posed by Leslie Lamport, Robert Shostak, and Marshall Pease in 1982. It formalizes a question that sounds simple but is actually incredibly hard:
How do you achieve consensus in a system where you can't trust everyone?
Click generals to toggle honest (green) or Byzantine (red). Then try to reach consensus.
The problem gets insidious when you realize you can't even trust the messengers. A traitor general could tell one division "attack" and another "retreat" — and then tell each that the other said something different.
With just 3 generals and 1 traitor, consensus becomes impossible. If General A tells B and C to attack, and A is the traitor, B receives "attack" from A but C receives "retreat" from A. B and C can't know who to trust.
The theorem states you can achieve consensus if and only if more than 2/3 of the participants are honest. With n nodes, you can tolerate up to f = (n-1)/3 Byzantine failures.
Traditional solutions require a central authority. But what if the central authority itself is compromised? The solution must work without any single point of trust.
A system is BFT if it continues to function correctly even when some nodes behave arbitrarily — including maliciously. This is what makes blockchain possible.
Satoshi Nakamoto's genius wasn't just cryptocurrency — it was solving the Byzantine Generals Problem through game theory and economics:
Lamport, Shostak, and Pease formalize the Byzantine Generals Problem in a research paper.
Miguel Castro and Barbara Liskov introduce PBFT (Practical Byzantine Fault Tolerance), an efficient algorithm for private networks.
Satoshi Nakamoto publishes the Bitcoin whitepaper, solving the problem for public networks through proof of work.
Ethereum launches, bringing smart contracts to the blockchain ecosystem.
Proof of Stake, sharding, and layer-2 solutions continue to evolve the solutions to this 40-year-old problem.
The Byzantine Generals Problem isn't just an academic curiosity. It's the foundation for everything that makes the modern internet function:
• Blockchain: Every cryptocurrency relies on consensus without trust. That's the whole point.
• Distributed databases: When you use Google Docs or iCloud, the system must handle simultaneous edits without a central coordinator.
• DNS: The domain name system that maps "google.com" to an IP address is distributed across thousands of servers.
• GPS satellites: They must agree on time and position even though they're physically separated and can be compromised.
Every time you trust that your bank balance is accurate, that your email was delivered, or that your vote was counted — you're relying on solutions to some variant of the Byzantine Generals Problem.