-
Notifications
You must be signed in to change notification settings - Fork 598
chore: stdlib byte_array and bool external audit fixes #17838
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
iakovenkos
merged 31 commits into
merge-train/barretenberg
from
si/bool-byte-array-post-audit
Nov 7, 2025
Merged
Changes from all commits
Commits
Show all changes
31 commits
Select commit
Hold shift + click to select a range
cf791df
Issue 15 - fix selector order
iakovenkos 1fb4b6e
Issue 12 - use zero_idx() in `normalize`
iakovenkos a9f6608
Issue 11 - add missing context validation
iakovenkos 6585762
Issue 1 - remove size_t byte_array constructor
iakovenkos aab257e
making constructors safer and unconstrained behavior more explicit
iakovenkos ee89b08
fix fuzzing build
iakovenkos d1dc61e
fix keccak byte_array constructor issues
iakovenkos bf58e85
Issue 4 - add missing assert to [] operator
iakovenkos f899a23
Issue 3 - remove assert from byte_array to field conversion
iakovenkos e897223
remove non-const [] operator
iakovenkos de5b87e
Secure byte_array API to prevent unconstrained values in hash functions
iakovenkos 61852f2
fuzzer is a friend of byte_array
iakovenkos 378ba22
unfriend byte_array fuzzer, don't fuzz unconstrained private construc…
iakovenkos 5f916a6
Issue 6 - slice() empty array edge case
iakovenkos f6ab2c1
Merge remote-tracking branch 'origin/merge-train/barretenberg' into s…
iakovenkos 2cf61e6
Issue 10 - remove get_string()
iakovenkos 1ab6b0a
fix fuzzing build
iakovenkos 8d9f4e1
Issue 7 - add a missing divisibility remark
iakovenkos 6cf505d
Issue 14 - return early when reversing empty byte_arrays
iakovenkos eaa34b7
Issue 13 - byte_array move operator moves the data
iakovenkos bd21929
Merge remote-tracking branch 'origin/merge-train/barretenberg' into s…
iakovenkos d0032b2
refactor: make bool_t::conditional_assign always return normalized re…
iakovenkos 843eab6
address review
iakovenkos fe3c8c1
Merge remote-tracking branch 'origin/merge-train/barretenberg' into s…
iakovenkos ad1db17
Merge remote-tracking branch 'origin/merge-train/barretenberg' into s…
iakovenkos 7e9fa40
fix blake2s test
iakovenkos a3cd0f1
sha uses correct byte_array constructor
iakovenkos eab412c
fix ecdsa constraint
iakovenkos f95fef5
Fix ecdsa
federicobarbacovi aeab802
Further fix
federicobarbacovi 8c1f77d
vk update
iakovenkos 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
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
Oops, something went wrong.
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.
@federicobarbacovi just flagging that now it's the canonical way to create an empty array