unstale

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

@unstale/cli on npm

@noble/curves 281 changes

Breaking changes 47

  • ECDH and ECDSA reject the identity even when the point type’s generic codec permits it.

    2.4.0release notes

  • FROST enforces RFC 9591 point validation for BLS and BN.

    2.4.0release notes

  • Non-canonical BLS signature encodings are now rejected.

    2.3.0release notes

  • Recovered ECDSA signatures are now bound to their recovery id.

    2.3.0release notes

  • ZIP215 mode is off by default, using stricter verification instead.

    2.2.0release notes

  • Empty DST or count now throws.

    2.2.0release notes

  • The bn254_weierstrass curve was removed; pairing-based bn254 is not included in this removal.

    2.0.0release notes

  • Curve-specific hash-to-curve methods moved to modules named with the *curve*_hasher pattern.

    2.0.0release notes

  • DecafPoiont was renamed to decaf448.Point.

    2.0.0release notes

  • Curve creation is split into point creation and signature-generator creation; edwards now expects simplified curve parameters, with Fp becoming p.

    2.0.0release notes

  • The package is now ESM-only; Node v20.19+ is required, and ESM can be loaded from CommonJS on that Node version.

    2.0.0release notes

  • Now validates that elements are in the 0..order-1 range.

    2.0.0release notes

  • Removed.

    2.0.0release notes

  • Renamed from fromRawBytes and now names the byte conversion method.

    2.0.0release notes

  • The jubjub module has moved into misc.

    2.0.0release notes

  • All module specifiers must include the .js extension, for example @noble/curves/ed25519.js.

    2.0.0release notes

  • The p256, p384, and p521 modules have moved into nist.

    2.0.0release notes

  • The minimum required Node version is now v20.19.

    2.0.0release notes

  • The pasta curves were removed.

    2.0.0release notes

  • The unnecessary Fn argument was removed.

    2.0.0release notes

  • ExtendedPoint and ProjectivePoint have been renamed to Point.

    2.0.0release notes

  • Projective and extended point coordinates were renamed from px/ex, py/ey, pz/ez, et to X, Y, Z, T.

    2.0.0release notes

  • Removed.

    2.0.0release notes

  • Replaces the CURVE property and provides only curve parameters.

    2.0.0release notes

  • Now expects string-only hex inputs; use Point.fromBytes for Uint8Array inputs.

    2.0.0release notes

  • Removed; use Point.BASE.multiply() and Point.Fn.fromBytes(secretKey) instead.

    2.0.0release notes

  • Removed from Point; msm is now a separate method in abstract/curve.js.

    2.0.0release notes

  • Removed from Point; normalizeZ is now a separate method in abstract/curve.js.

    2.0.0release notes

  • Replaces utils.precompute and Point#_setWindowSize.

    2.0.0release notes

  • Renamed from randomPrivateKey.

    2.0.0release notes

  • RistrettoPoint was renamed to ristretto255.Point.

    2.0.0release notes

  • ECDSA signatures are now Uint8Array values in compact format by default.

    2.0.0release notes

  • ECDSA signing switches to lowS signatures by default; set lowS: false to restore the old behavior.

    2.0.0release notes

  • ECDSA sign now expects an unhashed message instead of a message hash; set prehash: false to restore the old behavior.

    2.0.0release notes

  • Replaces fromCompact and fromDER; the format is passed as an argument.

    2.0.0release notes

  • Replaces toCompactRawBytes and toDERRawBytes; pass compact or der as the format.

    2.0.0release notes

  • Replaces toCompactHex and toDERHex; pass compact or der as the format.

    2.0.0release notes

  • Renamed from toRawBytes and now names the byte conversion method.

    2.0.0release notes

  • Most methods now expect Uint8Array; string hex inputs are prohibited.

    2.0.0release notes

  • Removed.

    2.0.0release notes

  • Renamed from edwardsToMontgomery.

    2.0.0release notes

  • Renamed from edwardsToMontgomeryPriv.

    2.0.0release notes

  • Verification no longer accepts Signature-instance signatures; convert them with signature.toBytes().

    2.0.0release notes

  • ECDSA verification switches to lowS signatures by default; set lowS: false to restore the old behavior.

    2.0.0release notes

  • ECDSA verify now expects an unhashed message instead of a message hash; set prehash: false to restore the old behavior.

    2.0.0release notes

  • Now expects an array of inputs shaped as {message: ..., publicKey: ...}.

    2.0.0release notes

  • Curve creation is split into point creation and signature-generator creation; weierstrass now expects simplified curve parameters, with Fp becoming p.

    2.0.0release notes

Security 8

  • ECDSA signature and INTEGER sizes are bounded before bigint conversion, limiting disproportionate parsing and allocation work from malformed inputs.

    2.4.0release notes

  • Round-one transcript substitution is hardened against, protecting users who do not preserve rounds as specified by FROST.

    2.4.0release notes

  • POPRF replaces inversion with a constant-time version.

    2.4.0release notes

  • Passed arguments are snapshotted so security-sensitive state cannot be mutated.

    2.4.0release notes

  • 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.

    2.3.0release notes

  • FROST DKG round-2 retry handling was hardened.

    2.3.0release notes

  • 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).

    2.3.0release notes

  • 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.

    2.3.0release notes

New APIs and options 9

  • Implements FROST threshold signatures from RFC 9591.

    2.2.0release notes

  • BLS long-signature operations, using G1 public keys and G2 signatures, moved into this namespace.

    2.0.0release notes

  • BLS short-signature operations, using G1 signatures and G2 public keys, moved into this namespace.

    2.0.0release notes

  • Added Brainpool curve support.

    2.0.0release notes

  • Added as a separate signature-generator creation method that expects a Point class and hash.

    2.0.0release notes

  • Added as a separate signature-generator creation method that expects a Point class and hash.

    2.0.0release notes

  • Added for weierstrass and edwards curves.

    2.0.0release notes

  • Implements RFC 9497 OPRFs for p256, p384, p521, ristretto255, and decaf448.

    2.0.0release notes

  • A friendly noble-like wrapper over built-in WebCrypto is available.

    2.0.0release notes

Performance 8

  • BLS signatures are 2× faster.

    2.3.0release notes

  • Verification of recovered signatures, pairing tower, FFT, Pippenger, and joint-MSM paths in FROST and OPRF were optimized.

    2.3.0release notes

  • ECDSA and EdDSA verification is up to 32% faster.

    2.3.0release notes

  • First getPublicKey or sign initialization is reduced by about 2× for ed25519, p256, p384, and p521.

    2.3.0release notes

  • Weierstrass ECDH is up to 19% faster.

    2.3.0release notes

  • x25519 getPublicKey is 2.7× faster.

    2.3.0release notes

  • BLS point decoding is improved.

    2.2.0release notes

  • Tree-shaking across modules was improved, resulting in smaller bundles.

    2.2.0release notesrelease notes

Behavior and default changes 1

  • Curves that disallow infinity cannot encode it; opted-in curves use the canonical SEC 1 0x00 encoding.

    2.4.0release notes

Fixes and other changes 8

  • The Edwards-to-Montgomery and Montgomery-to-Edwards conversion helpers were corrected.

    2.3.0release notes

  • Uses the correct curve and curve parameters.

    2.2.0release notes

  • DER parsing is improved.

    2.2.0release notes

  • Fixes the Fp6 and Fp12 order for bls and bn.

    2.2.0release notes

  • Random values are reduced modulo N instead of causing an error.

    2.2.0release notes

  • Compilation issues on TypeScript v6 are fixed.

    2.2.0release notes

  • Byte array types work across TypeScript 5.6 and TypeScript 5.9+.

    2.2.0release notes

  • Package imports now work correctly in bundler-less environments, such as browsers.

    2.0.0release notes