Fix handling of prime/composite-order curves within short-weierstrass

This commit is contained in:
Luke Parker
2025-08-28 22:31:33 -04:00
parent da190759a9
commit 45bd376c08
4 changed files with 25 additions and 11 deletions

View File

@@ -67,6 +67,10 @@ impl ShortWeierstrass for Embedwards25519 {
(repr, odd_y)
}
// No points have a torsion element as this a prime-order curve
fn has_torsion_element(_point: Projective<Self>) -> Choice {
0.into()
}
}
pub type Point = Projective<Embedwards25519>;