Struct libp2p_noise::SecretKey [−][src]
pub struct SecretKey<T: Zeroize>(_);
Expand description
DH secret key.
Implementations
Construct a X25519 secret key from a Ed25519 secret key.
Note: If the Ed25519 secret key is already used in the context of other cryptographic protocols outside of Noise, it should be preferred to create a new keypair for use in the Noise protocol.
See also:
Trait Implementations
Promote a X25519 secret key into a keypair.
Promote a X25519 secret key into a keypair.
Performs the conversion.
Auto Trait Implementations
impl<T> RefUnwindSafe for SecretKey<T> where
T: RefUnwindSafe,
impl<T> UnwindSafe for SecretKey<T> where
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
type Output = T
type Output = T
Should always be Self
pub fn vzip(self) -> V