pub struct TrieRoot<T: TrieLayout> {
pub root: Option<TrieHash<T>>,
}
Expand description
Calculate the trie root of the trie.
Fields
root: Option<TrieHash<T>>
The resulting root.
Trait Implementations
impl<T: TrieLayout> ProcessEncodedNode<<<T as TrieLayout>::Hash as Hasher>::Out> for TrieRoot<T>
impl<T: TrieLayout> ProcessEncodedNode<<<T as TrieLayout>::Hash as Hasher>::Out> for TrieRoot<T>
Function call with prefix, encoded value and a boolean indicating if the node is the root for each node of the trie. Read more