pub struct AirProvingContext<'a, PB: ProverBackend> {
pub cached_mains: Vec<(PB::Commitment, SingleCommitPreimage<&'a PB::Matrix, &'a PB::PcsData>)>,
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<(PB::Commitment, SingleCommitPreimage<&'a PB::Matrix, &'a PB::PcsData>)>
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
Auto Trait Implementations§
impl<'a, PB> Freeze for AirProvingContext<'a, PB>
impl<'a, PB> RefUnwindSafe for AirProvingContext<'a, PB>where
<PB as ProverBackend>::Matrix: RefUnwindSafe,
<PB as ProverBackend>::Val: RefUnwindSafe,
<PB as ProverBackend>::Commitment: RefUnwindSafe,
<PB as ProverBackend>::PcsData: RefUnwindSafe,
impl<'a, PB> Send for AirProvingContext<'a, PB>
impl<'a, PB> Sync for AirProvingContext<'a, PB>
impl<'a, PB> Unpin for AirProvingContext<'a, PB>where
<PB as ProverBackend>::Matrix: Unpin,
<PB as ProverBackend>::Val: Unpin,
<PB as ProverBackend>::Commitment: Unpin,
impl<'a, PB> UnwindSafe for AirProvingContext<'a, PB>where
<PB as ProverBackend>::Matrix: UnwindSafe + RefUnwindSafe,
<PB as ProverBackend>::Val: UnwindSafe,
<PB as ProverBackend>::Commitment: UnwindSafe,
<PB as ProverBackend>::PcsData: RefUnwindSafe,
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> 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