pub struct AirProofInput<SC: StarkGenericConfig> {
pub cached_mains_pdata: Vec<(Com<SC>, Arc<PcsProverData<SC>>)>,
pub raw: AirProofRawInput<Val<SC>>,
}
Expand description
Necessary input for proving a single AIR.
The Chip trait is currently specific to the
CPU backend and in particular to RowMajorMatrix
. We may extend
to more general ProverBackends, but
currently we use this struct as a common interface.
Fields§
§cached_mains_pdata: Vec<(Com<SC>, Arc<PcsProverData<SC>>)>
Prover data for cached main traces. They must either be all provided or they will be regenerated from the raw traces.
raw: AirProofRawInput<Val<SC>>
Implementations§
Source§impl<SC: StarkGenericConfig> AirProofInput<SC>
impl<SC: StarkGenericConfig> AirProofInput<SC>
pub fn simple( trace: RowMajorMatrix<Val<SC>>, public_values: Vec<Val<SC>>, ) -> Self
pub fn simple_no_pis(trace: RowMajorMatrix<Val<SC>>) -> Self
pub fn multiple_simple( traces: Vec<RowMajorMatrix<Val<SC>>>, public_values: Vec<Vec<Val<SC>>>, ) -> Vec<Self>
pub fn multiple_simple_no_pis(traces: Vec<RowMajorMatrix<Val<SC>>>) -> 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§
Source§impl<SC: StarkGenericConfig> AirProofInputTestHelper<SC> for AirProofInput<SC>
impl<SC: StarkGenericConfig> AirProofInputTestHelper<SC> for AirProofInput<SC>
fn cached_traces_no_pis( cached_traces: Vec<RowMajorMatrix<Val<SC>>>, common_trace: RowMajorMatrix<Val<SC>>, ) -> Self
Source§impl<SC: StarkGenericConfig> Clone for AirProofInput<SC>
impl<SC: StarkGenericConfig> Clone for AirProofInput<SC>
Auto Trait Implementations§
impl<SC> Freeze for AirProofInput<SC>
impl<SC> RefUnwindSafe for AirProofInput<SC>where
<<SC as StarkGenericConfig>::Pcs as Pcs<<SC as StarkGenericConfig>::Challenge, <SC as StarkGenericConfig>::Challenger>>::Commitment: RefUnwindSafe,
<<<SC as StarkGenericConfig>::Pcs as Pcs<<SC as StarkGenericConfig>::Challenge, <SC as StarkGenericConfig>::Challenger>>::Domain as PolynomialSpace>::Val: RefUnwindSafe,
<<SC as StarkGenericConfig>::Pcs as Pcs<<SC as StarkGenericConfig>::Challenge, <SC as StarkGenericConfig>::Challenger>>::ProverData: RefUnwindSafe,
impl<SC> Send for AirProofInput<SC>
impl<SC> Sync for AirProofInput<SC>
impl<SC> Unpin for AirProofInput<SC>where
<<SC as StarkGenericConfig>::Pcs as Pcs<<SC as StarkGenericConfig>::Challenge, <SC as StarkGenericConfig>::Challenger>>::Commitment: Unpin,
<<<SC as StarkGenericConfig>::Pcs as Pcs<<SC as StarkGenericConfig>::Challenge, <SC as StarkGenericConfig>::Challenger>>::Domain as PolynomialSpace>::Val: Unpin,
impl<SC> UnwindSafe for AirProofInput<SC>where
<<SC as StarkGenericConfig>::Pcs as Pcs<<SC as StarkGenericConfig>::Challenge, <SC as StarkGenericConfig>::Challenger>>::Commitment: UnwindSafe,
<<<SC as StarkGenericConfig>::Pcs as Pcs<<SC as StarkGenericConfig>::Challenge, <SC as StarkGenericConfig>::Challenger>>::Domain as PolynomialSpace>::Val: UnwindSafe + RefUnwindSafe,
<<SC as StarkGenericConfig>::Pcs as Pcs<<SC as StarkGenericConfig>::Challenge, <SC as StarkGenericConfig>::Challenger>>::ProverData: 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> 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