Buffer.from needs a hexadecimal string with an even length. If the length is odd it does not consider the first byte. This PR ensures the length is always even.
Additionally, it removes "be" occurrences from functions without "le"/"be" alternatives.
Related Issue(s)
Fixes #204
Checklist
[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my code
[x] I have commented my code, particularly in hard-to-understand areas
[x] I have made corresponding changes to the documentation
[x] My changes generate no new warnings
[x] I have run yarn prettier and yarn lint without getting any errors
[x] I have added tests that prove my fix is effective or that my feature works
[x] New and existing unit tests pass locally with my changes
[x] Any dependent changes have been merged and published in downstream modules
Description
Buffer.from
needs a hexadecimal string with an even length. If the length is odd it does not consider the first byte. This PR ensures the length is always even.Additionally, it removes "be" occurrences from functions without "le"/"be" alternatives.
Related Issue(s)
Fixes #204
Checklist
yarn prettier
andyarn lint
without getting any errors