pub struct PublicKey<C: Curve> { /* private fields */ }Expand description
An ECDH public key over the given curve.
Implementations§
Source§impl<C: Curve> PublicKey<C>
impl<C: Curve> PublicKey<C>
Sourcepub fn from_x962_uncompressed(x962: &[u8]) -> Option<Self>
pub fn from_x962_uncompressed(x962: &[u8]) -> Option<Self>
Parse a public key in uncompressed X9.62 format. (This is the common format for elliptic curve points beginning with an 0x04 byte.)
Sourcepub fn to_x962_uncompressed(&self) -> Buffer
pub fn to_x962_uncompressed(&self) -> Buffer
Serialize this key as uncompressed X9.62 format.
Auto Trait Implementations§
impl<C> Freeze for PublicKey<C>
impl<C> RefUnwindSafe for PublicKey<C>where
C: RefUnwindSafe,
impl<C> Send for PublicKey<C>where
C: Send,
impl<C> Sync for PublicKey<C>where
C: Sync,
impl<C> Unpin for PublicKey<C>where
C: Unpin,
impl<C> UnsafeUnpin for PublicKey<C>
impl<C> UnwindSafe for PublicKey<C>where
C: 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