Fix issue with buffer concatenation while using scrypt#135
Fix issue with buffer concatenation while using scrypt#135holgerd77 merged 2 commits intoethereumjs:masterfrom
Conversation
|
👍 |
|
Hi @chaitanyapotti, thanks for the fix! Do you have got any idea why this was not caught by the If you have got an idea, could you provide a simple test case along which would have failed without your fix? Thanks! |
|
Here's a simple repro case.
Most of us use webpack for bundling and hence are facing the issue. I hope this explains the issue |
|
@chaitanyapotti Thanks, that's a great explanation! 😄 Will merge here and prepare a bugfix release during the week, eventually we will include 1-2 other things. |
|
Just to let you know: we'll finish on some investigation being done right now in #138 around failing CI tests also happened here before we will do a bugfix release. |
|
(so therefore the delay) |
While using scrypt, derivedKey is of type Uint8Array. While concatenating, Buffer checks for isBuffer and throws.!
This PR fixes that