Fastest 4KB JS implementation of secp256k1 signatures and ECDH
Hello. I would like to make a suggestion that I use for cross-compatibility between NodeJs and browser. Using node crypto library without a bundler causes dependency problems for packages down-stream since they have to poly-fill for the node crypto API. Nodejs offers a WebCrypto standard API that you can use like so: ```ts import { webcrypto as crypto } from 'node:crypto' ``` However some bundlers still have issues with this (mainly rollup), so there is a cross-platform solution supported by nodejs by using `globalThis`: ```ts const { crypto } = globalThis ``` This solution should work in both Node and the browser, without any package imports or requiring any polyfills. I make this humble suggestion as I try to keep my dependencies minimal and stay away from polyfill packages which introduce their own problems. I hope this suggestion is helpful. Thank you for providing a wonderful library.
This issue appears to be discussing a feature request or bug report related to the repository. Based on the content, it seems to be resolved. The issue was opened by cmdruid and has received 2 comments.