HANDOVER: the builder's counts (121 tests in debug and release, clippy, fmt, the zeroize probe, deny, audit, a 605 s fuzz run with no crash), seven mutation checks, the vector sources, and what is not verified. docs/02_signatures.md: an "As built" section (the raw interface stays hedged, the canonical Ed25519 key check, label lengths, the order of the binding checks, crate features); the gap on verify_strict is answered (it accepts both RFC 10073 vectors and agrees with all 151 Wycheproof verdicts), and the subsets and stack copies are listed as gaps. The app context prefix in the AppContext paragraph is corrected to domi/arcanum/v2/sig/app/. README: signatures in the summary, a usage sketch, the new fuzz target.
9.2 KiB
Handover — Arcanum
Newest entry first. Where this file and the code disagree, the code wins and the next entry says so.
2026-11-25 — v0.2.0 built (builder), on feature/signatures (PR #2), not merged, not tagged
What it adds: arcanum::sign, hybrid signatures ML-DSA-65 + Ed25519, exactly RFC 10073
id-MLDSA65-Ed25519-SHA512 (design: docs/02_signatures.md, which now has an "As built" section).
Public key 1984 B, signature 3373 B, private key 64 B (ML-DSA seed || Ed25519 seed). The ML-DSA half is
ExpandedSigningKey::sign_randomized(M', ctx = Label, rng), hedged; the Ed25519 half is pure Ed25519 over
M', checked with verify_strict; one InvalidSignature whichever half fails. AppContext (only
domi/arcanum/v2/sig/app/ + a 1–231-byte label), bind_kem_key / verify_binding for X-Wing keys under
domi/arcanum/v2/sig/kem-key. The bare RFC interface (sign_composite_raw, verify_composite_raw, any
ctx) is hazmat only and still hedged. Stricter than the RFC: a non-canonical or small-order Ed25519 key
is refused at parse. ml-dsa =0.1.2 (alloc, rand_core, zeroize) and ed25519-dalek =3.0.0 (zeroize),
default features off. v0.1.0's bytes are unchanged (tests/golden_v1.rs untouched, passing).
Vectors (tests/vectors/SOURCES.md, sha256 of every original and subset): ACVP ML-DSA keyGen (whole)
and sigGen at 2972def2, sigVer at a7f283cd; Wycheproof ed25519_test and mldsa_65_sign_seed (whole)
and mldsa_65_verify (subset) at 20b25694; the composite-sigs testvectors.json at f0627ab (the
id-MLDSA65-Ed25519-SHA512 entry); RFC 8032 §7.1. Subsets made by tests/vectors/make_subsets.py.
Counts, run by the builder on feature/signatures, Windows 10, cargo 1.99.0 stable MSVC,
--target-dir D:/cargo-target/arcanum-v2 (intermediates in D:/cargo-build/, the machine's build-dir):
| Run | Result |
|---|---|
cargo test (debug) |
121 passed, 0 failed, 0 ignored (82 from v0.1.0 + 39 new) |
cargo test --release |
121 passed, 0 failed, 0 ignored |
cargo clippy --all-targets --all-features -- -D warnings |
clean |
cargo fmt --check |
clean |
zeroize-probe (--test-threads=1) |
1 passed (now also covers the signing key, to_bytes, signing and binding) |
cargo deny check |
advisories ok, bans ok, licenses ok, sources ok |
cargo audit |
64 crates, 0 vulnerabilities, 0 warnings (advisory db of 2026-11-25, 1,568 advisories) |
fuzz signatures (new) |
605 s, 38,609 executions, 0 crashes, 0 artifacts (libFuzzer + ASan, nightly 1.102.0 2026-11-24, MSVC 14.44 asan runtime; coverage 3,549; 63 exec/s; corpus and artifacts on D:), on 5a52854 + the target |
New tests: kat_mldsa65 6, kat_ed25519 3, sig_composite 6, sig_halves 5, sig_every_byte 7,
sig_malformed 5, sig_hygiene 6, feature_hygiene +1.
Answers to the doc's open gap: verify_strict accepts both RFC 10073 vectors (s, sWithContext),
and agrees with all 151 Wycheproof Ed25519 verdicts.
Mutation checks by the builder (each reintroduced with src/sign.rs edited, seen to fail, reverted;
git diff clean after):
- M1, test 4: verify checks only the ML-DSA half (
if ml_ok): failsa_zeroed_or_missing_half_is_refusedanda_half_from_another_signature_is_refused. - M2, test 3/4: the ML-DSA half signs and verifies with an empty ctx instead of Label: fails
rfc_signatures_verify,own_signatures_verify_under_an_independent_rebuild_of_m_prime,ml_dsa_half_uses_the_label_as_its_context(cargo stopped there;sig_halvesnot reached). - M3, test 5: ctx left out of M' (its length kept): fails
flipping_any_byte_of_the_context_fails. - M4, test 5:
not_afterleft out of the binding hash: failsevery_field_of_a_key_binding_mattersanda_key_binding_never_verifies_as_an_app_message_and_back(the documented encoding no longer matches). - M5, hygiene:
verify_composite_rawungated: failsthe_raw_interface_is_not_reachable_without_hazmat. - M6, hygiene:
#[derive(Clone)]onSigningKey: failsml_dsa_internals_are_not_reachable. - M7, test 6:
is_weak()dropped from the key check: failsweak_and_non_canonical_ed25519_keys_are_refused.
Not verified: constant time (dudect, Day 7); anything on Linux; interop with a non-Rust RFC 10073
implementation beyond the RFC's own vector (one key, two signatures); a byte-exact composite signing KAT
(the RFC's vectors are hedged; byte-exact checks exist per half); the ACVP and Wycheproof cases dropped by
the subsets; HashML-DSA (not used). The fuzz run is one 10-minute run at 63 exec/s (ASan and ML-DSA are
slow), far fewer executions than v0.1.0's target. The first test commit (2a432f5) failed by not compiling
(the module did not exist); it also had one test bug, fixed in 5a52854. Not audited.
For consumers: as for v0.1.0, and also ban a direct ml-dsa dependency in deny.toml (its
sign_internal, sign_mu_deterministic and empty-ctx Signer are public) and ed25519-dalek/hazmat;
never use a composite signature as an identifier (not SUF-CMA, RFC 10073 §9.2, pinned by sig_halves).
2026-11-25 — v0.1.0 (owner session)
Who owns this: the Via owner session. Mark's decisions go through the orchestrator session.
Released: v0.1.0, an annotated tag on the --no-ff merge of PR #1 (feature/arcanum, head
96086be plus this file) into main. Not audited. Whether later releases must be signed through
Artifex is an open question for Mark; this tag is not signed.
What it is: one #![no_std], #![forbid(unsafe_code)] crate, no I/O, no clock, randomness as a
parameter.
xwing: X-Wing (ML-KEM-768 + X25519), draft-connolly-cfrg-xwing-kem-11, unmodified (D-QA-1), stricter in two ways invisible to honest peers: low-order X25519 inputs areNonContributory, and a public key whose X25519 half is not canonical isInvalidPublicKey(QA R2-02).- The raw one-way KEM is
hazmatonly (QA R2-01): a release consumer can parse keys and ciphertexts and generate a key pair, but cannot encapsulate, decapsulate or read an X-Wing secret. exchange: the mutual exchange (QA A-15), the full transcript bound in Arcanum's HKDF-SHA-256 layer underdomi/arcanum/v1/...labels,Session::wireguard_psk(epoch);RECOMMENDED_EPOCH_SECONDS = 120.seal: a one-shot sealed box, 1137 bytes of overhead, no sender authentication, not HPKE.expandtakes exactly one label and one fixed-width field (QA R2-03); the v1 bytes are unchanged (tests/golden_v1.rs).- Every function that takes an RNG says it must be the OS RNG or a CSPRNG seeded once from it (QA R2-04).
- Licence: CustosPublic's CPAL-1.0 text byte for byte, Exhibit A naming Arcanum, Exhibit B "Built on Domi".
Counts, run by the owner session on a fresh clone at 96086be, Windows 10, cargo 1.99.0 stable MSVC:
| Run | Result |
|---|---|
cargo test (debug) |
82 passed, 0 failed, 0 ignored |
cargo test --release |
82 passed, 0 failed, 0 ignored |
cargo clippy --all-targets --all-features -- -D warnings |
clean |
cargo fmt --check |
clean |
zeroize-probe (--test-threads=1) |
1 passed |
cargo deny check |
advisories ok, bans ok, licenses ok, sources ok |
cargo audit |
55 crates, 0 vulnerabilities |
fuzz untrusted_input |
631 s, 172,694 executions, 0 crashes, 0 artifacts (libFuzzer + ASan, nightly 1.102.0, Windows MSVC; coverage 1,812 edges), on 96086be |
Mutation checks by the owner session (each reintroduced, seen to fail, reverted):
- R2-02: skipping the canonical check fails
qa_r2_02_non_canonical_x25519_public_key_is_refused. - R2-01: making
encapsulateandSharedSecret::as_bytespublic again failsqa_r2_01_raw_shared_secret_is_not_reachable_without_hazmat. Ungatingas_bytesalone does not fail it, correctly: no release function produces aSharedSecretthen. The test reaches the secret only throughencapsulate, notdecapsulate(a minor gap).
For consumers (via, via-core, Canalis, Custos, Tabellarius): depend by git tag, never by path; never
enable arcanum/hazmat outside tests, and repeat tests/feature_hygiene.rs's cargo tree check in CI; ban a
direct ml-kem dependency in deny.toml (its encapsulate_deterministic is public); pass the OS RNG and
grep for from_seed( outside tests/.
Carried to Day 3 (recorded, not Arcanum bugs): no forward secrecy against later theft of both static
secret keys (a fresh exchange with an ephemeral key pair per epoch); no key-confirmation message; epoch
state and the replay window (A-12, A-13) live in the engine; Initiation<'a> borrows the secret key, which
may need an owned variant in async code (a 0.x API change).
Not verified: constant time (QA A-32, dudect, belongs in the Day 7 audit pack on a quiet Linux box); anything on Linux; FIPS 203 from the NIST PDF; RFC 7748's 1,000,000-iteration vector; interop with a non-Rust X-Wing. There is no CI: every number here was run by hand.
2026-11-25 — Day 1 built (builder), reviewed twice (QA)
The builder's PR (67 tests, 661 s of fuzzing) and two QA reviews: the first QA attack plan
(Via/qa/01_arcanum_attacks.md), and the second review (Via/qa/review-arcanum-pr1.md, findings R2-01 to
R2-05, comments #49902–#49909), answered in 6780abc and 96086be (replies #49927–#49931, summary #49951).