pub struct SignatureKeyPair { /* private fields */ }Expand description
Signature key pair.
Contains the public and secret keys for digital signatures. The secret key is automatically zeroed when dropped.
Implementations§
Source§impl SignatureKeyPair
impl SignatureKeyPair
Sourcepub fn public_key(&self) -> &[u8] ⓘ
pub fn public_key(&self) -> &[u8] ⓘ
Get the public key.
Sourcepub fn secret_key(&self) -> &[u8] ⓘ
pub fn secret_key(&self) -> &[u8] ⓘ
Get the secret key.
Sourcepub fn algorithm(&self) -> SignAlgorithm
pub fn algorithm(&self) -> SignAlgorithm
Get the algorithm.
Trait Implementations§
Source§impl Clone for SignatureKeyPair
impl Clone for SignatureKeyPair
Source§fn clone(&self) -> SignatureKeyPair
fn clone(&self) -> SignatureKeyPair
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SignatureKeyPair
impl Debug for SignatureKeyPair
Auto Trait Implementations§
impl Freeze for SignatureKeyPair
impl RefUnwindSafe for SignatureKeyPair
impl Send for SignatureKeyPair
impl Sync for SignatureKeyPair
impl Unpin for SignatureKeyPair
impl UnwindSafe for SignatureKeyPair
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)