ic_certification::rb_tree

Trait AsHashTree

source
pub trait AsHashTree {
    // Required methods
    fn root_hash(&self) -> Hash;
    fn as_hash_tree(&self) -> HashTree;
}
Expand description

Types that can be converted into a HashTree.

Required Methods§

source

fn root_hash(&self) -> Hash

Returns the root hash of the tree without constructing it. Must be equivalent to as_hash_tree().reconstruct().

source

fn as_hash_tree(&self) -> HashTree

Constructs a hash tree corresponding to the data.

Implementations on Foreign Types§

source§

impl AsHashTree for Vec<u8>

Implementors§