List of all items

Structs

An Exclusion Proof Leaf data for a Sparse Merkle Tree.

An Exclusion Proof for a Sparse Merkle Tree.

An Inclusion Proof for a Sparse Merkle Tree.

Enums

An Exclusion Proof Leaf for a Sparse Merkle Tree.

A wrapper on inclusion and exclusion proofs for a Sparse Merkle Tree proof.

Error used when something goes wrong while computing or verifying Sparse Merkle Proofs.

Constants

Concatenated to leaf hash input as described by
“MTH({d(0)}) = SHA-256(0x00 || d(0))”

Concatenated to node hash input as described by

Functions

Returns the computed leaf hash of “MTH({d(0)}) = SHA-256(0x00 || d(0))”.

This function will compute and return a Merkle root given a leaf and corresponding proof.

This function will take a Merkle leaf and proof and return whether the corresponding root

Returns the computed node hash of “MTH(D[n]) = SHA-256(0x01 || MTH(D[0:k]) || MTH(D[k:n]))”.

Returns the computed leaf hash of “MTH(D[n]) = SHA-256(0x00 || MTH(D[0:k]) || MTH(D[k:n]))”.