pub struct CurvePoint(/* private fields */);Expand description
A point on the elliptic curve.
Implementations§
Source§impl CurvePoint
impl CurvePoint
Sourcepub fn coordinates(&self) -> Option<(FieldBytes, FieldBytes)>
pub fn coordinates(&self) -> Option<(FieldBytes, FieldBytes)>
Returns x and y coordinates serialized as big-endian bytes,
or None if it is the infinity point.
Trait Implementations§
Source§impl Add<&CurvePoint> for &CurvePoint
impl Add<&CurvePoint> for &CurvePoint
Source§type Output = CurvePoint
type Output = CurvePoint
The resulting type after applying the
+ operator.Source§fn add(self, other: &CurvePoint) -> CurvePoint
fn add(self, other: &CurvePoint) -> CurvePoint
Performs the
+ operation. Read moreSource§impl Clone for CurvePoint
impl Clone for CurvePoint
Source§fn clone(&self) -> CurvePoint
fn clone(&self) -> CurvePoint
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 Debug for CurvePoint
impl Debug for CurvePoint
Source§impl Default for CurvePoint
impl Default for CurvePoint
Source§impl<'de> Deserialize<'de> for CurvePoint
Available on crate feature serde only.
impl<'de> Deserialize<'de> for CurvePoint
Available on crate feature
serde only.Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for CurvePoint
impl PartialEq for CurvePoint
Source§impl Serialize for CurvePoint
Available on crate feature serde only.
impl Serialize for CurvePoint
Available on crate feature
serde only.Source§impl TryFromBytes for CurvePoint
Available on crate feature serde only.
impl TryFromBytes for CurvePoint
Available on crate feature
serde only.impl Copy for CurvePoint
impl DefaultIsZeroes for CurvePoint
impl StructuralPartialEq for CurvePoint
Auto Trait Implementations§
impl Freeze for CurvePoint
impl RefUnwindSafe for CurvePoint
impl Send for CurvePoint
impl Sync for CurvePoint
impl Unpin for CurvePoint
impl UnwindSafe for CurvePoint
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