aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorNicholas Rodrigues Lordello <[email protected]>2024-09-14 18:23:28 +0200
committerNicholas Rodrigues Lordello <[email protected]>2024-09-29 09:39:02 +0200
commit2efcbfd67799537be7ebdb2d18495076b9ddcacc (patch)
tree5c85f668ed08b9dac9d8c7c2eff4af6ea8e8d1c7 /docs
parent97a35bd8aefecc502de05a7d040b8d7bbda15216 (diff)
Implemented Elliptic Curve Operations
This includes operations for all 3 curves relevant to PLONK.
Diffstat (limited to 'docs')
-rw-r--r--docs/journal/pages/torsion.md6
1 files changed, 5 insertions, 1 deletions
diff --git a/docs/journal/pages/torsion.md b/docs/journal/pages/torsion.md
index 947c85e..a439d35 100644
--- a/docs/journal/pages/torsion.md
+++ b/docs/journal/pages/torsion.md
@@ -2,7 +2,11 @@
# Torsion
-TODO
+One important gotcha for elliptic curves with a cofactor, is that it is possible to find points which satisfy the curve equation, but that are not part of the subgroup defined by the generator point (i.e., a point that cannot be expressed as `n * G` for some scalar `n` and the generator point `G`). This is referred to as "torsion".
+
+It is important to check that points are part of the main subgroup when they are constructed from coordinates, as points with torsion can be used in various attacks. The simplest way to check that a point is part of the main subgroup is to multiply it by the curve order. If the result is the point at infinity, then the point is part of the main subgroup, otherwise it is not (as the other subgroup orders are coprime with the main subgroup order; _I think_).
+
+There are more performant methods to check for subgroup membership using endomorphisms (an endomorphism in this context is a "trick"/optimization for computing very specific scalar multiplication on points - using a specific endomorphism, you can more quickly check subgroup inclusion - for more details, see links in resources). Since this is not particularly interesting in the context of PLONK, I decided no to implement this and simply use the scalar multiplication with the group order check for subgroup membership.
# Resources