knox-module-signaturemanager
v1.0.1
Published
Signs and verifies data packages for the KNOX crypto asset management platform.
Downloads
2
Readme
Overview
Signs and verifies data packages for the KNOX crypto asset management platform.
Usage
const signatureManager = require('signatureManager')
let privKey = "[PrivKey]"
let pubKey = "[PubKey]"
let data = "Test Data"
let payload = await signatureManager.sign(privKey,data)
let verified = await signatureManager.verify(pubKey,payload.data,payload.signature)
if ( verified ) {
console.log("Valid")
} else {
console.log("Invalid")
}