pub struct ConstraintSystem<F: TowerField> {
pub oracles: MultilinearOracleSet<F>,
pub table_constraints: Vec<ConstraintSet<F>>,
pub non_zero_oracle_ids: Vec<OracleId>,
pub flushes: Vec<Flush>,
pub max_channel_id: ChannelId,
}
Expand description
Contains the 3 things that place constraints on witness data in Binius
- virtual oracles
- polynomial constraints
- channel flushes
As a result, a ConstraintSystem allows us to validate all of these constraints against a witness, as well as enabling generic prove/verify
Fields§
§oracles: MultilinearOracleSet<F>
§table_constraints: Vec<ConstraintSet<F>>
§non_zero_oracle_ids: Vec<OracleId>
§flushes: Vec<Flush>
§max_channel_id: ChannelId
Implementations§
Source§impl<F: TowerField> ConstraintSystem<F>
impl<F: TowerField> ConstraintSystem<F>
pub fn no_base_constraints(self) -> ConstraintSystem<F>
Trait Implementations§
Source§impl<F: Clone + TowerField> Clone for ConstraintSystem<F>
impl<F: Clone + TowerField> Clone for ConstraintSystem<F>
Source§fn clone(&self) -> ConstraintSystem<F>
fn clone(&self) -> ConstraintSystem<F>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl<F> Freeze for ConstraintSystem<F>
impl<F> !RefUnwindSafe for ConstraintSystem<F>
impl<F> Send for ConstraintSystem<F>
impl<F> Sync for ConstraintSystem<F>
impl<F> Unpin for ConstraintSystem<F>
impl<F> !UnwindSafe for ConstraintSystem<F>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
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 moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
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