Skip to main content
Version: v2.x

Minimal Anti Collusion Infrastructure (MACI) v2.2.0 / verifySignature

Function: verifySignature()

verifySignature(message, signature, publicKey): boolean

Verifies an EdDSA signature using the Baby Jubjub elliptic curve and Poseidon hash function.

Parameters

message: BigNumberish

The original message that was be signed.

signature: Signature

The EdDSA signature to be verified.

publicKey: Point

The public key associated with the private key used to sign the message.

Returns

boolean

Returns true if the signature is valid and corresponds to the message and public key, false otherwise.

Defined in

node_modules/.pnpm/@zk-kit+eddsa-poseidon@1.0.2/node_modules/@zk-kit/eddsa-poseidon/dist/types/eddsa-poseidon.d.ts:65