-
Notifications
You must be signed in to change notification settings - Fork 615
feat: Zw/goblin avm tests #12904
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
Merged
Merged
feat: Zw/goblin avm tests #12904
Changes from 50 commits
Commits
Show all changes
54 commits
Select commit
Hold shift + click to select a range
35475e2
wip
zac-williamson 8cb78b5
cycle_group::batch_mul batches modular inversions during witness gene…
zac-williamson 7b80a03
removed x_coordinate_check from straus_lookup_table
zac-williamson 850db1b
removed debug code
zac-williamson ca6da54
minor optimization to remove 12 gates per mul in `batch_mul` when the…
zac-williamson a6f4335
wip
zac-williamson 78c9b26
Merge branch 'master' into zw/cycle-group-witgen
zac-williamson 1e1668f
minor efficiency improvements for straus_lookup_table constructor
zac-williamson 96cedff
disabled join split circuit change test
zac-williamson 2dcde30
compiler fix
zac-williamson 6be66d3
Merge branch 'master' into zw/cycle-group-witgen
zac-williamson 0a5ee12
Merge branch 'master' into zw/cycle-group-witgen
zac-williamson f841ba0
fixed wasm compiler error
zac-williamson 45c060f
Merge branch 'master' into zw/cycle-group-witgen
zac-williamson 4959284
Merge branch 'master' into zw/cycle-group-witgen
zac-williamson 267d8ad
added comments and added back in join_split_test
zac-williamson a9f0629
added missing hint description
zac-williamson 197cf5d
grammar
zac-williamson 6365a91
Merge branch 'master' into zw/cycle-group-witgen
zac-williamson 4379bfb
PR comments
zac-williamson 95d3816
Merge branch 'master' into zw/cycle-group-witgen
zac-williamson 3d7bc01
wip
zac-williamson 555c705
working complete (I think) circuit that takes in AVM proof and spits …
zac-williamson dc50c48
moved recursive verifier into separate file
zac-williamson dd65108
working tests + new dsl method for avm recursion constraint
zac-williamson 3951df8
formatting
zac-williamson eecc633
separate out PG opt to unique PR
ledwards2225 cc675dd
Merge branch 'master' into zw/goblin-avm-tests
ledwards2225 928c8bc
reinstate original avm recursion test
ledwards2225 d4386eb
touch of cleanup in avm rec constraint
ledwards2225 3d0f504
cmake cleanup
ledwards2225 ccb5630
update gen file and remove tmeplate on aggregate method
ledwards2225 cbee911
cleanup via lambda
ledwards2225 8b82854
use new avm rec constraint method in test
ledwards2225 bb07083
Merge branch 'master' into zw/goblin-avm-tests
ledwards2225 af268a0
remove concept
ledwards2225 5eaabf0
explicit buildr naming
ledwards2225 9492122
Merge branch 'master' into zw/goblin-avm-tests
ledwards2225 2447934
undo agg method template change for testing
ledwards2225 0f66a40
comment cleanup
ledwards2225 dd40b1c
use legacy method in avm constraints for now
ledwards2225 e050056
clarify naming
ledwards2225 1e7d991
cleanup and simplify gob avm rec verifier plus add issues
ledwards2225 f9a4c10
WiP test cleanup
ledwards2225 042d8eb
lots of test cleanup
ledwards2225 cb0eb92
use legacy method in acir format and add issue
ledwards2225 98c4759
simplify aggregate method
ledwards2225 9c5bb95
more comments and cleanup
ledwards2225 dc84f4e
remove missed WORKTODO
ledwards2225 df8517e
more cleaup and adding an issue
ledwards2225 33ce5f0
more comment updates
ledwards2225 7155b0f
tinyfix
ledwards2225 1f0c4b3
Merge branch 'master' into zw/goblin-avm-tests
ledwards2225 46c7525
comment fixes
ledwards2225 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 |
|---|---|---|
|
|
@@ -20,10 +20,12 @@ template <typename Curve> struct aggregation_state { | |
| { | ||
| return P0 == other.P0 && P1 == other.P1; | ||
| }; | ||
| template <typename BuilderType = void> | ||
|
|
||
|
Contributor
Author
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. Just making a general improvement here. The template param was not needed. |
||
| void aggregate(aggregation_state const& other, typename Curve::ScalarField recursion_separator) | ||
| { | ||
| if constexpr (std::is_same_v<BuilderType, MegaCircuitBuilder>) { | ||
| using Builder = typename Curve::Builder; | ||
|
|
||
| if constexpr (std::is_same_v<Builder, MegaCircuitBuilder>) { | ||
| P0 += other.P0 * recursion_separator; | ||
| P1 += other.P1 * recursion_separator; | ||
| } else { | ||
|
|
@@ -36,10 +38,11 @@ template <typename Curve> struct aggregation_state { | |
| } | ||
| } | ||
|
|
||
| template <typename BuilderType = void> | ||
| void aggregate(std::array<typename Curve::Group, 2> const& other, typename Curve::ScalarField recursion_separator) | ||
| { | ||
| if constexpr (std::is_same_v<BuilderType, MegaCircuitBuilder>) { | ||
| using Builder = typename Curve::Builder; | ||
|
|
||
| if constexpr (std::is_same_v<Builder, MegaCircuitBuilder>) { | ||
| P0 += other[0] * recursion_separator; | ||
| P1 += other[1] * recursion_separator; | ||
| } else { | ||
|
|
@@ -74,6 +77,7 @@ template <typename Curve> struct aggregation_state { | |
| }; | ||
| return witness_indices; | ||
| } | ||
|
|
||
| void assign_object_to_proof_outputs() | ||
| { | ||
| P0 = P0.reduce(); | ||
|
|
||
This file contains hidden or 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 hidden or 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 |
|---|---|---|
| @@ -1,3 +1,3 @@ | ||
| if(NOT DISABLE_AZTEC_VM) | ||
| barretenberg_module(vm sumcheck stdlib_honk_verifier) | ||
| endif() | ||
| barretenberg_module(vm sumcheck stdlib_honk_verifier stdlib_goblin_verifier) | ||
| endif() |
This file contains hidden or 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.
No meaningful changes here just highlighting yet another place where pairing point aggregation is missing.