essential-eth icon indicating copy to clipboard operation
essential-eth copied to clipboard

Replace all instances of Buffer with Uint8Array

Open dawsbot opened this issue 10 months ago • 3 comments

https://sindresorhus.com/blog/goodbye-nodejs-buffer

dawsbot avatar Apr 04 '24 21:04 dawsbot

migrating from sha3 to @noble/hashes would make it easier. it's also smaller and audited

paulmillr avatar Apr 10 '24 19:04 paulmillr

migrating from sha3 to @noble/hashes would make it easier. it's also smaller and audited

I'd love some help on this @paulmillr - I pulled in @noble/hashes and tried to replace Buffer in one of the files but it seems the data-types of Uint8Array are not as flexible and I was unable to find a way around this. Would you be open to a PR to help this get started? 🙏

dawsbot avatar Apr 12 '24 18:04 dawsbot

@dawsbot what do you mean by "not as flexible"?

paulmillr avatar Apr 12 '24 19:04 paulmillr