pub trait CircuitAndValue<F>: SnarkyType<F>where
    F: PrimeField,{
    // Required methods
    fn to_value(fields: Vec<F>, aux: Self::Auxiliary) -> Self::OutOfCircuit;
    fn from_value(value: &Self::OutOfCircuit) -> (Vec<F>, Self::Auxiliary);
}
Expand description

A trait to convert between a snarky type and its out-of-circuit equivalent.

Required Methods§

source

fn to_value(fields: Vec<F>, aux: Self::Auxiliary) -> Self::OutOfCircuit

source

fn from_value(value: &Self::OutOfCircuit) -> (Vec<F>, Self::Auxiliary)

Implementors§