Skip to content

Commit 0ec9687

Browse files
committed
update testing
1 parent e89b5b9 commit 0ec9687

File tree

2 files changed

+11
-9
lines changed

2 files changed

+11
-9
lines changed

src/identity.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use crate::{
44
baby_jubjub::{BabyJubjubConfig, EdwardsAffine},
55
error::SemaphoreError,
66
};
7-
use ark_ec::{twisted_edwards::TECurveConfig, CurveConfig, CurveGroup};
7+
use ark_ec::{CurveConfig, CurveGroup, twisted_edwards::TECurveConfig};
88
use ark_ed_on_bn254::{Fq, Fr};
99
use ark_ff::{BigInteger, PrimeField};
1010
use blake::Blake;

src/proof.rs

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -434,19 +434,21 @@ mod tests {
434434
}
435435

436436
// TODO fix it and remove #[ignore]
437+
// https://github.com/zkmopro/mopro/issues/396
437438
// This test case is to test a semaphore-js proof can be verified by semaphore-rs verifier.
438439
#[test]
439440
#[ignore]
440441
fn test_semaphore_js_proof() {
441442
let points = [
442-
"295506195053657996543684079369282736491989370579592913124057536888855423796",
443-
"19815953998514576246488219178892684638226811708745908886782347604708935067095",
444-
"2328822589178611823527788148652183666924529164409257329409528192632149447408",
445-
"11539195047507357771307954059820020016014487935389334547419157174749447496942",
446-
"15003275093273171034895839912317447266095533353048813255314812547318796639767",
447-
"11081590418144905304290708191103158700191438642540253256124800534142848542048",
448-
"18156598254597299137691303527713519772389043452467253010766414291819443647431",
449-
"15733519144564958218973898608909712089708389642311757076012451880917955388102",
443+
// Proof generated from `Semaphore-js`
444+
"12803714274658725282520630356048215594611199462892068647123162130999777821470",
445+
"14790427909013880978103423555540996578520237818660256715698081866578524307407",
446+
"3103638479093034897036418556462341694689838452017242207620861422678426008987",
447+
"13727581952519649861097277152692845564872363841132502933894854130976607522628",
448+
"9411534790044921634269896122419705846815252106674427620586249081562203834159",
449+
"10009619289272081097084761045154085973406496068797344071367935854823051916935",
450+
"19672409605818107675150930119466509196235828486217699330399295338263828234556",
451+
"15472461797587690185190826432462453505284546376663377924961837387512711582919",
450452
]
451453
.iter()
452454
.map(|&p| BigUint::from_str(p).unwrap())

0 commit comments

Comments
 (0)