This post covers trufo-py v2.3.0 (November 13), v2.3.1 (November 15), and v2.3.2 (November 18).
Signing Helpers Renamed
The four signing helpers now name their execution mode directly:
| Old Name (Deprecated) | New Name |
|---|---|
sign_c2pa | sign_c2pa_cloud |
sign_c2pa_test | sign_c2pa_cloud_test |
sign_c2pa_distributed | sign_c2pa_local |
sign_c2pa_distributed_test | sign_c2pa_local_test |
The old names remain importable until the next major release, though a star import no longer brings them in. See Cloud Signing and Local Signing with Python.
KMS-Backed Certificate Enrollment
request_c2pa_cert and request_c2pa_cert_test now accept an ec.EllipticCurvePrivateKey for the instance key, allowing keys to stay inside a cloud KMS rather than on disk. AWSKMSPrivateKey and GCPKMSPrivateKey in trufo.crypt.kms wrap AWS KMS and Google Cloud KMS keys directly. See Certificates.
POST /cert/list also now returns trufo_managed: true for certificates whose key is held by Trufo, and the Trufo-managed CAWG interim certificate (org_interim) explicitly reports revocable: false.
Local Watermark Profiles & Multichannel Audio
WatermarkSettingsandWatermarkProfile: Local watermark embedding (watermark_mediaandsign_c2pa_local) now supportsdefault(CPU FP32) andfast(CPU BF16 where supported and four-frame video interpolation, trading robustness for CPU throughput). CUDA selection remains automatic.- Multichannel Audio: PawPrint watermarking now supports WAV and FLAC audio with up to eight speaker channels, including 5.1 and 7.1 mixes. See Media Formats.
- Optional Manifest Storage:
skip_manifest_storage=Trueinstructs Trufo not to retain a copy of the signed manifest on the server. Per-embed watermarking refuses this option (400 ManifestStorageRequired) because recovery depends on stored manifests.
Assertions, Metadata & Ingredients
c2pa_metadataAssertion: Adds standard asset metadata (such as camera details) as a gatheredc2pa.metadataassertion (UserAssertion.C2PA_METADATA).- Embedded
inputToData: AninputToingredient can embed its payload (such as a text prompt) as base64dataalongside itsformat, up to 64 KB decoded. Anyone inspecting the signed file can read it. creationDescription & CAWG Namespaces:creationassertions now accept adescription, andcawg_metadataaccepts theplus,schema,xmpDM, andxmpRightsnamespaces.- Ingredient
action_history&transcode: Ingredientaction_historynow acceptsc2pa.transcodedandc2pa.repackagedwithout requiring adigitalSourceType. Thetranscodeaction also accepts unsigned inputs (returning400 Conflictonly when combined with a newly-created declaration). See Ingredients and Redaction.
Validation & Cleanups
- Stricter
400Validation: Duplicatecawg_metadata,cawg_training,ai_system, orcreationassertions now return400 DuplicateAssertion;c2pa.translatedinaction_historyrequiressourceLanguageandtargetLanguage(400 InvalidTranslationLanguages);.metadatacustom assertions require@context(400 InvalidMetadataContext) and are written as JSON per spec; non-exempt ingredient actions requiredigitalSourceType(400 MissingDigitalSourceType). - Watermark Bind Flexibility:
bind_commitnow accepts per-AI-system binds and emits aTrufoServerWarningwhen expected watermark actions are omitted instead of failing with400. AI system endpoints also acceptwatermark-prodandwatermark-testkeys. - Customer-Hosted Manifests Removed:
manifest_idandmanifest_endpointhave been removed frombind_commitandbind_commit_test. - Python Versions in Local Mode: Local signing supports CPython 3.10 through 3.15 (watermark embedding requires 3.12+; JPEG XL signing requires 3.12 or earlier).