INNER CODE UNIT · Rust
NUM_VARIABLES
arkworks-rs/groth16 · benches/bench.rs:20
const NUM_VARIABLES: usize = (1 << 20) - 100;
#[derive(Copy)]
struct DummyCircuit<F: PrimeField> {
pub a: Option<F>,
pub b: Option<F>,
pub num_variables: usize,
pub num_constraints: usize,
}
impl<F: PrimeField> Clone for DummyCircuit<F> {
fn clone(&self) -> Self {
DummyCircuit {
a: self.a.clone(),
b: self.b.clone(),
num_variables: self.num_variables.clone(),
num_constraints: self.num_constraints.clone(),
}