Expand description
Evidence bundle: everything needed to check one ledger without us.
It contains only originals, bytes that others signed:
- UNL publisher responses byte for byte (with the publishers’ signatures inside);
- validator manifests (signed by their master keys);
- the Negative UNL object from the nearest flag ledger;
- every validation of this ledger that we saw.
The root of trust (publisher keys, threshold, direct trust) is set by whoever verifies, not by the bundle. The policy inside the bundle only records which policy it was built with; if it differs from yours, the check will say so.
Version 2 adds transaction inclusion proofs (transactions): for each one,
a path in this ledger’s transaction tree. The bundle then answers two
questions: “the ledger is confirmed by quorum” and “the transaction is
recorded in this ledger”. Version 1 is the same without transactions and
is verified the same way.
What the bundle does not prove. That the Negative UNL object is in the state tree of the confirmed ledger, and when we first saw a list, are our word only; an inclusion proof is the next step. A validation missing from the bundle means “we did not see it”, not “the validator was silent”.
Structs§
- Bundle
- Claimed
Negative Unl - Quorum with the Negative UNL from the bundle. There is no inclusion proof, so this is for reference, not a verdict.
- From
Response - What one publisher response yielded.
- List
Used - A publisher list in a policy.
- Negative
UnlEvidence - Object
Check - Result for one state object in the bundle.
- Policy
Spec - Policy
Used - One of the possible policies and its result.
- Provenance
- Publisher
Response - Report
- The result of verifying a bundle.
- SkipHop
- A hop back through a skip list: the list proven in the state of a ledger the bundle already proves, and headers from an older ledger up to one whose hash is in the list.
- Trust
- What the verifier trusts.
- TxCheck
- Result for one transaction in the bundle.
- Validation
Evidence
Constants§
- FORMAT
- FORMAT_
V2 - Bundle with transaction inclusion proofs.
- FORMAT_
V3 - Bundle with a header chain up to the confirmed ledger and state object proofs.
- FORMAT_
V4 - Bundle that reaches older ledgers through skip lists (
skips). - RULE_
FULL_ UNL - The quorum counting rule in the report.
Functions§
- current_
lists - Keeps only lists signed by the publisher’s current key: for each publisher, the manifest with the highest sequence among all those presented (from publisher responses and from the bundle) is taken. If it is revoked, the publisher keeps no lists at all; if the key was rotated, lists signed with the previous key are dropped. A publisher left without a list makes the policy incomplete further on.
- lists_
from_ response - Lists from one publisher response, verified against one of the
publisherskeys. Handles v1 and v2 responses. Returns an error only if the response cannot be parsed. - signing_
to_ master - Signing key → master key, from manifests whose signatures check out. The second value is how many manifests were rejected.
- verify
- Verifies a bundle against the verifier’s policy.