mirror of
https://github.com/serai-dex/serai.git
synced 2025-12-09 04:39:24 +00:00
Fix handling of prime/composite-order curves within short-weierstrass
This commit is contained in:
@@ -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>;
|
||||
|
||||
Reference in New Issue
Block a user