diff --git a/src/supernova/circuit.rs b/src/supernova/circuit.rs index 6716d19b..c9393688 100644 --- a/src/supernova/circuit.rs +++ b/src/supernova/circuit.rs @@ -237,6 +237,7 @@ impl<'a, G: Group, SC: EnforcingStepCircuit> SuperNovaAugmentedCircuit< .as_ref() .and_then(|inputs| inputs.T.map(|T| T.to_coordinates())), )?; + T.check_on_curve(cs.namespace(|| "check T on curve"))?; Ok(( params, diff --git a/src/supernova/test.rs b/src/supernova/test.rs index c0b3f46e..1f833029 100644 --- a/src/supernova/test.rs +++ b/src/supernova/test.rs @@ -655,7 +655,7 @@ fn test_recursive_circuit() { let ro_consts1: ROConstantsCircuit = PoseidonConstantsCircuit::default(); let ro_consts2: ROConstantsCircuit = PoseidonConstantsCircuit::default(); - test_recursive_circuit_with::(¶ms1, ¶ms2, ro_consts1, ro_consts2, 9840, 12031); + test_recursive_circuit_with::(¶ms1, ¶ms2, ro_consts1, ro_consts2, 9845, 12036); } fn test_pp_digest_with(non_uniform_circuit: &NC, expected: &str) @@ -701,7 +701,7 @@ fn test_supernova_pp_digest() { test_pp_digest_with::( &test_rom, - "a5ac4c8d3d54eff1cd95cac76919e6dedd3f3ca4bbdd939e463aee4d5c5fca03", + "1ea5f38a96bbad918d2132d15ac3f463ee97c532988bb4fc16a761bfe7847300", ); let rom = vec![ @@ -716,7 +716,7 @@ fn test_supernova_pp_digest() { test_pp_digest_with::( &test_rom_grumpkin, - "3475ab0139e6783fdddd94991a755869c9957a6731d55dc1c63860c276ba1203", + "09dc431db3be49a3e4f065a67c9d7260accdaed737fb0bc2abd70c1068b8df00", ); let rom = vec![ @@ -731,7 +731,7 @@ fn test_supernova_pp_digest() { test_pp_digest_with::( &test_rom_secp, - "d8305ae99b6735e2722ebdf315dd7d0a6df336c8f31eef2584ec50e79d821e00", + "c695e71fb75c3235471fb53d5b6b02610ac698af294877c20b9d855398679102", ); }