Crate tetsy_trie_root[][src]

Generates trie root.

This module should be used to generate trie root hash.

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_tetsy_trie_root

Generates a key-hashed (secure) trie root hash for a vector of key-value tuples.

tetsy_trie_root

Generates a trie root hash for a vector of key-value tuples

tetsy_trie_root_no_extension

Variant of tetsy_trie_root for patricia trie without extension node. See tetsy_trie_root.

unhashed_trie

Method similar to tetsy_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.