← The Books

Changing Leaders Among Liars

When some machines in a replicated system may lie, replacing a stalled leader has traditionally been complex and expensive. Adding one more voting phase lets a new leader take over as cheaply as an ordinary step and move at the speed of the network rather than waiting out a timer.

To see how, we follow the next cohort of four legislators drawn by lot in the Tholos of Schedia, who rotate the writer's office at every single line of the city's law scroll, with each writer gathering the others' wax seals into a compact bundle instead of everyone sending messengers across the stone floor to everyone else.

To see how, we follow the protocol view by view. Four replicas, one of which may be faulty, rotate the leader on every single block, with each leader aggregating the others’ signatures into one compact certificate instead of everyone messaging everyone else.

After Maofan Yin, Dahlia Malkhi, Michael K. Reiter, Guy Golan Gueta and Ittai Abraham, HotStuff: BFT Consensus with Linearity and Responsiveness, 2019

Inside the Tholos of Schedia, under the timber rafters of the roof: a legislator in saffron sits writing at her bench while a runner crosses the spiral floor
Where this book sits
Draws on
  • Consensus in the Presence of Partial SynchronyDwork, Lynch & Stockmeyer 1988 · Agreeing When Messages Run Late
  • Practical Byzantine Fault ToleranceCastro & Liskov 1999 · Keeping Order Among Liars
  • Casper the Friendly Finality GadgetButerin & Griffith 2017
  • The Latest Gossip on BFT ConsensusBuchman, Kwon & Milosevic 2018

Each link traces an idea that one paper borrowed from another. Point at a link, or tap it, to see how.

a paper this book retells a paper retold in another book a paper outside the series

The Tholos of Schedia from the side of its paved terrace: two legislators in blue and saffron walk towards the porch as a runner dashes out of the open door
The Tholos of SchediaThe model

A new term: four legislators drawn againFour replicas, one network

In Schedia, sortition terms are short. The first council chosen by lot has completed its term, and a new drawing of lots has seated a fresh cohort of four random legislators, Legislators 1, 2, 3, and 4, on four of the five stone benches along the drum of the Tholos.* Together they maintain the city's law scroll on wax tablets, with a copy on each bench, sending word across the open limestone floor only by messengers carrying sealed notes. The new legislators inherit a hard lesson from their predecessors: under the old two-echo arrangement, whenever a writer lagged or lied, changing leaders worked but was slow and costly. Now, with at most one liar among them still, they test a lighter way.Four replicas, R1 to R4, maintain one shared log, with a copy at each replica, and send messages to one another over a network. Up to one may be faulty. Having inherited the heavy view-change overheads of earlier BFT protocols, they now test a linear, pipelined alternative.

Messengers and sealsEvery runner delivers their note across the stone floor intact, and every note carries a wax seal stamped with the sender's personal bronze signet, which nobody can forge.Signed messagesEvery message arrives intact, and every message carries its sender’s digital signature, which nobody can forge.
One may lieAt most one of the four legislators may lie or disobey the rules in any way, and nobody ever learns which of the four it is.One may be faultyUp to one of the four replicas may be faulty, crash, lie or disobey the protocol in any way, and nobody ever learns which one.
Arbitrary delaysPoor acoustics or hesitation can delay messengers across the limestone floor for arbitrary intervals, so each bench keeps a sandglass to bound how long it waits on a stalled term.Unbounded delay, for a whileNetwork delays can hold messages back for as long as the instability lasts, so each replica keeps a timer to bound how long it waits on a stalled view.
The arrangement so farThe protocol so far

What a change of office costWhat a leader change costs

Before, each line in the scroll was numbered by whoever held the writer's office, echoed twice across all benches, and written in number order at every honest seat. Whenever the writer stalled, the office passed to the next legislator in turn.*Before, each request in the log was numbered by whichever replica held the primary’s role, echoed twice across all replicas, and executed in number order at every correct replica. Whenever the primary stalled, the role passed to the next replica.*

That two-echo arrangement keeps the law scroll completely safe regardless of who lies or how long messengers are delayed, but the legislators pay for it in two heavy costs:That two-phase echo protocol (PBFT) keeps the log completely safe regardless of who is faulty or how long delays last, but it pays two heavy costs:

First cost · All-to-all echoes

Every legislator writes to every legislatorEvery replica messages every replica

In each echo stage, every legislator sends a runner across the floor to every other legislator. With 4 legislators, that is 12 messenger crossings per stage; with 40 legislators, a single stage would take more than 1,500 crossings.In each echo phase, every replica sends a message to every other replica. With 4 replicas, that is 12 messages per phase; with 40 replicas, a single phase would take more than 1,500 messages.

Second cost · Heavy handovers

A change of office is complicatedA leader change is complicated

To take over, a new writer must gather change-of-office requests from three legislators, each stuffed with sealed proofs of readied lines, and broadcast all of that evidence back across the hall so the other benches can verify the new numbering.* Changing writers costs far more than ordering a line, and the more often the office rotates, the worse that penalty becomes.To take over, a new primary must gather view-change requests from three replicas, each stuffed with signed proofs of prepared requests, and broadcast all of that evidence back out so the other replicas can verify the new numbering.* Changing leaders costs far more than ordering a request, and the more often the role rotates, the worse that penalty becomes.

The Tholos, the law scroll, the wax seals, the delayed messengers, and the four legislators all stay exactly as they were. Only the arrangement changes, and it eliminates both costs at once. Our goal is to make changing the writer as simple and cheap as proposing an ordinary line, so that the legislators can pass the writer's office around the benches at every single line.The replicas, the log, the signatures, the network and the faulty replica all stay exactly as they were. Only the protocol changes, and it eliminates both costs at once. Our goal is to make changing the leader as simple and cheap as proposing an ordinary block, so that the replicas can pass the leader’s role around the ring at every single block.

Let us tackle the messenger traffic first, since a dozen runners criss-crossing the limestone floor in every stage are needless when the writer can act as a hub.Let us tackle the message traffic first, since a dozen messages criss-crossing the network in every phase are needless when the leader can act as a hub.

One stage, two waysOne phase, two ways

Votes to one legislator, bundles to allVotes to one replica, certificates to all

Every legislator does not need to send messengers to every other legislator. Instead, each legislator sends their sealed vote to the writer alone, and the writer sends back the combined proof.Every replica does not need to message every other replica. Instead, each replica sends its signed vote to the leader alone, and the leader sends back the combined proof.

As soon as the writer holds three matching sealed votes (including their own), they tie those three seals together into a single bundle and send that bundle out to the other three benches. Any legislator who receives the bundle can trust it immediately, because no one can forge an honest legislator's wax seal: three distinct seals on one line prove that three legislators voted for it, and with at most one liar among the four, at least two honest legislators must have approved it.As soon as the leader holds three matching signed votes (including its own), it combines those three signatures into a single certificate (a quorum certificate, or QC) and sends that certificate out to the other three replicas. Any replica that receives the certificate can trust it immediately, because no one can forge an honest replica’s signature: three distinct signatures on one block prove that three replicas voted for it, and with at most one faulty replica among the four, at least two honest replicas must have approved it.

Looking down on a bench's stand in the Tholos: a runner's hands tie sealed wax tablets into a bundle beside a red wax print, and the bronze seal sits on its tray on the pillar below

Compare the two communication patterns in the Tholos below, with Legislator 1 acting as writer. Press each button and watch the runner count.Compare the two communication patterns below, with R1 acting as leader. Press each button and watch the message count.

One stage in the Tholos count the runnersOne phase count the messages

The Tholos from above. Legislator 1 holds the writer's office. Each runner takes the colour of the legislator who sent them.Each lane is one replica, with real time running left to right; R1, the leader, is on top. Each arrow is a message, landing on a dot in the colour of the replica that sent it.

0runners this stagemessages this phase

Run one stage each way and count the runners.Run one phase each way and count the messages.

Twelve runner crossings drop to six (three votes in, three bundles out). Because every bench talks only to the writer and back, the number of messengers in a stage grows linearly with the number of legislators rather than with every pair of them.Twelve messages drop to six (three votes in, three certificates out). Because every replica communicates only with the leader, the number of messages in a phase grows linearly with the number of replicas rather than with every pair of them.

Cutting the messenger traffic in each stage was the easier half of the problem. The harder half is simplifying the change of writer, so that a new writer can take over without having to gather and re-broadcast a huge pile of past proofs from every bench.Cutting the message traffic in each phase was the easier half of the problem. The harder half is simplifying the change of leader, so that a new leader can take over without having to gather and re-broadcast a huge pile of past proofs from every replica.

The new writer asks for one thingThe new leader asks for one thing

Three stages and a lockThree phases and a lock

A new writer can pick up cleanly where the previous one left off if each legislator needs to send the new writer only a single item: the latest bundle they have seen. To make one bundle summarize the entire history behind it, lines are linked into a tree of chains: every new line explicitly names its parent line, so committing a line automatically commits the entire chain of ancestors behind it. Two lines conflict if neither is an ancestor of the other (they lie on different branches).A new leader can pick up cleanly where the previous one left off if each replica needs to send the new leader only a single item: the latest certificate it has seen. To make one certificate summarize the entire history behind it, blocks are linked into a tree of chains: every new block explicitly names its parent block, so committing a block automatically commits the entire chain of ancestors behind it. Two blocks conflict if neither is an ancestor of the other (they lie on different branches).

In this basic three-stage arrangement, each line passes through three stages of voting, producing a first bundle, a second bundle, and a third bundle. Each legislator needs to remember only two bundles at their bench: the highest-term first bundle they have ever seen, and their lock, the highest-term second bundle they have ever voted on. Scroll through the six steps of a term below to watch how a line progresses through the three bundles.In Basic HotStuff, each block passes through three phases of voting (prepare, pre-commit, and commit), producing a first certificate (prepareQC), a second certificate (precommitQC), and a third certificate (commitQC). Each replica needs to remember only two certificates: the highest-view first certificate it has ever seen (highQC), and its lock, the highest-view second certificate it has ever voted on (lockedQC). Scroll through the six steps of a view below to watch how a block progresses through the three certificates.

1 · Starting the term1 · Starting the view

Every legislator sends the writer their latest first bundleEvery replica sends the leader its latest first certificate

To begin a term, each legislator sends the new writer the highest-term first bundle they hold. The writer waits for three such reports, picks the one from the latest term, and proposes a new line extending the line named in that bundle, sending the proposal and that justifying bundle out to all benches.To begin a view, each replica sends the new leader the highest-view first certificate (prepareQC) it holds. The leader waits for three such reports, picks the one from the latest view (highQC), and proposes a new block extending the block named in that certificate, sending the proposal and that justifying certificate out to all replicas.

2 · First vote2 · First vote (Prepare)

A legislator votes if the proposal is safe for their lockA replica votes if the proposal is safe for its lock

Each legislator checks whether the proposal is safe with respect to their current lock: they send a sealed first vote if the proposal extends the line they are locked on, or if the justifying bundle carried by the proposal comes from a later term than their lock.Each replica checks whether the proposal is safe with respect to its current lock: it sends a signed first vote if the proposal extends the block it is locked on, or if the justifying certificate carried by the proposal comes from a later view than its lock.

3 · Second vote3 · Second vote (Pre-commit)

The first bundleThe first certificate

Once the writer collects three first votes, they tie them into a first bundle and send it to all benches. Every legislator who receives this first bundle saves it as their latest first bundle and replies with a sealed second vote.Once the leader collects three first votes, it combines them into a first certificate (prepareQC) and sends it to all replicas. Every replica that receives this first certificate saves it as its latest first certificate and replies with a signed second vote.

4 · Third vote4 · Third vote (Commit)

The second bundle, and setting the lockThe second certificate, and setting the lock

Once the writer collects three second votes, they tie them into a second bundle and send it out. Every legislator who receives this second bundle sets their lock to it and replies with a sealed third vote.Once the leader collects three second votes, it combines them into a second certificate (precommitQC) and sends it out. Every replica that receives this second certificate sets its lock to it and replies with a signed third vote.

5 · Standing5 · Committing (Decide)

The third bundleThe third certificate

Once the writer collects three third votes, they tie them into a third bundle and send it out. Upon receiving the third bundle, every legislator writes the line, and all of its ancestors in the chain, into their law scroll: the line stands.Once the leader collects three third votes, it combines them into a third certificate (commitQC) and sends it out. Upon receiving the third certificate, every replica executes the block, and all of its ancestors in the chain, and appends them to its log: the block is committed.

6 · Moving on

If a sandglass runs outIf a timer runs out

If a legislator's sandglass expires before the term finishes, they abandon the current term, advance to the next term, and send the next writer their latest first bundle, starting Step 1 all over again.If a replica’s timer expires before the view finishes, it abandons the current view, advances to the next view, and sends the next leader its latest first certificate, starting step 1 all over again.

When a term runs smoothly, it ends with the new line standing at every honest bench. When a term stalls partway through, each legislator is left holding whatever latest first bundle and lock they reached, and the incoming writer needs only the latest first bundles from three benches to propose the next line. Everything hinges on when an honest legislator is willing to cast a first vote for a new proposal, and that rule has two halves.When a view runs smoothly, it ends with the new block committed at every honest replica. When a view stalls partway through, each replica is left holding whatever latest first certificate and lock it reached, and the incoming leader needs only the latest first certificates from three replicas to propose the next block. Everything hinges on when an honest replica is willing to cast a first vote for a new proposal, and that rule has two halves.

Where the term is in the paperWhere the view is in the paper

The six steps above correspond to Basic HotStuff (Algorithm 2 in Yin et al., 2019): the first, second, and third votes are prepare, pre-commit, and commit votes, and the first, second, and third bundles are prepareQC, precommitQC, and commitQC.The six steps above correspond to Basic HotStuff (Algorithm 2 in Yin et al., 2019): the first, second, and third votes are prepare, pre-commit, and commit votes, and the first, second, and third certificates are prepareQC, precommitQC, and commitQC.

Basic HotStuff, Algorithm 2: new-view, prepare, pre-commit, commit, decide; highQC; lockedQC; safeNode predicate (Algorithm 1); nextView.

The rule for the first vote

Two halves, two jobs

The voting rule for Step 2 has two halves because it must balance two competing duties: protecting lines that have already stood (safety) and freeing benches whose locks are out of date (liveness). A legislator votes for a proposal if either half holds:The voting rule for step 2 (the safeNode predicate) has two halves because it must balance two competing duties: protecting blocks that have already committed (safety) and freeing replicas whose locks are out of date (liveness). A replica votes for a proposal if either half holds:

First half · Safety branch

The proposal extends my locked line's chainThe proposal extends my locked block’s chain

Second half · Liveness branch

The proposal carries a bundle from a later term than my lockThe proposal carries a certificate from a later view than my lock

The first half protects a committed chain. If a proposal builds directly on top of the line a legislator is locked on, voting for it continues that exact same chain and cannot help any conflicting branch win.The first half protects a committed chain. If a proposal builds directly on top of the block a replica is locked on, voting for it continues that exact same chain and cannot help any conflicting branch win.

The second half prevents a stranded legislator from staying stuck forever. Suppose one legislator locked on a line in an old term that stalled before standing, while the rest of the benches moved on in a later term. If a new proposal carries a valid first bundle from a term later than the legislator's lock, that bundle proves that three legislators (including at least two honest ones) already voted for a later branch, so it is safe for the locked legislator to unlock and vote for the new proposal.The second half prevents a stranded replica from staying stuck forever. Suppose one replica locked on a block in an old view that stalled before committing, while the rest of the system moved on in a later view. If a new proposal carries a valid first certificate from a view later than the replica’s lock, that certificate proves that three replicas (including at least two honest ones) already voted for a later branch, so it is safe for the locked replica to unlock and vote for the new proposal.

Test this two-part rule on four different proposals below. Suppose a legislator's current lock comes from Term 4. Click each proposal in turn to see which half of the rule, if either, permits the legislator to vote.Test this two-part rule on four different proposals below. Suppose a replica’s current lock comes from view 4. Click each proposal in turn to see which half of the rule, if either, permits the replica to vote.

One legislator's first vote lock: term 4One replica’s first vote lock: view 4

A proposal reaches a legislator whose lock is the second bundle of term 4. Which proposal is it?A proposal reaches a replica whose lock is the second certificate of view 4. Which proposal is it?

Pick a proposal. The legislator votes if either half holds.Pick a proposal. The replica votes if either half holds.

Because the second half of the rule allows a legislator to override an old lock, we must be certain that unlocking can never allow a conflicting line to stand alongside a line that already stood.Because the second half of the rule allows a replica to override an old lock, we must be certain that unlocking can never allow a conflicting block to commit alongside a block that already committed.

The first promise

Never two linesNever two blocks

The second half of the voting rule can never allow two conflicting lines to stand. The proof comes in two steps: first within a single term, and then across terms.The second half of the voting rule can never allow two conflicting blocks to commit. The proof comes in two steps: first within a single view, and then across views.

Within a single term, two bundles of the same stage can never vouch for conflicting lines. Every bundle requires three seals out of four, any two sets of three out of four share at least two legislators (at least one of whom is honest), and an honest legislator votes only once per stage in any given term.*Within a single view, two certificates of the same phase can never vouch for conflicting blocks. Every certificate requires three signatures out of four, any two sets of three out of four share at least two replicas (at least one of which is honest), and an honest replica votes only once per phase in any given view.*

Across different terms, the locks prevent a split. Suppose a line stands in some term. Because it reached a third bundle in that term, three legislators cast third votes for it, and a legislator casts a third vote only after setting their lock on its second bundle in that term. Thus at least two honest legislators are locked on that line at the end of the term. For any conflicting line to ever get a first bundle in a later term, three legislators would have to cast first votes for it, which requires the vote of at least one of those two honest legislators locked on it. Yet the first time a conflicting proposal appears after that term, it neither extends the line nor carries a first bundle from a later term, so neither half of the voting rule allows a locked honest legislator to vote for it.Across different views, the locks prevent a split. Suppose a block commits in some view. Because it reached a third certificate in that view, three replicas cast third votes for it, and a replica casts a third vote only after setting its lock on its second certificate in that view. Thus at least two honest replicas are locked on that block at the end of the view. For any conflicting block to ever get a first certificate in a later view, three replicas would have to cast first votes for it, which requires the vote of at least one of those two honest replicas locked on it. Yet the first time a conflicting proposal appears after that view, it neither extends the committed block nor carries a first certificate from a later view, so neither half of the voting rule allows a locked honest replica to vote for it.

Never Two Lines

No matter how runners are delayed or which legislator lies, no two conflicting lines can ever both stand at honest benches.

Never Two Blocks

However long the network is unstable or whichever replica is faulty, no two conflicting blocks can ever both commit at honest replicas.

You can verify the single-term overlap by hand below. Pick which legislator's seal is missing from each three-seal bundle, and see who signed both.You can verify the single-view overlap by hand below. Pick which replica’s signature is missing from each three-signature certificate, and see who signed both.

Two bundles of the same stage who is in both?Two certificates of the same phase who is in both?

Each bundle has three seals out of four. For each bundle, pick the legislator whose seal it lacks.Each certificate has three signatures out of four. For each certificate, pick the replica whose signature it lacks.

Bundle A lacksCertificate A lacks
Bundle B lacksCertificate B lacks

Pick one legislator for each bundle.Pick one replica for each certificate.

Notice something curious about the safety proof above: to prove that a standing line could never be contradicted in a later term, we used the fact that its bundle put honest legislators under a lock. Three stages of bundles are needed instead of just two, and the clearest way to see what the third stage buys is to take it away.Notice something curious about the safety proof above: to prove that a committed block could never be contradicted in a later view, we used the fact that its certificate put honest replicas under a lock. Three phases of certificates are needed instead of just two, and the clearest way to see what the third phase buys is to take it away.

Proof · that the locks keep conflicting lines from both standingProof · that the locks keep conflicting blocks from both committing

Theorem 2 (Safety). Conflicting nodes cannot both be committed by correct replicas. Here W and B are conflicting lines (tree nodes); a, b, and s are terms (views); and r is an honest legislator (correct replica). A third bundle is a commitQC, and a first bundle is a prepareQC.Theorem 2 (Safety). Conflicting nodes cannot both be committed by correct replicas. Here W and B are conflicting blocks (tree nodes); a, b, and s are views; and r is a correct replica. A third certificate is a commitQC, and a first certificate is a prepareQC.

  1. Suppose for contradiction that W stands on a third bundle (commitQC) from term a, and a conflicting line B stands on a third bundle from term b. By single-term quorum intersection (Lemma 1), a ≠ b; without loss of generality, assume a < b.Suppose for contradiction that W is committed with a third certificate (commitQC) from view a, and a conflicting block B is committed with a third certificate from view b. By single-view quorum intersection (Lemma 1), a ≠ b; without loss of generality, assume a < b.
  2. For B to stand in term b, there must be a first bundle (prepareQC) in term b for B. Among all first bundles from terms strictly after a for lines that conflict with W, let term s (> a) be the earliest term that produced such a conflicting first bundle, say for line C.For B to commit in view b, there must be a first certificate (prepareQC) in view b for B. Among all first certificates from views strictly after a for blocks that conflict with W, let view s (> a) be the earliest view that produced such a conflicting first certificate, say for block C.
  3. W's third bundle from term a and C's first bundle from term s each carry three seals out of four, so they share at least one honest legislator r. Because an honest legislator casts a third vote in term a only after locking on W's second bundle in term a, legislator r held a lock on W (at term a) at the end of term a. Moreover, by the minimality of s, no first bundle (and hence no second bundle) for any line conflicting with W was formed in any term between a and s, so r's lock at the time of voting in term s was still on W (or a descendant of W) at a term ≥ a.W's third certificate from view a and C's first certificate from view s each carry three signatures out of four, so they share at least one honest replica r. Because an honest replica casts a third vote in view a only after locking on W's second certificate in view a, replica r held a lock on W (at view a) at the end of view a. Moreover, by the minimality of s, no first certificate (and hence no second certificate) for any block conflicting with W was formed in any view between a and s, so r's lock at the time of voting in view s was still on W (or a descendant of W) at a view ≥ a.
  4. Now inspect r's first vote for C in term s: by construction, C conflicts with W (so the first half of safeNode is false), and by the minimality of s, the justifying first bundle carried by C's proposal cannot come from a term > a (unless it is on W's branch, in which case C extending it would not conflict with W). Thus neither half of safeNode allowed r to vote for C in term s, contradicting r's seal in C's first bundle.∎Now inspect r's first vote for C in view s: by construction, C conflicts with W (so the first half of safeNode is false), and by the minimality of s, the justifying first certificate carried by C's proposal cannot come from a view > a (unless it is on W's branch, in which case C extending it would not conflict with W). Thus neither half of safeNode allowed r to vote for C in view s, contradicting r's signature in C's first certificate.∎
What two stages would doWhat two phases would do

The hidden lock

If we cut the arrangement down to just two stages, so that a legislator locks as soon as they see a first bundle, and a line stands on the second bundle, safety still holds, but a fatal liveness trap appears: a lock can hide from the next writer.If we cut the protocol down to just two phases, so that a replica locks as soon as it sees a first certificate, and a block commits on the second certificate, safety still holds, but a fatal liveness trap appears: a lock can hide from the next leader.

Here is how the trap springs under two stages. Suppose a line reaches its first bundle in some term, and the writer sends that first bundle to Legislator 3 alone just before everyone's sandglasses run out. Legislator 3 sees the first bundle and locks on it, while Legislators 1, 2, and 4 have never seen it. Now the next term starts. The new writer waits for the first three reports to arrive, and hears from Legislators 1, 2, and 4 (missing slow Legislator 3). None of those three knows about Legislator 3's first bundle. So the new writer innocently proposes a line built on an older bundle, conflicting with Legislator 3's lock.Here is how the failure arises under two phases. Suppose a block reaches its first certificate in some view, and the leader sends that first certificate to R3 alone just before every timer expires. R3 sees the first certificate and locks on it, while R1, R2 and R4 have never seen it. Now the next view starts. The new leader waits for the first three reports to arrive, and hears from R1, R2 and R4 (missing the slow R3). None of those three knows about R3’s first certificate. So the new leader innocently proposes a block built on an older certificate, conflicting with R3’s lock.

Next, only two honest legislators can vote for the new proposal, because Legislator 3 is locked on a conflicting branch from a later term and refuses to vote. If the liar withholds their vote while the honest legislators wait, the sandglasses run out, and at the last instant the liar slips in a third vote to form a new first bundle that only one honest legislator sees and locks on. Under two stages, this deadlock can repeat forever.Next, only two honest replicas can vote for the new proposal, because R3 is locked on a conflicting branch from a later view and refuses to vote. If the faulty replica withholds its vote while the honest replicas wait, the timers run out, and at the last instant the faulty replica slips in a third vote to form a new first certificate that only one honest replica sees and locks on. Under two phases, this deadlock can repeat forever.

Explore that exact moment in the interactive panel below. Under Two stages, pick which legislator's note arrives last so the new writer misses it. Then switch to Three stages and try to hide the lock again.Explore that exact moment in the interactive panel below. Under Two phases, pick which replica’s message arrives last so the new leader misses it. Then switch to Three phases and try to hide the lock again.

The new writer listensThe new leader collects reports

The writer waits for the first three answers. Pick the legislator whose answer is slowest, so that the writer does not wait for it.The leader waits for the first three answers. Pick the replica whose answer is slowest, so that the leader does not wait for it.

Pick the slowest legislator.Pick the slowest replica.

Two-stage arrangements can avoid this deadlock only by forcing every new writer to wait out a full sandglass (the longest a messenger can take across the floor) before proposing, ensuring that even the slowest honest legislator's report has arrived. That fix works, but it chains every change of writer to the length of a worst-case timer, no matter how fast the runners are actually crossing the hall.Two-phase protocols (like Tendermint) can avoid this deadlock only by forcing every new leader to wait out a full timeout (the worst-case network delay) before proposing, ensuring that even the slowest honest replica’s report has arrived. That fix works, but it chains every leader change to the length of a worst-case timer, no matter how fast the network is actually running.

How the third stage eliminates the wait: with three stages, a legislator locks only when they see a second bundle. A second bundle can exist only because three legislators saw the first bundle, saved it, and cast second votes. At least two of those three legislators are honest. Therefore, whenever any honest legislator holds a lock (a second bundle), at least two honest legislators already hold the matching first bundle. When the next writer waits for the first three reports out of four legislators, those three reports are guaranteed to include at least one of those two honest legislators. The new writer learns of the highest first bundle immediately from the first three replies, without ever waiting for a timer.How the third phase eliminates the wait: with three phases, a replica locks only when it sees a second certificate. A second certificate can exist only because three replicas saw the first certificate, saved it, and cast second votes. At least two of those three replicas are honest. Therefore, whenever any honest replica holds a lock (a second certificate), at least two honest replicas already hold the matching first certificate. When the next leader waits for the first three reports out of four replicas, those three reports are guaranteed to include at least one of those two honest replicas. The new leader learns of the highest first certificate immediately from the first three replies, without ever waiting for a timer.

A lock that can never hide is the exact prize that the third stage buys. It lets every honest writer move at the natural speed of the messengers.A lock that can never hide is the exact prize that the third phase buys. It lets every honest leader move at the natural speed of the network.

The second promise

Going at the messengers' paceGoing at network speed

We can now state our second promise (optimistic responsiveness). While safety holds under any delays, progress requires messengers to arrive across the floor, so this promise describes what happens once delays have settled:We can now state our second promise (which the paper calls optimistic responsiveness). While safety holds under any delays, progress requires the network to behave, so this promise describes what happens once delays have settled (after GST):

Going at the Messengers' Pace

Once delays have settled, any term led by an honest writer in which all honest legislators remain long enough ends with a line standing, and each stage waits only for the first three replies to arrive, never for a sandglass timer to run out.

Going at Network Speed

Once the network has settled, any view led by an honest leader in which all honest replicas remain long enough ends with a block committed, and each phase waits only for the first three replies to arrive, never for a timeout to expire.

Notice the phrase "in which all honest legislators remain long enough." As in the earlier arrangement, the sandglasses ensure that the honest legislators synchronize onto the same term: the writer's office rotates in a fixed order by term number, and each legislator doubles their sandglass whenever a term expires without progress.* This design cleanly separates keeping time with the sandglasses from the core voting rules, because the sandglasses affect only progress and can never violate safety.Notice the phrase “in which all honest replicas remain long enough.” As in PBFT, the timers ensure that the honest replicas synchronize onto the same view: the leader’s role rotates in a fixed order by view number, and each replica doubles its timeout whenever a view expires without progress.* HotStuff cleanly separates this view-synchronization mechanism, which it calls the pacemaker, from the core voting rules, because the pacemaker affects only liveness and can never violate safety.

Still, adding a third stage of voting seems to carry a latency price, since every line must wait through three stages of bundles instead of two, and the scroll might take in lines more slowly.Still, adding a third phase of voting seems to carry a latency price, since every block must wait through three phases of certificates instead of two, and the log might take in blocks more slowly.

Proof · that an honest writer after delays settle gets their line throughProof · that an honest leader after GST gets its block through

Lemma 3 & Theorem 4 (Optimistic Responsiveness). After GST (once delays settle), in any view with a correct leader in which all correct replicas remain long enough, the leader collects a highQC at least as high as every correct replica's lockedQC, every correct replica votes for the leader's proposal, and each phase completes upon receiving the first n − f = 3 responses without waiting for any timeout.Lemma 3 & Theorem 4 (Optimistic Responsiveness). After GST, in any view with a correct leader in which all correct replicas remain long enough, the leader collects a highQC at least as high as every correct replica's lockedQC, every correct replica votes for the leader's proposal, and each phase completes upon receiving the first n − f = 3 responses without waiting for any timeout.

  1. Consider the highest-term lock (lockedQC, a second bundle) held by any honest legislator at the start of the term, say from term v*. For that second bundle to exist, three legislators must have cast second votes in term v* after receiving and storing the matching first bundle (prepareQC) of term v*. At least two of those three legislators are honest.Consider the highest-view lock (lockedQC, a second certificate) held by any honest replica at the start of the view, say from view v*. For that second certificate to exist, three replicas must have cast second votes in view v* after receiving and storing the matching first certificate (prepareQC) of view v*. At least two of those three replicas are honest.
  2. To open the new term, the honest writer waits for the first three new-view messages, each carrying that sender's highest first bundle. Any three legislators out of four share at least one legislator with the two honest legislators holding term v*'s first bundle, so the writer's selected highQC comes from a term ≥ v*.To open the new view, the honest leader waits for the first three new-view messages, each carrying that sender's highest first certificate. Any three replicas out of four share at least one replica with the two honest replicas holding view v*'s first certificate, so the leader's selected highQC comes from a view ≥ v*.
  3. When the writer proposes a new line extending highQC, every honest legislator votes for it: if an honest legislator's lock is from term v* and highQC is also from term v*, by single-term quorum intersection they refer to the exact same line, so the proposal extends the legislator's lock (satisfying the first half of safeNode); otherwise the legislator's lock is from a term < highQC's term (satisfying the second half of safeNode). Once runners cross the floor promptly all three stages complete as fast as the first three honest responses travel.∎When the leader proposes a new block extending highQC, every honest replica votes for it: if an honest replica's lock is from view v* and highQC is also from view v*, by single-view quorum intersection they refer to the exact same block, so the proposal extends the replica's lock (satisfying the first half of safeNode); otherwise the replica's lock is from a view < highQC's view (satisfying the second half of safeNode). Once the network has settled, all three phases complete as fast as the first three honest responses travel.∎
The stages run on top of one anotherThe phases run on top of one another

A new writer every lineA new leader every block

The law scroll does not have to take in lines more slowly at all. Although each individual line still passes through three stages of bundles before it stands, notice that all three stages have the exact same shape: the writer sends a proposal with a bundle, the legislators send votes, and the writer ties three votes into the next bundle. Because the three stages are identical, we can pipeline them along the chain of lines.The log does not have to take in blocks more slowly at all. Although each individual block still passes through three phases of certificates before it commits, notice that all three phases have the exact same shape: the leader sends a proposal with a certificate, the replicas send votes, and the leader combines three votes into the next certificate. Because the three phases are identical, we can pipeline them along the chain of blocks (Chained HotStuff).

In this chained arrangement, every term has only a single stage of voting, and the writer's office passes to the next legislator at every term. Each term's writer proposes a new line carrying the latest bundle they collected. When the legislators vote for that new line, their single vote simultaneously serves as the first vote for the new line, the second vote for its parent line, and the third vote for its grandparent line. Every new bundle advances the three lines behind it by one stage at once.In Chained HotStuff, every view has only a single phase of voting, and the leader’s role passes to the next replica at every view. Each view’s leader proposes a new block carrying the latest certificate it collected. When the replicas vote for that new block, their single vote simultaneously serves as the first vote for the new block, the second vote for its parent block, and the third vote for its grandparent block. Every new certificate advances the three blocks behind it by one phase at once.

Step through the chained terms one at a time below. The writer's office starts at Legislator 1 and rotates around all four legislators; once the three-stage pipeline fills up in Term 4, a new line stands at every single term.Step through the chained views one at a time below. The leader’s role starts at R1 and rotates around all four replicas; once the three-phase pipeline fills up in view 4, a new block commits at every single view.

Terms in a rowViews in a row

Each line is one legislator, and each ring further out is a later moment. The numbered dot is a term's proposal. The arc into it is the bundle it carries for the line directly before.Each lane is one replica, with real time running left to right. The numbered dot is a view’s proposal. The arrow into it is the certificate it carries for the block directly before.

The office starts at Legislator 1. Press the button to run a term.The leader’s role starts at R1. Press the button to run a view.

In this chained pipeline, a legislator can tell which lines are locked or standing simply by inspecting the chain of bundles behind each new proposal (the Three-Chain rule): if a proposal carries a direct bundle for its parent, that parent has its first bundle; if the parent also carries a direct bundle for the grandparent, the grandparent has its second bundle (so the legislator locks on the grandparent); and if the grandparent also carries a direct bundle for the great-grandparent, that great-grandparent has completed all three stages and stands. (If a term stalled and left a gap in the term numbers, the contiguous three-chain is interrupted and the three-step count simply resumes after the gap.)In this chained pipeline, a replica can tell which blocks are locked or committed simply by inspecting the chain of certificates behind each new proposal (the Three-Chain rule): if a proposal carries a direct certificate for its parent, that parent has its first certificate; if the parent also carries a direct certificate for the grandparent, the grandparent has its second certificate (so the replica locks on the grandparent); and if the grandparent also carries a direct certificate for the great-grandparent, that great-grandparent has completed all three phases and is committed. (If a view stalled and left a gap in the view numbers, the contiguous three-chain is interrupted and the three-step count simply resumes after the gap.)

Because starting a new term under a new writer requires nothing more than proposing on top of the latest bundle, the exact same step an existing writer takes, rotating the writer at every single line costs zero extra notes.Because starting a new view under a new leader requires nothing more than proposing on top of the latest certificate, the exact same step an existing leader takes, rotating the leader at every single block costs zero extra messages.

With this chained arrangement, the four legislators rotate the writer's office on every line and move at the speed of their messengers. Let us finish by noting five practical limits on what this design changes and what remains the same.With Chained HotStuff, the four replicas rotate the leader’s role on every block and move at the speed of the network. Let us finish by noting five practical limits on what this design changes and what remains the same.

The limits

What it does not say

Five points clarify what this chained three-stage arrangement changes compared to earlier arrangements and what conditions it relies on:Five points clarify what HotStuff changes compared to earlier protocols and what conditions it relies on:

  • Nothing stands while messengers are delayed. Safety (Never Two Lines) holds under any delays, but no line can finish its three stages until delays settle and runners can complete their crossings across the floor, a fundamental limit shared by every arrangement that needs messengers to arrive in time.Nothing commits before the network settles. Safety (Never Two Blocks) holds under any delays, but no block can finish its three phases until the network settles and messages can complete their round trips, a fundamental limit shared by every partially synchronous consensus protocol.
  • A bundle is not always the size of a single seal. A bundle is as small as a single seal if the legislators use shared partial seals that combine into one fixed-size mark. With ordinary individual bronze signets, a bundle is simply three wax seals tied together, which still cuts the number of runner crossings from growing with every pair of legislators to growing with the number of legislators, while combined seals make the total number of seal checks linear as well.A certificate is not always the size of a single signature. A certificate is as small as a single signature if the replicas use a threshold signature scheme, where any three partial signatures combine mathematically into one fixed-size signature. With ordinary individual signatures, a certificate is simply three signatures sent together, which still cuts the number of messages from quadratic to linear in the number of replicas, while threshold signatures make the total number of signature verifications linear as well.
  • The third stage makes each line slower, but not the scroll. An individual line takes three stages of voting rather than two to stand, adding one round-trip of latency from proposal to standing. Because the chained arrangement pipelines those three stages across consecutive lines, however, throughput remains one committed line per stage.The third phase makes each block slower, but not the log. An individual block takes three phases of voting rather than two to commit, adding one round-trip of latency from proposal to commit. Because Chained HotStuff pipelines those three phases across consecutive blocks, however, throughput remains one committed block per phase.
  • Nobody learns who lies. Just as before, the arrangement never needs to identify the liar, and an authorized liar can still propose valid-format nonsense that gets ordered along with everything else.Nobody learns which replica is faulty. Just as before, the protocol never needs to identify the faulty replica, and an authorized faulty leader can still propose validly formatted nonsense that gets ordered along with everything else.
  • Nothing follows once a line stands. As always, the arrangement guarantees only that every honest bench writes the exact same sequence of lines into its law scroll.Nothing follows once a block commits. As always, the protocol guarantees only that every honest replica appends the exact same sequence of blocks to its log.
Along the curving wall of the Tholos: a legislator in blue writing at the nearest bench, the runner walking past him towards two more legislators in white at benches further round, under the timber roof

A leader uses only linear message traffic per decision, and a new leader can take over as cheaply as an old one.

HotStuff achieves this by having replicas send votes only to the leader, who aggregates them into a quorum certificate, and by chaining three uniform phases of certificates so that leader replacement is just another round. Once delays settle, it moves at network speed.

Setting The Tholos of Schedia

The paper behind this book

Maofan Yin, Dahlia Malkhi, Michael K. Reiter, Guy Golan Gueta and Ittai Abraham, HotStuff: BFT Consensus with Linearity and Responsiveness. Proceedings of the 38th ACM Symposium on Principles of Distributed Computing (PODC), 2019. Introduces Basic and Chained HotStuff, proves safety and optimistic responsiveness, demonstrates the two-phase hidden-lock liveness failure, and compares communication complexity with PBFT, Tendermint, and Casper.

The ideas. HotStuff is a Byzantine fault-tolerant state-machine replication protocol for n = 3f + 1 replicas under partial synchrony that achieves two properties simultaneously: linear view change (a new leader takes over using only O(n) messages and authenticators, no more than an ordinary round) and optimistic responsiveness (once the network stabilizes, a correct leader drives consensus at actual network speed rather than waiting out a worst-case timeout Δ).

Instead of all-to-all broadcasts, replicas send signed votes solely to the leader, who combines n − f = 2f + 1 votes into a single quorum certificate (QC, implemented with threshold signatures) and broadcasts it out. Where PBFT and Tendermint use two voting phases (prepare and commit), HotStuff uses three (prepare, pre-commit, and commit). Replicas update their lock (lockedQC) only upon receiving a second-phase precommitQC, and vote for a new proposal if it extends their locked node or carries a prepareQC from a higher view than their lock (safeNode). Because any replica's lock on a precommitQC implies that at least f + 1 correct replicas hold the matching prepareQC, a new leader hearing from any n − f replicas is guaranteed to learn of a prepareQC at least as high as every correct replica's lock without waiting for a timeout. In two-phase protocols, by contrast, a single replica can lock on a first-phase QC that no other replica has seen, creating a "hidden lock" that forces either a liveness deadlock or a mandatory Δ timeout wait on every leader change.

Because all three phases of Basic HotStuff have identical structure, Chained HotStuff pipelines them across views: every view proposes a new block carrying a single QC, the leader can rotate on every view at no extra cost, and a block commits as soon as it is followed by a contiguous Three-Chain of blocks.

In the paper, term by term
the four legislators in the TholosThe group of 3f + 1 = 4 replicas, tolerating f = 1 arbitrary Byzantine failure. §2.
the council's law scroll; a lineThe replicated ledger; a block or transaction. §2.
messengers across the stone floor; delaysThe partially synchronous network with arbitrary delays before GST. §2, §3.
a legislator's bronze seal; a bundleA digital signature (or threshold signature share); a Quorum Certificate (QC). §3.
the writer; the writer's officeThe leader (primary), rotating at each view. §4.
a termA view v. §4.
first, second, and third voteThe prepare, pre-commit, and commit votes. §4.2.
first, second, and third bundleThe prepareQC, precommitQC, and commitQC certificates. §4.2.
the lockThe lockedQC held by a replica. §4.1, §4.2.
the latest first bundleThe highQC held by a replica or leader. §4.1, §4.2.
the rule for the first voteThe safeNode predicate (extending lock or higher QC). §4.1.
standingA block committed (decided) after three consecutive phases. §4.2.
the hidden lockThe liveness trap in two-phase BFT where a lock is known to fewer than f + 1 correct replicas. §7.
going at the messengers' paceOptimistic responsiveness: driving progress at network speed without waiting for timer Δ. §1, §4.3.
the doubling sandglassThe pacemaker mechanism synchronizing views. §4.4.
rotating the writer every lineChained HotStuff: pipelining the three phases into a single phase per view. §5.