Skip to main content

Module confirm

Module confirm 

Source
Expand description

Confirmation of ledgers by a validator quorum, independent of the ledger source.

Whether a ledger is validated by the network is decided not by the node but by the signatures of UNL validators. Validations come from the nodes’ validations stream, and each signature is checked on arrival. UNL membership comes from the publisher lists in the witness-unl collector archive; responses are checked against pinned publisher keys on every load. A signing key is mapped to its master key using the manifests from the same lists, and for validators that rotated keys after the list was published, using a manifest fetched from the node (it is signed by the master key and checked the same way).

The rule is the same as in evidence bundle verification (full-unl): 80% of the whole UNL, full validations only, Negative UNL not taken into account. The lists are those in effect at the ledger’s time according to the signed validations, and the quorum must hold for every combination of lists in effect. The source can delay or hide validations (then the ledger simply won’t be confirmed), but it can’t forge a signature.

If ledger N is confirmed, so are all ledgers loaded before it: the ingester has already checked that each one’s parent hash is the hash of the previous ledger.

Structs§

Confirmer
Stats
Verdict
Result of checking a ledger.

Functions§

listen

Type Aliases§

NodeStreams
Listens to the node’s validation stream for the life of the process; reconnects on drop. Messages of the node’s validations and manifests streams, as received, for clients subscribed to them (subs::forward_streams).