-
Notifications
You must be signed in to change notification settings - Fork 245
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
Remove ATE_LOOP_COUNT_IS_NEGATIVE
from BN curve parameter trait
#285
Conversation
Let's remove it; I doubt anybody except |
ATE_LOOP_COUNT_IS_NEGATIVE
from BN curve parameter trait
This PR is better merged right before the next release because merging this PR would cause all tests against curves to be "canceled" and may affect development. Added the |
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.
Untested ACK
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.
LGTM
(Convert it into the draft to avoid accidental merging) |
Description
In #275, Daira pointed out that the current BN parameter trait, which requires
X_IS_NEGATIVE
andATE_LOOP_COUNT_IS_NEGATIVE
, can be improved.Because for BN curves, the ate loop count is 6x+2, so
ATE_LOOP_COUNT_IS_NEGATIVE == X_IS_NEGATIVE
always hold.Therefore, we may want to keep only one of them. It seems easier to remove
ATE_LOOP_COUNT_IS_NEGATIVE
. This PR makes this change.To avoid breaking, this PR does not delete
ATE_LOOP_COUNT_IS_NEGATIVE
but adds a default implementation:This is to avoid breaking
ark-curves
. Any thoughts? Should we remove it directly and add a pending PR forark-curves
? I will wait for people's opinions on this and then decide what changelog entry to add ("improvement" or "breaking").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 explorerN/A: