5b9e3ee8fb5f44627f72b10f959ff85bd5d7ce60
Official vectors for the signature tests, fetched 2026-11-25 at the commits docs/02_signatures.md names: ACVP keyGen and sigGen at 2972def2, sigVer at a7f283cd (after the ModifyZ correction), Wycheproof at 20b25694, the composite-sigs repository at f0627ab, and RFC 8032 section 7.1. Files under about 1 MB are kept whole. The larger ones are reduced to their ML-DSA-65 groups and a few cases per group by make_subsets.py, which checks each original's sha256 and drops only whole cases and groups; RFC 8032's vectors are extracted from the RFC text by extract_rfc8032.py. SOURCES.md records the URL, commit, git blob, original sha256 and the selection of every file.
Arcanum
Arcanum is the shared post-quantum crypto core of the Domi ecosystem. It is one small Rust crate that gives every Domi product a hybrid key exchange: ML-KEM-768 (FIPS 203) combined with X25519, so a shared secret stays safe as long as either of the two holds.
Via Domi uses it first, to derive and rotate the WireGuard pre-shared key. Canalis, Custos sealing and Tabellarius are expected to adopt it later.
- No primitive is written here. ML-KEM, X25519, SHA-3, HKDF and ChaCha20-Poly1305 come from vetted RustCrypto and dalek crates.
- No I/O, no network, no clock. Randomness is passed in by the caller.
- No
unsafecode.
Use
let init = arcanum::exchange::initiate(&my_secret, &peer_public, context, &mut rng)?;
// send init.ciphertext() to the peer, which calls exchange::respond and sends back ct_ri
let session = init.finish(&ct_ri)?;
let psk = session.wireguard_psk(arcanum::epoch_at(unix_seconds)); // one exchange per 120 s epoch
Checks
cargo test # KATs, binding, epochs, malformed input, golden vectors, feature graph
cargo deny check
cargo audit
cargo +nightly fuzz run --release untrusted_input -- -max_total_time=600
Not audited. Nothing here is called secure before an external audit.
The design, the risks and the threat model are in docs/.
Licence
CPAL-1.0, see LICENSE. Attribution Information (Exhibit B): "Built on Domi",
Copyright (c) 2026 Marek Novák, https://aula.marek-novak.cz.
Description
Languages
Rust
96.6%
Python
3.2%
Nix
0.2%