pub enum PrivateKey {
Normal(SecretKey),
Extended(SecretKeyExtended),
}Expand description
A standard or extended Ed25519 secret key
Variants§
Normal(SecretKey)
Extended(SecretKeyExtended)
Implementations§
Trait Implementations§
Source§impl From<SecretKey> for PrivateKey
impl From<SecretKey> for PrivateKey
Source§impl From<SecretKeyExtended> for PrivateKey
impl From<SecretKeyExtended> for PrivateKey
Source§fn from(key: SecretKeyExtended) -> Self
fn from(key: SecretKeyExtended) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PrivateKey
impl RefUnwindSafe for PrivateKey
impl Send for PrivateKey
impl Sync for PrivateKey
impl Unpin for PrivateKey
impl UnwindSafe for PrivateKey
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