-
Notifications
You must be signed in to change notification settings - Fork 293
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: move some nr utils around (#10553)
This PR improves bunch of small things. I noticed we were using small utils exported from protocol-circuits, notably `arr_copy_slice`, which seems like a bad idea as it we then unnecessarily couple those codebases. Also, said utility was quite awful: the name is bad (since 'slice' already has meaning inside of noir), and it mutated an argument which it also returned. I replaced this for `subarray`, which I think is much nicer. I also took the liberty of replacing usage of this in the protocol circuits, removing `conditional_assign` (which was unused) and improving some array management in which the array lengths were unnecessarily being imported and forced in situations were the compiler could already infer them. Finally I moved `collapse` into its own file as it was before in order to better structure our submodules with each having their own test etc. This helps avoid unnecessary exports of private pieces in order to test them. --------- Co-authored-by: Jan Beneš <[email protected]>
- Loading branch information
Showing
21 changed files
with
375 additions
and
350 deletions.
There are no files selected for viewing
17 changes: 9 additions & 8 deletions
17
noir-projects/aztec-nr/aztec/src/keys/point_to_symmetric_key.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
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.