The Good Tech Companies - Educational Byte: Byzantine Generals Problem in Crypto —or There’s a Traitor Among Us
Episode Date: May 13, 2025This story was originally published on HackerNoon at: https://hackernoon.com/educational-byte-byzantine-generals-problem-in-crypto-or-theres-a-traitor-among-us. Have you... ever played Among Us? Or at least heard of it? The Byzantine Generals Problem is something similar in distributed systems, like cryptocurrencies. Check more stories related to web3 at: https://hackernoon.com/c/web3. You can also check exclusive content about #byzantine-generals-problem, #byzantine-fault-tolerance, #blockchain-byzantine-generals, #consensus-algorithms, #dag-blockchain, #obyte, #hackernoon-top-story, #good-company, and more. This story was written by: @obyte. Learn more about this writer by checking @obyte's about page, and for more stories, please visit hackernoon.com. In distributed systems like Bitcoin, there's no single authority making decisions. This means the network has to find ways to agree on the correct version of the transaction history. Byzantine Fault Tolerance (BFT) is the ability of a system to still reach that shared agreement.
Transcript
Discussion (0)
This audio is presented by Hacker Noon, where anyone can learn anything about any technology.
Educational Byte. Byzantine general's problem in crypto, or there's a traitor among us, by obyte.
Have you ever played Among Us? Or at least heard of it? It's this game in which several astronauts
are in the same spaceship, but a traitor is sabotaging and killing them, and they need to
discover who it is and eject them from the ship. The Byzantine general's problem is something similar in distributed systems.
Imagine you're playing Among Us with a bunch of friends.
You're all crewmates, and maybe some imposters, on a spaceship, and you need to decide together
whether to press the emergency button to eject a suspicious player.
You can only send messages to each other, no voice chat, just in-game chat.
If too many players lie or get confused, the whole group might never agree on what to do,
or worse, eject the wrong person.
This is basically the Byzantine generals problem.
Imagine a bunch of generals, or players, trying to agree on a battle plan, or eject vote,
but some of them might be traitors, imposters, sending false messages.
The good generals want to coordinate and win the battle, but they don't know who they
can trust, and they can't all talk directly to each other.
If they don't come to the same decision, they might lose the war, or, in among us,
lose the game.
In the world of distributed systems, the same problem happens when computers, nodes, try
to agree on the same list of transactions.
If some computers lie or malfunction, just like imposters, we need a system that helps
all the honest nodes agree, even if a few are acting suspiciously.
This is also known as Byzantine Fault, and thus, distributed systems like crypto networks
must have Byzantine Fault Tolerance, BFT, to properly work.
BFT in Crypto Networks
BFT is a key concept that helps crypto networks stay reliable, even when some computers in the
network act dishonestly or fail. There's no single authority making decisions in decentralized
systems, so the network has to find ways to agree on the correct version of the transaction history,
even if a few participants lie, cheat, or crash.
BFT is the ability of a system to still reach that shared agreement despite those issues,
ensuring that everyone ends up trusting the same result. Without BFT, bad things can happen. One
of the most famous problems is called double spending, when someone tries to use the same
digital coin more than once. For example, imagine sending the
same token to two different people at the same time. If the network can't agree on which payment
came first, the system becomes broken. This isn't just a small glitch, it's a fundamental
weakness that would make digital currencies easy to exploit. In fact, the double spending problem
is a major reason why decentralized money didn't take off earlier.
Satoshi Nakamoto directly called it out in the original Bitcoin whitepaper, highlighting it as a challenge that Bitcoin's consensus system was designed to overcome without needing a central authority.
Consensus Mechanisms
In crypto networks, consensus mechanisms are the tools that allow a group of nodes to agree on what really happened, like who sent money to whom and when, even when some nodes might fail, act slowly, or
try to cheat.
These mechanisms are the heart of blockchain and DAG systems because they make sure everyone
sees the same version of the ledger.
They also play a crucial role in helping networks stay resilient against dishonest behavior,
which is where Byzantine Fault Tolerance, BFT, comes
in.
A good consensus system lets honest nodes agree, no matter what a few bad actors try
to do.
For example, Bitcoin uses proof of work, POW.
This method asks computers to solve complex puzzles to add new blocks to the chain, and
powerful computers compete to be the first to solve it.
The more blocks are added on top of a transaction,
the less likely it is that someone could rewrite history,
because of the large resources required to re-solve the puzzles,
but there's never 100% certainty.
This is called probabilistic finality,
which can feel a bit uncomfortable for people who expect quick and definite confirmation,
especially for large payments.
In contrast, obite, which is built
on a DAG, directed a cyclic graph, uses a different method. Every user approves their
own transactions just by sending them, and the ordering to avoid potential double spending
relies on transactions posted by order providers. They're trusted and public nodes whose transactions
act as anchors that bring order to the tangle of other transactions.
Their actions lead to deterministic finality. Once a transaction is stable in the DAG, it's final and can't be undone. There are no miners or validators controlling access
or coming to an agreement amongst themselves. This approach, which dispenses with all kinds
of voting or power competition, lends much better decentralization and censorship resistance.
Thanks to this design, Obite achieves consensus without needing energy-hungry mining or central
intermediaries.
Featured vector image by FreePic, and thank you for listening to this Hacker Noon story,
read by Artificial Intelligence.
Visit HackerNoon.com to read, write, learn and publish.