You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We rely heavily on big numbers and are discussing switching to a library that polyfills to native BigInts, and that's how I found your great library.
Internally we mostly use big endian representation and If I'm not mistaken the toArray (and fromArray) methods work with little endian representation. I was wondering if you'd consider adding a flag for this to the relevant methods (or would accept a PR doing this).
Thanks
The text was updated successfully, but these errors were encountered:
Wouldn't it be pretty simple to just call .reverse() on the arrays? IMHO that would be a more readable way to change the order than passing in an extra boolean argument to the toArray/fromArray functions.
Also, toArray and fromArray are already big-endian, i.e. the most significant digit is the first element in the array.
Hello,
We rely heavily on big numbers and are discussing switching to a library that polyfills to native BigInts, and that's how I found your great library.
Internally we mostly use big endian representation and If I'm not mistaken the
toArray
(andfromArray
) methods work with little endian representation. I was wondering if you'd consider adding a flag for this to the relevant methods (or would accept a PR doing this).Thanks
The text was updated successfully, but these errors were encountered: