Minimal Anti Collusion Infrastructure (MACI) / generateTallyVerifyingKeySignature
Function: generateTallyVerifyingKeySignature()
generateTallyVerifyingKeySignature(
_stateTreeDepth,_intStateTreeDepth,_voteOptionTreeDepth):bigint
Defined in: utils/utils.ts:48
This function generates the signature of a Tally Verifying Key. This can be used to check if a VoteTally circuit verifying key is registered in a smart contract that holds several verifying keys.
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.