pub struct PrivateKey { /* private fields */ }Expand description
A private ECDSA-P256 key.
§Encoding
These variable-length signatures use SHA256 internally, and are encoded using ASN.1 wrapped DER bytes as described in RFC 3279 § 2.2.3.
Implementations§
Source§impl PrivateKey
impl PrivateKey
Sourcepub fn public_key(&self) -> PublicKey<'_>
pub fn public_key(&self) -> PublicKey<'_>
Return the PublicKey derived from this PrivateKey.
Trait Implementations§
Source§impl Debug for PrivateKey
impl Debug for PrivateKey
Source§impl Default for PrivateKey
impl Default for PrivateKey
Source§impl PublicKeyData for PrivateKey
impl PublicKeyData for PrivateKey
Source§impl Signer for PrivateKey
impl Signer for PrivateKey
Auto Trait Implementations§
impl Freeze for PrivateKey
impl RefUnwindSafe for PrivateKey
impl Send for PrivateKey
impl Sync for PrivateKey
impl Unpin for PrivateKey
impl UnsafeUnpin for PrivateKey
impl UnwindSafe for PrivateKey
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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