Trait snarkvm_polycommit::PrepareGadget [−][src]
pub trait PrepareGadget<Unprepared, F: PrimeField>: Sized { fn prepare<CS: ConstraintSystem<F>>(
cs: CS,
unprepared: &Unprepared
) -> Result<Self, SynthesisError>; }
Expand description
Define the minimal interface of prepared allocated structures.
Required methods
fn prepare<CS: ConstraintSystem<F>>(
cs: CS,
unprepared: &Unprepared
) -> Result<Self, SynthesisError>
fn prepare<CS: ConstraintSystem<F>>(
cs: CS,
unprepared: &Unprepared
) -> Result<Self, SynthesisError>
Prepare from an unprepared element.