From de223b0f5a6d9a8c1a653e9a3f31d180c4595422 Mon Sep 17 00:00:00 2001 From: Gali Michlevich Date: Mon, 9 Dec 2024 17:54:42 +0200 Subject: [PATCH] Delete shifted_secure_combination Function --- crates/prover/src/core/utils.rs | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/crates/prover/src/core/utils.rs b/crates/prover/src/core/utils.rs index 330e49ed2..4561d54ff 100644 --- a/crates/prover/src/core/utils.rs +++ b/crates/prover/src/core/utils.rs @@ -1,7 +1,6 @@ use std::iter::Peekable; -use std::ops::{Add, Mul, Sub}; -use num_traits::{One, Zero}; +use num_traits::One; use super::fields::m31::BaseField; use super::fields::qm31::SecureField; @@ -175,18 +174,6 @@ pub fn generate_secure_powers(felt: SecureField, n_powers: usize) -> Vec(values: &[F], alpha: EF, z: EF) -> EF -where - EF: Copy + Zero + Mul + Add + Sub, -{ - let res = values - .iter() - .fold(EF::zero(), |acc, &value| acc * alpha + value); - res - z -} - #[cfg(test)] mod tests { use itertools::Itertools;