Skip to content

Commit

Permalink
typos
Browse files Browse the repository at this point in the history
  • Loading branch information
mitschabaude committed Mar 28, 2024
1 parent 5348010 commit e15f77d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
- Remove `privateKey` from the accepted arguments of `SmartContract.deploy()` https://github.com/o1-labs/o1js/pull/1515
- **Efficient comparisons**. Support arbitrary bit lengths for `Field` comparisons and massively reduce their constraints https://github.com/o1-labs/o1js/pull/1523
- `Field.assertLessThan()` goes from 510 to 24 constraints, `Field.lessThan()` from 509 to 38
- Moderately improve other comparisons: `UInt64.assertLessThan()` from 27 to 14,, `UInt64.lessThan()` from 27 to 15, `UInt32` similar.
- Moderately improve other comparisons: `UInt64.assertLessThan()` from 27 to 14, `UInt64.lessThan()` from 27 to 15, `UInt32` similar.
- Massively improve `Field.isEven()`, add `Field.isOdd()`
- `PrivateKey.toPublicKey()` from 358 to 119 constraints thanks to `isOdd()`
- Add `Gadgets.ForeignField.assertLessThanOrEqual()` and support two variables as input to `ForeignField.assertLessThan()`
Expand Down
2 changes: 1 addition & 1 deletion src/lib/provable/gadgets/comparison.ts
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ function fieldToField3(x: Field) {
* It is up to the caller to prove that `x` and `y` have at most `n` bits.
*
* **Warning:** This was created for 1:1 compatibility with snarky's `compare` gadget.
* It was designed for R1CS and is extremeley inefficient when used with plonkish arithmetization.
* It was designed for R1CS and is extremely inefficient when used with plonkish arithmetization.
*/
function compareCompatible(x: Field, y: Field, n = Fp.sizeInBits - 2) {
let maxLength = Fp.sizeInBits - 2;
Expand Down

0 comments on commit e15f77d

Please sign in to comment.