Expand description
The witness core: everything needed to check XRPL data yourself, without trusting either a node or a third-party service.
Transactions are not executed here. The core only reads and checks what the network has already computed and signed, so it cannot diverge from the reference implementation on edge cases of execution.
What the core contains:
hash: SHA-512Half and XRPL hash prefixes;stobject: splitting serialized objects into fields, as slices of the original bytes;keys: secp256k1 and ed25519 signatures,n9…keys;validation: parsing a validation and checking its signature;manifest: the link between a validator’s master key and its signing key;unl: checking a publisher’s signed UNL;negative_unl: who the network has temporarily disabled;ledger: the ledger header and its hash;shamap: the transaction tree and inclusion proofs;skiplist: the ledger hash lists in state that link old ledgers to new ones;txproof: a transaction inclusion proof as a portable object;quorum: whether a ledger is confirmed under a given trust policy;evidence: an evidence bundle for one ledger, and checking it.
Checking a signature, checking a quorum and checking data are different claims. The core answers the first; the second is built on top, with an explicit trust policy.
Re-exports§
pub use hash::HashPrefix;pub use hash::sha512_half;pub use hash::sha512_half_prefixed;pub use manifest::Manifest;pub use validation::Validation;
Modules§
- evidence
- Evidence bundle: everything needed to check one ledger without us.
- hash
- XRPL hashing.
- keys
- XRPL keys and signatures.
- ledger
- The ledger header and its hash.
- manifest
- A manifest is a record signed by the master key saying “my current signing key is such-and-such, record number N”.
- negative_
unl - The Negative UNL object in ledger state.
- quorum
- Quorum check: whether a ledger is confirmed by the validators that a given policy trusts.
- shamap
- The ledger transaction tree (SHAMap) and inclusion proofs.
- skiplist
- Skip lists: the
LedgerHashesobjects the network keeps in ledger state. - stateproof
- A state object proof: whether the object is in the ledger or not.
- stobject
- Splitting a serialized XRPL object (STObject) into fields.
- txproof
- A transaction inclusion proof as a portable object.
- unl
- A publisher’s signed UNL.
- unlstore
- The UNL archive written by the
witness-unlcollector: verified lists and choosing the policy as of a given ledger. - util
- Small helpers shared by the crates that keep files on disk.
- validation
- A validation is a statement signed by a validator: “ledger N has hash H”.