Skip to content

Commit

Permalink
fix: bls12_381 G1 should allow commitment computation of more than on…
Browse files Browse the repository at this point in the history
…e sequence ( PROOF-667 ) (#11)

fix: compute_bls12_381_g1_commitments_with_generators should allow more than one commitment ( PROOF-667 )
  • Loading branch information
jacobtrombetta authored Nov 3, 2023
1 parent d52f903 commit eca8fa6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/compute/commitments.rs
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ pub fn compute_commitments_with_generators(
#[doc = include_str!("../../examples/pass_generators_and_scalars_to_commitment.rs")]
///```
pub fn compute_bls12_381_g1_commitments_with_generators(
commitments: &mut [u8; 48],
commitments: &mut [[u8; 48]],
data: &[Sequence],
generators: &[G1Affine],
) {
Expand Down
2 changes: 1 addition & 1 deletion src/compute/commitments_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,7 @@ fn sending_generators_to_gpu_produces_correct_bls12_381_g1_commitment_results()

// compute commitment in Blitzar
compute_bls12_381_g1_commitments_with_generators(
&mut commitments[0],
&mut commitments,
&[(&data).into()],
&generator_points,
);
Expand Down

0 comments on commit eca8fa6

Please sign in to comment.