Contract ab5a87f560b7ca8893bc6a2874acbfecd713647bfe9cebef828185848fea1497

← Back to Index 📥 Download WASM

Meta

cliver 25.2.0#28484880988199233a7e8e87c97cb12dac323cb3
rssdkver 26.1.0#175aa41306f383057a8cdfc84b68d931664fc34e
rsver 1.94.0

Instances

  • CCL7OSM3TR6VFHRCHTETTH7UU4IOAPQHSWPLPLDF5KE5ZQDOCKOLATVW

Interface

Verify a Groth16 proof against public inputs.

Verification equation (as pairing check): e(-pi_A, pi_B) * e(alpha, beta) * e(vk_x, gamma) * e(pi_C, delta) == 1

Where vk_x = IC[0] + sum(public_input[i] * IC[i+1])

fn verify(
    env: soroban_sdk::Env,
    proof: Groth16Proof,
    public_inputs: soroban_sdk::Vec>,
) -> bool

Initialize the verifier with the verification key.

fn initialize(env: soroban_sdk::Env, admin: soroban_sdk::Address, vk: VerificationKey)

Get the number of public inputs expected.

fn num_public_inputs(env: soroban_sdk::Env) -> u32

Imports

WebAssembly Text (WAT) ▶