pub struct SecretKey {
pub ed: SecretKey,
pub dh: StaticSecret,
}
Expand description
Concatenation of X25519 static secret (first 32 bytes) and Ed25519 secret key (last 32 bytes).
Fields§
§ed: SecretKey
§dh: StaticSecret
Trait Implementations§
Source§impl From<&SecretKey> for VerifyingKey
Derive public key from secret key.
impl From<&SecretKey> for VerifyingKey
Derive public key from secret key.
Auto Trait Implementations§
impl Freeze for SecretKey
impl RefUnwindSafe for SecretKey
impl Send for SecretKey
impl Sync for SecretKey
impl Unpin 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