Struct libp2p_core::identity::ed25519::SecretKey
source · pub struct SecretKey(_);
Expand description
An Ed25519 secret key.
Implementations§
source§impl SecretKey
impl SecretKey
sourcepub fn from_bytes(
sk_bytes: impl AsMut<[u8]>
) -> Result<SecretKey, DecodingError>
pub fn from_bytes(
sk_bytes: impl AsMut<[u8]>
) -> Result<SecretKey, DecodingError>
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.