Consensus, Explained

An interactive field guide to BFT consensus, for engineers working on zksync-os-server. No prior consensus background assumed — bring only curiosity and a healthy distrust of your fellow validators.

Our sequencer is becoming a committee: several validators, run by operators who don't trust each other, jointly producing one chain. The protocol is Simplex, the stack is commonware, and the whole thing is already running in the repo. This guide exists so that the ideas underneath it — quorums, views, certificates, epochs — feel obvious to you, not arcane.

Every chapter is built around things you can poke: simulations you can break, protocols you can sabotage, cryptography that runs for real in your browser. Reading is optional equipment here; the point is to play until it clicks, then follow the links into the real code and the reference docs (docs/src/consensus/ in the repo).

The committee

Four validators star in every diagram and every simulation in this guide. Learn their colors once — they keep them forever.

T
Theodora
Decisive. Proposes first, usually right.
B
Basil
Honest, but naps at the worst possible times.
Z
Zoe
Meticulous. Verifies everything before signing.
J
Justinian
Ambitious. Turns villain when the plot needs one.

Chapters

This is not a research curriculum, and it will not make you a consensus researcher. It aims for something more useful: that when you touch the sequencer, read the consensus code, or get paged about a stalled view, the system's behavior feels reasonable to you — because you know what promises it keeps and what arithmetic keeps them.