Trait kimchi::snarky::runner::WitnessGeneration
source · pub trait WitnessGeneration<F>where
F: PrimeField,{
// Required methods
fn read_var(&self, var: &FieldVar<F>) -> F;
fn constraints_counter(&self) -> usize;
}
Expand description
A witness generation environment. This is passed to any closure in RunState::compute so that they can access the witness generation environment.
Required Methods§
sourcefn read_var(&self, var: &FieldVar<F>) -> F
fn read_var(&self, var: &FieldVar<F>) -> F
Allows the caller to obtain the value behind a circuit variable.