Skip to content
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

add multiple= option to EllipticCurvePoint_field.set_order() #35935

Merged
merged 1 commit into from
Aug 13, 2023

Conversation

yyyyx4
Copy link
Member

@yyyyx4 yyyyx4 commented Jul 12, 2023

Calling order_from_multiple() followed by .set_order() on elliptic-curve points is a common pattern in algorithms for elliptic curves over finite fields (for instance, this is part of a simple algorithm for sampling points of specified order). This patch adds a shorthand for the combination, allowing us to write P.set_order(multiple=m) instead.

@yyyyx4 yyyyx4 force-pushed the public/set_order_from_multiple branch from 0ce0a02 to 3e97ff9 Compare July 15, 2023 14:34
@github-actions
Copy link

Documentation preview for this PR (built with commit 3e97ff9; changes) is ready! 🎉

Copy link
Member

@JohnCremona JohnCremona left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a useful enhancement, and code looks good to me.

vbraun pushed a commit to vbraun/sage that referenced this pull request Aug 11, 2023
…t_order()

    
Calling `order_from_multiple()` followed by `.set_order()` on elliptic-
curve points is a common pattern in algorithms for elliptic curves over
finite fields (for instance, this is part of a simple algorithm for
sampling points of specified order). This patch adds a shorthand for the
combination, allowing us to write `P.set_order(multiple=m)` instead.
    
URL: sagemath#35935
Reported by: Lorenz Panny
Reviewer(s): John Cremona
@vbraun vbraun merged commit de15e88 into sagemath:develop Aug 13, 2023
@mkoeppe mkoeppe added this to the sage-10.1 milestone Aug 13, 2023
@yyyyx4 yyyyx4 deleted the public/set_order_from_multiple branch September 4, 2023 07:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants