[−][src]Struct k256::AffinePoint
feature="arithmetic"
only.A point on the secp256k1 curve in affine coordinates.
Implementations
impl AffinePoint
[src]
pub fn from_compressed_point(point: &CompressedPoint) -> CtOption<Self>
[src]
Attempts to parse the given CompressedPoint
as a SEC-1 encoded AffinePoint
pub fn from_uncompressed_point(point: &UncompressedPoint) -> CtOption<Self>
[src]
Attempts to parse the given UncompressedPoint
as a SEC-1 encoded AffinePoint
pub fn to_pubkey(&self, compress: bool) -> PublicKey
[src]
Returns a PublicKey
with the SEC-1 encoding of this point.
If compress
is set to true
, point compression is applied.
Trait Implementations
impl<'_, '_> Add<&'_ AffinePoint> for &'_ ProjectivePoint
[src]
type Output = ProjectivePoint
The resulting type after applying the +
operator.
fn add(self, other: &AffinePoint) -> ProjectivePoint
[src]
impl<'_> Add<&'_ AffinePoint> for ProjectivePoint
[src]
type Output = ProjectivePoint
The resulting type after applying the +
operator.
fn add(self, other: &AffinePoint) -> ProjectivePoint
[src]
impl AddAssign<AffinePoint> for ProjectivePoint
[src]
fn add_assign(&mut self, rhs: AffinePoint)
[src]
impl Clone for AffinePoint
[src]
fn clone(&self) -> AffinePoint
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl ConditionallySelectable for AffinePoint
[src]
fn conditional_select(
a: &AffinePoint,
b: &AffinePoint,
choice: Choice
) -> AffinePoint
[src]
a: &AffinePoint,
b: &AffinePoint,
choice: Choice
) -> AffinePoint
fn conditional_assign(&mut self, other: &Self, choice: Choice)
[src]
fn conditional_swap(a: &mut Self, b: &mut Self, choice: Choice)
[src]
impl ConstantTimeEq for AffinePoint
[src]
fn ct_eq(&self, other: &AffinePoint) -> Choice
[src]
impl Copy for AffinePoint
[src]
impl Debug for AffinePoint
[src]
impl Eq for AffinePoint
[src]
impl From<AffinePoint> for CompressedPoint
[src]
fn from(affine_point: AffinePoint) -> CompressedPoint
[src]
Returns the SEC-1 compressed encoding of this point.
impl From<AffinePoint> for UncompressedPoint
[src]
fn from(affine_point: AffinePoint) -> UncompressedPoint
[src]
Returns the SEC-1 uncompressed encoding of this point.
impl From<AffinePoint> for ProjectivePoint
[src]
fn from(p: AffinePoint) -> Self
[src]
impl FromPublicKey<Secp256k1> for AffinePoint
[src]
fn from_public_key(pubkey: &PublicKey) -> CtOption<Self>
[src]
Attempts to parse the given PublicKey
as an SEC-1-encoded AffinePoint
.
Returns
None
value if pubkey
is not on the secp256k1 curve.
impl Generator for AffinePoint
[src]
fn generator() -> AffinePoint
[src]
Returns the base point of SECP256k1.
impl Mul<NonZeroScalar<Secp256k1>> for AffinePoint
[src]
type Output = AffinePoint
The resulting type after applying the *
operator.
fn mul(self, scalar: NonZeroScalar) -> Self
[src]
impl Neg for AffinePoint
[src]
type Output = AffinePoint
The resulting type after applying the -
operator.
fn neg(self) -> Self::Output
[src]
impl PartialEq<AffinePoint> for AffinePoint
[src]
fn eq(&self, other: &AffinePoint) -> bool
[src]
#[must_use]fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<'_, '_> Sub<&'_ AffinePoint> for &'_ ProjectivePoint
[src]
type Output = ProjectivePoint
The resulting type after applying the -
operator.
fn sub(self, other: &AffinePoint) -> ProjectivePoint
[src]
impl<'_> Sub<&'_ AffinePoint> for ProjectivePoint
[src]
type Output = ProjectivePoint
The resulting type after applying the -
operator.
fn sub(self, other: &AffinePoint) -> ProjectivePoint
[src]
impl SubAssign<AffinePoint> for ProjectivePoint
[src]
fn sub_assign(&mut self, rhs: AffinePoint)
[src]
impl VerifyPrimitive<Secp256k1> for AffinePoint
[src]
fn verify_prehashed(
&self,
hashed_msg: &ElementBytes,
signature: &Signature
) -> Result<(), Error>
[src]
&self,
hashed_msg: &ElementBytes,
signature: &Signature
) -> Result<(), Error>
impl Zeroize for AffinePoint
[src]
Auto Trait Implementations
impl RefUnwindSafe for AffinePoint
impl Send for AffinePoint
impl Sync for AffinePoint
impl Unpin for AffinePoint
impl UnwindSafe for AffinePoint
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<Z> Zeroize for Z where
Z: DefaultIsZeroes,
[src]
Z: DefaultIsZeroes,