heat-sdk | Generate account
var {HeatSDK} = require("heat-sdk")
var sdk = new HeatSDK()
var secret = sdk.secretGenerator.generate()
var publickey = sdk.crypto.secretPhraseToPublicKey(secret)
var account = sdk.crypto.getAccountIdFromPublicKey(publickey)
console.log(`Secret = ${secret}`)
console.log(`Public Key = ${publickey}`)
console.log(`Account = ${account}`)
no comments