Skip to main content

hash_tree_root

Function hash_tree_root 

Source
pub fn hash_tree_root<T: HashTreeRoot + ?Sized>(value: &T) -> [u8; 32]
Expand description

Convenience SHA-256 entry point.

Rust forbids default type parameters on free functions, so this is the SHA-256-specialised companion to HashTreeRoot::hash_tree_root.