pub struct AffineNielsPoint {
pub(crate) y_plus_x: FieldElement,
pub(crate) y_minus_x: FieldElement,
pub(crate) td: FieldElement,
}Expand description
Represents a PreComputed or Cached AffinePoint ((y+x)/2, (y-x)/2, dxy)
Fields§
§y_plus_x: FieldElement§y_minus_x: FieldElement§td: FieldElementImplementations§
Source§impl AffineNielsPoint
impl AffineNielsPoint
Sourcepub(crate) const IDENTITY: AffineNielsPoint
pub(crate) const IDENTITY: AffineNielsPoint
Returns the identity element for an AffineNielsPoint
Sourcepub(crate) fn equals(&self, other: &AffineNielsPoint) -> bool
pub(crate) fn equals(&self, other: &AffineNielsPoint) -> bool
Checks if two AffineNielsPoints are equal Returns true if they are
Sourcepub(crate) fn to_extensible(self) -> ExtensiblePoint
pub(crate) fn to_extensible(self) -> ExtensiblePoint
Converts an AffineNielsPoint to an ExtensiblePoint
Trait Implementations§
Source§impl Clone for AffineNielsPoint
impl Clone for AffineNielsPoint
Source§fn clone(&self) -> AffineNielsPoint
fn clone(&self) -> AffineNielsPoint
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 AffineNielsPoint
impl ConditionallySelectable for AffineNielsPoint
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 moreimpl Copy for AffineNielsPoint
Auto Trait Implementations§
impl Freeze for AffineNielsPoint
impl RefUnwindSafe for AffineNielsPoint
impl Send for AffineNielsPoint
impl Sync for AffineNielsPoint
impl Unpin for AffineNielsPoint
impl UnsafeUnpin for AffineNielsPoint
impl UnwindSafe for AffineNielsPoint
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