pub struct AffinePoint<E> {
pub x: BigUint,
pub y: BigUint,
/* private fields */
}Fields§
§x: BigUint§y: BigUintImplementations§
Source§impl<E: EllipticCurve> AffinePoint<E>
impl<E: EllipticCurve> AffinePoint<E>
pub fn scalar_mul(&self, scalar: &BigUint) -> Self
Source§impl<E: WeierstrassParameters> AffinePoint<SwCurve<E>>
impl<E: WeierstrassParameters> AffinePoint<SwCurve<E>>
pub fn sw_scalar_mul(&self, scalar: &BigUint) -> Self
Source§impl<E: WeierstrassParameters> AffinePoint<SwCurve<E>>
impl<E: WeierstrassParameters> AffinePoint<SwCurve<E>>
pub fn sw_add(&self, other: &AffinePoint<SwCurve<E>>) -> AffinePoint<SwCurve<E>>
pub fn sw_double(&self) -> AffinePoint<SwCurve<E>>
Source§impl<E: EllipticCurveParameters> AffinePoint<E>
impl<E: EllipticCurveParameters> AffinePoint<E>
Trait Implementations§
Source§impl<E: EllipticCurve> Add<&AffinePoint<E>> for &AffinePoint<E>
impl<E: EllipticCurve> Add<&AffinePoint<E>> for &AffinePoint<E>
Source§type Output = AffinePoint<E>
type Output = AffinePoint<E>
The resulting type after applying the
+ operator.Source§fn add(self, other: &AffinePoint<E>) -> AffinePoint<E>
fn add(self, other: &AffinePoint<E>) -> AffinePoint<E>
Performs the
+ operation. Read moreSource§impl<E: EllipticCurve> Add<&AffinePoint<E>> for AffinePoint<E>
impl<E: EllipticCurve> Add<&AffinePoint<E>> for AffinePoint<E>
Source§type Output = AffinePoint<E>
type Output = AffinePoint<E>
The resulting type after applying the
+ operator.Source§fn add(self, other: &AffinePoint<E>) -> AffinePoint<E>
fn add(self, other: &AffinePoint<E>) -> AffinePoint<E>
Performs the
+ operation. Read moreSource§impl<E: EllipticCurve> Add for AffinePoint<E>
impl<E: EllipticCurve> Add for AffinePoint<E>
Source§type Output = AffinePoint<E>
type Output = AffinePoint<E>
The resulting type after applying the
+ operator.Source§fn add(self, other: AffinePoint<E>) -> AffinePoint<E>
fn add(self, other: AffinePoint<E>) -> AffinePoint<E>
Performs the
+ operation. Read moreSource§impl<E: Clone> Clone for AffinePoint<E>
impl<E: Clone> Clone for AffinePoint<E>
Source§fn clone(&self) -> AffinePoint<E>
fn clone(&self) -> AffinePoint<E>
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<E: Debug> Debug for AffinePoint<E>
impl<E: Debug> Debug for AffinePoint<E>
Source§impl<E: EllipticCurve> Mul<&BigUint> for &AffinePoint<E>
impl<E: EllipticCurve> Mul<&BigUint> for &AffinePoint<E>
Source§type Output = AffinePoint<E>
type Output = AffinePoint<E>
The resulting type after applying the
* operator.Source§impl<E: EllipticCurve> Mul<BigUint> for &AffinePoint<E>
impl<E: EllipticCurve> Mul<BigUint> for &AffinePoint<E>
Source§type Output = AffinePoint<E>
type Output = AffinePoint<E>
The resulting type after applying the
* operator.Source§impl<E: EllipticCurve> Mul<BigUint> for AffinePoint<E>
impl<E: EllipticCurve> Mul<BigUint> for AffinePoint<E>
Source§type Output = AffinePoint<E>
type Output = AffinePoint<E>
The resulting type after applying the
* operator.Source§impl<E: EllipticCurve> Neg for &AffinePoint<E>
impl<E: EllipticCurve> Neg for &AffinePoint<E>
Source§type Output = AffinePoint<E>
type Output = AffinePoint<E>
The resulting type after applying the
- operator.Source§fn neg(self) -> AffinePoint<E>
fn neg(self) -> AffinePoint<E>
Performs the unary
- operation. Read moreSource§impl<E: EllipticCurve> Neg for AffinePoint<E>
impl<E: EllipticCurve> Neg for AffinePoint<E>
Source§type Output = AffinePoint<E>
type Output = AffinePoint<E>
The resulting type after applying the
- operator.Source§fn neg(self) -> AffinePoint<E>
fn neg(self) -> AffinePoint<E>
Performs the unary
- operation. Read moreSource§impl<E: PartialEq> PartialEq for AffinePoint<E>
impl<E: PartialEq> PartialEq for AffinePoint<E>
impl<E: Eq> Eq for AffinePoint<E>
impl<E> StructuralPartialEq for AffinePoint<E>
Auto Trait Implementations§
impl<E> Freeze for AffinePoint<E>
impl<E> RefUnwindSafe for AffinePoint<E>where
E: RefUnwindSafe,
impl<E> Send for AffinePoint<E>where
E: Send,
impl<E> Sync for AffinePoint<E>where
E: Sync,
impl<E> Unpin for AffinePoint<E>where
E: Unpin,
impl<E> UnwindSafe for AffinePoint<E>where
E: UnwindSafe,
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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