MetaMask / MetaMask/eth-sig-util
der.ts:6 Uncaught ReferenceError: Buffer is not defined
- Dominant language
- TypeScript
- Stars
- 583
- Forks
- 228
- Avg merge
- 11h 22m
- Merged PRs (30d)
- 7
Description
I am facing this issue when i used
`import {
encrypt
} from '@metamask/eth-sig-util';`
i am facing this error
i have also tried
`import {Buffer} from 'buffer'`;
Can someone please guide me here?

`
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reproducing the reported `Buffer is not defined` error from the `@metamask/eth-sig-util` import and inspect `der.ts:6`. Check the consumer environment and package compatibility, then define done as importing and using `encrypt` without the runtime error in the affected setup.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- cryptography
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100