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]
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>
Constructs a new Instance
and an associated satisfying assignment
pub fn is_sat(
&self,
vars: &VarsAssignment,
inputs: &InputsAssignment
) -> Result<bool, R1CSError>
[src]
&self,
vars: &VarsAssignment,
inputs: &InputsAssignment
) -> Result<bool, R1CSError>
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]
num_cons: usize,
num_vars: usize,
num_inputs: usize
) -> (Instance, VarsAssignment, InputsAssignment)
Constructs a new synthetic R1CS Instance
and an associated satisfying assignment
Auto Trait Implementations
impl RefUnwindSafe for Instance
impl Send for Instance
impl Sync for Instance
impl Unpin for Instance
impl UnwindSafe for Instance
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> Cast<U> for T where
U: FromCast<T>,
U: FromCast<T>,
pub fn cast(self) -> U
impl<T> From<T> for T
[src]
impl<T> FromBits<T> for T
pub fn from_bits(t: T) -> T
impl<T> FromCast<T> for T
pub fn from_cast(t: T) -> T
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> IntoBits<U> for T where
U: FromBits<T>,
U: FromBits<T>,
pub fn into_bits(self) -> U
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]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,