Skip to content

Commit 7db8243

Browse files
Add stored circuit regression test for ECC chip with ZSA additions (#62)
Adds a regression test for the ECC chip with ZSA additions enabled, verifying the proof and verification key against a stored reference.
1 parent 7bfd002 commit 7db8243

3 files changed

Lines changed: 9921 additions & 0 deletions

File tree

halo2_gadgets/src/ecc.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1051,6 +1051,12 @@ pub(crate) mod tests {
10511051
assert_eq!(prover.verify(), Ok(()))
10521052
}
10531053

1054+
#[test]
1055+
fn test_ecc_chip_with_zsa_additions_against_stored_circuit() {
1056+
let circuit = MyEccCircuit::<PallasLookupRangeCheckConfig>::new(false, true);
1057+
test_against_stored_circuit(circuit, "ecc_chip_with_zsa_additions", 3872);
1058+
}
1059+
10541060
#[cfg(feature = "test-dev-graph")]
10551061
#[test]
10561062
fn print_ecc_chip() {
Binary file not shown.

0 commit comments

Comments
 (0)