paulmillr / noble-secp256k1

Fastest 4KB JS implementation of secp256k1 signatures and ECDH
https://paulmillr.com/noble
MIT License
757 stars 114 forks source link

Add browser cjs support, for webworker or Cloudflare workers. #78

Closed aazf closed 1 year ago

aazf commented 1 year ago

This is patch for fix https://github.com/paulmillr/noble-secp256k1/issues/77

paulmillr commented 1 year ago

This PR would need a test in the following environments:

  1. Deno
  2. Node.js (ESM)
  3. Node.js (Common.js)
  4. New package that's using secp and is being built with Webpack
  5. 4, but with Rollup
  6. 4, with browserify
  7. Standalone in-browser version
  8. React Native
aazf commented 1 year ago

This PR only add import target browser for Common.js, So i think it's same the origin lib for other platform.

paulmillr commented 1 year ago

will be solved by gh-86