vk_bytes_from_ark

Function vk_bytes_from_ark 

Source
pub fn vk_bytes_from_ark(
    env: &Env,
    vk: &VerifyingKey<Bn254>,
) -> VerificationKeyBytes
Expand description

Convert an ark-groth16 VerifyingKey to Soroban VerificationKeyBytes

§Arguments

  • env - The Soroban environment
  • vk - The ark-groth16 VerifyingKey

§Returns

A VerificationKeyBytes struct suitable for use with the CircomGroth16Verifier contract