Crate trie_root

Source
Expand description

Generates trie root.

This module should be used to generate trie root hash.

Enums§

Value
Different possible value to use for node encoding.

Traits§

Hasher
Trait describing an object that can hash a slice of bytes. Used to abstract other types over the hashing algorithm. Defines a single hash method and an Out associated type with the necessary bounds.
TrieStream
Byte-stream oriented trait for constructing closed-form tries.

Functions§

sec_trie_root
Generates a key-hashed (secure) trie root hash for a vector of key-value tuples.
trie_root
Generates a trie root hash for a vector of key-value tuples
trie_root_no_extension
Variant of trie_root for patricia trie without extension node. See trie_root.
unhashed_trie
Method similar to trie_root but returning the root encoded node instead of its hash. Mainly use for testing or debugging.
unhashed_trie_no_extension
Variant of unhashed_trie for patricia trie without extension node. See unhashed_trie.