Crates.io | qp-rusty-crystals-dilithium |
lib.rs | qp-rusty-crystals-dilithium |
version | 1.0.3 |
created_at | 2025-09-06 01:34:53.674245+00 |
updated_at | 2025-09-24 23:55:58.73216+00 |
description | Pure Quantus RUST implementation of CRYSTALS-Dilithium digital signature scheme |
homepage | https://www.quantus.com |
repository | https://github.com/Quantus-Network/qp-rusty-crystals |
max_upload_size | |
id | 1826611 |
size | 685,094 |
Pure Rust implementation of the ML-DSA (CRYSTALS-Dilithium) post-quantum digital signature scheme.
Add to your Cargo.toml
:
[dependencies]
qp-rusty-crystals-dilithium = "0.0.2"
use qp_rusty_crystals_dilithium::{ml_dsa_44, Keypair};
// Generate a keypair
let keypair = ml_dsa_44::Keypair::generate(None);
// Sign a message
let message = b"Hello, post-quantum world!";
let signature = keypair.sign(message);
// Verify the signature
let is_valid = keypair.public_key.verify(message, &signature);
assert!(is_valid);
Variant | Security Level | Public Key Size | Signature Size |
---|---|---|---|
ML-DSA-44 | ~128 bits | 1,312 bytes | 2,420 bytes |
ML-DSA-65 | ~192 bits | 1,952 bytes | 3,309 bytes |
ML-DSA-87 | ~256 bits | 2,592 bytes | 4,627 bytes |
cargo test
cargo bench
GPL-3.0 - See LICENSE for details.