
Trufo provides content-provenance infrastructure as a service: C2PA Content Credentials, invisible watermarking, trusted certificates, and timestamping, all behind one API. The open-source trufo-py library (v2.3.1) wraps the REST endpoints, manages credentials, and ships runnable quickstarts for every workflow.
pip install trufo trufo set-api-key c2pa-sign-test <your-api-key>
from pathlib import Path
from trufo import sign_c2pa_test
from trufo.util.credentials import TrufoAPIKey, load_api_key
api_key = load_api_key(TrufoAPIKey.C2PA_SIGN_TEST)
signed_bytes = sign_c2pa_test(api_key, Path("input.jpg").read_bytes())
Path("signed.jpg").write_bytes(signed_bytes)That is a complete C2PA signature — Trufo assembles and signs the manifest, so you do not need a certificate of your own. Swap in sign_c2pa() with a c2pa-sign-prod key for production-trusted output. The setup guide covers API keys and configuration in detail.
In Local mode, your media stays on your machine: Trufo's engine builds the manifest locally, and Trufo receives the signing instructions and signs the claim. Two ways to run it:
sign_c2pa_distributed() with the trufo[local-sign-only] or trufo[local-full] extra; local-full adds local watermark embedding. See Local mode with the Python SDK.ghcr.io/trufo-ai/trufo-local, an HTTP service on your machine that signs files by path, for callers in any language; the full image (2.3-full) adds watermark embedding. See Local mode with the Docker image.Questions and integration help: support@trufo.ai. Bug reports and feature requests: GitHub issues. For architecture reviews or enterprise onboarding, request a consultation.