Skip to content

Commit

Permalink
feat: add bn254 prove_and_verify test (#57)
Browse files Browse the repository at this point in the history
* feat: add bn254 prove_and_verify test

* Update src/test.rs

triggers CI

* patch Cargo.toml with ark-std

---------

Co-authored-by: Marti <[email protected]>
  • Loading branch information
peinlcy and mmagician authored Jul 14, 2024
1 parent 8e5c347 commit 202feaa
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ rayon = { version = "1", optional = true }
csv = { version = "1" }
ark-bls12-381 = { version = "0.4.0", default-features = false, features = ["curve"] }
ark-bls12-377 = { version = "0.4.0", default-features = false, features = ["curve"] }
ark-bn254 = { version = "0.4.0", default-features = false, features = ["curve"] }
ark-bw6-761 = { version = "0.4.0", default-features = false }
ark-mnt4-298 = { version = "0.4.0", default-features = false, features = ["r1cs", "curve"] }
ark-mnt6-298 = { version = "0.4.0", default-features = false, features = ["r1cs"] }
Expand Down Expand Up @@ -91,6 +92,8 @@ ark-mnt4-753 = { git = "https://github.com/arkworks-rs/algebra/" }
ark-mnt6-753 = { git = "https://github.com/arkworks-rs/algebra/" }
ark-bls12-377 = { git = "https://github.com/arkworks-rs/algebra/" }
ark-bw6-761 = { git = "https://github.com/arkworks-rs/algebra/" }
ark-bn254 = { git = "https://github.com/arkworks-rs/algebra/" }
ark-std = { git = "https://github.com/arkworks-rs/std/" }

ark-r1cs-std = { git = "https://github.com/arkworks-rs/r1cs-std/" }
ark-crypto-primitives = { git = "https://github.com/arkworks-rs/crypto-primitives/" }
Expand Down
10 changes: 10 additions & 0 deletions src/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -147,3 +147,13 @@ mod bw6_761 {
test_rerandomize::<BW6_761>();
}
}

mod bn_254 {
use super::test_prove_and_verify;
use ark_bn254::Bn254;

#[test]
fn prove_and_verify() {
test_prove_and_verify::<Bn254>(100);
}
}

0 comments on commit 202feaa

Please sign in to comment.