-
Notifications
You must be signed in to change notification settings - Fork 110
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
add gadgets to API surface, UInt32, UInt64, implement rot32 #1259
Commits on Nov 14, 2023
-
feat(int.ts): add support for bitwise XOR, NOT, rotate, leftShift, ri…
…ghtShift, and bitwise AND operations on UInt64 values using Gadgets module The Gadgets module provides implementations for bitwise XOR, NOT, rotate, leftShift, rightShift, and bitwise AND operations on UInt64 values. These operations are useful for performing bitwise operations on UInt64 values in a circuit. The following operations have been added: - `xor(x: UInt64)`: Performs a bitwise XOR operation between the current UInt64 value and the provided UInt64 value `x`. Returns a new UInt64 value representing the result of the XOR operation. - `not(checked = true)`: Performs a bitwise NOT operation on the current UInt64 value. If the `checked` parameter is set to `true`, the operation is implemented using the `Gadgets.xor` gadget with a second argument as an all one bitmask of the same length. If the `checked` parameter is set to `false`, the operation is implemented as a subtraction of the input from the all one bitmask. Returns a new UInt64 value representing the result of the NOT operation. - `rotate(direction: 'left' | 'right' = 'left')`: Performs a bitwise rotation operation on the current UInt64 value. The `direction` parameter determines the direction of the rotation, with `'left'` indicating a left rotation and `'right'` indicating a right rotation. Returns a new UInt64 value representing the result of the rotation operation. - `leftShift()`: Performs a bitwise left shift operation on the current UInt64 value. Returns a new UInt64 value representing the result of the left shift operation. - `rightShift()`: Performs a bitwise right shift operation on the current UInt64 value. Returns a new UInt64 value representing the result of the right shift operation. - `and(x: UInt64)`: Performs a bitwise AND operation between the current UInt64 value and the provided UInt64 value `x`. Returns a new UInt64 value representing the result of the AND operation. These operations provide additional functionality for working with UInt64 values in circuits.
Configuration menu - View commit details
-
Copy full SHA for fb543ed - Browse repository at this point
Copy the full SHA fb543edView commit details -
fix(int.ts): update parameter name in rotate method from 'direction' …
…to 'bits' to improve clarity feat(int.ts): add documentation for the rotate, leftShift, rightShift, and and methods to improve code understanding and usage
Configuration menu - View commit details
-
Copy full SHA for 840fc7a - Browse repository at this point
Copy the full SHA 840fc7aView commit details -
fix(int.ts): fix instantiation of UInt64 in example code by using the…
… 'from' method instead of direct instantiation to improve clarity and consistency feat(int.ts): add support for bitwise XOR operation on UInt32 elements to perform XOR operation between two UInt32 elements feat(int.ts): add support for bitwise NOT operation on UInt32 elements to perform bitwise negation of a UInt32 element feat(int.ts): add support for rotation operation on UInt32 elements to perform left and right rotation of bits in a UInt32 element feat(int.ts): add support for left shift operation on UInt32 elements to perform left shift of bits in a UInt32 element feat(int.ts): add support for right shift operation on UInt32 elements to perform right shift of bits in a UInt32 element feat(int.ts): add support for bitwise AND operation on UInt32 elements to perform AND operation between two UInt32 elements
Configuration menu - View commit details
-
Copy full SHA for f6f9177 - Browse repository at this point
Copy the full SHA f6f9177View commit details
Commits on Nov 21, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 5020ce3 - Browse repository at this point
Copy the full SHA 5020ce3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 63fa85f - Browse repository at this point
Copy the full SHA 63fa85fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 14f2051 - Browse repository at this point
Copy the full SHA 14f2051View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3932338 - Browse repository at this point
Copy the full SHA 3932338View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8c524b6 - Browse repository at this point
Copy the full SHA 8c524b6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7d8ff8e - Browse repository at this point
Copy the full SHA 7d8ff8eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 27d6f8a - Browse repository at this point
Copy the full SHA 27d6f8aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0d5e09b - Browse repository at this point
Copy the full SHA 0d5e09bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 81c90c4 - Browse repository at this point
Copy the full SHA 81c90c4View commit details -
Configuration menu - View commit details
-
Copy full SHA for aafd4b8 - Browse repository at this point
Copy the full SHA aafd4b8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6419176 - Browse repository at this point
Copy the full SHA 6419176View commit details -
Configuration menu - View commit details
-
Copy full SHA for e8cac1a - Browse repository at this point
Copy the full SHA e8cac1aView commit details
Commits on Nov 22, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 4685946 - Browse repository at this point
Copy the full SHA 4685946View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4013f14 - Browse repository at this point
Copy the full SHA 4013f14View commit details -
Configuration menu - View commit details
-
Copy full SHA for bc9a20e - Browse repository at this point
Copy the full SHA bc9a20eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 14a7717 - Browse repository at this point
Copy the full SHA 14a7717View commit details -
Configuration menu - View commit details
-
Copy full SHA for 51d0bfd - Browse repository at this point
Copy the full SHA 51d0bfdView commit details -
Configuration menu - View commit details
-
Copy full SHA for ce34be8 - Browse repository at this point
Copy the full SHA ce34be8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4d78fc0 - Browse repository at this point
Copy the full SHA 4d78fc0View commit details -
Configuration menu - View commit details
-
Copy full SHA for d370e29 - Browse repository at this point
Copy the full SHA d370e29View commit details -
Configuration menu - View commit details
-
Copy full SHA for 08069bb - Browse repository at this point
Copy the full SHA 08069bbView commit details -
Configuration menu - View commit details
-
Copy full SHA for 954607e - Browse repository at this point
Copy the full SHA 954607eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0878630 - Browse repository at this point
Copy the full SHA 0878630View commit details -
Configuration menu - View commit details
-
Copy full SHA for e25d896 - Browse repository at this point
Copy the full SHA e25d896View commit details
Commits on Nov 28, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 62c1635 - Browse repository at this point
Copy the full SHA 62c1635View commit details -
Configuration menu - View commit details
-
Copy full SHA for 93be2b0 - Browse repository at this point
Copy the full SHA 93be2b0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 12f388d - Browse repository at this point
Copy the full SHA 12f388dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 982d3b0 - Browse repository at this point
Copy the full SHA 982d3b0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2b091e4 - Browse repository at this point
Copy the full SHA 2b091e4View commit details
Commits on Nov 29, 2023
-
Update src/lib/gadgets/gadgets.ts
Co-authored-by: Gregor Mitscha-Baude <gregor.mitscha-baude@gmx.at>
Configuration menu - View commit details
-
Copy full SHA for f6e43a2 - Browse repository at this point
Copy the full SHA f6e43a2View commit details -
Update src/lib/gadgets/gadgets.ts
Co-authored-by: Gregor Mitscha-Baude <gregor.mitscha-baude@gmx.at>
Configuration menu - View commit details
-
Copy full SHA for 89d806b - Browse repository at this point
Copy the full SHA 89d806bView commit details -
Update src/lib/gadgets/gadgets.ts
Co-authored-by: Gregor Mitscha-Baude <gregor.mitscha-baude@gmx.at>
Configuration menu - View commit details
-
Copy full SHA for 72d38b4 - Browse repository at this point
Copy the full SHA 72d38b4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 84f0823 - Browse repository at this point
Copy the full SHA 84f0823View commit details -
Merge branch 'feature/gadgets-uint' of https://github.com/o1-labs/o1js …
…into feature/gadgets-uint
Configuration menu - View commit details
-
Copy full SHA for d790149 - Browse repository at this point
Copy the full SHA d790149View commit details -
Configuration menu - View commit details
-
Copy full SHA for cf16482 - Browse repository at this point
Copy the full SHA cf16482View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2042e02 - Browse repository at this point
Copy the full SHA 2042e02View commit details -
Configuration menu - View commit details
-
Copy full SHA for b97c717 - Browse repository at this point
Copy the full SHA b97c717View commit details -
Configuration menu - View commit details
-
Copy full SHA for 973a366 - Browse repository at this point
Copy the full SHA 973a366View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1165c5f - Browse repository at this point
Copy the full SHA 1165c5fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 8cefdbb - Browse repository at this point
Copy the full SHA 8cefdbbView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6da47bd - Browse repository at this point
Copy the full SHA 6da47bdView commit details -
Configuration menu - View commit details
-
Copy full SHA for 2f18e5f - Browse repository at this point
Copy the full SHA 2f18e5fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1b3ce9b - Browse repository at this point
Copy the full SHA 1b3ce9bView commit details -
Configuration menu - View commit details
-
Copy full SHA for ff91e1d - Browse repository at this point
Copy the full SHA ff91e1dView commit details -
Configuration menu - View commit details
-
Copy full SHA for a0f1e5e - Browse repository at this point
Copy the full SHA a0f1e5eView commit details -
Configuration menu - View commit details
-
Copy full SHA for de71797 - Browse repository at this point
Copy the full SHA de71797View commit details -
Configuration menu - View commit details
-
Copy full SHA for fb2aabd - Browse repository at this point
Copy the full SHA fb2aabdView commit details -
Configuration menu - View commit details
-
Copy full SHA for b3d74df - Browse repository at this point
Copy the full SHA b3d74dfView commit details
Commits on Dec 15, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 12942ed - Browse repository at this point
Copy the full SHA 12942edView commit details -
Configuration menu - View commit details
-
Copy full SHA for cfa4883 - Browse repository at this point
Copy the full SHA cfa4883View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9702793 - Browse repository at this point
Copy the full SHA 9702793View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7b5e8fa - Browse repository at this point
Copy the full SHA 7b5e8faView commit details -
Configuration menu - View commit details
-
Copy full SHA for 673c822 - Browse repository at this point
Copy the full SHA 673c822View commit details
Commits on Dec 19, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 108513c - Browse repository at this point
Copy the full SHA 108513cView commit details -
Configuration menu - View commit details
-
Copy full SHA for fc70678 - Browse repository at this point
Copy the full SHA fc70678View commit details -
Configuration menu - View commit details
-
Copy full SHA for a8ff0aa - Browse repository at this point
Copy the full SHA a8ff0aaView commit details -
Configuration menu - View commit details
-
Copy full SHA for d4f27be - Browse repository at this point
Copy the full SHA d4f27beView commit details -
Configuration menu - View commit details
-
Copy full SHA for c1e6087 - Browse repository at this point
Copy the full SHA c1e6087View commit details -
Configuration menu - View commit details
-
Copy full SHA for e2785ab - Browse repository at this point
Copy the full SHA e2785abView commit details