verity_verify_local::merkle

Function validate_merkle_tree

source
pub fn validate_merkle_tree(leaves: &Vec<String>, root_hash: &String) -> bool
Expand description

Validate that the provided root hash is the same as the one derived from building a tree out of the provided leaves