nooschain / crypto/merkle / computeMerkleRoot
Function: computeMerkleRoot()
computeMerkleRoot(
hashes):string
Defined in: crypto/merkle.ts:20
Computes the deterministic Merkle root for an ordered list of hex hashes.
Empty lists hash the empty string, so empty blocks still have a stable Merkle root. Odd levels duplicate the final hash before computing the next level.
Parameters
hashes
string[]
Returns
string