https://github.com/dashpay/dashcore-lib/blob/c3c3fe5d4110b7191953983275e71cc48d94b9e7/docs/core-concepts/crypto.md
|
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.
https://github.com/dashpay/dashcore-lib/blob/c3c3fe5d4110b7191953983275e71cc48d94b9e7/docs/core-concepts/crypto.md
dashcore-lib/lib/crypto/ecdsa.js
Lines 225 to 228 in c3c3fe5
There's no good reason to reimplement ECDSA signing in JavaScript when
@noble/curvesexists.There's also definitely no need to be using the unmaintained
ellipticpackage for itsPointclass.