Minimal Anti Collusion Infrastructure (MACI) / calcDepthFromNumLeaves
Function: calcDepthFromNumLeaves()
calcDepthFromNumLeaves(
hashLength
,numLeaves
):number
Defined in: packages/crypto/ts/utils.ts:10
Calculate the depth of a tree given the number of leaves
Parameters
hashLength
number
the hashing function param length
numLeaves
number
how many leaves
Returns
number
the depth