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 1194734 commit 747fc7d
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 @@ -23,8 +23,11 @@ use ff::{BatchInvert, Field, PrimeField, PrimeFieldBits};
use group::{Curve, Group as _};
use itertools::Itertools 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 @@ -211,7 +214,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 747fc7d

Please sign in to comment.