pub struct MultiStarkVerifyingKeyView<'a, Val, Com> {
pub per_air: Vec<&'a StarkVerifyingKey<Val, Com>>,
pub trace_height_constraints: &'a [LinearConstraint],
pub pre_hash: Com,
}
Fields§
§per_air: Vec<&'a StarkVerifyingKey<Val, Com>>
§trace_height_constraints: &'a [LinearConstraint]
Trace height constraints are not filtered by AIR. When computing the dot product, this will be indexed into by air_id.
pre_hash: Com
Implementations§
Source§impl<'a, Val, Com> MultiStarkVerifyingKeyView<'a, Val, Com>
impl<'a, Val, Com> MultiStarkVerifyingKeyView<'a, Val, Com>
Sourcepub fn new(
per_air: Vec<&'a StarkVerifyingKey<Val, Com>>,
trace_height_constraints: &'a [LinearConstraint],
pre_hash: Com,
) -> Self
pub fn new( per_air: Vec<&'a StarkVerifyingKey<Val, Com>>, trace_height_constraints: &'a [LinearConstraint], pre_hash: Com, ) -> Self
Constructs a new MultiStarkVerifyingKeyView
.
Source§impl<Val, Com: Clone> MultiStarkVerifyingKeyView<'_, Val, Com>
impl<Val, Com: Clone> MultiStarkVerifyingKeyView<'_, Val, Com>
Sourcepub fn preprocessed_commits(&self) -> Vec<Option<Com>>
pub fn preprocessed_commits(&self) -> Vec<Option<Com>>
Returns the preprocessed commit of each AIR. If the AIR does not have a preprocessed trace, returns None.
Sourcepub fn flattened_preprocessed_commits(&self) -> Vec<Com>
pub fn flattened_preprocessed_commits(&self) -> Vec<Com>
Returns all non-empty preprocessed commits.
pub fn num_phases(&self) -> usize
pub fn num_challenges_per_phase(&self) -> Vec<usize>
pub fn num_challenges_in_phase(&self, phase_idx: usize) -> usize
Sourcepub fn main_widths(&self) -> Vec<usize>
pub fn main_widths(&self) -> Vec<usize>
Returns the main width for each AIR.
Sourcepub fn total_widths<E>(&self) -> Vec<usize>where
Val: Field,
E: ExtensionField<Val>,
pub fn total_widths<E>(&self) -> Vec<usize>where
Val: Field,
E: ExtensionField<Val>,
Returns the total width for each AIR.
Sourcepub fn num_interactions(&self) -> Vec<usize>
pub fn num_interactions(&self) -> Vec<usize>
Returns the number of interactions for each AIR.
Trait Implementations§
Source§impl<'a, Val: Clone, Com: Clone> Clone for MultiStarkVerifyingKeyView<'a, Val, Com>
impl<'a, Val: Clone, Com: Clone> Clone for MultiStarkVerifyingKeyView<'a, Val, Com>
Source§fn clone(&self) -> MultiStarkVerifyingKeyView<'a, Val, Com>
fn clone(&self) -> MultiStarkVerifyingKeyView<'a, 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 moreAuto Trait Implementations§
impl<'a, Val, Com> Freeze for MultiStarkVerifyingKeyView<'a, Val, Com>where
Com: Freeze,
impl<'a, Val, Com> RefUnwindSafe for MultiStarkVerifyingKeyView<'a, Val, Com>where
Com: RefUnwindSafe,
Val: RefUnwindSafe,
impl<'a, Val, Com> Send for MultiStarkVerifyingKeyView<'a, Val, Com>
impl<'a, Val, Com> Sync for MultiStarkVerifyingKeyView<'a, Val, Com>
impl<'a, Val, Com> Unpin for MultiStarkVerifyingKeyView<'a, Val, Com>where
Com: Unpin,
impl<'a, Val, Com> UnwindSafe for MultiStarkVerifyingKeyView<'a, Val, Com>
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