monorepo: upgrade ethereum-crypography and reduce reliance on it#4030
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
…s://github.com/ethereumjs/ethereumjs-monorepo into monorepo/reduce-reliance-ethereum-cryptography
…iance-ethereum-cryptography
@gabrocheleau what's up with that methods?
All of them are present in either noble-hashes or noble-curves. hexToBytes in E-C is a wrapper around hashes hexToBytes which adds 0x prefix. curves have constant-time equalsBytes which may be slightly less performant but it's still ok. |
Indeed, the wrapper-related logic is minimal, but we would still need to rewrite these wrappers (if we need them) in our library, which we felt was a bit too "last-minute" for the imminent release. Not saying we won't do it, just out of scope for this release. Also have to evaluate impact on bundle-size |



This PR:
I was evaluated the possibility of fully removing reliance on ethereum-cryptography, but this would require re-writing some helpers or wrapper functions (e.g. randomBytes, utf8ToBytes, byteToUtf8, equalsBytes and some others). We can consider doing that eventually if we feel strongly about it.
This PR still allows us to remove the ethereum-cryptography direct dependencies from several packages.