|
|
|
|
|
by aerovistae
3111 days ago
|
|
Great guide but I run into a question almost immediately when it says "This line always intersects the elliptic curve at a 3rd point" and then subsequently "This line always intersects the elliptic curve at a 2nd point." Both of those statements seem false, since it's possible to pick points such that you get a vertical line near the left, like by putting the point on the X-axis (0 on the Y-Axis) in the second interactive example. Sure enough, doing so crashes the page. Is there just, like, limitations to where you can place the points? As in, you can place them anywhere so long as you're not creating a vertical line? |
|
(x,y) --> (x : y : 1) (x : y : z) --> (x/z, y/z)
In that case, the "vertical line" will intersect the elliptic curve at (0 : 1 : 0), which is the identity element of the group.
Tangent lines are considered to intersect the curve "twice," (EDIT: "twice" at the point where the line is tangent and one more time at a third point) which is analogous to a polynomial equation having a double root. There is also a triple intersection case (EDIT: "triple" at a single point, all lines intersect the curve three times), which is possible at (0 : 1 : 0).
I'll leave it to the "reader" to work out the group law in projective coordinates based on the conversions given above. One neat trick: you can avoid inversions in the field by using projective coordinates and cleverly using the Z coordinate; this is a common optimization used in practice.