Skip to main content

tree_digest

Function tree_digest 

Source
pub fn tree_digest(memory_dir: &Path) -> Result<[u8; 32]>
Expand description

Hash a CMA tree’s body content into a 32-byte SHA-256 so two trees with the same files-and-bytes produce the same digest. Used by the round-trip test.