Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate away from BigInteger.js to either BigInt or JSBI polyfill #17

Open
plcp opened this issue Dec 17, 2018 · 0 comments
Open

Migrate away from BigInteger.js to either BigInt or JSBI polyfill #17

plcp opened this issue Dec 17, 2018 · 0 comments
Labels
enhancement New feature or request
Milestone

Comments

@plcp
Copy link
Collaborator

plcp commented Dec 17, 2018

We have #16 scheduled to be merged that introduce consensus signature verification, and thus a need to do some nice RSA ourselves. This requires to handle big integers in Javascript, a feature exposed through the BigInt API... only available to few browsers and not even supported (yet) by Firefox. We thus need a third-party provided polyfill.

The current one in use by #16 is BigInteger.js, seems to be well maintained and even though by its author for some cryptographic applications.

However, I think it'll be sensible at some point to migrate away from this library to either use a native BigInt-based implementation… but as it may take some time to be widely supported, I'll recommend the GoogleChromeLabs polyfill (or jsbi) that is purposely written to ease the migration towards BigInt.

Note that this also can provide a more stable third-party to rely upon until we can avoid using one.

@plcp plcp added the enhancement New feature or request label Dec 17, 2018
@plcp plcp added this to the far future milestone Dec 17, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant