[][src]Function chain::merkle_root

pub fn merkle_root<T>(hashes: &[T]) -> H256 where
    T: AsRef<H256>, 

Calculates the root of the merkle tree https://en.bitcoin.it/wiki/Protocol_documentation#Merkle_Trees