pub struct PreprocessedAffine<P: TECurveConfig> {
pub x: P::BaseField,
pub y: P::BaseField,
pub kt: P::BaseField,
}Expand description
Affine coordinates for a point on a twisted Edwards curve, over the
base field P::BaseField.
Includes the coordinate 2D*x*y.
Fields§
§x: P::BaseFieldX coordinate of the point represented as a field element
y: P::BaseFieldY coordinate of the point represented as a field element
kt: P::BaseFieldPrecomputed product kXY, k=2D - formulas for A=-1
Implementations§
Trait Implementations§
Source§impl<'a, P: TECurveConfig> AddAssign<&'a PreprocessedAffine<P>> for Projective<P>
impl<'a, P: TECurveConfig> AddAssign<&'a PreprocessedAffine<P>> for Projective<P>
Source§fn add_assign(&mut self, other: &PreprocessedAffine<P>)
fn add_assign(&mut self, other: &PreprocessedAffine<P>)
Performs the
+= operation. Read moreSource§impl<P> Clone for PreprocessedAffine<P>where
P: TECurveConfig,
impl<P> Clone for PreprocessedAffine<P>where
P: TECurveConfig,
Source§impl<P: Debug + TECurveConfig> Debug for PreprocessedAffine<P>
impl<P: Debug + TECurveConfig> Debug for PreprocessedAffine<P>
Source§impl<P: TECurveConfig> From<&Affine<P>> for PreprocessedAffine<P>
impl<P: TECurveConfig> From<&Affine<P>> for PreprocessedAffine<P>
Source§fn from(affine: &Affine<P>) -> PreprocessedAffine<P>
fn from(affine: &Affine<P>) -> PreprocessedAffine<P>
Converts to this type from the input type.
Source§impl<P: TECurveConfig> From<&PreprocessedAffine<P>> for Affine<P>
impl<P: TECurveConfig> From<&PreprocessedAffine<P>> for Affine<P>
Source§fn from(pre: &PreprocessedAffine<P>) -> Affine<P>
fn from(pre: &PreprocessedAffine<P>) -> Affine<P>
Converts to this type from the input type.
Source§impl<P: TECurveConfig> From<Affine<P>> for PreprocessedAffine<P>
impl<P: TECurveConfig> From<Affine<P>> for PreprocessedAffine<P>
Source§fn from(affine: Affine<P>) -> PreprocessedAffine<P>
fn from(affine: Affine<P>) -> PreprocessedAffine<P>
Converts to this type from the input type.
Source§impl<P: TECurveConfig> From<PreprocessedAffine<P>> for Affine<P>
impl<P: TECurveConfig> From<PreprocessedAffine<P>> for Affine<P>
Source§fn from(pre: PreprocessedAffine<P>) -> Affine<P>
fn from(pre: PreprocessedAffine<P>) -> Affine<P>
Converts to this type from the input type.
Source§impl<P: Hash + TECurveConfig> Hash for PreprocessedAffine<P>
impl<P: Hash + TECurveConfig> Hash for PreprocessedAffine<P>
Source§impl<P: TECurveConfig> Neg for PreprocessedAffine<P>
impl<P: TECurveConfig> Neg for PreprocessedAffine<P>
Source§impl<P: PartialEq + TECurveConfig> PartialEq for PreprocessedAffine<P>
impl<P: PartialEq + TECurveConfig> PartialEq for PreprocessedAffine<P>
Source§impl<'a, P: TECurveConfig> SubAssign<&'a PreprocessedAffine<P>> for Projective<P>
impl<'a, P: TECurveConfig> SubAssign<&'a PreprocessedAffine<P>> for Projective<P>
Source§fn sub_assign(&mut self, other: &'a PreprocessedAffine<P>)
fn sub_assign(&mut self, other: &'a PreprocessedAffine<P>)
Performs the
-= operation. Read moreimpl<P> Copy for PreprocessedAffine<P>where
P: TECurveConfig,
impl<P: Eq + TECurveConfig> Eq for PreprocessedAffine<P>
impl<P: TECurveConfig> StructuralPartialEq for PreprocessedAffine<P>
Auto Trait Implementations§
impl<P> Freeze for PreprocessedAffine<P>
impl<P> RefUnwindSafe for PreprocessedAffine<P>
impl<P> Send for PreprocessedAffine<P>
impl<P> Sync for PreprocessedAffine<P>
impl<P> Unpin for PreprocessedAffine<P>
impl<P> UnwindSafe for PreprocessedAffine<P>
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more