-
Notifications
You must be signed in to change notification settings - Fork 12
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 NOT MERGE chore: Refactor #27
Conversation
Looks like nightly is happy, but 0.34.0 isn't. Will investigate. |
6ce725d
to
523f2e6
Compare
If approved, I'll do the README |
See here for a |
src/bignum.nr
Outdated
let maybe_limbs = unsafe { | ||
__tonelli_shanks_sqrt(params, self.limbs) | ||
}; | ||
let result: std::option::Option<Self> = if maybe_limbs.is_some() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This could be done with .map
@TomAFrench check out the strangeness of my latest commit diff: 3361102 The test of Anyway, it seems that calling |
Sorry I'm on a plane 🤷 Will take a look when I'm able but it probably won't be for a while (i.e. couple of days) |
Description
I spent a bit of time refactoring BigNum into what I hope is an easier-to-follow design.
I haven't touched any of the mathematics; just moved functions around.
Things I sought to improve:
Anyway, all the tests pass, wooh!
Lmk what you think. :)