-
Notifications
You must be signed in to change notification settings - Fork 42
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
Use utils from ethereum-cryptography package #558
Comments
Thanks @prichodko. Could you please clarify the gain of using implementations from |
Current implementation indirectly forces users to depend on a Buffer polyfill and essentially adds 2000 lines / 26kB of code. The proposed solution suggests only using what is needed for the package to work. The ethereum-cryptography package seems to be tree-shakeable, therefore allowing bundlers to pull only the imported code and not the whole package. However, there may be other parts depending on the |
Do you know, if any |
This will be answered as part of #527
I think you are referring to I guess we had a race condition between you investigating and me changing the code :). |
As a part of the process of migrating from Node builtins, I would move to use utilities, like
hexToBytes
,bytesToHex
from the ethereum-cryptography package.As you can see in the implementation, they don't rely on the
Buffer
builtin.The text was updated successfully, but these errors were encountered: