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

api change #23

Closed marijnfs closed 7 years ago

marijnfs commented 7 years ago

My code stopped working, did the API change? Could you make clear how to use the library now?

I get:

var bip38 = new Bip38()
            ^

TypeError: Bip38 is not a function

jprichardson commented 7 years ago

Yes. If you want to retain compatibility with your code, you can continue to use 1.x. 2.x changed. See https://github.com/bitcoinjs/bip38#api If you have anymore questions, feel free to ask us.