-
Notifications
You must be signed in to change notification settings - Fork 55
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
Feature requests for BigInt #434
Comments
Thank you very much for the issue. |
Here's what
Meanwhile, if you look at the
And what exactly is this "portable" representation? So far as I can tell from here (https://gmplib.org/manual/I_002fO-of-Integers):
So, it would make some sense for |
Looks good. If you could make a PR, it would be quite welcome. Otherwise, I will return to this issue when I have a little bit more free time. |
I can't promise anything, but I'll see if I can work on it. |
I'm looking at porting some code from
java.math.BigInteger
to useBigInt
, and thus hopefully be multiplatform. Here are the missing features that would be handy:toString()
method only supports base 16.ByteArray
(you might want to offer little endian and big endian options, since who knows what other libraries might be doing; some libraries are even doing two's complement for negative numbers, but it's unclear they'll write them out that way)modInverse
(although this could be done less efficiently by usingmodPow
to the modulus minus one)BigInteger
The text was updated successfully, but these errors were encountered: