Use of `BCRYPTO_FORCE_BIGINT` may silently error and fallback to JS without BigInt
Open
- Dominant language
- JavaScript
- Stars
- 102
- Forks
- 40
- PR merge metrics
- No merged PRs in 30d
Description
It may be expected that using `BCRYPTO_FORCE_BIGINT` would _always_ use `BigInt` or otherwise error. However this may not be the case, as it will fallback to use JS without `BigInt`, see: https://github.com/bcoin-org/bcrypto/blob/master/lib/bn.js
Contributor guide
No contributing guide indexed for this repository
Research direction
Start in lib/bn.js, where BCRYPTO_FORCE_BIGINT handling and the fallback behavior are located. Trace what happens when the setting is enabled without usable BigInt support; done means it consistently uses BigInt or reports an error instead of silently falling back to JavaScript without BigInt.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- cryptography
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100