Verifier

Verifier

Class to verify AZTEC zero-knowledge proofs

Constructor

new Verifier(proof)

Parameters:
Name Type Description
proof Proof

the Proof object to be verified

Source:

Methods

extractData()

Convert ABI encoded proof transcript back into BN.js form (for scalars) and elliptic.js form (for points)

Source:

hexToGroupPoint(xHex, yHex) → {BN}

Converts a hexadecimal input to a group point

Parameters:
Name Type Description
xHex string

hexadecimal representation of x coordinate

yHex string

hexadecimal representation of y coordinate

Source:

hexToGroupScalar(hex, canbeZero) → {BN}

Convert a hexadecimal input into a scalar bn.js

Parameters:
Name Type Description
hex string

hex input

canbeZero boolean

control to determine hex input can be zero

Source: