Expand description
This module has definition of various proofs.
Structs§
- Accumulator
Consistency Proof - A proof that can be used to show that two Merkle accumulators are consistent
– the big one can be obtained by appending certain leaves to the small one.
For example, at some point in time a client knows that the root hash of the
ledger at version 10 is
old_root(it could be a waypoint). If a server wants to prove that the new ledger at versionNis derived from the old ledger the client knows, it can show the subtrees that represent all the new leaves. If the client can verify that it can indeed obtain the new root hash by appending these new leaves, it can be convinced that the two accumulators are consistent. - Accumulator
Extension Proof - A proof that first verifies that establishes correct computation of the root and then returns the new tree to acquire a new root and version.
- Accumulator
Proof - A proof that can be used authenticate an element in an accumulator given
trusted root hash. For example, both
LedgerInfoToTransactionInfoProofandTransactionInfoToEventProofcan be constructed on top of this structure. - Accumulator
Range Proof - A proof that is similar to
AccumulatorProof, but can be used to authenticate a range of leaves. For example, given the following accumulator: - Sparse
Merkle Proof - A proof that can be used to authenticate an element in a Sparse Merkle Tree
given trusted root hash. For example,
TransactionInfoToAccountProofcan be constructed on top of this structure. - Transaction
Info With Proof TransactionInfoand aTransactionAccumulatorProofconnecting it to the ledger root.- Transaction
List Proof - The complete proof used to authenticate a list of consecutive transactions.
Constants§
Type Aliases§
- Event
Accumulator Proof - Leaf
Count - Because leaves can only take half the space in the tree, any numbering of the tree leaves must not take the full width of the total space. Thus, for a 64-bit ordering, our maximumm proof depth is limited to 63.
- Transaction
Accumulator Proof - Transaction
Accumulator Range Proof