docs: HANDOVER for v0.2.0, the as-built notes and the answered verify_strict gap
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.
This commit is contained in:
+63
@@ -2,6 +2,69 @@
|
||||
|
||||
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`): fails `a_zeroed_or_missing_half_is_refused`
|
||||
and `a_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_halves` not reached).
|
||||
- M3, test 5: ctx left out of M' (its length kept): fails `flipping_any_byte_of_the_context_fails`.
|
||||
- M4, test 5: `not_after` left out of the binding hash: fails `every_field_of_a_key_binding_matters` and
|
||||
`a_key_binding_never_verifies_as_an_app_message_and_back` (the documented encoding no longer matches).
|
||||
- M5, hygiene: `verify_composite_raw` ungated: fails `the_raw_interface_is_not_reachable_without_hazmat`.
|
||||
- M6, hygiene: `#[derive(Clone)]` on `SigningKey`: fails `ml_dsa_internals_are_not_reachable`.
|
||||
- M7, test 6: `is_weak()` dropped from the key check: fails `weak_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.
|
||||
|
||||
Reference in New Issue
Block a user