IVkRegistry
VkRegistry interface
getTallyVk
function getTallyVk(uint256 _stateTreeDepth, uint256 _intStateTreeDepth, uint256 _voteOptionTreeDepth, enum DomainObjs.Mode _mode) external view returns (struct SnarkCommon.VerifyingKey)
Get the tally verifying key
Parameters
Name | Type | Description |
---|---|---|
_stateTreeDepth | uint256 | The state tree depth |
_intStateTreeDepth | uint256 | The intermediate state tree depth |
_voteOptionTreeDepth | uint256 | The vote option tree depth |
_mode | enum DomainObjs.Mode | QV or Non-QV |
Return Values
Name | Type | Description |
---|---|---|
[0] | struct SnarkCommon.VerifyingKey | The verifying key |
getProcessVk
function getProcessVk(uint256 _stateTreeDepth, uint256 _messageTreeDepth, uint256 _voteOptionTreeDepth, uint256 _messageBatchSize, enum DomainObjs.Mode _mode) external view returns (struct SnarkCommon.VerifyingKey)
Get the process verifying key
Parameters
Name | Type | Description |
---|---|---|
_stateTreeDepth | uint256 | The state tree depth |
_messageTreeDepth | uint256 | The message tree depth |
_voteOptionTreeDepth | uint256 | The vote option tree depth |
_messageBatchSize | uint256 | The message batch size |
_mode | enum DomainObjs.Mode | QV or Non-QV |
Return Values
Name | Type | Description |
---|---|---|
[0] | struct SnarkCommon.VerifyingKey | The verifying key |