Corelib
pub trait CircuitOutputsTrait
let a = CircuitElement::> {}; let b = CircuitElement::> {}; let modulus = TryInto::::try_into([2, 0, 0, 0]).unwrap(); let circuit = (a,b).new_inputs() .next([10, 0, 0, 0]) .next([11, 0, 0, 0]) .done() .eval(modulus) .unwrap(); let a_mod_2 = circuit.get_output(a); // Returns the output value of `a mod 2` let b_mod_2 = circuit.get_output(b); // Returns the output value of `b mod 2` assert!(a_mod_2 == 0.into()); assert!(b_mod_2 == 1.into());
fn get_output( self: Outputs, output: OutputElement, ) -> u384
output
Was this page helpful?