bitcoinjs / bip38

BIP38 is a standard process to encrypt Bitcoin and crypto currency private keys that is less susceptible to brute force attacks thus protecting the user.
http://cryptocoinjs.com/modules/currency/bip38/
MIT License
205 stars 100 forks source link

Testnet support #34

Closed shkschneider closed 7 years ago

shkschneider commented 7 years ago

I was using bip38 to add a passphrase to my wif private key. On testnet3. Wif: cP9vgjQNxajMj5AhPQwHjywhnRkBmqVyFEJfztbWhnNqmz1GQW1f Wif (passphrase): 6PYWrxeW1MrM3v7twoJVfBSe2QR6RoFimt5eTQE9nS4mnRyKHVKLaCNqXN Turns out bitaddress.org tells me the Wif address only is valid on testnet, while the passphrase version works on mainnet and NOT on testnet. I would expect a testnet address to be valid on testnet and not on maintenant, passphrase or not.

dcousens commented 7 years ago

The BIP doesn't mention any network bytes for the encrypted form, so I think that is the fault of bitaddress.org.

shkschneider commented 7 years ago

Indeed. Thanks for the confirmation.