-
Notifications
You must be signed in to change notification settings - Fork 112
Open
Description
var CoinKey = require('coinkey')
var coinInfo = require('coininfo')
var dogeInfo = coinInfo('DCR').versions
var ck = new CoinKey.createRandom(dogeInfo)
console.log("Private Key (Wallet Import Format): " + ck.privateWif)
console.log("Private Key (Hex): " + ck.privateKey.toString('hex'))
console.log("Address: " + ck.publicAddress)
Output:-
Private Key (Wallet Import Format): ZxxiXGjKJBAxEh9vpBZ2SwMJhm5J5JhcXxMzYjtojdwxyazdV49u
Private Key (Hex): d7ed60e565102f9d73776af5d2208146921d4f9eee040c5cb7a401d0e83b8579
Address: DsaqXkswRUd8xhBoMCo3q8udMji2dbGcCjF
This address not valid on DCR network
https://mainnet.decred.org/address/DsaqXkswRUd8xhBoMCo3q8udMji2dbGcCjF
Metadata
Metadata
Assignees
Labels
No labels