Type alias LeanIMTHashFunction<N>

LeanIMTHashFunction<N>: ((a, b) => N)

The hash function is used to compute the nodes of the tree. In a binary Merkle tree, each node is the hash of its two children.

Type Parameters

  • N = bigint

Type declaration

    • (a, b): N
    • Parameters

      Returns N