pub struct AffinePoint {
pub(super) x: FieldElement51,
pub(super) y: FieldElement51,
}Expand description
Affine Edwards point on untwisted curve.
Fields§
§x: FieldElement51§y: FieldElement51Implementations§
Source§impl AffinePoint
impl AffinePoint
Sourcepub fn to_edwards(self) -> EdwardsPoint
pub fn to_edwards(self) -> EdwardsPoint
Convert to extended coordinates.
Sourcepub fn compress(self) -> CompressedEdwardsY
pub fn compress(self) -> CompressedEdwardsY
Compress affine Edwards coordinates into CompressedEdwardsY format.
Trait Implementations§
Source§impl Clone for AffinePoint
impl Clone for AffinePoint
Source§fn clone(&self) -> AffinePoint
fn clone(&self) -> AffinePoint
Returns a duplicate 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 ConditionallySelectable for AffinePoint
impl ConditionallySelectable for AffinePoint
Source§fn conditional_select(a: &Self, b: &Self, choice: Choice) -> Self
fn conditional_select(a: &Self, b: &Self, choice: Choice) -> Self
Source§fn conditional_assign(&mut self, other: &Self, choice: Choice)
fn conditional_assign(&mut self, other: &Self, choice: Choice)
Source§fn conditional_swap(a: &mut Self, b: &mut Self, choice: Choice)
fn conditional_swap(a: &mut Self, b: &mut Self, choice: Choice)
Conditionally swap
self and other if choice == 1; otherwise,
reassign both unto themselves. Read moreSource§impl ConstantTimeEq for AffinePoint
impl ConstantTimeEq for AffinePoint
Source§impl Debug for AffinePoint
impl Debug for AffinePoint
Source§impl Default for AffinePoint
impl Default for AffinePoint
Source§fn default() -> AffinePoint
fn default() -> AffinePoint
Returns the “default value” for a type. Read more
Source§impl Identity for AffinePoint
impl Identity for AffinePoint
Source§fn identity() -> AffinePoint
fn identity() -> AffinePoint
Returns the identity element of the curve.
Can be used as a constructor.
Source§impl Mul<&AffinePoint> for Scalar
impl Mul<&AffinePoint> for Scalar
Source§type Output = EdwardsPoint
type Output = EdwardsPoint
The resulting type after applying the
* operator.Source§fn mul(self, rhs: &AffinePoint) -> EdwardsPoint
fn mul(self, rhs: &AffinePoint) -> EdwardsPoint
Performs the
* operation. Read moreSource§impl Mul<AffinePoint> for Scalar
impl Mul<AffinePoint> for Scalar
Source§type Output = EdwardsPoint
type Output = EdwardsPoint
The resulting type after applying the
* operator.Source§fn mul(self, rhs: AffinePoint) -> EdwardsPoint
fn mul(self, rhs: AffinePoint) -> EdwardsPoint
Performs the
* operation. Read moreSource§impl PartialEq for AffinePoint
impl PartialEq for AffinePoint
impl Copy for AffinePoint
impl DefaultIsZeroes for AffinePoint
Available on crate feature
zeroize only.impl Eq for AffinePoint
Auto Trait Implementations§
impl Freeze for AffinePoint
impl RefUnwindSafe for AffinePoint
impl Send for AffinePoint
impl Sync for AffinePoint
impl Unpin for AffinePoint
impl UnsafeUnpin for AffinePoint
impl UnwindSafe for AffinePoint
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IsIdentity for Twhere
T: ConstantTimeEq + Identity,
impl<T> IsIdentity for Twhere
T: ConstantTimeEq + Identity,
Source§fn is_identity(&self) -> bool
fn is_identity(&self) -> bool
Return true if this element is the identity element of the curve.