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
Source§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
Source§type Output = MontgomeryPoint
type Output = MontgomeryPoint
The resulting type after applying the
*
operator.Source§impl PartialEq for MontgomeryPoint
impl PartialEq for MontgomeryPoint
impl Copy for MontgomeryPoint
impl Eq for MontgomeryPoint
Auto Trait Implementations§
impl Freeze for MontgomeryPoint
impl RefUnwindSafe for MontgomeryPoint
impl Send for MontgomeryPoint
impl Sync for MontgomeryPoint
impl Unpin for MontgomeryPoint
impl UnwindSafe for MontgomeryPoint
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