Skip to content

Commit

Permalink
Unite impls of DomainEvaluationAccumulator
Browse files Browse the repository at this point in the history
  • Loading branch information
Gali-StarkWare committed Dec 17, 2024
1 parent 3bfc747 commit 5df95d0
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions crates/prover/src/core/air/accumulation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,13 @@ impl<B: Backend> DomainEvaluationAccumulator<B> {
}
}

pub trait AccumulationOps: FieldOps<BaseField> + Sized {
/// Accumulates other into column:
/// column = column + other.
fn accumulate(column: &mut SecureColumnByCoords<Self>, other: &SecureColumnByCoords<Self>);
fn generate_secure_powers(felt: SecureField, n_powers: usize) -> Vec<SecureField>;
}

/// A domain accumulator for polynomials of a single size.
pub struct ColumnAccumulator<'a, B: Backend> {
pub random_coeff_powers: Vec<SecureField>,
Expand Down

0 comments on commit 5df95d0

Please sign in to comment.