pub struct KeyPair {
pub public: PublicEncryptKey,
pub secret: SecretEncryptKey,
}Fields§
§public: PublicEncryptKey§secret: SecretEncryptKeyImplementations§
Source§impl KeyPair
impl KeyPair
pub fn gen() -> Self
pub fn split(self) -> (PublicEncryptKey, SecretEncryptKey)
Trait Implementations§
Source§impl From<(PublicEncryptKey, SecretEncryptKey)> for KeyPair
impl From<(PublicEncryptKey, SecretEncryptKey)> for KeyPair
Source§fn from((public, secret): (PublicEncryptKey, SecretEncryptKey)) -> Self
fn from((public, secret): (PublicEncryptKey, SecretEncryptKey)) -> Self
Converts to this type from the input type.
Source§impl From<(SecretEncryptKey, PublicEncryptKey)> for KeyPair
impl From<(SecretEncryptKey, PublicEncryptKey)> for KeyPair
Source§fn from((secret, public): (SecretEncryptKey, PublicEncryptKey)) -> Self
fn from((secret, public): (SecretEncryptKey, PublicEncryptKey)) -> Self
Converts to this type from the input type.
impl Eq for KeyPair
impl StructuralPartialEq for KeyPair
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