Struct libspartan::Instance[][src]

pub struct Instance { /* fields omitted */ }

Instance holds the description of R1CS matrices

Implementations

impl Instance[src]

pub fn new(
    num_cons: usize,
    num_vars: usize,
    num_inputs: usize,
    A: &Vec<(usize, usize, [u8; 32])>,
    B: &Vec<(usize, usize, [u8; 32])>,
    C: &Vec<(usize, usize, [u8; 32])>
) -> Result<Instance, R1CSError>
[src]

Constructs a new Instance and an associated satisfying assignment

pub fn is_sat(
    &self,
    vars: &VarsAssignment,
    inputs: &InputsAssignment
) -> Result<bool, R1CSError>
[src]

Checks if a given R1CSInstance is satisfiable with a given variables and inputs assignments

pub fn produce_synthetic_r1cs(
    num_cons: usize,
    num_vars: usize,
    num_inputs: usize
) -> (Instance, VarsAssignment, InputsAssignment)
[src]

Constructs a new synthetic R1CS Instance and an associated satisfying assignment

Auto Trait Implementations

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, U> Cast<U> for T where
    U: FromCast<T>, 

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

impl<T> FromBits<T> for T

impl<T> FromCast<T> for T

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

impl<T, U> IntoBits<U> for T where
    U: FromBits<T>, 

impl<T> Same<T> for T

type Output = T

Should always be Self

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,