pub fn cached_hashes(tree: &Tree) -> Result<(), InvalidCachedHashes>
Expand description
Verify that every internally cached hash matches what it should be, by re-hashing all of them.
This is an expensive operation that requires traversing the entire tree structure and doing a lot of hashing.
If this ever returns Err
, it indicates a bug in this crate.