forge
forge copied to clipboard
Replace bundled jsbn by the `jsbn` npm package
This change makes it possible to interoperate forge's BigIntegers
with other jsbn users. Previously this was not possible, due to a
differently data layout introduced in digitalbazaar/forge#19.
See also: DefinitelyTyped/DefinitelyTyped#37012 DefinitelyTyped/DefinitelyTyped#33931
- I have verified that the tests pass in node.js and within Google Chrome.
- I do realize that this is a breaking change for anyone poking around in the internals of JSBN (the
dataarray is gone). - I do realize that this is the first external dependency.
- I propose this PR nonetheless to be able to discuss whether something like this is wanted.