-
Notifications
You must be signed in to change notification settings - Fork 479
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
Switch to audited and fast version of sha3/keccak #673
Comments
Sounds reasonable. We should consider it. js-sha3 did not have new releases since 2018. I guess something like that does not have to be updated constantly and it has no dependencies to keep up with so it might still be fine but even then I'd expect something to happen in the repo in the last 4 years. @r0qs can you take a look at the new library when you have a moment? |
Worth noting the new lib was funded by EF https://blog.ethereum.org/2022/06/01/may-22-grantee-roundup |
Hi @paulmillr, thanks for bringing this up. Indeed it would be great to replace However, your implementation does not seem to be faster than
I haven't looked at the audits report yet, but I will do it shortly. Were all the audit findings already addressed in your implementation? |
Right - I forgot about this. This is because the loops are not unrolled for auditability. You should decide whether the performance degradation is acceptable to your use case. It's acceptable for wallets etc.
|
You're using
js-sha3
, while a better package would be https://github.com/paulmillr/noble-hashes which was audited and is utilized in https://github.com/ethereum/js-ethereum-cryptography.The text was updated successfully, but these errors were encountered: