Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
davxy committed Jul 10, 2024
1 parent cf8d875 commit e868d12
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ring.rs
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ where
let pks: Vec<_> = pks.par_iter().map(|p| p.into_sw()).collect();
#[cfg(not(feature = "parallel"))]
let pks: Vec<_> = pks.iter().map(|p| p.into_sw()).collect();
ring_proof::index(&self.pcs_params, &self.piop_params, &pks).0
ring_proof::index(self.pcs_params.clone(), &self.piop_params, pks).0
}

/// Construct a `VerifierKey` instance for the given ring.
Expand All @@ -230,7 +230,7 @@ where
let pks: Vec<_> = pks.par_iter().map(|p| p.into_sw()).collect();
#[cfg(not(feature = "parallel"))]
let pks: Vec<_> = pks.iter().map(|p| p.into_sw()).collect();
ring_proof::index(&self.pcs_params, &self.piop_params, &pks).1
ring_proof::index(self.pcs_params.clone(), &self.piop_params, pks).1
}

pub fn prover(&self, prover_key: ProverKey<S>, key_index: usize) -> RingProver<S> {
Expand Down

0 comments on commit e868d12

Please sign in to comment.