Trait snarkvm_wasm::ConstraintSynthesizer[][src]

pub trait ConstraintSynthesizer<F> where
    F: Field
{ pub fn generate_constraints<CS>(
        &self,
        cs: &mut CS
    ) -> Result<(), SynthesisError>
    where
        CS: ConstraintSystem<F>
; }

Computations are expressed in terms of rank-1 constraint systems (R1CS). The generate_constraints method is called to generate constraints for both CRS generation and for proving.

Required methods

pub fn generate_constraints<CS>(
    &self,
    cs: &mut CS
) -> Result<(), SynthesisError> where
    CS: ConstraintSystem<F>, 
[src]

Drives generation of new constraints inside CS.

Loading content...

Implementors

Loading content...