solanas
v0.0.7
Published
``` npm i solanas ```
Readme
solanas
npm i solanasUsage
const solanas = require('solanas')
const keyPairSafe = await Solanas.create()
// => { publicKey, secureKey }
const keyPair = await Solanas.open(keyPairSafe.secureKey)
// => { publicKey, secretKey, unprotect(), protect(), destroy() }
keyPair.unprotect()
// E.g. sign something with keyPair.secretKey
const signature = crypto.sign(message, keyPair.secretKey)
keyPair.protect()
// This crashes the process
keyPair.secretKey[0]
// => [1] 1450 bus error node app.jsLicense
MIT
