Skip to content

feat(vindex/mapfn/mtc): add draft-08 MTC MapFn (v8) alongside legacy bootstrap (v0) - #208

Merged
mhutchinson merged 1 commit into
transparency-dev:mainfrom
mhutchinson:feat/mtc-v8-mapfn
Dec 2, 2026
Merged

mhutchinson merged 1 commit into
transparency-dev:mainfrom
mhutchinson:feat/mtc-v8-mapfn

Conversation

@mhutchinson

Copy link
Copy Markdown
Contributor

Summary

  • Moves the existing legacy Cloudflare bootstrap MTC MapFn to vindex/mapfn/examples/mtc/v0/ (mtc-v0.wasm) to preserve compatibility with bootstrap-mtca-shard3.
  • Adds vindex/mapfn/examples/mtc/v8/ (mtc-v8.wasm) supporting draft-ietf-plants-merkle-tree-certs-08 (and wire-compatible -07) / c2sp.org/mtc-tlog@v0.1.0:
    • Skips and frames MTCLogEntryExtension extensions<0..2^16-1> before reading the 2-byte MTCLogEntryType.
    • Parses tbs_cert_entry_data as DER contents octets (no outer 0x30 SEQUENCE wrapper) with subjectPublicKeyAlgorithm present.
  • Updates mustExampleWASMHost in vindex/internal/e2e/e2e_test.go to handle nested example paths (mtc/v0).
  • Consolidates vindex/mapfn/examples/mtc/README.md with:
    • Support/testing matrix for v8 vs v0.
    • Table of live Chrome CQRP DRAFT07/DRAFT08 test logs (TrustAsia Test CA 3/4, mtcs.dev Test CA 2, DigiCert Test CA 1, Sectigo Test CA 1).
    • Snippet to convert cosigners.pem entries into C2SP ML-DSA-44 vkeys and runnable vindexd / vindex-client examples.
    • Preserved Cloudflare bootstrap-mtca-shard3 v0 instructions.

Testing

  • go test ./vindex/mapfn/examples/mtc/... (unit + WASM host tests for v0 & v8) — PASS
  • go test -run TestE2E_MTCPersonality_GoldenLeavesAndAuditor ./vindex/internal/e2e — PASS
  • go vet ./... — PASS
  • Live E2E indexing and vindex-client exact + prefix verification against CQRP TrustAsia Test CA 3 (https://log.mtc-staging.trustasia.com/44494.3.1.3/1, 52/52 leaves indexed, 42 keys extracted, ML-DSA-44 checkpoint verified) — PASS

…bootstrap (v0)

- Move legacy Cloudflare bootstrap MTC MapFn to vindex/mapfn/examples/mtc/v0/ (mtc-v0.wasm).
- Add vindex/mapfn/examples/mtc/v8/ (mtc-v8.wasm) supporting draft-ietf-plants-merkle-tree-certs-08 (and wire-compatible -07): parses extensions<0..2^16-1>, 2-byte entry type, and contents-only TBSCertificateLogEntry DER (no outer SEQUENCE, includes subjectPublicKeyAlgorithm).
- Update e2e WASM test helper to support nested example paths (mtc/v0).
- Consolidate vindex/mapfn/examples/mtc/README.md with v8 vs v0 support matrix, live CQRP DRAFT07/DRAFT08 test log table, cosigners.pem -> C2SP ML-DSA-44 vkey conversion, and runnable vindexd/vindex-client examples.
@mhutchinson
mhutchinson requested a review from patflynn December 1, 2026 16:56
@mhutchinson
mhutchinson merged commit 0c20429 into transparency-dev:main Dec 2, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants