Agreement: the consensus committee¶
Why one relayer is a single point of trust, and how a committee of virtual relayer nodes agrees on an event before it is executed.
You will learn / You need
You will learn: the Byzantine fault bound, the quorum and delivery thresholds, and what the committee does and does not protect against. You need: Relayers and cross-chain calls and Account abstraction and BridgeAA.
The problem¶
In bridge mode one relayer key signs every intent, and the BridgeAA accepts that key's signature. If the relayer process is wrong, hacked or buggy, it signs whatever it likes for any sender in the ACL (access control list of allowed senders). The committee puts an agreement step in front of the key: an event is signed only after several independent-looking nodes agree it is real.
It is optional and off unless CONSENSUS_ENABLED=true. It exists for experiments that compare an honest committee with one containing crashed or Byzantine members.
BFT in one page¶
A Byzantine node is one that can behave arbitrarily: crash, lie, send different answers to different peers. BFT (Byzantine fault tolerant) consensus lets the honest nodes agree anyway, as long as the faulty ones are few enough.
With n nodes the committee tolerates
faulty or Byzantine nodes. Two numbers follow:
| Number | Value | Meaning |
|---|---|---|
| Commit quorum | More than ⅔ of the voting power | A block commits only when more than two thirds of the nodes accept it |
| Delivery threshold | ⌊(n−1)/3⌋ + 1 = f + 1, capped at the number of live nodes and at least 1 |
The committee hands an event to the executor once this many validators report the commit. f + 1 reports include at least one honest node |
Worked example: n = 4 gives f = 1, a quorum of 3 of 4, and a delivery threshold of 2. The calculator on the Track C page applies these numbers to your own n.
Each virtual node is a real CometBFT v0.38 process driving its own application (stealth_name_service/backend/testing_backend/src/consensus/mod.rs). An honest node accepts an event only if it describes an intent the executor would build, its source_sender is in the destination ACL, and the node observed that exact event itself and has not seen it committed. That last check rejects forged, altered and replayed events.
flowchart LR
L[event_listener] --> C["consensus_committee<br/>n CometBFT nodes"]
C -- "signed delivery<br/>after f+1 reports" --> H[event_handler]
H --> AA[BridgeAA]
What it protects against, and what it does not¶
| It protects against | It does not protect against |
|---|---|
| Up to f nodes forging, censoring, delaying or equivocating | More than f faulty nodes: too many crashed nodes stall it, too many forgers commit forged events |
| An event that no honest node observed | A wrong source chain feed: the nodes share one observation feed from the ingest endpoint, standing in for each watching the chain on its own |
| Replays of an event already committed | A compromised executor or delivery key: the BridgeAA still checks one relayer signature, so the gate holds only as long as the handler process and CONSENSUS_DELIVERY_KEY do |
The committee is one container on loopback, so it models agreement. It does not give you independent operators.
Next¶
Architecture at a glance shows where the committee sits among the other components. To run it, see Adding the consensus committee.