Minimal Anti Collusion Infrastructure (MACI) / generateProcessVerifyingKeySignature
Function: generateProcessVerifyingKeySignature()
generateProcessVerifyingKeySignature(
stateTreeDepth,voteOptionTreeDepth,batchSize):bigint
Defined in: utils/utils.ts:32
This function generates the signature of a ProcessMessage Verifying Key. This can be used to check if a ProcessMessages' circuit verifying key is registered in a smart contract that holds several verifying keys.
Parameters
stateTreeDepth
number
The depth of the state tree.
voteOptionTreeDepth
number
The depth of the vote option tree.
batchSize
number
The size of the batch.
Returns
bigint
Returns a signature for querying if a verifying key with the given parameters is already registered in the contract.