-
Notifications
You must be signed in to change notification settings - Fork 301
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: prove_then_verify_ultra_honk on all existing acir tests #9042
Merged
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
76cee35
Enable all tests that can be ran with prove_then_verify_ultra_honk
maramihali 40d09a9
cleanup
maramihali 6d50b2d
undo unrelated changes
maramihali ebb8f62
add double_verify_honk Noir programs
maramihali d59f3cf
fix typos
maramihali eebbcfe
re-disable acir_integration tests
maramihali a61e935
undo change
maramihali File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -232,12 +232,10 @@ INSTANTIATE_TEST_SUITE_P(AcirTests, | |
"brillig_pedersen", | ||
"brillig_recursion", | ||
"brillig_references", | ||
// "brillig_scalar_mul", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. all of these tests are not part of execution_success so not relevant for proving/verifying |
||
"brillig_schnorr", | ||
"brillig_sha256", | ||
"brillig_signed_cmp", | ||
"brillig_signed_div", | ||
// "brillig_slice_input", | ||
"brillig_slices", | ||
"brillig_to_be_bytes", | ||
"brillig_to_bits", | ||
|
@@ -259,7 +257,6 @@ INSTANTIATE_TEST_SUITE_P(AcirTests, | |
"databus", | ||
"debug_logs", | ||
"diamond_deps_0", | ||
// "distinct_keyword", | ||
"double_verify_nested_proof", | ||
"double_verify_proof", | ||
"double_verify_proof_recursive", | ||
|
@@ -311,16 +308,13 @@ INSTANTIATE_TEST_SUITE_P(AcirTests, | |
"regression_4088", | ||
"regression_4124", | ||
"regression_4202", | ||
// "regression_4383", | ||
// "regression_4436", | ||
"regression_4449", | ||
"regression_4709", | ||
//"regression_5045", | ||
"regression_capacity_tracker", | ||
"regression_mem_op_predicate", | ||
"regression_method_cannot_be_found", | ||
// "regression_sha256_slice", | ||
"regression_struct_array_conditional", | ||
// "scalar_mul", | ||
"schnorr", | ||
"sha256", | ||
"sha2_byte", | ||
|
@@ -342,7 +336,6 @@ INSTANTIATE_TEST_SUITE_P(AcirTests, | |
"simple_shift_left_right", | ||
"slice_coercion", | ||
"slice_dynamic_index", | ||
// "slice_init_with_complex_type", | ||
"slice_loop", | ||
"slices", | ||
"strings", | ||
|
@@ -368,6 +361,8 @@ INSTANTIATE_TEST_SUITE_P(AcirTests, | |
"unit_value", | ||
"unsafe_range_constraint", | ||
"witness_compression", | ||
// "workspace", | ||
// "workspace_default_member", | ||
"xor")); | ||
|
||
TEST_P(AcirIntegrationFoldingTest, DISABLED_ProveAndVerifyProgramStack) | ||
|
@@ -556,6 +551,8 @@ TEST_F(AcirIntegrationTest, DISABLED_HonkRecursion) | |
std::string test_name = "verify_honk_proof"; // arbitrary program with RAM gates | ||
// Note: honk_recursion set to false here because the selection of the honk recursive verifier is indicated by the | ||
// proof_type field of the constraint generated from noir. | ||
// The honk_recursion flag determines whether a noir program will be recursively verified via Honk in a Noir | ||
// program. | ||
auto acir_program = get_program_data_from_test_file(test_name, | ||
/*honk_recursion=*/false); | ||
|
||
|
6 changes: 6 additions & 0 deletions
6
noir/noir-repo/test_programs/execution_success/double_verify_honk_proof/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,6 @@ | ||
[package] | ||
name = "double_verify_honk_proof" | ||
type = "bin" | ||
authors = [""] | ||
|
||
[dependencies] |
5 changes: 5 additions & 0 deletions
5
noir/noir-repo/test_programs/execution_success/double_verify_honk_proof/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_honk_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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
|
||
// This circuit aggregates two Honk proof from `assert_statement_recursive`. | ||
global SIZE_OF_PROOF_IF_LOGN_IS_28 : u32 = 463; | ||
global HONK_IDENTIFIER : u32 = 1; | ||
fn main( | ||
verification_key: [Field; 128], | ||
// 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; SIZE_OF_PROOF_IF_LOGN_IS_28], | ||
public_inputs: pub [Field; 1], | ||
key_hash: Field, | ||
// The second proof, currently set to be identical | ||
proof_b: [Field; SIZE_OF_PROOF_IF_LOGN_IS_28] | ||
) { | ||
std::verify_proof_with_type( | ||
verification_key, | ||
proof, | ||
public_inputs, | ||
key_hash, | ||
HONK_IDENTIFIER | ||
); | ||
std::verify_proof_with_type( | ||
verification_key, | ||
proof_b, | ||
public_inputs, | ||
key_hash, | ||
HONK_IDENTIFIER | ||
); | ||
} |
6 changes: 6 additions & 0 deletions
6
noir/noir-repo/test_programs/execution_success/double_verify_honk_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,6 @@ | ||
[package] | ||
name = "double_verify_honk_proof_recursive" | ||
type = "bin" | ||
authors = [""] | ||
|
||
[dependencies] |
5 changes: 5 additions & 0 deletions
5
.../noir-repo/test_programs/execution_success/double_verify_honk_proof_recursive/Prover.toml
Large diffs are not rendered by default.
Oops, something went wrong.
30 changes: 30 additions & 0 deletions
30
.../noir-repo/test_programs/execution_success/double_verify_honk_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,30 @@ | ||
|
||
// This circuit aggregates two Honk proofs from `assert_statement_recursive`. | ||
global SIZE_OF_PROOF_IF_LOGN_IS_28 : u32 = 463; | ||
global HONK_IDENTIFIER : u32 = 1; | ||
#[recursive] | ||
fn main( | ||
verification_key: [Field; 128], | ||
// 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; SIZE_OF_PROOF_IF_LOGN_IS_28], | ||
public_inputs: pub [Field; 1], | ||
key_hash: Field, | ||
// The second proof, currently set to be identical to the first proof | ||
proof_b: [Field; SIZE_OF_PROOF_IF_LOGN_IS_28] | ||
) { | ||
std::verify_proof_with_type( | ||
verification_key, | ||
proof, | ||
public_inputs, | ||
key_hash, | ||
HONK_IDENTIFIER | ||
); | ||
std::verify_proof_with_type( | ||
verification_key, | ||
proof_b, | ||
public_inputs, | ||
key_hash, | ||
HONK_IDENTIFIER | ||
); | ||
} |
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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't this also include the ensure_nonzero gates as well?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
that happens in finalisation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also, does this fix the regression acir test?