@noble/ed25519
Advanced tools
Comparing version 1.7.2 to 1.7.3
@@ -188,4 +188,4 @@ /*! noble-ed25519 - MIT License (c) 2019 Paul Miller (paulmillr.com) */ | ||
isTorsionFree() { | ||
let p = this.multiplyUnsafe(CURVE.l / 2n).double(); | ||
if (CURVE.l % 2n) | ||
let p = this.multiplyUnsafe(CURVE.l / _2n).double(); | ||
if (CURVE.l % _2n) | ||
p = p.add(this); | ||
@@ -192,0 +192,0 @@ return p.equals(ExtendedPoint.ZERO); |
@@ -191,4 +191,4 @@ "use strict"; | ||
isTorsionFree() { | ||
let p = this.multiplyUnsafe(CURVE.l / 2n).double(); | ||
if (CURVE.l % 2n) | ||
let p = this.multiplyUnsafe(CURVE.l / _2n).double(); | ||
if (CURVE.l % _2n) | ||
p = p.add(this); | ||
@@ -195,0 +195,0 @@ return p.equals(ExtendedPoint.ZERO); |
{ | ||
"name": "@noble/ed25519", | ||
"version": "1.7.2", | ||
"version": "1.7.3", | ||
"description": "Fastest JS implementation of ed25519. Independently audited, high-security, 0-dependency EDDSA, X25519 ECDH & ristretto255", | ||
@@ -5,0 +5,0 @@ "files": [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
84827