Skip to content

Commit

Permalink
simplify new_evaluator arg
Browse files Browse the repository at this point in the history
  • Loading branch information
plafer committed May 2, 2024
1 parent 3d525c5 commit 4a37c5e
Show file tree
Hide file tree
Showing 11 changed files with 22 additions and 31 deletions.
5 changes: 2 additions & 3 deletions examples/src/fibonacci/fib2/prover.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ use super::{
};
use winterfell::{
matrix::ColMatrix, ConstraintCompositionCoefficients, DefaultConstraintEvaluator,
DefaultTraceLde, ProverAuxRandElements, StarkDomain, Trace, TraceInfo, TracePolyTable,
TraceTable,
DefaultTraceLde, StarkDomain, Trace, TraceInfo, TracePolyTable, TraceTable,
};

// FIBONACCI PROVER
Expand Down Expand Up @@ -84,7 +83,7 @@ where
fn new_evaluator<'a, E: FieldElement<BaseField = Self::BaseField>>(
&self,
air: &'a Self::Air,
aux_rand_elements: Option<ProverAuxRandElements<Self, E>>,
aux_rand_elements: Option<()>,
composition_coefficients: ConstraintCompositionCoefficients<E>,
) -> Self::ConstraintEvaluator<'a, E> {
DefaultConstraintEvaluator::new(air, aux_rand_elements, composition_coefficients)
Expand Down
5 changes: 2 additions & 3 deletions examples/src/fibonacci/fib8/prover.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ use super::{
};
use winterfell::{
matrix::ColMatrix, ConstraintCompositionCoefficients, DefaultConstraintEvaluator,
DefaultTraceLde, ProverAuxRandElements, StarkDomain, Trace, TraceInfo, TracePolyTable,
TraceTable,
DefaultTraceLde, StarkDomain, Trace, TraceInfo, TracePolyTable, TraceTable,
};

// FIBONACCI PROVER
Expand Down Expand Up @@ -99,7 +98,7 @@ where
fn new_evaluator<'a, E: FieldElement<BaseField = Self::BaseField>>(
&self,
air: &'a Self::Air,
aux_rand_elements: Option<ProverAuxRandElements<Self, E>>,
aux_rand_elements: Option<()>,
composition_coefficients: ConstraintCompositionCoefficients<E>,
) -> Self::ConstraintEvaluator<'a, E> {
DefaultConstraintEvaluator::new(air, aux_rand_elements, composition_coefficients)
Expand Down
5 changes: 2 additions & 3 deletions examples/src/fibonacci/fib_small/prover.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ use super::{
};
use winterfell::{
matrix::ColMatrix, ConstraintCompositionCoefficients, DefaultConstraintEvaluator,
DefaultTraceLde, ProverAuxRandElements, StarkDomain, Trace, TraceInfo, TracePolyTable,
TraceTable,
DefaultTraceLde, StarkDomain, Trace, TraceInfo, TracePolyTable, TraceTable,
};

// FIBONACCI PROVER
Expand Down Expand Up @@ -83,7 +82,7 @@ where
fn new_evaluator<'a, E: FieldElement<BaseField = Self::BaseField>>(
&self,
air: &'a Self::Air,
aux_rand_elements: Option<ProverAuxRandElements<Self, E>>,
aux_rand_elements: Option<()>,
composition_coefficients: ConstraintCompositionCoefficients<E>,
) -> Self::ConstraintEvaluator<'a, E> {
DefaultConstraintEvaluator::new(air, aux_rand_elements, composition_coefficients)
Expand Down
5 changes: 2 additions & 3 deletions examples/src/fibonacci/mulfib2/prover.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ use super::{
};
use winterfell::{
matrix::ColMatrix, ConstraintCompositionCoefficients, DefaultConstraintEvaluator,
DefaultTraceLde, ProverAuxRandElements, StarkDomain, Trace, TraceInfo, TracePolyTable,
TraceTable,
DefaultTraceLde, StarkDomain, Trace, TraceInfo, TracePolyTable, TraceTable,
};

// FIBONACCI PROVER
Expand Down Expand Up @@ -80,7 +79,7 @@ where
fn new_evaluator<'a, E: FieldElement<BaseField = Self::BaseField>>(
&self,
air: &'a Self::Air,
aux_rand_elements: Option<ProverAuxRandElements<Self, E>>,
aux_rand_elements: Option<()>,
composition_coefficients: ConstraintCompositionCoefficients<E>,
) -> Self::ConstraintEvaluator<'a, E> {
DefaultConstraintEvaluator::new(air, aux_rand_elements, composition_coefficients)
Expand Down
5 changes: 2 additions & 3 deletions examples/src/fibonacci/mulfib8/prover.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ use super::{
};
use winterfell::{
matrix::ColMatrix, ConstraintCompositionCoefficients, DefaultConstraintEvaluator,
DefaultTraceLde, ProverAuxRandElements, StarkDomain, Trace, TraceInfo, TracePolyTable,
TraceTable,
DefaultTraceLde, StarkDomain, Trace, TraceInfo, TracePolyTable, TraceTable,
};

// FIBONACCI PROVER
Expand Down Expand Up @@ -92,7 +91,7 @@ where
fn new_evaluator<'a, E: FieldElement<BaseField = Self::BaseField>>(
&self,
air: &'a Self::Air,
aux_rand_elements: Option<ProverAuxRandElements<Self, E>>,
aux_rand_elements: Option<()>,
composition_coefficients: ConstraintCompositionCoefficients<E>,
) -> Self::ConstraintEvaluator<'a, E> {
DefaultConstraintEvaluator::new(air, aux_rand_elements, composition_coefficients)
Expand Down
4 changes: 2 additions & 2 deletions examples/src/lamport/aggregate/prover.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ use super::{
};
use winterfell::{
matrix::ColMatrix, ConstraintCompositionCoefficients, DefaultConstraintEvaluator,
DefaultTraceLde, ProverAuxRandElements, StarkDomain, TraceInfo, TracePolyTable, TraceTable,
DefaultTraceLde, StarkDomain, TraceInfo, TracePolyTable, TraceTable,
};

#[cfg(feature = "concurrent")]
Expand Down Expand Up @@ -125,7 +125,7 @@ where
fn new_evaluator<'a, E: FieldElement<BaseField = Self::BaseField>>(
&self,
air: &'a Self::Air,
aux_rand_elements: Option<ProverAuxRandElements<Self, E>>,
aux_rand_elements: Option<()>,
composition_coefficients: ConstraintCompositionCoefficients<E>,
) -> Self::ConstraintEvaluator<'a, E> {
DefaultConstraintEvaluator::new(air, aux_rand_elements, composition_coefficients)
Expand Down
4 changes: 2 additions & 2 deletions examples/src/lamport/threshold/prover.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ use super::{
use std::collections::HashMap;
use winterfell::{
matrix::ColMatrix, ConstraintCompositionCoefficients, DefaultConstraintEvaluator,
DefaultTraceLde, ProverAuxRandElements, StarkDomain, TraceInfo, TracePolyTable, TraceTable,
DefaultTraceLde, StarkDomain, TraceInfo, TracePolyTable, TraceTable,
};

#[cfg(feature = "concurrent")]
Expand Down Expand Up @@ -166,7 +166,7 @@ where
fn new_evaluator<'a, E: FieldElement<BaseField = Self::BaseField>>(
&self,
air: &'a Self::Air,
aux_rand_elements: Option<ProverAuxRandElements<Self, E>>,
aux_rand_elements: Option<()>,
composition_coefficients: ConstraintCompositionCoefficients<E>,
) -> Self::ConstraintEvaluator<'a, E> {
DefaultConstraintEvaluator::new(air, aux_rand_elements, composition_coefficients)
Expand Down
5 changes: 2 additions & 3 deletions examples/src/merkle/prover.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ use super::{
};
use winterfell::{
matrix::ColMatrix, ConstraintCompositionCoefficients, DefaultConstraintEvaluator,
DefaultTraceLde, ProverAuxRandElements, StarkDomain, Trace, TraceInfo, TracePolyTable,
TraceTable,
DefaultTraceLde, StarkDomain, Trace, TraceInfo, TracePolyTable, TraceTable,
};

// MERKLE PROVER
Expand Down Expand Up @@ -135,7 +134,7 @@ where
fn new_evaluator<'a, E: FieldElement<BaseField = Self::BaseField>>(
&self,
air: &'a Self::Air,
aux_rand_elements: Option<ProverAuxRandElements<Self, E>>,
aux_rand_elements: Option<()>,
composition_coefficients: ConstraintCompositionCoefficients<E>,
) -> Self::ConstraintEvaluator<'a, E> {
DefaultConstraintEvaluator::new(air, aux_rand_elements, composition_coefficients)
Expand Down
5 changes: 2 additions & 3 deletions examples/src/rescue/prover.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ use super::{
};
use winterfell::{
matrix::ColMatrix, ConstraintCompositionCoefficients, DefaultConstraintEvaluator,
DefaultTraceLde, ProverAuxRandElements, StarkDomain, Trace, TraceInfo, TracePolyTable,
TraceTable,
DefaultTraceLde, StarkDomain, Trace, TraceInfo, TracePolyTable, TraceTable,
};

// RESCUE PROVER
Expand Down Expand Up @@ -102,7 +101,7 @@ where
fn new_evaluator<'a, E: FieldElement<BaseField = Self::BaseField>>(
&self,
air: &'a Self::Air,
aux_rand_elements: Option<ProverAuxRandElements<Self, E>>,
aux_rand_elements: Option<()>,
composition_coefficients: ConstraintCompositionCoefficients<E>,
) -> Self::ConstraintEvaluator<'a, E> {
DefaultConstraintEvaluator::new(air, aux_rand_elements, composition_coefficients)
Expand Down
5 changes: 2 additions & 3 deletions examples/src/vdf/exempt/prover.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ use super::{
};
use winterfell::{
matrix::ColMatrix, ConstraintCompositionCoefficients, DefaultConstraintEvaluator,
DefaultTraceLde, ProverAuxRandElements, StarkDomain, Trace, TraceInfo, TracePolyTable,
TraceTable,
DefaultTraceLde, StarkDomain, Trace, TraceInfo, TracePolyTable, TraceTable,
};

// VDF PROVER
Expand Down Expand Up @@ -85,7 +84,7 @@ where
fn new_evaluator<'a, E: FieldElement<BaseField = Self::BaseField>>(
&self,
air: &'a Self::Air,
aux_rand_elements: Option<ProverAuxRandElements<Self, E>>,
aux_rand_elements: Option<()>,
composition_coefficients: ConstraintCompositionCoefficients<E>,
) -> Self::ConstraintEvaluator<'a, E> {
DefaultConstraintEvaluator::new(air, aux_rand_elements, composition_coefficients)
Expand Down
5 changes: 2 additions & 3 deletions examples/src/vdf/regular/prover.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ use super::{
};
use winterfell::{
matrix::ColMatrix, ConstraintCompositionCoefficients, DefaultConstraintEvaluator,
DefaultTraceLde, ProverAuxRandElements, StarkDomain, Trace, TraceInfo, TracePolyTable,
TraceTable,
DefaultTraceLde, StarkDomain, Trace, TraceInfo, TracePolyTable, TraceTable,
};

// VDF PROVER
Expand Down Expand Up @@ -80,7 +79,7 @@ where
fn new_evaluator<'a, E: FieldElement<BaseField = Self::BaseField>>(
&self,
air: &'a Self::Air,
aux_rand_elements: Option<ProverAuxRandElements<Self, E>>,
aux_rand_elements: Option<()>,
composition_coefficients: ConstraintCompositionCoefficients<E>,
) -> Self::ConstraintEvaluator<'a, E> {
DefaultConstraintEvaluator::new(air, aux_rand_elements, composition_coefficients)
Expand Down

0 comments on commit 4a37c5e

Please sign in to comment.