Skip to content

Commit

Permalink
Merge pull request #92 from stepanLav/fix/ring_index_param
Browse files Browse the repository at this point in the history
Fix ring params
  • Loading branch information
davxy authored Jul 24, 2024
2 parents 3ebdd26 + 3759581 commit 5821f59
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bandersnatch_vrfs/src/ring.rs
Original file line number Diff line number Diff line change
Expand Up @@ -129,11 +129,11 @@ impl KZG {
*/

pub fn prover_key(&self, pks: Vec<SWAffine>) -> ProverKey {
ring::index(self.pcs_params.clone(), &self.piop_params, pks).0
ring::index(&self.pcs_params, &self.piop_params, &pks).0
}

pub fn verifier_key(&self, pks: Vec<SWAffine>) -> VerifierKey {
ring::index(self.pcs_params.clone(), &self.piop_params, pks).1
ring::index(&self.pcs_params, &self.piop_params, &pks).1
}

/// `k` is the prover secret index in [0..keyset_size).
Expand Down

0 comments on commit 5821f59

Please sign in to comment.