Skip to content

Commit

Permalink
Update docs/zkapps/o1js/bitwise-operations.mdx
Browse files Browse the repository at this point in the history
Co-authored-by: Nic Young <[email protected]>
  • Loading branch information
barriebyron and nicc authored Nov 30, 2023
1 parent d48fabb commit 26d103c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/zkapps/o1js/bitwise-operations.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ The bitwise `and()` gadget on Field elements is equivalent to the [bitwise AND (

The `and()` gadget:

- Compares two bits and returns 1 only if both bits are 1 and returns 0 if both bits are not 1.
- Compares two bits and returns 1 only if both bits are 1. Returns 0 if either bit is not 1.
- Constrains both input values to fit into `paddedLength` bits.
- Both Field elements must fit into `2^paddedLength - 1`.
- Guarantees that the output is has at most `paddedLength` bits.
Expand Down

0 comments on commit 26d103c

Please sign in to comment.