Skip to main content

subtree_hash

Function subtree_hash 

Source
pub fn subtree_hash(items: &[(Hash, Hash)], depth: usize) -> Hash
Expand description

Hash of the subtree at depth for sorted leaves that share their first depth nibbles: zeros if empty, the leaf itself if alone, else an inner node.