Skip to content

chore: remove logic operations from uint#15975

Merged
suyash67 merged 2 commits into
merge-train/barretenbergfrom
sb/remove-uint-logic
Jul 25, 2025
Merged

chore: remove logic operations from uint#15975
suyash67 merged 2 commits into
merge-train/barretenbergfrom
sb/remove-uint-logic

Conversation

@suyash67

Copy link
Copy Markdown
Contributor

In stdlib_uint we no longer need logical operations because the only places they were used in, i.e., std/turbo version of sha256, blake2s, blake3s, have been removed. So its best to reduce complexity of the uint class and keep it minimal.

Removed the following functions from the uint class:

operator^
operator&
operator|
operator~
operator>>
operator<<
ror
rol
logic_operator

@suyash67 suyash67 force-pushed the sb/remove-uint-logic branch from d3b5501 to f317ddf Compare July 24, 2025 21:42
@suyash67 suyash67 marked this pull request as ready for review July 24, 2025 21:42
@suyash67 suyash67 requested a review from iakovenkos July 24, 2025 21:43
Base automatically changed from merge-train/barretenberg to next July 25, 2025 03:26
@AztecBot AztecBot requested a review from charlielye as a code owner July 25, 2025 03:26

@iakovenkos iakovenkos left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lg!

@suyash67 suyash67 force-pushed the sb/remove-uint-logic branch from e3c30d2 to da4914f Compare July 25, 2025 07:54
@suyash67 suyash67 changed the base branch from next to merge-train/barretenberg July 25, 2025 08:05
@suyash67 suyash67 removed the request for review from charlielye July 25, 2025 08:05
@suyash67 suyash67 merged commit f5ec98e into merge-train/barretenberg Jul 25, 2025
5 checks passed
@suyash67 suyash67 deleted the sb/remove-uint-logic branch July 25, 2025 08:21
suyash67 added a commit that referenced this pull request Jul 25, 2025
suyash67 added a commit that referenced this pull request Jul 25, 2025
Reverts #15975

Need to get the logic ops cleanup
[PR](#15823) first.
github-merge-queue Bot pushed a commit that referenced this pull request Jul 30, 2025
See
[merge-train-readme.md](https://github.com/AztecProtocol/aztec-packages/blob/next/.github/workflows/merge-train-readme.md).

BEGIN_COMMIT_OVERRIDE
chore: remove `logic` operations from `uint` (#15975)
chore: Modify the `MergeVerifier` so that it gets the subtable
commitments as input and returns the commitment to the merged table
(#15949)
fix: delete tar generated by test-vk-havent-changed script (#15988)
chore: replace q_arith with q_3 in memory relation (#15953)
chore: simplify `uint` logic by removing `witness_status` (#15976)
Revert "chore: remove `logic` operations from `uint`" (#15997)
Revert "chore: simplify `uint` logic by removing `witness_status`"
(#16000)
feat: Add the last merged table to the public inputs of the hiding
circuit (#15829)
chore: combined `uint` audit (#16030)
chore: delete and ignore barretenberg/src/honk/keys/ (#16042)
fix: Fix tube proof construction (#16052)
feat: Link successive recursive Merge verifications (#16032)
chore: Package inputs to Merge verifier into a single struct (#16075)
END_COMMIT_OVERRIDE

---------

Co-authored-by: AztecBot <tech@aztecprotocol.com>
Co-authored-by: Suyash Bagad <suyash@aztecprotocol.com>
Co-authored-by: federicobarbacovi <171914500+federicobarbacovi@users.noreply.github.com>
Co-authored-by: Jonathan Hao <jonathan@aztec-labs.com>
Co-authored-by: ledwards2225 <98505400+ledwards2225@users.noreply.github.com>
Co-authored-by: sergei iakovenko <105737703+iakovenkos@users.noreply.github.com>
Co-authored-by: ludamad <adam.domurad@gmail.com>
Co-authored-by: Raju Krishnamoorthy <krishnamoorthy@gmail.com>
Co-authored-by: notnotraju <raju@aztec-labs.com>
Co-authored-by: Lucas Xia <lucasxia01@gmail.com>
Co-authored-by: Khashayar Barooti <khashayar@aztecprotocol.com>
Co-authored-by: Jean M <132435771+jeanmon@users.noreply.github.com>
Co-authored-by: Alex Gherghisan <alexghr@users.noreply.github.com>
Co-authored-by: Santiago Palladino <spalladino@users.noreply.github.com>
Co-authored-by: Santiago Palladino <santiago@aztec-labs.com>
Co-authored-by: ludamad <domuradical@gmail.com>
Co-authored-by: maramihali <mara@aztecprotocol.com>
Co-authored-by: Sarkoxed <75146596+Sarkoxed@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants