Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
gh-35799: test whether point is actually on the curve when evaluating…
… elliptic-curve isomorphism In Sage 10.0: ```sage sage: E = EllipticCurve(GF(101), [1,1]) sage: f = E.automorphisms()[0] sage: EE = EllipticCurve(GF(101), [5,5]) sage: P = EE.lift_x(2) sage: P in f.domain() False sage: f(P) (2 : 15 : 1) sage: f(P) in f.codomain() True sage: f.codomain().defining_polynomial()(*f(P)) 12 ``` Sage will happily "evaluate" a `WeierstrassIsomorphism` on just about any `EllipticCurvePoint`, even a point which explicitly lies on a *different* curve. This simple patch adds a check to remove this footgun. URL: #35799 Reported by: Lorenz Panny Reviewer(s): Kwankyu Lee
- Loading branch information