pub struct MlDsa44Ed25519PrivateKey { /* private fields */ }Available on crate features
ed25519 and mldsa only.Expand description
MLDSA44-Ed25519-SHA512 composite private key.
Stores the ML-DSA seed followed by the Ed25519 seed. Each is 32 bytes.
Implementations§
Source§impl MlDsa44Ed25519PrivateKey
impl MlDsa44Ed25519PrivateKey
Sourcepub fn from_bytes(bytes: &[u8; 64]) -> Result<Self>
pub fn from_bytes(bytes: &[u8; 64]) -> Result<Self>
Parse the two concatenated seeds. Both must be dedicated to this composite key.
§Errors
Returns encoding::Error::Length if either seed has the wrong length.
The fixed-size input guarantees the required lengths.
Sourcepub fn ed25519(&self) -> &Ed25519PrivateKey
pub fn ed25519(&self) -> &Ed25519PrivateKey
Borrow the Ed25519 component. Component keys must be used exclusively in this composite.
Sourcepub fn public_key(&self) -> Result<MlDsa44Ed25519PublicKey>
pub fn public_key(&self) -> Result<MlDsa44Ed25519PublicKey>
Derive the composite public key from both seeds.
§Errors
Key derivation for these fixed-size seeds is infallible.
Trait Implementations§
Source§impl Clone for MlDsa44Ed25519PrivateKey
impl Clone for MlDsa44Ed25519PrivateKey
Source§impl CtEq for MlDsa44Ed25519PrivateKey
impl CtEq for MlDsa44Ed25519PrivateKey
Source§impl Debug for MlDsa44Ed25519PrivateKey
impl Debug for MlDsa44Ed25519PrivateKey
impl Eq for MlDsa44Ed25519PrivateKey
Source§impl PartialEq for MlDsa44Ed25519PrivateKey
impl PartialEq for MlDsa44Ed25519PrivateKey
Auto Trait Implementations§
impl Forget for MlDsa44Ed25519PrivateKey
impl Freeze for MlDsa44Ed25519PrivateKey
impl Move for MlDsa44Ed25519PrivateKey
impl RefUnwindSafe for MlDsa44Ed25519PrivateKey
impl Send for MlDsa44Ed25519PrivateKey
impl Sync for MlDsa44Ed25519PrivateKey
impl Unpin for MlDsa44Ed25519PrivateKey
impl UnsafeUnpin for MlDsa44Ed25519PrivateKey
impl UnwindSafe for MlDsa44Ed25519PrivateKey
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