paulmillr / noble-curves

Audited & minimal JS implementation of elliptic curve cryptography.
https://paulmillr.com/noble
MIT License
623 stars 56 forks source link

wierstrass.ts:1086 Uncaught TypeError: Cannot convert a BigInt value to a number #27

Closed fernandolguevara closed 1 year ago

fernandolguevara commented 1 year ago

I got this errort running noble-curveson chrome

https://github.com/paulmillr/noble-curves/blob/main/src/abstract/weierstrass.ts#L1086

image
paulmillr commented 1 year ago

The weierstrass.ts has been changed since your release.

I will need original .js file that you're using and the line where it happens.

fernandolguevara commented 1 year ago

fixed with this browserslist on react!

"browserslist": {
  "production": [
    "chrome >= 67",
    "edge >= 79",
    "firefox >= 68",
    "opera >= 54",
    "safari >= 14"
  ],
  "development": [
    "last 1 chrome version",
    "last 1 firefox version",
    "last 1 safari version"
  ]
}
paulmillr commented 1 year ago

p.s. don't paste full file content in issues: it is not comfortable to scroll. instead, when files are long, link to gist.github.com