Function calcMinMerkleDepthForEntries

  • Calculates the minimum Merkle tree depth of a POD containing the given number of entries. Since names and values are separate leaves of the tree, the formula is ceil(log2(2 * nEntries)).

    Parameters

    • nEntries: number

      entry count

    Returns number

    the required Merkle tree depth

Generated using TypeDoc