diff --git a/src/dense_mlpoly.rs b/src/dense_mlpoly.rs index 8bf3e015..214acd76 100644 --- a/src/dense_mlpoly.rs +++ b/src/dense_mlpoly.rs @@ -147,17 +147,17 @@ impl DensePolynomial { } #[cfg(feature = "multicore")] - fn commit_inner(&self, blinds: &[F], gens: &MultiCommitGens) -> PolyCommitment { + fn commit_inner>( + &self, + blinds: &[F], + gens: &MultiCommitGens, + ) -> PolyCommitment { let L_size = blinds.len(); let R_size = self.Z.len() / L_size; assert_eq!(L_size * R_size, self.Z.len()); let C = (0..L_size) .into_par_iter() - .map(|i| { - self.Z[R_size * i..R_size * (i + 1)] - .commit(&blinds[i], gens) - .compress() - }) + .map(|i| Commitments::batch_commit(&self.Z[R_size * i..R_size * (i + 1)], &blinds[i], gens)) .collect(); PolyCommitment { C } }