Skip to content

Commit

Permalink
Bump ts and prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
paulmillr committed Jun 21, 2024
1 parent 4b1798c commit ad8efa2
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 11 deletions.
16 changes: 8 additions & 8 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@
"fast-check": "3.0.0",
"micro-bmark": "0.3.1",
"micro-should": "0.4.0",
"prettier": "3.1.1",
"typescript": "5.3.2"
"prettier": "3.3.2",
"typescript": "5.5.2"
},
"sideEffects": false,
"main": "index.js",
Expand Down
3 changes: 2 additions & 1 deletion src/abstract/edwards.ts
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,8 @@ export function twistedEdwards(curveDef: CurveType): CurveFn {
// y=0 is allowed
} else {
// RFC8032 prohibits >= p, but ZIP215 doesn't
if (zip215) assertInRange(y, MASK); // zip215=true [1..P-1] (2^255-19-1 for ed25519)
if (zip215)
assertInRange(y, MASK); // zip215=true [1..P-1] (2^255-19-1 for ed25519)
else assertInRange(y, Fp.ORDER); // zip215=false [1..MASK-1] (2^256-1 for ed25519)
}

Expand Down

0 comments on commit ad8efa2

Please sign in to comment.