ethereumjs / keythereum

Create, import and export Ethereum keys
MIT License
609 stars 163 forks source link

Initialize scrypt every time #34

Closed fanatid closed 7 years ago

fanatid commented 7 years ago

Should we initialize scrypt every time? Not sure.

tinybike commented 7 years ago

IIRC it actually throws an asm.js error if you try to initialize it twice -- it can't resize the array after it's been initialized. If there's a way to make this work, I think re-initializing scrypt could make sense, so you could initialize it with a different memory size.