Skip to content

JS equivalent of Tendermint"s go-crypto package

Notifications You must be signed in to change notification settings

mappum/js-crypto

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

JS equivalent of Tendermint"s go-crypto package

Resources

Stars

Watchers

Forks

Packages

No packages published