Struct miden_air::ProcessorAir

source ·
pub struct ProcessorAir { /* private fields */ }
Expand description

TODO: add docs

Implementations§

source§

impl ProcessorAir

source

pub fn last_step(&self) -> usize

Returns last step of the execution trace.

Trait Implementations§

source§

impl Air for ProcessorAir

source§

fn get_periodic_column_values(&self) -> Vec<Vec<Felt>>

Returns a set of periodic columns for the ProcessorAir.

§

type BaseField = BaseElement

Base field for the computation described by this AIR. STARK protocol for this computation may be executed in the base field, or in an extension of the base fields as specified by ProofOptions struct.
§

type PublicInputs = PublicInputs

A type defining shape of public inputs for the computation described by this protocol. This could be any type as long as it can be serialized into a sequence of field elements.
source§

fn new( trace_info: TraceInfo, pub_inputs: PublicInputs, options: WinterProofOptions ) -> Self

Returns new instance of AIR for this computation instantiated from the provided parameters, which have the following meaning: Read more
source§

fn get_assertions(&self) -> Vec<Assertion<Felt>>

Returns a set of assertions against a concrete execution trace of this computation.
source§

fn get_aux_assertions<E: FieldElement<BaseField = Self::BaseField>>( &self, aux_rand_elements: &AuxTraceRandElements<E> ) -> Vec<Assertion<E>>

Returns a set of assertions placed against auxiliary trace segments. Read more
source§

fn evaluate_transition<E: FieldElement<BaseField = Felt>>( &self, frame: &EvaluationFrame<E>, periodic_values: &[E], result: &mut [E] )

Evaluates transition constraints over the specified evaluation frame. Read more
source§

fn evaluate_aux_transition<F, E>( &self, main_frame: &EvaluationFrame<F>, aux_frame: &EvaluationFrame<E>, _periodic_values: &[F], aux_rand_elements: &AuxTraceRandElements<E>, result: &mut [E] )
where F: FieldElement<BaseField = Felt>, E: FieldElement<BaseField = Felt> + ExtensionOf<F>,

Evaluates transition constraints over the specified evaluation frames for the main and auxiliary trace segments. Read more
source§

fn context(&self) -> &AirContext<Felt>

Returns context for this instance of the computation.
source§

fn get_periodic_column_polys(&self) -> Vec<Vec<Self::BaseField>>

Returns polynomial for all periodic columns. Read more
source§

fn get_transition_constraints<E>( &self, composition_coefficients: &[E] ) -> TransitionConstraints<E>
where E: FieldElement<BaseField = Self::BaseField>,

Groups transition constraints together by their degree. Read more
source§

fn get_boundary_constraints<E>( &self, aux_rand_elements: &AuxTraceRandElements<E>, composition_coefficients: &[E] ) -> BoundaryConstraints<E>
where E: FieldElement<BaseField = Self::BaseField>,

Convert assertions returned from get_assertions() and get_aux_assertions() methods into boundary constraints. Read more
source§

fn options(&self) -> &ProofOptions

Returns options which specify STARK protocol parameters for an instance of the computation described by this AIR.
source§

fn trace_info(&self) -> &TraceInfo

Returns info of the execution trace for an instance of the computation described by this AIR.
source§

fn trace_length(&self) -> usize

Returns length of the execution trace for an instance of the computation described by this AIR.
source§

fn trace_layout(&self) -> &TraceLayout

Returns a description of how execution trace columns are arranged into segments for an instance of a computation described by this AIR.
source§

fn trace_poly_degree(&self) -> usize

Returns degree of trace polynomials for an instance of the computation described by this AIR. Read more
source§

fn trace_domain_generator(&self) -> Self::BaseField

Returns the generator of the trace domain for an instance of the computation described by this AIR. Read more
source§

fn ce_blowup_factor(&self) -> usize

Returns constraint evaluation domain blowup factor for the computation described by this AIR. Read more
source§

fn ce_domain_size(&self) -> usize

Returns size of the constraint evaluation domain. Read more
source§

fn lde_blowup_factor(&self) -> usize

Returns low-degree extension domain blowup factor for the computation described by this AIR. This is guaranteed to be a power of two, and is always either equal to or greater than ce_blowup_factor.
source§

fn lde_domain_size(&self) -> usize

Returns the size of the low-degree extension domain. Read more
source§

fn lde_domain_generator(&self) -> Self::BaseField

Returns the generator of the low-degree extension domain for an instance of the computation described by this AIR. Read more
source§

fn domain_offset(&self) -> Self::BaseField

Returns the offset by which the domain for low-degree extension is shifted in relation to the execution trace domain.
source§

fn get_aux_trace_segment_random_elements<E, R>( &self, aux_segment_idx: usize, public_coin: &mut R ) -> Result<Vec<E>, RandomCoinError>
where E: FieldElement<BaseField = Self::BaseField>, R: RandomCoin<BaseField = Self::BaseField>,

Returns a vector of field elements required for construction of an auxiliary trace segment with the specified index. Read more
source§

fn get_constraint_composition_coefficients<E, R>( &self, public_coin: &mut R ) -> Result<ConstraintCompositionCoefficients<E>, RandomCoinError>
where E: FieldElement<BaseField = Self::BaseField>, R: RandomCoin<BaseField = Self::BaseField>,

Returns coefficients needed for random linear combination during construction of constraint composition polynomial.
source§

fn get_deep_composition_coefficients<E, R>( &self, public_coin: &mut R ) -> Result<DeepCompositionCoefficients<E>, RandomCoinError>
where E: FieldElement<BaseField = Self::BaseField>, R: RandomCoin<BaseField = Self::BaseField>,

Returns coefficients needed for random linear combinations during construction of DEEP composition polynomial.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> Same for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

source§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more