We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I did
let red10 = BN.mont(new BN(10, 10)); let red_1 = new BN(104, 10).toRed(red10); red_1 = red_1.fromRed(); console.log("red_1: " + red_1.toString());
This outputs
red_1: 2
Which is incorrect. It should output red_1: 4 (since 104 mod 10 = 4). I do get the correct if I use BN.red instead if BN.mont
red_1: 4
BN.red
BN.mont
The text was updated successfully, but these errors were encountered:
Nevermind I read #193 but perhaps we could get some better documentation about this?
Sorry, something went wrong.
No branches or pull requests
I did
This outputs
Which is incorrect. It should output
red_1: 4
(since 104 mod 10 = 4). I do get the correct if I useBN.red
instead ifBN.mont
The text was updated successfully, but these errors were encountered: