Bitcoin and Byzantine Agreement
February 12, 2014, 8:59 pm
Filed under: Uncategorized | Tags: , ,

Last month, Marc Andreessen wrote a thought-provoking article on bitcoin for the New York Times.  Interestingly, early in the article he mentions Byzantine agreement (albeit by the more colorful name of the Byzantine Generals Problem):

“Bitcoin is the first practical solution to a longstanding problem in computer science called the Byzantine Generals Problem. To quote from the original paper defining the B.G.P.: “[Imagine] a group of generals of the Byzantine army camped with their troops around an enemy city. Communicating only by messenger, the generals must agree upon a common battle plan. However, one or more of them may be traitors who will try to confuse the others. The problem is to find an algorithm to ensure that the loyal generals will reach agreement.

Many other articles give details of the theoretical aspects of bitcoin (the second with quotes from distributed computing luminaries like Jim Aspnes and Nancy Lynch). [1]

When Marc Andreessen mentions Byzantine agreement in the New York Times, it gets my attention.  I’m far from an expert on bitcoin, but from what I can tell, the system is faced with a Byzantine agreement (BA) problem when maintaining logs of currency transactions.  This BA problem occurs over a huge network, so a solution that uses all-to-all communication is infeasible.  To circumvent this, bitcoin uses an algorithm that trades off computation for communication.

In particular, bitcoin’s algorithm for BA uses proof-of-work. Instead of each node sending out a vote, only those nodes that are able to solve a computational puzzle send out their votes.  If the puzzle is hard enough,  only a small number of nodes send out votes and communication is low.  Of course, each vote contains a small proof that the node solved an instance of the puzzle.  This approach works provided that the computational effort exerted by the “good” nodes is twice the computational effort exerted by the bad nodes.

However, there are two issues with using proof-of-work. One is ensuring there is an incentive for the good nodes to work to solve a large fraction of the puzzles.  Bitcoin uses a clever approach: reward users that solve puzzles with their own bitcoins. However, this is very application-specific, and it’s unclear if bitcoin’s BA algorithm would work for other systems where there is no obvious way to incentivize computational work.

Second,  proof-of-work wastes computational resources. Arguably, many  BA algorithms waste communication resources, so maybe this is a fair tradeoff.  However, one has to wonder if there is a more efficient way to tolerate bad nodes.  In particular, it’d be nice to have a scheme where the computation done by the good nodes is some function of the computation done by the bad nodes.  One could hopefully show this via something like resource competitive analysis. Resolving whether or not this is possible is I think one of the more interesting research problems related to bitcoin’s approach to Byzantine agreement.

[1] See also this rebuttal to Andresseen’s article

2 Comments so far
Leave a comment

This is interesting!

“This approach works provided that the computational effort exerted by the “good” nodes is twice the computational effort exerted by the bad nodes.”
Could you please elaborate ? Why not just honest majority of the computing power ? Thanks!

Comment by Andrew


The technical details on why the number of bad nodes must be less than 1/3 are in this seminal paper (see Section 2):

Click to access byz.pdf

Note also that it’s not enough to have > 2/3 fraction of the computing *power* with the bitcoin algorithm, the algorithm really requires a > 2/3 fraction of the computing *effort*. In other words, it critically relies on continually burning all those CPU cycles, it’s not enough just to have a huge number of machines.

Comment by Jared

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: