Skip to content
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

Implement NOT gadget #194

Merged
merged 9 commits into from
Nov 13, 2023
Merged

Implement NOT gadget #194

merged 9 commits into from
Nov 13, 2023

Conversation

ymekuria
Copy link
Contributor

@ymekuria ymekuria commented Oct 26, 2023

Description

This PR adds a not function for finite fields in the case of constants.

A bitwise NOT is an operation that returns 1 in each bit position if the corresponding bit of the operand is 0, and returns 0 if the corresponding bit of the operand is 1.

Tested

This work is tested in the upper layers of o1js with unit and e2e tests that are built on top of the exposed gate constraint.

🔗 o1js: o1-labs/o1js#1198

@ymekuria ymekuria marked this pull request as ready for review October 26, 2023 20:36
crypto/finite_field.ts Outdated Show resolved Hide resolved
@mitschabaude mitschabaude merged commit 980a667 into main Nov 13, 2023
1 check passed
@mitschabaude mitschabaude deleted the feature/NOT-gadget branch November 13, 2023 07:17
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.

3 participants