From 5765966649dda03ebc73c22856b05dd13bc12086 Mon Sep 17 00:00:00 2001 From: Ben Savage Date: Sun, 17 Mar 2024 13:50:42 +1000 Subject: [PATCH] removing commented out code and print statements --- .../ipa_prf/malicious_security/lagrange.rs | 19 +------------------ .../ipa_prf/malicious_security/prover.rs | 1 - 2 files changed, 1 insertion(+), 19 deletions(-) diff --git a/ipa-core/src/protocol/ipa_prf/malicious_security/lagrange.rs b/ipa-core/src/protocol/ipa_prf/malicious_security/lagrange.rs index b1a4396fe..353541a11 100644 --- a/ipa-core/src/protocol/ipa_prf/malicious_security/lagrange.rs +++ b/ipa-core/src/protocol/ipa_prf/malicious_security/lagrange.rs @@ -95,12 +95,6 @@ where N: ArrayLength, M: ArrayLength, { - pub fn print(&self) { - for table_row in &self.table { - println!("{:?}", table_row); - } - } - /// This function uses the `LagrangeTable` to evaluate `polynomial` on the specified output "x coordinates" /// outputs the "y coordinates" such that `(x,y)` lies on `polynomial` pub fn eval(&self, y_coordinates: I) -> GenericArray @@ -109,18 +103,7 @@ where I::IntoIter: ExactSizeIterator, J: Borrow, { - // let y_coordinates = y_coordinates.into_iter(); - // debug_assert_eq!(y_coordinates.len(), N::USIZE); - // y_coordinates - // .enumerate() - // .map(|(i, y_coord)| { - // self.table - // .iter() - // .map(|table_row| table_row[i] * (*y_coord.borrow())) - // .collect::>() - // }) - // .reduce(|vec_a, vec_b| zip(vec_a, vec_b).map(|(a, b)| a + b).collect()) - // .unwrap() + debug_assert_eq!(y_coordinates.into_iter().len(), N::USIZE); self.table .iter() diff --git a/ipa-core/src/protocol/ipa_prf/malicious_security/prover.rs b/ipa-core/src/protocol/ipa_prf/malicious_security/prover.rs index cef5665d6..cee049621 100644 --- a/ipa-core/src/protocol/ipa_prf/malicious_security/prover.rs +++ b/ipa-core/src/protocol/ipa_prf/malicious_security/prover.rs @@ -60,7 +60,6 @@ where let denominator = CanonicalLagrangeDenominator::::new(); let lagrange_table_r = LagrangeTable::::new(&denominator, &r); - lagrange_table_r.print(); let lagrange_table = LagrangeTable::>::Output>::from(denominator); let extrapolated_points = (0..s).map(|i| { let start = i * λ::USIZE;