Minimal Anti Collusion Infrastructure (MACI) v2.5.0 / genTreeProof
Function: genTreeProof()
genTreeProof(
index
,leaves
,depth
):bigint
[][]
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
Defined in
packages/crypto/ts/utils.ts:47