-
Notifications
You must be signed in to change notification settings - Fork 265
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(ci): Re-enable certain bb solidity ACIR tests (#5065)
It isn't clear after some of the recursion cleanup in #4221 why `double_verify_proof` is failing the solidity verifier. `double_verify_proof` was being used as a recursive proof itself to be verified inside of `double_verify_nested_proof`. I have renamed this test to `double_verify_proof_recursive` to note that its proof should be used as input to another circuit. I have also included a new test `double_verify_proof` where we accept two non-nested proofs and use the Keccak prover. This is what we were previously expecting for `double_verify_proof`. I also brought back `arretenberg-acir-tests-bb-sol` for a few tests. --------- Co-authored-by: Maddiaa <[email protected]>
- Loading branch information
Showing
8 changed files
with
72 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 0 additions & 1 deletion
1
noir/noir-repo/test_programs/execution_success/double_verify_proof/src/main.nr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
noir/noir-repo/test_programs/execution_success/double_verify_proof_recursive/Nargo.toml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
[package] | ||
name = "double_verify_proof_recursive" | ||
type = "bin" | ||
authors = [""] | ||
[dependencies] |
5 changes: 5 additions & 0 deletions
5
noir/noir-repo/test_programs/execution_success/double_verify_proof_recursive/Prover.toml
Large diffs are not rendered by default.
Oops, something went wrong.
29 changes: 29 additions & 0 deletions
29
noir/noir-repo/test_programs/execution_success/double_verify_proof_recursive/src/main.nr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
use dep::std; | ||
|
||
#[recursive] | ||
fn main( | ||
verification_key: [Field; 114], | ||
// This is the proof without public inputs attached. | ||
// | ||
// This means: the size of this does not change with the number of public inputs. | ||
proof: [Field; 93], | ||
public_inputs: pub [Field; 1], | ||
// This is currently not public. It is fine given that the vk is a part of the circuit definition. | ||
// I believe we want to eventually make it public too though. | ||
key_hash: Field, | ||
proof_b: [Field; 93] | ||
) { | ||
std::verify_proof( | ||
verification_key.as_slice(), | ||
proof.as_slice(), | ||
public_inputs.as_slice(), | ||
key_hash | ||
); | ||
|
||
std::verify_proof( | ||
verification_key.as_slice(), | ||
proof_b.as_slice(), | ||
public_inputs.as_slice(), | ||
key_hash | ||
); | ||
} |