ethereumjs / keythereum

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

Set scrypt memory in recover function #18

Closed jbaylina closed 7 years ago

jbaylina commented 7 years ago

Trying to recover a key with kdfparams.n = 262144 in node goes out of memory.

Error:

Cannot enlarge memory arrays in asm.js. Either (1) compile with -s TOTAL_MEMORY=X with X higher than the current value, or (2) set Module.TOTAL_MEMORY before the program runs.

This PR fix this.

tinybike commented 7 years ago

Good catch, thanks!