secp256k1-node compatible library based on @noble/secp256k1 instead of elliptic.js
The unit tests are taken from https://github.com/cryptocoinjs/secp256k1-node and modified slightly.
signatureImport
andsignatureExport
have not been implementedecdsaVerify
doesn't throw if signature can't be parsed, but returnsfalse
ecdsaRecover
throwsSignature could not be parsed
instead ofPublic key could not be recover
when given an invalid signatureprivateKeyNegate
throws when given an out of bounds private key instead of carrying on Any other discrepancy is considered a bug, and should be reported.