pub struct MlDsa;Expand description
ML-DSA-87 (NIST FIPS 204, security level 5).
ML-DSA (formerly Dilithium) is a lattice-based signature scheme standardised by NIST. It is the recommended default for most signing applications.
§Sizes
| Object | Bytes |
|---|---|
| Public key | 2,592 |
| Secret key | 4,896 |
| Signature | 4,595 |
§Pros
- Compact signatures (~4.5 KB) and fast signing and verification — practical for high-throughput or bandwidth-sensitive applications.
- NIST-standardised (FIPS 204); broad library and hardware support.
- Deterministic signing (no per-signature randomness required).
§Cons
- Lattice-based: security depends on Module-LWE/SIS. Strong, but a newer assumption (~10 years) compared to hash-based alternatives.
Implementations§
Auto Trait Implementations§
impl Freeze for MlDsa
impl RefUnwindSafe for MlDsa
impl Send for MlDsa
impl Sync for MlDsa
impl Unpin for MlDsa
impl UnsafeUnpin for MlDsa
impl UnwindSafe for MlDsa
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