bitcore icon indicating copy to clipboard operation
bitcore copied to clipboard

Refactor libs' BN and Point away from monkey patches

Open kajoseph opened this issue 11 months ago • 0 comments

The monkey patches and prototype overrides in the libs' crypto/bn.js and crypto/point.js cause issues when trying to use the underlying libraries elsewhere in projects.

These need to be refactored to at least use ES2015+ class-based inheritance as opposed to prototype overrides. Ideally, we could get rid of the dependence on BN.js and elliptic's Point altogether.

kajoseph avatar Apr 03 '25 16:04 kajoseph