pub struct PublicKey(/* private fields */);Expand description
A P-256 public key, as an uncompressed SEC 1 point (§3.5.1).
Implementations§
Source§impl PublicKey
impl PublicKey
Sourcepub const fn from_bytes(bytes: [u8; 65]) -> Self
pub const fn from_bytes(bytes: [u8; 65]) -> Self
Wraps an uncompressed point. The bytes are not checked to be on the curve here; the primitive that uses them does that, and says so when they are not.
Sourcepub fn from_slice(bytes: &[u8]) -> Result<Self>
pub fn from_slice(bytes: &[u8]) -> Result<Self>
Reads an uncompressed point from a slice.
Trait Implementations§
impl Copy for PublicKey
impl Eq for PublicKey
impl StructuralPartialEq for PublicKey
Auto Trait Implementations§
impl Forget for PublicKey
impl Freeze for PublicKey
impl Move for PublicKey
impl RefUnwindSafe for PublicKey
impl Send for PublicKey
impl Sync for PublicKey
impl Unpin for PublicKey
impl UnsafeUnpin for PublicKey
impl UnwindSafe for PublicKey
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