pub struct ExtensiblePoint {
pub(crate) X: FieldElement,
pub(crate) Y: FieldElement,
pub(crate) Z: FieldElement,
pub(crate) T1: FieldElement,
pub(crate) T2: FieldElement,
}Expand description
This is the representation that we will do most of the group operations on.
Fields§
§X: FieldElement§Y: FieldElement§Z: FieldElement§T1: FieldElement§T2: FieldElementImplementations§
Source§impl ExtensiblePoint
impl ExtensiblePoint
pub const IDENTITY: ExtensiblePoint
Sourcepub fn double(&self) -> ExtensiblePoint
pub fn double(&self) -> ExtensiblePoint
Doubles a point (3.3) https://iacr.org/archive/asiacrypt2008/53500329/53500329.pdf
Sourcepub fn to_extended(self) -> ExtendedPoint
pub fn to_extended(self) -> ExtendedPoint
Converts an extensible point to an extended point
Sourcepub(crate) fn to_affine(self) -> AffinePoint
pub(crate) fn to_affine(self) -> AffinePoint
Converts an extended point to Affine co-ordinates
Trait Implementations§
Source§impl Clone for ExtensiblePoint
impl Clone for ExtensiblePoint
Source§fn clone(&self) -> ExtensiblePoint
fn clone(&self) -> ExtensiblePoint
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 ConstantTimeEq for ExtensiblePoint
impl ConstantTimeEq for ExtensiblePoint
Source§impl Debug for ExtensiblePoint
impl Debug for ExtensiblePoint
Source§impl PartialEq<ExtendedPoint> for ExtensiblePoint
impl PartialEq<ExtendedPoint> for ExtensiblePoint
Source§impl PartialEq<ExtensiblePoint> for ExtendedPoint
impl PartialEq<ExtensiblePoint> for ExtendedPoint
Source§impl PartialEq for ExtensiblePoint
impl PartialEq for ExtensiblePoint
impl Copy for ExtensiblePoint
impl Eq for ExtensiblePoint
Auto Trait Implementations§
impl Freeze for ExtensiblePoint
impl RefUnwindSafe for ExtensiblePoint
impl Send for ExtensiblePoint
impl Sync for ExtensiblePoint
impl Unpin for ExtensiblePoint
impl UnsafeUnpin for ExtensiblePoint
impl UnwindSafe for ExtensiblePoint
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