Minimal Anti Collusion Infrastructure (MACI) v2.2.0 / genTallyVkSig
Function: genTallyVkSig()
genTallyVkSig(
_stateTreeDepth
,_intStateTreeDepth
,_voteOptionTreeDepth
):bigint
This function generates the signature of a Tally Verifying Key(VK). This can be used to check if a TallyVotes' circuit VK is registered in a smart contract that holds several VKs.
Parameters
• _stateTreeDepth: number
The depth of the state tree.
• _intStateTreeDepth: number
The depth of the intermediate state tree.
• _voteOptionTreeDepth: number
The depth of the vote option tree.
Returns
bigint
Returns a signature for querying if a verifying key with the given parameters is already registered in the contract.
Defined in
utils/utils.ts:34