Skip to content

Commit

Permalink
Update src/lib/gadgets/gadgets.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Gregor Mitscha-Baude <[email protected]>
  • Loading branch information
Trivo25 and mitschabaude authored Nov 29, 2023
1 parent 2b091e4 commit f6e43a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/gadgets/gadgets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ const Gadgets = {
* ```
*
* **Note**: Small "negative" field element inputs are interpreted as large integers close to the field size,
* and don't pass the 32-bit check. If you want to prove that a value lies in the int64 range [-2^31, 2^31),
* and don't pass the 32-bit check. If you want to prove that a value lies in the int32 range [-2^31, 2^31),
* you could use `rangeCheck32(x.add(1n << 31n))`.
*/
rangeCheck32(x: Field) {
Expand Down

0 comments on commit f6e43a2

Please sign in to comment.