[][src]Module exonum_merkledb::indexes::proof_map

An implementation of a Merkelized version of a map (Merkle Patricia tree).

Structs

CheckedMapProof

Version of MapProof obtained after verification.

Hashed

Hashed variant of a key, representing the transform via SHA-256 hash function.

MapProof

View of a ProofMapIndex, i.e., a subset of its elements coupled with a proof, which jointly allow restoring the object_hash() of the index. Apart from the existing elements, MapProof can assert absence of certain keys from the underlying index.

ProofMapIndex

A Merkelized version of a map that provides proofs of existence or non-existence for the map keys.

Raw

Raw variant of a key, representing the identity transform.

Enums

MapProofError

An error returned when a map proof is invalid.

ValidationError

Errors that can occur while validating a ListProof or MapProof against a trusted collection hash.

Constants

PROOF_MAP_KEY_SIZE

Size in bytes of the Hash.

PROOF_PATH_SIZE

Size in bytes of the ProofPath.

Traits

RawKey

Trait signalling that a key is usable as a key of RawProofMapIndex.

ToProofPath

Trait defining key transformation into the format usable in Merkle Patricia trees.

Type Definitions

RawProofMapIndex

Raw variant of the ProofMapIndex, useful for keys that mapped directly to ProofPath without hashing. For example Hash and PublicKey.