pub struct HybridPrivateKey { /* private fields */ }Expand description
Both component private keys. Never serialized to the wire.
The components are private: read them only to persist the key, through
HybridPrivateKey::ed25519 and HybridPrivateKey::ml_dsa_65. Both
buffers are wiped when the value is dropped, and Debug prints only the
Ed25519 public half.
Implementations§
Source§impl HybridPrivateKey
impl HybridPrivateKey
Sourcepub fn from_components(ed25519: Vec<u8>, ml_dsa_65: Vec<u8>) -> Self
pub fn from_components(ed25519: Vec<u8>, ml_dsa_65: Vec<u8>) -> Self
Assemble a private key from stored components: the 32-byte Ed25519 seed (or the 64-byte seed-and-public form) and the ML-DSA-65 secret key bytes. The components are validated when the key is used.
Trait Implementations§
Source§impl Clone for HybridPrivateKey
impl Clone for HybridPrivateKey
Source§impl Debug for HybridPrivateKey
impl Debug for HybridPrivateKey
Source§impl Drop for HybridPrivateKey
impl Drop for HybridPrivateKey
Auto Trait Implementations§
impl Forget for HybridPrivateKey
impl Freeze for HybridPrivateKey
impl RefUnwindSafe for HybridPrivateKey
impl Send for HybridPrivateKey
impl Sync for HybridPrivateKey
impl Unpin for HybridPrivateKey
impl UnsafeUnpin for HybridPrivateKey
impl UnwindSafe for HybridPrivateKey
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