Skip to content

Commit

Permalink
fixing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
laudiacay committed Oct 11, 2023
1 parent fd3d31f commit d04485b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 9 deletions.
3 changes: 1 addition & 2 deletions barustenberg/src/ecc/curves/bn254_scalar_multiplication.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ use ark_bn254::Fr;

use ark_bn254::{G1Affine, G1Projective};
use ark_ec::short_weierstrass::{Affine, SWCurveConfig};
use ark_ec::AffineRepr;
use ark_ff::{Field, Zero};
use ark_ff::Zero;

use crate::srs::io::read_transcript_g1;

Expand Down
1 change: 0 additions & 1 deletion barustenberg/src/plonk/proof_system/proving_key.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
use ark_bn254::G1Affine;
use ark_ff::{FftField, Field};
use serde::{Deserialize, Deserializer, Serialize, Serializer};
use std::io::Read;
Expand Down
10 changes: 4 additions & 6 deletions barustenberg/src/srs/tests.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
use ark_bn254::{Bn254, Fq12, G1Affine, G2Affine};
use ark_ec::pairing::Pairing;
use ark_ec::AffineRepr;
use ark_ff::Field;
use ark_ff::One;
use ark_ec::{AffineRepr, pairing::Pairing};
use ark_ff::{AdditiveGroup, One};

use super::io;

Expand All @@ -24,7 +22,7 @@ fn read_transcript_loads_well_formed_srs() {

assert_eq!(res, Fq12::one());

for i in 0..degree {
assert!(monomials[i].is_on_curve());
for mon in monomials.iter().take(degree) {
assert!(mon.is_on_curve());
}
}

0 comments on commit d04485b

Please sign in to comment.