-
Notifications
You must be signed in to change notification settings - Fork 5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
update scrypt shim using maxmem fix from node >= 12.8 #3284
Comments
The situation is a little weirder than that. For Node It turns out that the maxmem thing won't prevent a blow-up with some scrypt parameters that are found e.g. in go-ethereum's (geth) and web3's test suites. That's because golang's scrypt isn't compliant with the RFC for scrypt whlie Node's is: golang/go#33703 So, if someone using Node wanted to be able to process the exact same set of scrypt parameters that's possible with golang (e.g. with geth) then they'd either need to use a non-compliant pure JS implementation or the old scrypt package (and in the latter case they'd need to be using Node One thing that web3 should probably do is remove its wallet test cases that have the non-compliant parameters. |
@michaelsbradleyjr for path of least resistance there already is code that is around when maxmem is fixed (12.8), so I suggested to use that just uncomment and set the variable to 12.8. I didn't know tests still broke, so is 53 bits not enough for all cases or is it a bad test? |
You've misunderstood. Please follow the trail of links I included in my last comment, they're ordered with respect to the dates I posted those issues, newest at the top. While the maxmem bump is a nice feature, it's ultimately a red herring. |
For tests to pass on this project's |
thx what a mess. Hopefully we can get it back on track and remove the dependency, ultimately that is my goal. |
Believe this was resolved by #3536. Please ping if that's not the case. |
referencing web3-js/scrypt-shim#3 can we update scrypt-shim so that it uses maxmem fallback (built-in scrypt) starting from node >= 12.8?
The text was updated successfully, but these errors were encountered: