pub fn tree_hash_from_bytes(buf: &[u8]) -> Result<[u8; 32]>