[][src]Struct fawkes_crypto_phase2::circom_circuit::CircomCircuit

pub struct CircomCircuit<E: Engine> {
    pub num_inputs: usize,
    pub num_aux: usize,
    pub num_constraints: usize,
    pub witness: Option<Vec<E::Fr>>,
    pub constraints: Vec<(Vec<(usize, E::Fr)>, Vec<(usize, E::Fr)>, Vec<(usize, E::Fr)>)>,
}

Fields

num_inputs: usizenum_aux: usizenum_constraints: usizewitness: Option<Vec<E::Fr>>constraints: Vec<(Vec<(usize, E::Fr)>, Vec<(usize, E::Fr)>, Vec<(usize, E::Fr)>)>

Implementations

impl<'a, E: Engine> CircomCircuit<E>[src]

pub fn get_public_inputs(&self) -> Option<Vec<E::Fr>>[src]

pub fn get_public_inputs_json(&self) -> String[src]

Trait Implementations

impl<'a, E: Engine> Circuit<E> for CircomCircuit<E>[src]

Our demo circuit implements this Circuit trait which is used during paramgen and proving in order to synthesize the constraint system.

impl<E: Clone + Engine> Clone for CircomCircuit<E> where
    E::Fr: Clone,
    E::Fr: Clone,
    E::Fr: Clone,
    E::Fr: Clone
[src]

Auto Trait Implementations

impl<E> RefUnwindSafe for CircomCircuit<E> where
    <E as ScalarEngine>::Fr: RefUnwindSafe

impl<E> Send for CircomCircuit<E> where
    <E as ScalarEngine>::Fr: Send

impl<E> Sync for CircomCircuit<E> where
    <E as ScalarEngine>::Fr: Sync

impl<E> Unpin for CircomCircuit<E> where
    <E as ScalarEngine>::Fr: Unpin

impl<E> UnwindSafe for CircomCircuit<E> where
    <E as ScalarEngine>::Fr: UnwindSafe

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> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.