In the Browser: a C2PA Viewer
The quickest check is a browser-based C2PA viewer. Open verify.trufo.ai, drop in a file, and inspect the result. It displays the signer, recorded actions, timestamp status, and whether the content matches its hard binding. If the embedded metadata was stripped but the file carries a PawPrint watermark, the validator resolves and displays the recovered credential automatically.
Offering a free public verification tool is also expected under both the EU Code of Practice and the California AI Transparency Act. See AI Labeling Compliance.
On the Command Line with c2patool
c2patool is the open-source command-line tool from the Content Authenticity Initiative. It prints a file’s manifest store as JSON:
c2patool signed.jpg
Add --detailed for the full structure with every assertion and hash:
c2patool signed.jpg --detailed
The output includes a validation section. An empty failure list means the signature and hashes verified. Whether the signer shows as trusted depends on the trust list configured in your copy of c2patool.
In Code
The open-source C2PA libraries read manifests from Rust, Python, JavaScript, C++, and other languages. In Python:
from c2pa import Reader
with Reader("signed.jpg") as reader:
print(reader.json())
Check the c2pa-python release documentation for the exact constructor signature in your version. See also C2PA in Python and Trufo’s verification documentation.
Reading the Result
Validators emit standard C2PA status codes. The key ones to look for:
| Code | Meaning |
|---|---|
claimSignature.validated | The signature over the claim is cryptographically valid |
signingCredential.trusted | The certificate chains to the C2PA Trust List, so the signer is named |
signingCredential.untrusted | The signature is valid, but the certificate is not on the trust list; source displays as unknown |
timeStamp.trusted | The timestamp comes from a trusted TSA, so the credential outlives the certificate |
assertion.dataHash.match | The content is unchanged since signing |
assertion.dataHash.mismatch | The content was modified after signing |
A file can be validly signed and still untrusted — for example, when signed with a test or dummy certificate. Production output requires a certificate from an authority on the C2PA Trust List, such as Trufo CA.
When There Is No Credential
No manifest does not mean a file is real or fake; it means nothing was declared or the metadata was removed during transit. When the producer added an invisible watermark soft binding, a validator that supports that soft-binding algorithm can still recover the credential.
Verify What You Ship
Before releasing a signing pipeline to production, test it the way a downstream validator will:
- Sign a sample with your production key.
- Run it through verify.trufo.ai or
c2patooland confirmsigningCredential.trusted,timeStamp.trusted, and a passing hash match. - Strip the metadata (or re-encode/screenshot), verify again, and confirm the watermark recovers the credential.
To generate a test file right away:
pip install trufo
trufo set-api-key c2pa-sign-test <your-api-key>
from pathlib import Path
from trufo import sign_c2pa_cloud_test
from trufo.util.credentials import TrufoAPIKey, load_api_key
api_key = load_api_key(TrufoAPIKey.C2PA_SIGN_TEST)
signed_bytes = sign_c2pa_cloud_test(api_key, Path("input.jpg").read_bytes())
Path("signed.jpg").write_bytes(signed_bytes)