-
Notifications
You must be signed in to change notification settings - Fork 198
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
k256: add impl of ReduceNonZero<U256>
for Scalar
#501
Conversation
It's
That'd be nice 😉 |
reduce_impl(true) of `MODULUS-1` returned `MODULUS-1` instead of 0
Fixed. Also it's a good thing you asked me to add tests... |
Thank you! |
Btw, are you planning on making a release of |
Sure, I can cut a release |
In case you didn't see, I cut Another |
Thanks, appreciate it! |
ReduceNonZero<U256>
forScalar
WideScalar::reduce_nonzero()
(a zero value returned when reducingMODULUS-1
)Very embarrassing for me, but at least chances of someone hitting it were astronomically small, and if they did, it most probably resulted in a panic during inversion or something of the sort.