Normative specification of the vcap proof format, plus the conformance test vectors and the JSON Schema validator every implementation runs in CI.
Project site: https://vcap.gregoriogalante.com. Check a sealed file in the browser with the public verifier: https://verify.vcap.gregoriogalante.com.
This repository blocks every other one: two native sealing cores, a React Native bridge, a web capture SDK and four verifiers must agree byte for byte.
In development. Nothing is frozen and no version has been released; vcap/1.0
is the format identifier inside every proof, not a release. A breaking change
is allowed and is recorded as breaking in CHANGELOG.md, which
is the authority on the format's status. The additive-only rule of spec §9
binds at the first build, SDK or sealed file that reaches somebody else — until
then no change has to carry a fallback for older files.
spec/ the specification document (normative), the watermark payload
layouts (normative), the measured watermark robustness curve
(informative: where the mark holds, where it breaks, what was not
measured), the C2PA interoperability and sidecar companion
(informative, with the writer rules it pins) and the public threat model
reviews/ review notes on the draft (crypto, implementability); the spec absorbs them and cites
their measurements, they stay as the record of why; design-*.md are proposals, each with its status
schema/ JSON Schema of the proof + validator
vectors/ conformance vectors: sealed files, broken signatures, edge cases (see vectors/README.md),
the versioned corpus manifest and how to claim conformance against it (vectors/CONFORMANCE.md)
tools/ reference tooling (Node 22, TypeScript): JCS, trailer, canonical bytes, core signature,
segment chain, the segment timing record (timing.ts, written to be ported), the C2PA carrier reader, the vector generators and the reference
verifier CI runs over vectors/,
plus corpus-drift.sh, which a consumer that pins this repository as a submodule
runs from its own suite to learn whether its pin has fallen behind main
- Test vectors are written before the code that produces them. A vector carries its expected verdict, decided in review, not derived from an implementation's output.
- An independent implementation must be writable from the spec alone. If someone has to ask the author, the spec is not finished.
- No product brand anywhere in the format: trailer magic is
"VCAP" + uint8 major + uint8 minor + uint16 flags, version string isvcap/1.0, sidecar extension is.vcap. Sealed files are immutable; the brand is provisional.
These hold for every line of code in every repository:
- No server of ours is needed to produce a verdict. The floor is the file alone: signature, attestation chain, media hash, segment chain and every attachment the proof carries are checked offline, and a verdict is always reached. Above the floor, answers only a service can give — the log's signed key status, a chain's current revocation list, an anchor's on-chain record — raise what a verdict can say (green needs the log's status) and are named as their source in it; their absence lowers a verdict, never breaks it. A component that becomes necessary to produce a verdict is a design error.
- Server registration is always optional: capturing and verifying work with no account and no network.
- A watermark alone is never a green verdict: without a valid signature it is "origin traced", not "authentic".
- A missing field yields a weaker verdict, not an error: no timestamp means "no trusted time", and the verifier says so.
- Failures are published alongside successes.
- Location is never "guaranteed": the reached level is declared (declared, corroborated, authenticated).
vcap (verified capture) is the internal codename and the only name allowed in
identifiers: package names, bundle ids, trailer magic, proof version string,
database schemas, log prefixes. The product brand is provisional and must never
appear in anything expensive to rename — it lives only in UI strings (single
localization file) and store metadata.
In main, tested, conformance vectors passing in CI, and documented where the next person needs it. Not "works on my branch".
Code, comments, README and commit messages in English.
MIT, for everything in this repository: the specification text, the threat
model, the schema, the vectors and the tools (LICENSE). A specification is
worth what it can be implemented into, and the conformance vectors are meant to
live inside other people's test suites. The copyright holder is "the vcap
authors" until a legal entity is named.
The separate vault object draft and
offline reference decoder define recoverable
exports with the organization's private key. They do not change the vcap/1.0
proof format. The small interoperability vector is public test data; its
private key and deterministic encoder are never for real files.