Struct ed448_goldilocks::curve::montgomery::MontgomeryPoint
source · pub struct MontgomeryPoint(pub [u8; 56]);
Tuple Fields§
§0: [u8; 56]
Implementations§
source§impl MontgomeryPoint
impl MontgomeryPoint
pub fn to_edwards(&self, sign: u8) -> Option<ExtendedPoint>
sourcepub fn is_low_order(&self) -> bool
pub fn is_low_order(&self) -> bool
Returns true if the point is one of the low order points
sourcepub const fn generator() -> MontgomeryPoint
pub const fn generator() -> MontgomeryPoint
Returns the generator specified in RFC7748
pub fn to_projective(&self) -> ProjectiveMontgomeryPoint
Trait Implementations§
source§impl Clone for MontgomeryPoint
impl Clone for MontgomeryPoint
source§fn clone(&self) -> MontgomeryPoint
fn clone(&self) -> MontgomeryPoint
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl ConstantTimeEq for MontgomeryPoint
impl ConstantTimeEq for MontgomeryPoint
source§impl Debug for MontgomeryPoint
impl Debug for MontgomeryPoint
source§impl Hash for MontgomeryPoint
impl Hash for MontgomeryPoint
source§impl Mul<&MontgomeryPoint> for &Scalar
impl Mul<&MontgomeryPoint> for &Scalar
§type Output = MontgomeryPoint
type Output = MontgomeryPoint
The resulting type after applying the
*
operator.source§fn mul(self, point: &MontgomeryPoint) -> MontgomeryPoint
fn mul(self, point: &MontgomeryPoint) -> MontgomeryPoint
Performs the
*
operation. Read moresource§impl Mul<&Scalar> for &MontgomeryPoint
impl Mul<&Scalar> for &MontgomeryPoint
§type Output = MontgomeryPoint
type Output = MontgomeryPoint
The resulting type after applying the
*
operator.source§impl PartialEq<MontgomeryPoint> for MontgomeryPoint
impl PartialEq<MontgomeryPoint> for MontgomeryPoint
source§fn eq(&self, other: &MontgomeryPoint) -> bool
fn eq(&self, other: &MontgomeryPoint) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.