Class Groth16VerificationKey

Represents the verification key stored on-chain used to verify Groth16 proofs.

Constructors

Methods

  • Calculates the hash of the serialized form of the verification key. This is useful for comparing verification keys or using them as unique identifiers.

    Returns Uint8Array

    The SHA3-256 hash of the serialized verification key as a Uint8Array

Properties

alphaG1: G1Bytes

The alpha * G, where G is the generator of G1

betaG2: G2Bytes

The alpha * H, where H is the generator of G2

deltaG2: G2Bytes

The delta * H, where H is the generator of G2

gammaAbcG1: [G1Bytes, G1Bytes]

The gamma^{-1} * (beta * a_i + alpha * b_i + c_i) * H, where H is the generator of G1

gammaG2: G2Bytes

The gamma * H, where H is the generator of G2