Skip to content

Commit

Permalink
use -3: batch_addition does not allow us to have duplicate points or …
Browse files Browse the repository at this point in the history
…points that are negations of each other
  • Loading branch information
kevaundray committed Sep 4, 2024
1 parent 6850fec commit 6cd81e2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cryptography/kzg_multi_open/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ pub(crate) fn create_insecure_commit_opening_keys(
let g1_gen = G1Projective::generator();

let mut g1_points = Vec::new();
let secret = -Scalar::from(1 as u64);
let secret = -Scalar::from(3 as u64);
let mut current_secret_pow = Scalar::ONE;
for _ in 0..num_coefficients_in_polynomial {
g1_points.push(g1_gen * current_secret_pow);
Expand All @@ -39,7 +39,7 @@ pub(crate) fn create_insecure_commit_opening_keys(
let ck = CommitKey::new(g1_points.clone());

let mut g2_points = Vec::new();
let secret = -Scalar::from(1 as u64);
let secret = -Scalar::from(3 as u64);
let mut current_secret_pow = Scalar::ONE;
let g2_gen = G2Projective::generator();
// The setup needs 65 g1 elements for the opening key, in order
Expand Down

0 comments on commit 6cd81e2

Please sign in to comment.