Minimal Anti Collusion Infrastructure (MACI) v2.4.0 / calcDepthFromNumLeaves
Function: calcDepthFromNumLeaves()
calcDepthFromNumLeaves(
hashLength
,numLeaves
):number
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
Defined in
packages/crypto/ts/utils.ts:10