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 anOut
associated type with the necessary bounds. - Trie
Stream - 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. Seetrie_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. Seeunhashed_trie
.