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

Doesn't seem to work #3

Closed jorilallo closed 10 years ago

jorilallo commented 10 years ago

I tried running BIP38 encryption to few test keys but I can't get it to work. On Node side it just times out and on browser (Chrome 35) it throws an error:

Error: Trying to read beyond buffer length
at assert (http://0.0.0.0:3000/assets/bip38/bip38.bundle.js?body=1:3943:20)
at readUInt32 (http://0.0.0.0:3000/assets/bip38/bip38.bundle.js?body=1:3351:5)
at Uint8Array.Buffer.readUInt32BE (http://0.0.0.0:3000/assets/bip38/bip38.bundle.js?body=1:3384:10)
jprichardson commented 10 years ago

Can you provide any test key / code to reproduce the error? I use it in production and you can see use cases here: https://github.com/cryptocoinjs/bip38/blob/master/test/bip38.test.js. Any code would be very helpful.

jorilallo commented 10 years ago

Sorry, nevermind. It seems I was testing with an faulty address which caused the issues.