-
Notifications
You must be signed in to change notification settings - Fork 16
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
Bitcoin testnet is 6F, not 6E #4
Comments
Eeeks! Thanks for reporting! Fortunately I got it correct here: https://github.com/cryptocoinjs/coininfo/blob/master/lib/coins/btc.js#L62 I'll leave this open as a note to correct. |
This was fixed, close? |
It was just a documentation error. I left this open to remind me to update the docs. |
Hi! Have problem with validation testnet address with this script:
This site (testnet faucet) say what address not valid --> |
@goshva In the future, please open a new issue in the proper module. Also, sorry, I see that you referenced the docs, which are incorrect (http://cryptocoinjs.com/guide/getting-started/) To answer your question: var CoinKey = require('coinkey')
var ci = require('coininfo')
var ck = CoinKey.createRandom(ci('BTC-TEST'))
console.log('Private Key (Wallet Import Format): ' + ck.privateWif)
console.log('Private Key (Hex): ' + ck.privateKey.toString('hex'))
console.log('Testnet Address: ' + ck.publicAddress) |
http://cryptocoinjs.com/modules/currency/coinstring/#list-of-common-crypto-currency-versions
It says that testnet is version 0x6E, but it's actually 0x6F, or 111.
The text was updated successfully, but these errors were encountered: