This website uses cookies

Read our Privacy policy and Terms of use for more information.

Consensus: work, stake and fault tolerance

Lesson 4 of 6
By the end of this lesson you’ll be able to say what problem consensus solves, explain proof of work and proof of stake as two answers to it, name the thresholds that matter on Ethereum, say what an attack on each network would take today, and judge a claim that a chain is “decentralized” by asking what was counted.
A collage of a long single file of men in overcoats climbing a steep snow slope, each bent under a huge stone. At the summit a man who has set his stone down reaches up to post one blank slip into a large deep blue ballot box on a table.

What has to be agreed

Thousands of computers, none of them in charge, with some of them possibly lying, have to agree on a single order of transactions. Leslie Lamport, Robert Shostak and Marshall Pease framed it in a 1982 paper.

Lamport describes the paper as posing the problem in terms of a group of generals, “some of whom may be traitors, who have to reach a common decision.”

A system that reaches the right decision despite some liars is Byzantine fault tolerant. The classical result: with messages that can’t be signed, agreement needs more than two thirds of the participants honest, so fewer than a third can lie.

Signatures lower that bar only on a network that delivers on time. Where messages can be delayed with no known limit, the one-third line holds even with signatures, and Ethereum’s finality has to work under that condition.

In ethereum.org’s words, “Consensus mechanisms are the complete stack of ideas, protocols and incentives” that let a network of nodes agree, and they need a way to make votes expensive (“Sybil resistance,” so nobody can vote a thousand times by running a thousand computers), and a “chain selection rule” to pick the correct history when there are two. Bitcoin and Ethereum chose different answers to the first part.

Proof of work (Bitcoin)
What a vote costs
Electricity and hardware
Where the attack line sits
More than half the mining power
Proof of stake (Ethereum)
What a vote costs
Ether that can be destroyed
Where the attack line sits
A third of the stake stops finality, 34 percent can finalize two forks, two thirds rewrites history

Continue with The Crossover Pro

The rest of this story, plus two paid editions a week. $24.99 a month, or $249 a year. Already a member? Sign in above.

Subscribe to Pro