Struct dusk_hades::strategies::gadget::GadgetStrategy[][src]

pub struct GadgetStrategy<'a> {
    pub cs: &'a mut StandardComposer,
    // some fields omitted
}

Implements a Hades252 strategy for Variable as input values. Requires a reference to a ConstraintSystem.

Fields

cs: &'a mut StandardComposer

A reference to the constraint system used by the gadgets

Implementations

impl<'a> GadgetStrategy<'a>[src]

pub fn new(cs: &'a mut StandardComposer) -> Self[src]

Constructs a new GadgetStrategy with the constraint system.

pub fn hades_gadget(composer: &'a mut StandardComposer, x: &mut [Variable])[src]

Perform the hades permutation on a plonk circuit

Trait Implementations

impl<'a> Strategy<Variable> for GadgetStrategy<'a>[src]

fn mul_matrix<'b, I>(&mut self, constants: &mut I, values: &mut [Variable]) where
    I: Iterator<Item = &'b BlsScalar>, 
[src]

Adds a constraint for each matrix coefficient multiplication

Auto Trait Implementations

impl<'a> RefUnwindSafe for GadgetStrategy<'a>[src]

impl<'a> Send for GadgetStrategy<'a>[src]

impl<'a> Sync for GadgetStrategy<'a>[src]

impl<'a> Unpin for GadgetStrategy<'a>[src]

impl<'a> !UnwindSafe for GadgetStrategy<'a>[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.