pub struct Isogeny<C: WeierstrassCurve> {
pub domain: C,
pub codomain: C,
pub r: RationalMap<C::F>,
pub g: RationalMap<C::F>,
pub h: RationalMap<C::F>,
}Expand description
Defines an isogeny between curves: ϕ(x, y) = (r(x), g(x) + h(x) * y)
Fields§
§domain: C§codomain: C§r: RationalMap<C::F>§g: RationalMap<C::F>§h: RationalMap<C::F>Implementations§
Source§impl<C: WeierstrassCurve> Isogeny<C>
impl<C: WeierstrassCurve> Isogeny<C>
Sourcepub fn new(
domain: C,
codomain: C,
r: RationalMap<C::F>,
g: RationalMap<C::F>,
h: RationalMap<C::F>,
) -> Self
pub fn new( domain: C, codomain: C, r: RationalMap<C::F>, g: RationalMap<C::F>, h: RationalMap<C::F>, ) -> Self
Isogeny ϕ(x, y) = (r(x), g(x) + h(x) * y)
pub fn map(&self, p: &Point<C>) -> Point<C>
Trait Implementations§
Source§impl<C: WeierstrassCurve> CanonicalDeserialize for Isogeny<C>
impl<C: WeierstrassCurve> CanonicalDeserialize for Isogeny<C>
Source§fn deserialize_with_mode<R: Read>(
reader: R,
compress: Compress,
validate: Validate,
) -> Result<Self, SerializationError>
fn deserialize_with_mode<R: Read>( reader: R, compress: Compress, validate: Validate, ) -> Result<Self, SerializationError>
The general deserialize method that takes in customization flags.
fn deserialize_compressed<R>(reader: R) -> Result<Self, SerializationError>where
R: Read,
fn deserialize_compressed_unchecked<R>(
reader: R,
) -> Result<Self, SerializationError>where
R: Read,
fn deserialize_uncompressed<R>(reader: R) -> Result<Self, SerializationError>where
R: Read,
fn deserialize_uncompressed_unchecked<R>(
reader: R,
) -> Result<Self, SerializationError>where
R: Read,
Source§impl<C: WeierstrassCurve> CanonicalSerialize for Isogeny<C>
impl<C: WeierstrassCurve> CanonicalSerialize for Isogeny<C>
Source§fn serialize_with_mode<W: Write>(
&self,
writer: W,
compress: Compress,
) -> Result<(), SerializationError>
fn serialize_with_mode<W: Write>( &self, writer: W, compress: Compress, ) -> Result<(), SerializationError>
The general serialize method that takes in customization flags.
fn serialized_size(&self, compress: Compress) -> usize
fn serialize_compressed<W>(&self, writer: W) -> Result<(), SerializationError>where
W: Write,
fn compressed_size(&self) -> usize
fn serialize_uncompressed<W>(&self, writer: W) -> Result<(), SerializationError>where
W: Write,
fn uncompressed_size(&self) -> usize
Source§impl<C: WeierstrassCurve> Valid for Isogeny<C>
impl<C: WeierstrassCurve> Valid for Isogeny<C>
fn check(&self) -> Result<(), SerializationError>
fn batch_check<'a>(
batch: impl Iterator<Item = &'a Self> + Send,
) -> Result<(), SerializationError>where
Self: 'a,
Auto Trait Implementations§
impl<C> Freeze for Isogeny<C>where
C: Freeze,
impl<C> RefUnwindSafe for Isogeny<C>
impl<C> Send for Isogeny<C>where
C: Send,
impl<C> Sync for Isogeny<C>
impl<C> Unpin for Isogeny<C>
impl<C> UnwindSafe for Isogeny<C>
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