Skip to content

Releases: paulmillr/noble-secp256k1

1.6.1

13 Jul 13:23
1.6.1
568e479
Compare
Choose a tag to compare
  • Make verification of 0000... msgHash a valid behavior; due to consensus failures
  • Add TS types field to exports map by @jacogr in #66

Full Changelog: 1.6.0...1.6.1

1.6.0

11 Jun 23:17
1.6.0
5bea862
Compare
Choose a tag to compare
  • Expose utils: invert, hexToBytes, concatBytes
  • Refactor Schnorr/BIP340 functionality by @brandonblack in #50
  • Speedup non-BASE multiplyAndAddUnsafe by @brandonblack in #54
  • Remove viral esModuleInterop option from tsconfig.
  • Change utils.hashToPrivateKey algorithm

New Contributors

Full Changelog: 1.5.5...1.6.0

1.5.5

20 Feb 04:42
1.5.5
5d7ce29
Compare
Choose a tag to compare
  • Fixed a bug in schnorr.verify when infinity point result was not checked properly
  • schnorr.verify now throws less errors, instead, it returns false
  • Made schnorr.sign 60% faster, schnorr.verify 90% faster

1.5.4

19 Feb 02:37
1.5.4
790ce37
Compare
Choose a tag to compare
  • recoverPublicKey improvements:
    • Fixed an issue where it recovered invalid points
    • Added isCompressed optional argument
    • Made it ~2x faster

1.5.3

14 Feb 16:08
1.5.3
6f1899a
Compare
Choose a tag to compare
  • New algorithm for utils.randomPrivateKey()
  • Added utils.hashToPrivateKey()
  • Improved JacobianPoint#toAffine() check
  • 5-10% speed-up

1.5.2

26 Jan 15:44
1.5.2
fe665f6
Compare
Choose a tag to compare
  • Fix library compatibility with bad parsers over bigint syntax
  • New exported utils.mod utility
  • recoverPublicKey and Point.fromSignature now reduce msgHash modulo n
  • Uint8Arrays are now always copied instead of using .slice() method of theirs
  • Hex parsing improvements

1.5.0

17 Jan 23:10
1.5.0
3211349
Compare
Choose a tag to compare
  • Messages in ECDSA sign() are now reduced modulo n to match RFC6979. Contributed by @kklash.
    • Note: libsecp256k1 is awaiting pull request for the same bugfix
  • sign can now receive {extraEntropy: true} to auto-populate k with random data. This is strongly recommended, see README
  • RFC6979 has been thoroughly refactored

1.4.0

04 Jan 23:20
1.4.0
5bdc2b2
Compare
Choose a tag to compare
  • Important: signatures are now canonical: true by default. This mirrors libsecp256k1 behavior. If you'd like old (OpenSSL) behavior, use sign with canonical: false
  • Important: verify() is now strict: true by default. High-s signatures are rejected, which also mirrors libsecp behavior.
  • Important: removed string (hex) return type from public methods. Uint8Array is now always returned
  • Added extraEntropy option to sign. It allows to specify k' as per RFC6979
  • Added Signature#hasHighS() and Signature#normalizeS() methods
  • Rewrite DER parsing logic
  • Improve hex parsing security
  • assertValidity is now done in Signature constructor, instead of a separate method
  • Remove SignResult deprecated class that cloned Signature

Full Changelog: 1.3.4...1.4.0

Thanks to @hank121314 for contribution

1.3.3

13 Dec 14:49
1.3.3
35e53e0
Compare
Choose a tag to compare
  • Add main/module fields to package.json to fix rollup/browserify

1.3.2

11 Dec 20:57
1.3.2
8d713fc
Compare
Choose a tag to compare
  • Typescript support bugfix