Struct sp1_core::utils::ec::AffinePoint
source · 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>
§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>
§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>
§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 copy 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>
§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>
§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>
§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>
§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>
§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>
source§fn eq(&self, other: &AffinePoint<E>) -> bool
fn eq(&self, other: &AffinePoint<E>) -> bool
This method tests for
self and other values to be equal, and is used
by ==.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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
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