pub struct KeyPair { /* private fields */ }
Implementations§
Source§impl KeyPair
impl KeyPair
pub fn public_key(&self) -> &PublicKey
pub fn domain_parameters(&self) -> &DomainParameters
pub fn private_key(&self) -> Option<&PrivateKey>
Trait Implementations§
Source§impl From<PrivateKey> for KeyPair
impl From<PrivateKey> for KeyPair
Source§fn from(pk: PrivateKey) -> Self
fn from(pk: PrivateKey) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for KeyPair
impl !RefUnwindSafe for KeyPair
impl !Send for KeyPair
impl !Sync for KeyPair
impl Unpin for KeyPair
impl !UnwindSafe for KeyPair
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