npm / @noble/curves
@noble/curves
What changed in @noble/curves 2, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.
47 breaking8 security9 new APIs and options8 performance1 behavior and defaults8 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli init@noble/curves 281 changes
Breaking changes 47
ECDH and ECDSA reject the identity even when the point type’s generic codec permits it.
FROST enforces RFC 9591 point validation for BLS and BN.
Non-canonical BLS signature encodings are now rejected.
Recovered ECDSA signatures are now bound to their recovery id.
ZIP215 mode is off by default, using stricter verification instead.
Empty DST or count now throws.
The bn254_weierstrass curve was removed; pairing-based bn254 is not included in this removal.
Curve-specific hash-to-curve methods moved to modules named with the *curve*_hasher pattern.
DecafPoiont was renamed to decaf448.Point.
Curve creation is split into point creation and signature-generator creation; edwards now expects simplified curve parameters, with Fp becoming p.
The package is now ESM-only; Node v20.19+ is required, and ESM can be loaded from CommonJS on that Node version.
Now validates that elements are in the 0..order-1 range.
Removed.
Renamed from fromRawBytes and now names the byte conversion method.
The jubjub module has moved into misc.
All module specifiers must include the .js extension, for example @noble/curves/ed25519.js.
The p256, p384, and p521 modules have moved into nist.
The minimum required Node version is now v20.19.
The pasta curves were removed.
The unnecessary Fn argument was removed.
ExtendedPoint and ProjectivePoint have been renamed to Point.
Projective and extended point coordinates were renamed from px/ex, py/ey, pz/ez, et to X, Y, Z, T.
Removed.
Replaces the CURVE property and provides only curve parameters.
Now expects string-only hex inputs; use Point.fromBytes for Uint8Array inputs.
Removed; use Point.BASE.multiply() and Point.Fn.fromBytes(secretKey) instead.
Removed from Point; msm is now a separate method in abstract/curve.js.
Removed from Point; normalizeZ is now a separate method in abstract/curve.js.
Replaces utils.precompute and Point#_setWindowSize.
Renamed from randomPrivateKey.
RistrettoPoint was renamed to ristretto255.Point.
ECDSA signatures are now Uint8Array values in compact format by default.
ECDSA signing switches to lowS signatures by default; set lowS: false to restore the old behavior.
ECDSA sign now expects an unhashed message instead of a message hash; set prehash: false to restore the old behavior.
Replaces fromCompact and fromDER; the format is passed as an argument.
Replaces toCompactRawBytes and toDERRawBytes; pass compact or der as the format.
Replaces toCompactHex and toDERHex; pass compact or der as the format.
Renamed from toRawBytes and now names the byte conversion method.
Most methods now expect Uint8Array; string hex inputs are prohibited.
Removed.
Renamed from edwardsToMontgomery.
Renamed from edwardsToMontgomeryPriv.
Verification no longer accepts Signature-instance signatures; convert them with signature.toBytes().
ECDSA verification switches to lowS signatures by default; set lowS: false to restore the old behavior.
ECDSA verify now expects an unhashed message instead of a message hash; set prehash: false to restore the old behavior.
Now expects an array of inputs shaped as {message: ..., publicKey: ...}.
Curve creation is split into point creation and signature-generator creation; weierstrass now expects simplified curve parameters, with Fp becoming p.
Security 8
ECDSA signature and INTEGER sizes are bounded before bigint conversion, limiting disproportionate parsing and allocation work from malformed inputs.
Round-one transcript substitution is hardened against, protecting users who do not preserve rounds as specified by FROST.
POPRF replaces inversion with a constant-time version.
Passed arguments are snapshotted so security-sensitive state cannot be mutated.
Secret-scalar operations now use blinding, un-precomputed points use constant-time fixed-window multiplication, and modular arithmetic helpers are hardened to provide actual constant-time guarantees.
FROST DKG round-2 retry handling was hardened.
getPublicKey and sign got slower after reducing the window size and hardening constant-time execution; long-running apps can restore 2.2.0-level speed with precompute(8).
X25519 was hardened against a remote timing attack that could reveal up to 4.036 bits of a long-term private key across many samples.
New APIs and options 9
Implements FROST threshold signatures from RFC 9591.
BLS long-signature operations, using G1 public keys and G2 signatures, moved into this namespace.
BLS short-signature operations, using G1 signatures and G2 public keys, moved into this namespace.
Added Brainpool curve support.
Added as a separate signature-generator creation method that expects a Point class and hash.
Added as a separate signature-generator creation method that expects a Point class and hash.
Added for weierstrass and edwards curves.
Implements RFC 9497 OPRFs for p256, p384, p521, ristretto255, and decaf448.
A friendly noble-like wrapper over built-in WebCrypto is available.
Performance 8
BLS signatures are 2× faster.
Verification of recovered signatures, pairing tower, FFT, Pippenger, and joint-MSM paths in FROST and OPRF were optimized.
ECDSA and EdDSA verification is up to 32% faster.
First getPublicKey or sign initialization is reduced by about 2× for ed25519, p256, p384, and p521.
Weierstrass ECDH is up to 19% faster.
x25519 getPublicKey is 2.7× faster.
BLS point decoding is improved.
Tree-shaking across modules was improved, resulting in smaller bundles.
Behavior and default changes 1
Curves that disallow infinity cannot encode it; opted-in curves use the canonical SEC 1 0x00 encoding.
Fixes and other changes 8
The Edwards-to-Montgomery and Montgomery-to-Edwards conversion helpers were corrected.
Uses the correct curve and curve parameters.
DER parsing is improved.
Fixes the Fp6 and Fp12 order for bls and bn.
Random values are reduced modulo N instead of causing an error.
Compilation issues on TypeScript v6 are fixed.
Byte array types work across TypeScript 5.6 and TypeScript 5.9+.
Package imports now work correctly in bundler-less environments, such as browsers.