pub struct SigningKeyPair { /* private fields */ }Expand description
A keypair. This should never be sent over an insecure channel or stored unsecurely.
To extract the public part of the keypair, use get_public_key()
Implementations§
Source§impl SigningKeyPair
impl SigningKeyPair
Sourcepub fn get_public_key(&self) -> SigningPublicKey
pub fn get_public_key(&self) -> SigningPublicKey
Gets the public part SingingPublicKey of a SigningKeyPair
§Returns
Returns a SingingPublicKey containingthe public key.
§Example
use devolutions_crypto::signing_key::{generate_signing_keypair, SigningKeyVersion, SigningKeyPair, SigningPublicKey};
let keypair: SigningKeyPair = generate_signing_keypair(SigningKeyVersion::Latest);
let public: SigningPublicKey = keypair.get_public_key();Trait Implementations§
Source§impl Clone for SigningKeyPair
impl Clone for SigningKeyPair
Source§fn clone(&self) -> SigningKeyPair
fn clone(&self) -> SigningKeyPair
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SigningKeyPair
impl Debug for SigningKeyPair
Source§impl From<&SigningKeyPair> for SigningKey
impl From<&SigningKeyPair> for SigningKey
Source§fn from(data: &SigningKeyPair) -> Self
fn from(data: &SigningKeyPair) -> Self
Converts to this type from the input type.
Source§impl From<SigningKeyPair> for Vec<u8>
impl From<SigningKeyPair> for Vec<u8>
Source§fn from(data: SigningKeyPair) -> Self
fn from(data: SigningKeyPair) -> Self
Serialize the structure into a Vec<u8>, for storage, transmission or use in another language.
Source§impl HeaderType for SigningKeyPair
impl HeaderType for SigningKeyPair
Auto Trait Implementations§
impl Freeze for SigningKeyPair
impl RefUnwindSafe for SigningKeyPair
impl Send for SigningKeyPair
impl Sync for SigningKeyPair
impl Unpin for SigningKeyPair
impl UnwindSafe for SigningKeyPair
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