pub struct SecretKey(/* private fields */);Expand description
A secret key.
Implementations§
Source§impl SecretKey
impl SecretKey
Sourcepub fn from_ed25519(edsk: &EdSecretKey) -> Result<SecretKey, Error>
pub fn from_ed25519(edsk: &EdSecretKey) -> Result<SecretKey, Error>
Convert an Ed25519 secret key to a X25519 secret key.
Trait Implementations§
impl Eq for SecretKey
impl StructuralPartialEq for SecretKey
Auto Trait Implementations§
impl Freeze for SecretKey
impl RefUnwindSafe for SecretKey
impl Send for SecretKey
impl Sync for SecretKey
impl Unpin for SecretKey
impl UnsafeUnpin for SecretKey
impl UnwindSafe for SecretKey
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