Minimal Anti Collusion Infrastructure (MACI) v2.0.0-alpha / genTreeCommitment
Function: genTreeCommitment()
genTreeCommitment(
leaves
,salt
,depth
):bigint
Parameters
• leaves: bigint
[]
A list of values
• salt: bigint
A random salt
• depth: number
The tree depth
Returns
bigint
The hash of the leaves and the salt, with the salt last
Defined in
crypto/ts/utils.ts:30