-
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
little-endian constructor ignoring important zeroes #208
Comments
Same here:
Expected: 256 |
Hi, @indutny current version of bn.js completely ignores leading zeroes in
Example of incorrect multiplication: const ec = new EdDSA('ed25519');
const k = ec.decodeInt('0000000000000000000000000000000000000000000000000000000000000001');
const K = elliptic.utils.encode(ec.encodePoint(ec.g.mul(k), 'hex')); |
I'll look into this shortly. |
I'm looking forward to have |
Released in 5.2.0 |
I think https://github.com/indutny/elliptic should be updated to latest bn.js. |
Ah, I'll release 4.12.0 tomorrow for elliptic. Thanks that pointed on this! |
4.12.0 is published. |
I noticed that constructor is ignoring important zeroes on little-endian constructor.
Example:
The text was updated successfully, but these errors were encountered: