Skip to main content
Version: v1.3_alpha

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

NameTypeDescription
_stateTreeDepthuint256The state tree depth
_intStateTreeDepthuint256The intermediate state tree depth
_voteOptionTreeDepthuint256The vote option tree depth
_modeenum DomainObjs.ModeQV or Non-QV

Return Values

NameTypeDescription
[0]struct SnarkCommon.VerifyingKeyThe 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

NameTypeDescription
_stateTreeDepthuint256The state tree depth
_messageTreeDepthuint256The message tree depth
_voteOptionTreeDepthuint256The vote option tree depth
_messageBatchSizeuint256The message batch size
_modeenum DomainObjs.ModeQV or Non-QV

Return Values

NameTypeDescription
[0]struct SnarkCommon.VerifyingKeyThe verifying key