Module base2

Source
Expand description

Types for a base-2 merkle tree used for checking and generating proofs within the runtime. The binary-merkle-tree crate exposes all of these same functionality (and more), but this library is designed to work more easily with runtime native types, which simply need to implement Encode/Decode.

Structs§

BasicProvingTrie
A helper structure for building a basic base-2 merkle trie and creating compact proofs for that trie.

Functions§

verify_proof
Verify the existence of key and value in a given trie root and proof.