pub struct AirProvingContext<PB: ProverBackend> {
pub cached_mains: Vec<CommittedTraceData<PB>>,
pub common_main: Option<PB::Matrix>,
pub public_values: Vec<PB::Val>,
}
Expand description
Necessary context for proving a single AIR. Consists of the trace and public values (witness and instance data) as well as cached prover data from cached traces (already committed traces).
Public values: for each AIR, a separate list of public values. The prover can support global public values that are shared among all AIRs, but we currently split public values per-AIR for modularity.
Fields§
§cached_mains: Vec<CommittedTraceData<PB>>
Cached main trace matrices with commitments. One matrix per commitment.
common_main: Option<PB::Matrix>
Common main trace matrix
public_values: Vec<PB::Val>
Public values
Implementations§
Source§impl<PB: ProverBackend> AirProvingContext<PB>
impl<PB: ProverBackend> AirProvingContext<PB>
Source§impl<PB: ProverBackend> AirProvingContext<PB>
impl<PB: ProverBackend> AirProvingContext<PB>
pub fn simple(trace: PB::Matrix, public_values: Vec<PB::Val>) -> Self
pub fn simple_no_pis(trace: PB::Matrix) -> Self
pub fn multiple_simple( traces: Vec<PB::Matrix>, public_values: Vec<Vec<PB::Val>>, ) -> Vec<Self>
pub fn multiple_simple_no_pis(traces: Vec<PB::Matrix>) -> Vec<Self>
Sourcepub fn main_trace_height(&self) -> usize
pub fn main_trace_height(&self) -> usize
Return the height of the main trace.
Trait Implementations§
Auto Trait Implementations§
impl<PB> Freeze for AirProvingContext<PB>
impl<PB> RefUnwindSafe for AirProvingContext<PB>where
<PB as ProverBackend>::Matrix: RefUnwindSafe,
<PB as ProverBackend>::Val: RefUnwindSafe,
<PB as ProverBackend>::Commitment: RefUnwindSafe,
<PB as ProverBackend>::PcsData: RefUnwindSafe,
impl<PB> Send for AirProvingContext<PB>
impl<PB> Sync for AirProvingContext<PB>
impl<PB> Unpin for AirProvingContext<PB>where
<PB as ProverBackend>::Matrix: Unpin,
<PB as ProverBackend>::Val: Unpin,
<PB as ProverBackend>::Commitment: Unpin,
<PB as ProverBackend>::PcsData: Unpin,
impl<PB> UnwindSafe for AirProvingContext<PB>where
<PB as ProverBackend>::Matrix: UnwindSafe,
<PB as ProverBackend>::Val: UnwindSafe,
<PB as ProverBackend>::Commitment: UnwindSafe,
<PB as ProverBackend>::PcsData: UnwindSafe,
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,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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