Struct sp1_stark::StarkProvingKey
source · pub struct StarkProvingKey<SC: StarkGenericConfig> {
pub commit: Com<SC>,
pub pc_start: Val<SC>,
pub traces: Vec<RowMajorMatrix<Val<SC>>>,
pub data: PcsProverData<SC>,
pub chip_ordering: HashMap<String, usize>,
}Expand description
A proving key for a STARK.
Fields§
§commit: Com<SC>The commitment to the preprocessed traces.
pc_start: Val<SC>The start pc of the program.
traces: Vec<RowMajorMatrix<Val<SC>>>The preprocessed traces.
data: PcsProverData<SC>The pcs data for the preprocessed traces.
chip_ordering: HashMap<String, usize>The preprocessed chip ordering.
Implementations§
source§impl<SC: StarkGenericConfig> StarkProvingKey<SC>
impl<SC: StarkGenericConfig> StarkProvingKey<SC>
sourcepub fn observe_into(&self, challenger: &mut SC::Challenger)
pub fn observe_into(&self, challenger: &mut SC::Challenger)
Observes the values of the proving key into the challenger.
Trait Implementations§
source§impl<SC: Clone + StarkGenericConfig> Clone for StarkProvingKey<SC>
impl<SC: Clone + StarkGenericConfig> Clone for StarkProvingKey<SC>
source§fn clone(&self) -> StarkProvingKey<SC>
fn clone(&self) -> StarkProvingKey<SC>
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 moresource§impl<'de, SC: StarkGenericConfig> Deserialize<'de> for StarkProvingKey<SC>where
PcsProverData<SC>: DeserializeOwned,
impl<'de, SC: StarkGenericConfig> Deserialize<'de> for StarkProvingKey<SC>where
PcsProverData<SC>: DeserializeOwned,
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl<SC: StarkGenericConfig> Serialize for StarkProvingKey<SC>where
PcsProverData<SC>: Serialize,
impl<SC: StarkGenericConfig> Serialize for StarkProvingKey<SC>where
PcsProverData<SC>: Serialize,
Auto Trait Implementations§
impl<SC> Freeze for StarkProvingKey<SC>where
<<SC as StarkGenericConfig>::Pcs as Pcs<<SC as StarkGenericConfig>::Challenge, <SC as StarkGenericConfig>::Challenger>>::Commitment: Freeze,
<SC as StarkGenericConfig>::Val: Freeze,
<<SC as StarkGenericConfig>::Pcs as Pcs<<SC as StarkGenericConfig>::Challenge, <SC as StarkGenericConfig>::Challenger>>::ProverData: Freeze,
impl<SC> RefUnwindSafe for StarkProvingKey<SC>where
<<SC as StarkGenericConfig>::Pcs as Pcs<<SC as StarkGenericConfig>::Challenge, <SC as StarkGenericConfig>::Challenger>>::Commitment: RefUnwindSafe,
<SC as StarkGenericConfig>::Val: RefUnwindSafe,
<<SC as StarkGenericConfig>::Pcs as Pcs<<SC as StarkGenericConfig>::Challenge, <SC as StarkGenericConfig>::Challenger>>::ProverData: RefUnwindSafe,
impl<SC> Send for StarkProvingKey<SC>where
<<SC as StarkGenericConfig>::Pcs as Pcs<<SC as StarkGenericConfig>::Challenge, <SC as StarkGenericConfig>::Challenger>>::Commitment: Send,
<<SC as StarkGenericConfig>::Pcs as Pcs<<SC as StarkGenericConfig>::Challenge, <SC as StarkGenericConfig>::Challenger>>::ProverData: Send,
impl<SC> Sync for StarkProvingKey<SC>where
<<SC as StarkGenericConfig>::Pcs as Pcs<<SC as StarkGenericConfig>::Challenge, <SC as StarkGenericConfig>::Challenger>>::Commitment: Sync,
<<SC as StarkGenericConfig>::Pcs as Pcs<<SC as StarkGenericConfig>::Challenge, <SC as StarkGenericConfig>::Challenger>>::ProverData: Sync,
impl<SC> Unpin for StarkProvingKey<SC>where
<<SC as StarkGenericConfig>::Pcs as Pcs<<SC as StarkGenericConfig>::Challenge, <SC as StarkGenericConfig>::Challenger>>::Commitment: Unpin,
<SC as StarkGenericConfig>::Val: Unpin,
<<SC as StarkGenericConfig>::Pcs as Pcs<<SC as StarkGenericConfig>::Challenge, <SC as StarkGenericConfig>::Challenger>>::ProverData: Unpin,
impl<SC> UnwindSafe for StarkProvingKey<SC>where
<<SC as StarkGenericConfig>::Pcs as Pcs<<SC as StarkGenericConfig>::Challenge, <SC as StarkGenericConfig>::Challenger>>::Commitment: UnwindSafe,
<SC as StarkGenericConfig>::Val: UnwindSafe,
<<SC as StarkGenericConfig>::Pcs as Pcs<<SC as StarkGenericConfig>::Challenge, <SC as StarkGenericConfig>::Challenger>>::ProverData: 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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)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