Expand description
Proof API: evidence bundles that can be verified without trusting us
(witness-verify evidence).
A bundle uses the xrpl-witness/evidence/3 format: quorum validations for the anchor
ledger, the UNL lists and manifests that show who is in the quorum, the chain
of headers from the target ledger to the anchor, and proofs of a transaction
(path in the transaction tree) or a state object (path in the state
tree, including proof that an object is absent).
The anchor ledger is the nearest one after the target that has validations.
The confirmation module keeps recent ones in memory; every 256 ledgers the ingester
saves them to storage. The chain is at most MAX_CHAIN headers long.
An older target is reached through a skip list (xrpl-witness/evidence/4):
the latest state holds the hash of every 256th ledger since the start of
history. The bundle proves that list in the state of the latest tree
ledger, which is itself anchored as above, and adds the headers from the
target up to the next multiple of 256, at most 256 of them.
The response states plainly what is proven and how: whether the target ledger was itself validated by a quorum or is linked by hashes to a validated one, and what the bundle does not prove, for example that an account’s history is complete.
Constants§
- MAX_
CHAIN - If the chain would be longer, no bundle is built; wait for the next anchor.