Struct libp2p::core::identity::ed25519::SecretKey [−][src]
pub struct SecretKey(_);
Expand description
An Ed25519 secret key.
Implementations
Create an Ed25519 secret key from a byte slice, zeroing the input on success. If the bytes do not constitute a valid Ed25519 secret key, an error is returned.
Trait Implementations
View the bytes of the secret key.
Demote an Ed25519 keypair to a secret key.
Auto Trait Implementations
impl RefUnwindSafe for SecretKey
impl UnwindSafe for SecretKey
Blanket Implementations
Mutably borrows from an owned value. Read more