Minimal Anti Collusion Infrastructure (MACI) / genTreeProof
Function: genTreeProof()
genTreeProof(
index
,leaves
,depth
):bigint
[][]
Defined in: packages/crypto/ts/utils.ts:47
A helper function to generate the tree proof for the value at the given index in the leaves
Parameters
index
number
The index of the value to generate the proof for
leaves
bigint
[]
A list of values
depth
number
The tree depth
Returns
bigint
[][]
The proof