Skip to content

Commit 16c1ce4

Browse files
committed
test: update RustWitness function and add new WASM test vector for BLS12-381
1 parent 53d6c13 commit 16c1ce4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

circom-prover/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,15 +75,15 @@ mod tests {
7575
#[cfg(all(feature = "rustwitness", feature = "arkworks"))]
7676
#[test]
7777
fn test_rustwitness_arkworks_bls12_381_prove_and_verify() {
78-
rust_witness::witness!(multiplier2);
78+
rust_witness::witness!(multiplier2bls);
7979
let inputs = HashMap::from([
8080
("a".to_string(), vec!["1".to_string()]),
8181
("b".to_string(), vec!["2".to_string()]),
8282
]);
8383
let zkey_path = "./test-vectors/multiplier2_bls.zkey";
8484
let input_str = serde_json::to_string(&inputs).unwrap();
8585
let proof_lib = ProofLib::Arkworks;
86-
let witness_fn = WitnessFn::RustWitness(multiplier2_witness);
86+
let witness_fn = WitnessFn::RustWitness(multiplier2bls_witness);
8787
let proof =
8888
CircomProver::prove(proof_lib, witness_fn, input_str, zkey_path.to_string()).unwrap();
8989
let valid = CircomProver::verify(proof_lib, proof, zkey_path.to_string()).unwrap();
33.5 KB
Binary file not shown.

0 commit comments

Comments
 (0)