Skip to content

Commit

Permalink
fix: compute quotient commitments in parallel
Browse files Browse the repository at this point in the history
  • Loading branch information
huitseeker committed Dec 4, 2023
1 parent 5ad0742 commit 340fca4
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/provider/non_hiding_zeromorph.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,11 @@ use abomonation_derive::Abomonation;
use ff::{BatchInvert, Field, PrimeField, PrimeFieldBits};
use group::{Curve, Group as _};
use pairing::{Engine, MillerLoopResult, MultiMillerLoop};
use rayon::prelude::{
IndexedParallelIterator, IntoParallelIterator, IntoParallelRefMutIterator, ParallelIterator,
use rayon::{
iter::IntoParallelRefIterator,
prelude::{
IndexedParallelIterator, IntoParallelIterator, IntoParallelRefMutIterator, ParallelIterator,
},
};
use ref_cast::RefCast;
use serde::{de::DeserializeOwned, Deserialize, Serialize};
Expand Down Expand Up @@ -210,7 +213,7 @@ where

// Compute and absorb commitments C_{q_k} = [q_k], k = 0,...,d-1
let q_comms = quotients_polys
.iter()
.par_iter()
.map(|q| UVKZGPCS::commit(&pp.commit_pp, q))
.collect::<Result<Vec<_>, _>>()?;
q_comms.iter().for_each(|c| transcript.absorb(b"quo", c));
Expand Down

0 comments on commit 340fca4

Please sign in to comment.