sparsed_merkletree

Calculates the sparsed Merkle root from the branch-table list The size of the table must be KEY_SPAN Leaves in the branch table which don't exist should have the value null

@safe
Buffer
sparsed_merkletree
(
const HashNet net
,
const(Buffer[]) table
)
in (table.length == KEY_SPAN)

Parameters

net HashNet

The hash object/function used to calculate the hashes

table const(Buffer[])

List if hash-value(fingerprint) in the branch

Return Value

Type: Buffer

The Merkle root