Skip to main content

RelaxedInstance

Struct RelaxedInstance 

Source
pub struct RelaxedInstance<V: IntoIterator> {
    pub x: V,
    pub u: V::Item,
}
Expand description

RelaxedInstance defines a relaxed version of R1CS instance.

It is the basis of instances in many folding schemes that support R1CS.

Fields§

§x: V

RelaxedInstance::x is the public input vector

§u: V::Item

RelaxedInstance::u is the constant term

Trait Implementations§

Source§

impl<F: Field> ArithRelation<RelaxedWitness<&[F]>, RelaxedInstance<&[F]>> for R1CS<F>

Source§

type Evaluation = Vec<F>

ArithRelation::Evaluation defines the type of the evaluation result returned by ArithRelation::eval_relation, and consumed by ArithRelation::check_evaluation. Read more
Source§

fn eval_relation( &self, w: &RelaxedWitness<&[F]>, u: &RelaxedInstance<&[F]>, ) -> Result<Self::Evaluation, Error>

ArithRelation::eval_relation evaluates the constraint system at witness w and instance u. It returns the evaluation result. Read more
Source§

fn check_evaluation( w: &RelaxedWitness<&[F]>, _u: &RelaxedInstance<&[F]>, v: Self::Evaluation, ) -> Result<(), Error>

ArithRelation::check_evaluation checks if the evaluation result is valid. The witness w and instance u are also parameters, because the validity check may need information contained in w and/or u. Read more

Auto Trait Implementations§

§

impl<V> Freeze for RelaxedInstance<V>
where V: Freeze, <V as IntoIterator>::Item: Freeze,

§

impl<V> RefUnwindSafe for RelaxedInstance<V>

§

impl<V> Send for RelaxedInstance<V>
where V: Send, <V as IntoIterator>::Item: Send,

§

impl<V> Sync for RelaxedInstance<V>
where V: Sync, <V as IntoIterator>::Item: Sync,

§

impl<V> Unpin for RelaxedInstance<V>
where V: Unpin, <V as IntoIterator>::Item: Unpin,

§

impl<V> UnsafeUnpin for RelaxedInstance<V>

§

impl<V> UnwindSafe for RelaxedInstance<V>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

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

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more