-
Notifications
You must be signed in to change notification settings - Fork 153
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
Do you support very large integers (256 bit)? #158
Comments
Yes. For example bn.js is used by elliptic. |
There is no limitation! 😉 In fact the whole library is optimized for elliptic curves that work with 256-bit numbers. |
Great! I'll start using this then.. I found an example that is 45 hex digits so that shows over 256 bits work. it('should accept long base-16', function () {
var num = '123456789abcdef123456789abcdef123456789abcdef';
assert.equal(new BN(num, 16).toString(16), num);
}); It might be good to put a note in the docs just so someone browsing through the libraries can be sure.. |
jcalfee
pushed a commit
to jcalfee/bn.js
that referenced
this issue
Apr 8, 2017
dcousens
pushed a commit
that referenced
this issue
Nov 30, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
No description provided.
The text was updated successfully, but these errors were encountered: