forked from bitpay/bitcore-lib
-
Notifications
You must be signed in to change notification settings - Fork 109
Open
Labels
Description
dashcore-lib/lib/crypto/ecdsa.js
Lines 225 to 228 in c3c3fe5
| ECDSA.prototype._findSignature = function (d, e) { | |
| var N = Point.getN(); | |
| var G = Point.getG(); | |
| // try different values of k until r, s are valid |
There's no good reason to reimplement ECDSA signing in JavaScript when @noble/curves exists.
There's also definitely no need to be using the unmaintained elliptic package for its Point class.