Skip to content

Commit

Permalink
removing commented out code and print statements
Browse files Browse the repository at this point in the history
  • Loading branch information
benjaminsavage committed Mar 17, 2024
1 parent 92aaa8d commit 5765966
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 19 deletions.
19 changes: 1 addition & 18 deletions ipa-core/src/protocol/ipa_prf/malicious_security/lagrange.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<I, J>(&self, y_coordinates: I) -> GenericArray<F, M>
Expand All @@ -109,18 +103,7 @@ where
I::IntoIter: ExactSizeIterator,
J: Borrow<F>,
{
// 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::<GenericArray<F, _>>()
// })
// .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()
Expand Down
1 change: 0 additions & 1 deletion ipa-core/src/protocol/ipa_prf/malicious_security/prover.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ where

let denominator = CanonicalLagrangeDenominator::<F, λ>::new();
let lagrange_table_r = LagrangeTable::<F, λ, U1>::new(&denominator, &r);
lagrange_table_r.print();
let lagrange_table = LagrangeTable::<F, λ, <λ as Sub<U1>>::Output>::from(denominator);
let extrapolated_points = (0..s).map(|i| {
let start = i * λ::USIZE;
Expand Down

0 comments on commit 5765966

Please sign in to comment.