Trait bellman::ConstraintSystem [] [src]

pub trait ConstraintSystem<E: Engine> {
    fn alloc<F: FnOnce() -> Result<E::Fr, Error>>(
        &mut self,
        f: F
    ) -> Result<Variable, Error>;
fn enforce(
        &mut self,
        a: LinearCombination<E>,
        b: LinearCombination<E>,
        c: LinearCombination<E>
    ); fn one() -> Variable { ... } }

Required Methods

Allocate a private variable in the constraint system. The provided function is used to determine the assignment of the variable.

Enforce that A * B = C.

Provided Methods

Return the "one" input variable

Implementors