[][src]Crate smt_map

Structs

MerkleProof

Merkle proof of a certain triple (SMT-merkle-root, key, value).

SmtMap256

SmtMap256 is Sparse Merkle Tree Map from uint256 keys to uint256 values, and supports generating 256-bit merkle proofs. Initially every of the 2**256 possible keys has a default value of zero.

Functions

verify_merkle_proof

Verifies the value of a key in a SMT-Map (specified by its merkle root). Returns whether the verification has passed.

Type Definitions

Hash256