Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DCR address Not Work on DCR Network #75

Open
rohitsahu21 opened this issue Dec 18, 2018 · 0 comments
Open

DCR address Not Work on DCR Network #75

rohitsahu21 opened this issue Dec 18, 2018 · 0 comments

Comments

@rohitsahu21
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant