bitcoinjs / tiny-secp256k1

A tiny secp256k1 native/JS wrapper
MIT License
90 stars 55 forks source link

Feature: Support CommonJS (require) semantics #63

Closed junderw closed 2 years ago

junderw commented 2 years ago

Currently v2 only supports modules. This makes it hard for people using tooling that doesn't support ESM yet.

This will allow someone to use require against this package, making tools like ts-node work while maintaining compatibility with ESM simultaneously.

junderw commented 2 years ago

......... I also add a retry counter to the endless loop (when react app was broken it would freeze up, this would prevent that and cause an error in the console instead)