Minimal Anti Collusion Infrastructure (MACI) / calculateBinaryTreeDepthFromMaxLeaves
Function: calculateBinaryTreeDepthFromMaxLeaves()
calculateBinaryTreeDepthFromMaxLeaves(
maxLeaves
):number
Defined in: packages/sdk/ts/utils/trees.ts:6
Utility to calculate the depth of a binary tree
Parameters
maxLeaves
number
the number of leaves in the tree
Returns
number
the depth of the tree