Contract 8b9263f8205eaad2c36dae6e40bd86bc780212532949ba452cdfa08f02b4f357

← Back to Index 📥 Download WASM

Meta

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

Instances

  • CDSEM2UU6KY3UWCCINERIYR2RMZBFNC5EFT6COAMXQCELRVH7LGLN2US

Interface

Install the verification key. Callable once.

fn initialize(
    env: soroban_sdk::Env,
    vk: VerificationKey,
) -> Result<(), soroban_sdk::Error>

Verify a Groth16 proof.

  • proofA || B || C = 384 bytes (uncompressed BLS12-381 points).
  • public_inputs — vector of 32-byte big-endian scalars; its length must equal vk.ic.len() - 1.

Returns true when the proof satisfies the verification equation.

fn verify_proof(
    env: soroban_sdk::Env,
    proof: soroban_sdk::Bytes,
    public_inputs: soroban_sdk::Vec,
) -> Result

Return the installed verification key.

fn verification_key(
    env: soroban_sdk::Env,
) -> Result

Imports

WebAssembly Text (WAT) ▶