Miss any of our Open RFC calls?Watch the recordings here! »

brave-ecdsa

0.0.3 • Public • Published

A wrapper around the ecdsa package and its dependencies.

var ElCurDSA = require('brave-ecdsa');
var sha256 = require('sha256')

var elcur = new ElCurDSA()
var pair = {}
pair.privKey = elcur.genPrivateKey();
pair.pubKey = elcur.getPublicKey(pair.privKey);
var sig = elcur.sign(sha256("World"), pair.privKey)
var valid = elcur.verify(sha256("World"), sig, pair.pubKey)
console.dir(valid)

Keywords

none

Install

npm i brave-ecdsa

DownloadsWeekly Downloads

1

Version

0.0.3

License

MIT

Last publish

Collaborators

  • avatar