-
Notifications
You must be signed in to change notification settings - Fork 256
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
Pseduo-remove MapToCurve::new, renamed to check_parameters #627
Conversation
MapToCurve::new seemingly originates from a more runtime oriented elliptic curve crate: https://github.com/armfazh/redox-ecc/blob/master/src/ellipticcurve.rs#L36 Arguably test_parameters should be inherent methods, invoked by whoever defined the parameters, but maybe not? I left the trait method for now.
Co-authored-by: Pratyush Mishra <[email protected]>
Co-authored-by: Pratyush Mishra <[email protected]>
Co-authored-by: Pratyush Mishra <[email protected]>
Co-authored-by: Pratyush Mishra <[email protected]>
rustfmt is wrong that f()? should be preferred over f() ?, as errors paths should often be highlighted, but nobody merged that fix yet, so whatever. rust-lang/rustfmt#5595
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.
Looks good. @burdges Can you merge latest arkworks master into your branch pls? I can't do it since the PR came from an org
Appears @weikengchen did so, no idea how these rules all work. Just fyi, I've a larger successor master...w3f:arkworks-algebra:xof_h2c approaching readiness, which answers #629 and #630. |
Seems that the previous merge introduced some conflicts. Maybe that's a good chance for @burdges to add a line to the CHANGELOG :) |
I have one question @burdges: the current approach ensures that one can't construct an invalid map and use it, while the new code allow using an invalid mapping. Do you think there's an easy way to preserve the old behaviour? |
It could be invoked behind I sucked this up into #643 too. I could not parse @mmagician comment but likely it's done there too. |
I'll close this in favor of #679 which is basically identical, but permits edits by maintainers |
Description
MapToCurve::new seemingly originates from a more runtime oriented elliptic curve crate: https://github.com/armfazh/redox-ecc/blob/master/src/ellipticcurve.rs#L36
Arguably test_parameters should be inherent methods, invoked by whoever defined the parameters, but maybe not? I left the trait method for now. I suspect the hash-to-curve code would benefit form a wider more idiomatic rewrite btw.
Before we can merge this PR, please make sure that all the following items have been
checked off. If any of the checklist items are not applicable, please leave them but
write a little note why.
Pending
section inCHANGELOG.md
Files changed
in the GitHub PR explorer