This project is for secp256r1 EC operations. The original version is forked from https://github.com/cryptocoinjs/secp256k1-node
secp256r1-node
Installation
npm i secp256r1
Usage
const randomBytes = const secp256r1 = // or require('secp256r1/elliptic')// if you want to use pure js implementation in node // generate message to signconst msg = // generate privKeylet privKeydo privKey = while !secp256r1 // get the public key in a compressed formatconst pubKey = secp256r1 // sign the messageconst sigObj = secp256r1 // verify the signatureconsole// => true
LICENSE
This library is free and open-source software released under the MIT license.