Trait ic_stable_memory::AsHashTree
source · pub trait AsHashTree {
// Required methods
;
;
}Expand description
Trait that is used to hash a leaf value of a [HashTree].
This trait should always be implemented on user-side.
See also SCertifiedBTreeMap
Required Methods§
source
Returns the root hash of the tree without constructing it. Must be equivalent to [HashTree::reconstruct].
source
Returns a [HashTree] of this value. Must be equivalent to AsHashTree::root_hash.