Skip to main content

Module stateproof

Module stateproof 

Source
Expand description

A state object proof: whether the object is in the ledger or not.

A path in the state tree (SHAMap) from the header’s AccountHash root to the key’s slot. Three outcomes:

  • the object is present: the key’s slot holds the leaf SHA-512Half(MLN\0, object, key);
  • the object is absent and the slot is empty: the last node on the path has zeros in the key’s slot;
  • the object is absent and the slot is taken by another leaf: the bundle then carries that leaf in full (key and object). It shows the key is different, and since that leaf is alone in the slot, our key is not under this prefix.

Whether the network confirmed the header itself is decided by the evidence bundle (evidence): by quorum or by a hash chain to a confirmed ledger.

Structs§

OtherLeaf
A different leaf in the key’s slot, used to prove absence.
ProvenState
What the proof establishes.
StateProof

Constants§

FORMAT