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 doen't exist should have the value null

  1. Buffer sparsed_merkletree(HashNet net, const(Buffer[]) table)
    @safe
    sparsed_merkletree
    (
    const HashNet net
    ,
    const(Buffer[]) table
    )
    in (table.length == KEY_SPAN)
  2. Fingerprint sparsed_merkletree(HashNet net, const(Fingerprint[]) table, Flag!"flat" flat)

Parameters

net HashNet

The hash object/function used to calculate the hashs

table const(Buffer[])

List if hash-value(fingerprint) in the branch

Return Value

Type: Buffer

The Merkle root

Meta