pub struct Isogeny {
pub source: String,
pub target: String,
pub degree: u64,
}Expand description
An isogeny φ: E → E’ (group homomorphism with finite kernel).
Fields§
§source: StringSource elliptic curve.
target: StringTarget elliptic curve.
degree: u64Degree of the isogeny (= |ker φ|).
Implementations§
Source§impl Isogeny
impl Isogeny
Sourcepub fn new(
source: impl Into<String>,
target: impl Into<String>,
degree: u64,
) -> Self
pub fn new( source: impl Into<String>, target: impl Into<String>, degree: u64, ) -> Self
Create an isogeny of the given degree.
Sourcepub fn multiplication_by_n(curve: impl Into<String>, n: u64) -> Self
pub fn multiplication_by_n(curve: impl Into<String>, n: u64) -> Self
The multiplication-by-n map [n]: E → E (isogeny of degree n²).
Sourcepub fn is_endomorphism(&self) -> bool
pub fn is_endomorphism(&self) -> bool
Whether this is an endomorphism (source = target).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Isogeny
impl RefUnwindSafe for Isogeny
impl Send for Isogeny
impl Sync for Isogeny
impl Unpin for Isogeny
impl UnsafeUnpin for Isogeny
impl UnwindSafe for Isogeny
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more