Skip to content

use a real cryptography library #314

@dynst

Description

@dynst

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions