INNER CODE UNIT · Rust
verifier_size
arkworks-rs/groth16 · src/constraints.rs:156
fn verifier_size(
circuit_vk: &<Groth16<E> as SNARK<E::ScalarField>>::VerifyingKey,
) -> Self::VerifierSize {
circuit_vk.gamma_abc_g1.len()
}
/// Allocates `N::Proof` in `cs` without performing
/// subgroup checks.
#[tracing::instrument(target = "r1cs", skip(cs, f))]
fn new_proof_unchecked<T: Borrow<Proof<E>>>(
cs: impl Into<Namespace<BasePrimeField<E>>>,
f: impl FnOnce() -> Result<T, SynthesisError>,
mode: AllocationMode,
) -> Result<Self::ProofVar, SynthesisError> {
let ns = cs.into();
let cs = ns.cs();
f().and_then(|proof| {
let proof = proof.borrow();