Skip to main content

Trufo Provenance - core content-provenance engine (C2PA, signing, shared types).

Reason this release was yanked:

Missing remote signing public surface required by trufo remote C2PA signing.

Project description

Trufo Provenance

Trufo Provenance is Trufo's core content-provenance engine for C2PA manifest generation, validation, remote signing integration, cryptographic signers, and shared provenance types. It is a lower-level building block used by Trufo's hosted services and SDKs; most application developers should install the public trufo SDK instead of importing this package directly.

This package is in an alpha release state. APIs and schemas may change until the package enters beta.

Installation

Most SDK users should install provenance support through the public trufo SDK:

pip install "trufo[provenance]"

That SDK extra resolves this package as an implementation dependency. Direct installation is primarily for maintainers, service deployments, and low-level integration testing:

pip install "trufo-provenance[c2pa]"

The c2pa extra on trufo-provenance installs the Python dependencies needed by the C2PA media pipeline, such as image/video helpers and file-type detection. The native c2pa-rs bridge is bundled in the Linux wheel itself.

The distribution name is trufo-provenance; the Python import package is tfprov for historical compatibility:

import tfprov

Python 3.10 or newer is required. Version 0.1.0 publishes Linux wheels with the native c2pa-rs bridge bundled. macOS and Windows wheels are not published yet.

What's in here

  • tfprov.c2pa_py — C2PA manifest build/parse helpers, assertions, and schemas.
  • tfprov.c2pa_rs_bridge — ctypes loader and FFI wrappers for the native c2pa-rs bridge.
  • tfprov.c2pa_generator — Trufo claim-generation orchestration used by hosted and SDK signing flows.
  • tfprov.crypt — signing algorithms, key handling, local signers, KMS signers, and remote signers.
  • tfprov.util — shared media, file, and AWS helpers.

Relationship to other Trufo packages

  • trufo-provenance — this package; the lower-level provenance engine.
  • trufo — the public Python SDK. SDK users install trufo directly; optional SDK features import trufo-provenance from its published wheel.
  • trufo-server — Trufo's hosted services. Server deployments use this library directly from the repository/deployment environment rather than through the trufo SDK extra.

Documentation

User-facing SDK documentation lives in the trufo package. This package is documented primarily for maintainers and service integrations.

Native (Rust) C2PA path

The C2PA signing and validation path is backed by a Rust cdylib bridge loaded through ctypes. The Linux wheel includes libc2pa_rs_bridge.so alongside tfprov.c2pa_rs_bridge. macOS and Windows native wheels are future work.

License

This package is distributed under the proprietary Trufo license in LICENSE. Using Trufo hosted APIs also requires valid Trufo API credentials.

Contributing

See CONTRIBUTING.md. During alpha, external issues are welcome; external pull requests are not accepted.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

trufo_provenance-0.1.0-py3-none-manylinux_2_28_x86_64.whl (10.9 MB view details)

Uploaded Python 3manylinux: glibc 2.28+ x86-64

File details

Details for the file trufo_provenance-0.1.0-py3-none-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for trufo_provenance-0.1.0-py3-none-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 64bf4301872d02d865c851a1d674c966eddf9f14be13cc9daab26dbbc917e607
MD5 08418dcf48201a126ceba4e2a675771f
BLAKE2b-256 0f472155d96fa2d25ae6d3508039a55d3a0d7b8fb6e265b7e9aee80da1e9da34

See more details on using hashes here.

Provenance

The following attestation bundles were made for trufo_provenance-0.1.0-py3-none-manylinux_2_28_x86_64.whl:

Publisher: publish.yml on trufo-ai/trufo-provenance

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page