tendermint-keys

2.0.2 • Public • Published

tendermint-crypto

JS equivalent of Tendermint's go-crypto package.

usage

npm install tendermint-crypto
let { PrivKey, PubKey } = require('tendermint-crypto')

// generate a keypair
let priv = PrivKey.generate('ed25519')
let pub = priv.pubkey()

let message = 'message to sign'
let sig = priv.sign(message) 
let isValid = pub.verify(sig, message) // true

Readme

Keywords

none

Package Sidebar

Install

npm i tendermint-keys

Weekly Downloads

0

Version

2.0.2

License

MIT

Last publish

Collaborators

  • kep