[][src]Function elements::fast_merkle_root

pub fn fast_merkle_root(leaves: &[[u8; 32]]) -> Midstate

Compute the Merkle root of the give hashes using mid-state only. The inputs must be byte slices of length 32. Note that the merkle root calculated with this method is not the same as the one computed by a normal SHA256(d) merkle root.