#[repr(C)]pub struct StarkVerifyingKey<Val, Com> {
pub preprocessed_data: Option<VerifierSinglePreprocessedData<Com>>,
pub params: StarkVerifyingParams,
pub symbolic_constraints: SymbolicConstraintsDag<Val>,
pub quotient_degree: u8,
pub rap_phase_seq_kind: RapPhaseSeqKind,
}Expand description
Verifying key for a single STARK (corresponding to single AIR matrix)
Fields§
§preprocessed_data: Option<VerifierSinglePreprocessedData<Com>>Preprocessed trace data, if any
params: StarkVerifyingParamsParameters of the STARK
symbolic_constraints: SymbolicConstraintsDag<Val>Symbolic constraints of the AIR in all challenge phases. This is a serialization of the constraints in the AIR.
quotient_degree: u8The factor to multiply the trace degree by to get the degree of the quotient polynomial. Determined from the max constraint degree of the AIR constraints. This is equivalently the number of chunks the quotient polynomial is split into.
rap_phase_seq_kind: RapPhaseSeqKindImplementations§
Source§impl<Val, Com> StarkVerifyingKey<Val, Com>
impl<Val, Com> StarkVerifyingKey<Val, Com>
pub fn num_cached_mains(&self) -> usize
pub fn has_common_main(&self) -> bool
pub fn has_interaction(&self) -> bool
Trait Implementations§
Source§impl<Val: Clone, Com: Clone> Clone for StarkVerifyingKey<Val, Com>
impl<Val: Clone, Com: Clone> Clone for StarkVerifyingKey<Val, Com>
Source§fn clone(&self) -> StarkVerifyingKey<Val, Com>
fn clone(&self) -> StarkVerifyingKey<Val, Com>
Returns a duplicate 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, Val, Com> Deserialize<'de> for StarkVerifyingKey<Val, Com>where
Val: Deserialize<'de>,
Com: Deserialize<'de>,
impl<'de, Val, Com> Deserialize<'de> for StarkVerifyingKey<Val, Com>where
Val: Deserialize<'de>,
Com: Deserialize<'de>,
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
Auto Trait Implementations§
impl<Val, Com> Freeze for StarkVerifyingKey<Val, Com>where
Com: Freeze,
impl<Val, Com> RefUnwindSafe for StarkVerifyingKey<Val, Com>where
Com: RefUnwindSafe,
Val: RefUnwindSafe,
impl<Val, Com> Send for StarkVerifyingKey<Val, Com>
impl<Val, Com> Sync for StarkVerifyingKey<Val, Com>
impl<Val, Com> Unpin for StarkVerifyingKey<Val, Com>
impl<Val, Com> UnwindSafe for StarkVerifyingKey<Val, Com>where
Com: UnwindSafe,
Val: 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,
§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