merkle_root

Function merkle_root 

Source
pub fn merkle_root(
    leaves: Vec<Fp<MontBackend<FqConfig, 4>, 4>>,
) -> Fp<MontBackend<FqConfig, 4>, 4>
Expand description

Build a Merkle root from a full list of leaves

Computes the Merkle root by repeatedly hashing pairs of nodes until a single root remains.

ยงPanics

Panics if leaves is empty.