Struct libp2p::noise::AuthenticKeypair [−][src]
pub struct AuthenticKeypair<T> where
T: Zeroize, { /* fields omitted */ }A DH keypair that is authentic w.r.t. a identity::PublicKey.
Implementations
impl<T> AuthenticKeypair<T> where
T: Zeroize, [src]
impl<T> AuthenticKeypair<T> where
T: Zeroize, [src]pub fn into_identity(self) -> KeypairIdentity[src]
Extract the public KeypairIdentity from this AuthenticKeypair,
dropping the DH Keypair.
Methods from Deref<Target = Keypair<T>>
pub fn public(&self) -> &PublicKey<T>[src]
The public key of the DH keypair.
pub fn secret(&self) -> &SecretKey<T>[src]
The secret key of the DH keypair.
Trait Implementations
impl<T> Clone for AuthenticKeypair<T> where
T: Clone + Zeroize, [src]
impl<T> Clone for AuthenticKeypair<T> where
T: Clone + Zeroize, [src]pub fn clone(&self) -> AuthenticKeypair<T>[src]
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
Auto Trait Implementations
impl<T> RefUnwindSafe for AuthenticKeypair<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<T> Send for AuthenticKeypair<T> where
T: Send,
T: Send,
impl<T> Sync for AuthenticKeypair<T> where
T: Sync,
T: Sync,
impl<T> Unpin for AuthenticKeypair<T> where
T: Unpin,
T: Unpin,
impl<T> UnwindSafe for AuthenticKeypair<T> where
T: UnwindSafe,
T: UnwindSafe,