| Crates.io | zks_pqcrypto |
| lib.rs | zks_pqcrypto |
| version | 0.1.0 |
| created_at | 2026-01-06 18:58:48.507243+00 |
| updated_at | 2026-01-06 18:58:48.507243+00 |
| description | Post-quantum cryptographic implementations for ZKS Protocol |
| homepage | https://zks-protocol.org |
| repository | https://github.com/zks-protocol/zks |
| max_upload_size | |
| id | 2026502 |
| size | 75,149 |
Post-quantum cryptographic implementations for the ZKS Protocol.
This crate provides NIST-standardized post-quantum cryptographic primitives:
| Algorithm | Security Level | Property |
|---|---|---|
| ML-KEM-768 | NIST Level 3 | IND-CCA2 |
| ML-DSA-65 | NIST Level 3 | EUF-CMA |
use zks_pqcrypto::prelude::*;
// Generate ML-KEM keypair
let keypair = MlKem::generate_keypair()?;
// Encapsulate shared secret
let (ciphertext, shared_secret) = keypair.encapsulate()?;
// Decapsulate shared secret
let decapsulated = keypair.decapsulate(&ciphertext)?;
AGPL-3.0-only