ic_certification::hash_tree

Type Alias Hash

Source
pub type Hash = [u8; 32];
Expand description

Sha256 Digest: 32 bytes

Trait Implementations§

Source§

impl AsHashTree for Hash

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.