Skip to content

docs(vindex): clarify tlog-vindex spec edge cases before C2SP submission - #210

Open
mhutchinson wants to merge 1 commit into
transparency-dev:mainfrom
mhutchinson:docs/tlog-vindex-spec-clarifications
Open

mhutchinson wants to merge 1 commit into
transparency-dev:mainfrom
mhutchinson:docs/tlog-vindex-spec-clarifications

Conversation

@mhutchinson

Copy link
Copy Markdown
Contributor

Summary

Small pre-C2SP clarifications to vindex/docs/tlog-vindex.md:

  • Clarify that map-fn operates on authenticated leaf preimage bytes (for RFC 6962 / static-ct-api, the MerkleTreeLeaf hashed as SHA-256(0x00 || leaf_bytes), excluding unauthenticated auxiliary data like certificate chains).
  • Specify that map-fn MUST be total over all valid input log entries and MUST only emit valid canonical keys.
  • Clarify the input_size == 0 case in Auditing step 3 (input_root == SHA-256("")), since RFC 6962 PROOF(0, n) is undefined.
  • Relax client percent-encoding MUST to % and query delimiters (&, =, +, #, ?, ;), with SHOULD for other non-unreserved bytes, so standard JS encodeURIComponent is compliant (e.g. wildcard * in DNS keys).
  • Anchor /values 503/404 and pruning horizon P to the input-size of the server's latest published output log state commitment, and note that non-200 HTTP responses are unauthenticated errors.

Testing

Documentation-only change; verified against live wire.go, server.go, client.go, and mpt.go implementations.

- Clarify map-fn input is the authenticated MerkleTreeLeaf preimage (excluding unauthenticated static-ct-api chains).
- Specify that map-fn MUST be total over valid input entries and only emit valid canonical keys.
- Clarify input_size == 0 consistency check (input_root == SHA-256("")) in Auditing.
- Relax client percent-encoding MUST to % and query delimiters (SHOULD for other non-unreserved bytes) for JS encodeURIComponent compatibility.
- Anchor /values 503/404 and pruning horizon to the latest published output log state commitment's input-size, and note that non-200 responses are unauthenticated errors.
@mhutchinson
mhutchinson requested a review from patflynn December 3, 2026 16:39
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.

1 participant