-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
[HackerOne-2300725] Limit the number of allowed constraints for deployments #2271
Merged
Merged
Changes from 30 commits
Commits
Show all changes
40 commits
Select commit
Hold shift + click to select a range
88364b0
Limit the number of allowed constraints for deployments
vicsn 5e0e2f6
Increase allowed number of deployment constraints for existing test s…
vicsn f429701
Correct test expectations. The RNG depends on FinalizeState
vicsn 696d332
Add test for too many constraints
vicsn d872a42
Actually limit at max_constraints
vicsn 0be9950
Use Self::set_constraint_maximum
vicsn 06ab667
Comment nit
vicsn 6b6fc40
Convert type early
vicsn 726a614
Check that the number of functions matches the number of verifying keys
vicsn 4573348
Clean up deployment_cost function
vicsn 5d3c2b7
Nit: fix comment
vicsn 61edab1
Merge branch 'testnet3' into limit_deployment_num_constraints
howardwu d696985
Merge mainnet
raychu86 6b4b78b
Rewrite expectations
raychu86 54495e7
Merge branch 'mainnet' into limit_deployment_num_constraints
howardwu 722b6d0
Fix terminology, fix vulnerability
howardwu 2284e88
Merge branch 'limit_deployment_num_constraints' of https://github.com…
howardwu a22ab6d
Fix the deployment limit usage
howardwu dc8fb72
Write like an adult
howardwu e919f7b
nit: comments
howardwu d2e52b0
Update comments
howardwu 1568ce0
Adds a getter for the constraint limit from the circuit
howardwu e39f9d2
Fix names, set limit to 1<<20
howardwu 4383518
Missing period (.)
howardwu 3841a3e
Include the synthesis cost in the return for the deployment cost
howardwu 5d0c2da
Add enforcement that the number of synthesized constraints matches th…
howardwu 01b95d2
WIP: scaffolding for testing vk manipulation
vicsn cc87b98
Remove redundant check
evan-schott 1b02d5c
Revise tests
evan-schott 1ae6626
Modify constraint limit to account for the constraint added after syn…
evan-schott 32053f9
Add back synthesis check to catch overreports
evan-schott ff10297
tx id changes bc deploy fee increased w/ this PR
evan-schott 32d3ca4
revise new tests
evan-schott 7d443bc
clippy
evan-schott 763d5fe
fixes
evan-schott 6adc557
fixes
evan-schott b746a19
Correct underreport test program name
vicsn ed6cfa7
Merge remote-tracking branch 'origin/mainnet' into limit_deployment_n…
vicsn 58e6c39
Correct test expectations
vicsn 411218b
nit: use let-else syntax
howardwu 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
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
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
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.
I'm not convinced this logic is necessary.
When triggering
call
, no logic above this resets the constraint limit AFAIK.