pub struct MlDsaKeypair { /* private fields */ }Expand description
A deterministically-derived ML-DSA-65 keypair bound to a huddle identity.
Implementations§
Source§impl MlDsaKeypair
impl MlDsaKeypair
Sourcepub fn from_identity_seed(ed25519_seed: &[u8; 32]) -> Self
pub fn from_identity_seed(ed25519_seed: &[u8; 32]) -> Self
Derive the identity’s ML-DSA-65 keypair from its 32-byte Ed25519 secret seed. Deterministic + domain-separated; reproduces the same keypair on every call with zero extra storage.
Sourcepub fn public_bytes(&self) -> [u8; 1952]
pub fn public_bytes(&self) -> [u8; 1952]
The serialized ML-DSA-65 verifying (public) key, to publish + pin.
Auto Trait Implementations§
impl Freeze for MlDsaKeypair
impl RefUnwindSafe for MlDsaKeypair
impl Send for MlDsaKeypair
impl Sync for MlDsaKeypair
impl Unpin for MlDsaKeypair
impl UnsafeUnpin for MlDsaKeypair
impl UnwindSafe for MlDsaKeypair
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