heat-sdk | Generate account

node v6.17.1
version: 1.0.0
endpointsharetweet
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}`)
Loading…

no comments

    sign in to comment