File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change 5
5
All pure-js cryptographic primitives normally used when
6
6
developing Javascript / TypeScript applications and tools for Ethereum.
7
7
8
+ April 2023 update: v2.0 is out, switching
9
+ [ noble-secp256k1] ( https://github.com/paulmillr/noble-secp256k1 ) to
10
+ [ noble-curves] ( https://github.com/paulmillr/noble-curves ) ,
11
+ which changes re-exported api of ` secp256k1 ` submodule.
12
+ There have been no other changes. Check out [ Upgrading] ( #upgrading ) .
13
+
8
14
** January 2022 update:** We've released v1.0 of the package, a complete rewrite:
9
15
10
16
- ** 6x smaller:** ~ 5,000 lines of code instead of ~ 24,000 (with all deps); 650KB instead of 10.2MB
@@ -452,6 +458,8 @@ Upgrading from 1.0 to 2.0:
452
458
before, it was using [ noble-secp256k1 1.7] ( https://github.com/paulmillr/noble-secp256k1 ) ;
453
459
now it uses safer [ noble-curves] ( https://github.com/paulmillr/noble-curves ) . Please refer
454
460
to [ upgrading section from curves README] ( https://github.com/paulmillr/noble-curves#upgrading ) .
461
+ Main changes to keep in mind: a) ` sign ` now returns ` Signature ` instance
462
+ b) ` recoverPublicKey ` got moved onto a ` Signature ` instance
455
463
2 . node.js 14 and older support was dropped. Upgrade to node.js 16 or later.
456
464
457
465
Upgrading from 0.1 to 1.0: ** Same functionality** , all old APIs remain the same except for the breaking changes:
You can’t perform that action at this time.
0 commit comments