Skip to content

Commit

Permalink
Merge pull request #19 from zkcrypto/cathieyun/cleanup
Browse files Browse the repository at this point in the history
Cargo fmt to fix check-stable tests
  • Loading branch information
cathieyun authored Feb 7, 2024
2 parents fdb3537 + c5f7a10 commit 86eadbe
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
6 changes: 2 additions & 4 deletions src/linear_proof.rs
Original file line number Diff line number Diff line change
Expand Up @@ -132,10 +132,8 @@ impl LinearProof {
// b_L = b_L + x_j * b_R
b_L[i] = b_L[i] + x_j * b_R[i];
// G_L = G_L + x_j * G_R
G_L[i] = RistrettoPoint::vartime_multiscalar_mul(
&[Scalar::ONE, x_j],
&[G_L[i], G_R[i]],
);
G_L[i] =
RistrettoPoint::vartime_multiscalar_mul(&[Scalar::ONE, x_j], &[G_L[i], G_R[i]]);
}
a = a_L;
b = b_L;
Expand Down
5 changes: 4 additions & 1 deletion tests/range_proof.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,10 @@ fn deserialize_and_verify() {
&hex::decode("30beef3b58fd2c18dde771d5c77e32f8dc01361e284aef517bce54a5c74c4665")
.unwrap(),
),
]).iter().map(|res| res.unwrap()).collect();
])
.iter()
.map(|res| res.unwrap())
.collect();

let pc_gens = PedersenGens::default();
let bp_gens = BulletproofGens::new(64, 8);
Expand Down

0 comments on commit 86eadbe

Please sign in to comment.