-
Notifications
You must be signed in to change notification settings - Fork 148
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
Are BN.mont
and BN.red
interchangable?
#193
Comments
I faced the same issue here. As @cdetrio pointed out, In other words (if I haven't misunderstood), if modulus |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm having some issues using
BN.mont
in a project I'm working on, whereby under certain conditions it gives me different answers compared to when I useBN.red
(documentation implies they're interchangable?). For example:which outputs
<BN: 18> <BN: 1>
I don't know if this is just a documentation issue (for example maybe
BN.mont
only produces the correct answer under certain undocumented conditions?) or if this is a genuine bug. It may also be that I've completely misunderstood how this works 😜The text was updated successfully, but these errors were encountered: