Skip to main content
Version: v3.x

Minimal Anti Collusion Infrastructure (MACI) / compareVks

Function: compareVks()

compareVks(vkOnChain, vk?): boolean

Defined in: packages/sdk/ts/verifyingKeys/utils.ts:46

Compare two verifying keys

Parameters

vkOnChain

the verifying key on chain

IVkContractParams | VerifyingKey

vk?

the local verifying key

IVkContractParams | VerifyingKey

Returns

boolean

whether they are equal or not