Skip to content

Commit

Permalink
Fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
adria0 committed Jun 3, 2024
1 parent c6991f0 commit 24b5deb
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 14 deletions.
4 changes: 2 additions & 2 deletions halo2_backend/src/poly/domain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -478,8 +478,8 @@ pub struct PinnedEvaluationDomain<'a, F: Field> {
#[test]
fn test_rotate() {
use crate::arithmetic::eval_polynomial;
use halo2curves::pasta::pallas::Scalar;
use halo2_test_utils::test_rng;
use halo2curves::pasta::pallas::Scalar;

let domain = EvaluationDomain::<Scalar>::new(1, 3);
let rng = test_rng();
Expand Down Expand Up @@ -517,8 +517,8 @@ fn test_rotate() {

#[test]
fn test_l_i() {
use halo2_test_utils::test_rng;
use crate::arithmetic::{eval_polynomial, lagrange_interpolate};
use halo2_test_utils::test_rng;
use halo2curves::pasta::pallas::Scalar;
let domain = EvaluationDomain::<Scalar>::new(1, 3);

Expand Down
2 changes: 1 addition & 1 deletion halo2_backend/src/poly/ipa/msm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ mod tests {
pasta::{Ep, EpAffine, Fp, Fq},
CurveAffine,
};

#[test]
fn msm_arithmetic() {
let base: Ep = EpAffine::from_xy(-Fp::one(), Fp::from(2)).unwrap().into();
Expand Down
4 changes: 2 additions & 2 deletions halo2_proofs/src/plonk/prover.rs
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,8 @@ fn test_create_proof() {
transcript::{Blake2bWrite, Challenge255, TranscriptWriterBuffer},
};
use halo2_middleware::ff::Field;
use halo2curves::bn256::Bn256;
use halo2_test_utils::test_rng;
use halo2curves::bn256::Bn256;

#[derive(Clone, Copy)]
struct MyCircuit;
Expand Down Expand Up @@ -179,8 +179,8 @@ fn test_create_proof_custom() {
transcript::{Blake2bWrite, Challenge255, TranscriptWriterBuffer},
};
use halo2_middleware::ff::Field;
use halo2curves::bn256::Bn256;
use halo2_test_utils::test_rng;
use halo2curves::bn256::Bn256;

#[derive(Clone, Copy)]
struct MyCircuit;
Expand Down
20 changes: 12 additions & 8 deletions halo2_proofs/tests/frontend_backend_split.rs
Original file line number Diff line number Diff line change
Expand Up @@ -545,10 +545,12 @@ fn test_mycircuit_full_legacy() {
.expect("verify succeeds");
println!("Verify: {:?}", start.elapsed());

assert_eq!(
"c5c11281474b586795a5d97bdefeee80456d2921584b3a8b00523eebd49f2fac",
keccak_hex(proof)
);
if cfg!(feature = "thread-safe-region") {
assert_eq!(
"c5c11281474b586795a5d97bdefeee80456d2921584b3a8b00523eebd49f2fac",
keccak_hex(proof)
);
}
}

#[test]
Expand Down Expand Up @@ -630,8 +632,10 @@ fn test_mycircuit_full_split() {
.expect("verify succeeds");
println!("Verify: {:?}", start.elapsed());

assert_eq!(
"e612e9d5ebcdcff5ed9823c527218cdbaaf9fe76cc5e42d05a60f652dcc92660",
keccak_hex(proof)
);
if cfg!(feature = "thread-safe-region") {
assert_eq!(
"e612e9d5ebcdcff5ed9823c527218cdbaaf9fe76cc5e42d05a60f652dcc92660",
keccak_hex(proof)
);
}
}
2 changes: 1 addition & 1 deletion halo2_proofs/tests/plonk_api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ use halo2_proofs::transcript::{
Blake2bRead, Blake2bWrite, Challenge255, EncodedChallenge, TranscriptReadBuffer,
TranscriptWriterBuffer,
};
use halo2_test_utils::test_rng;
use halo2_test_utils::{keccak_hex, one_rng};
use rand_core::RngCore;
use std::marker::PhantomData;
use halo2_test_utils::test_rng;

#[test]
fn plonk_api() {
Expand Down

0 comments on commit 24b5deb

Please sign in to comment.