Attest · Concept
Attestation bundles
An attestation bundle is the signed record a capture device makes for each photo or video, that binds the media's hash, time, location and device certificate under the device's key.
When to use it
You work with bundles when you build your own capture app, debug a signature_invalid result, or hand a capture to a third party who wants to check it. The capture SDK makes and submits them for you.
How it works
- The device hashes the raw sensor bytes into
sensor_hash. - It builds the bundle, serializes it as canonical JSON with
signatureset to""(keys sorted, no whitespace), and signs the SHA-256 of that with its ECDSA P-256 key. - For a photo, it embeds the bundle in the JPEG's XMP metadata under
provenance:AttestationBundle, in the namespacehttps://provenanceauth.com/ns/2.0/(earlier files usehttps://provenance.io/ns/1.0/, which verifiers still read), so the proof travels with the pixels. For a video, the bundle is a sidecar manifest.
- Capturesensor bytes → sensor_hash
- SignECDSA P-256 over canonical JSON
- Verifysignature, certificate, hash
Any change to any field after signing, even reformatting, fails signature_invalid.
Key fields
| Field | Type | Description |
|---|---|---|
schema | string | The bundle schema URI, https:/. Bundles signed before November 2026 carry https:/, which still verifies. |
schema_ | string | 2. (1. on the earlier bundles; the fields are the same). |
attestation_ | string | A UUIDv4 per capture; also the idempotency key on attest. |
device_ | string | The enrolled device. |
device_ | string | The device's X.509 certificate, checked against the root CA. |
claim_ | string | null | Your claim or case ID. |
carrier_ | string | null | The carrier the capture belongs to. |
capture_ | string | image or video. |
capture_ | string | When it was captured (RFC 3339). |
sensor_ | string | SHA-256 of the raw sensor bytes; for video, the chunk chain's root. |
gps | object | null | lat, lng and accuracy_; optionally fix_ (the fix's age at the shutter) and, on Android, is_ (the OS reported a mock location). |
biometric_ | boolean | Whether a biometric check ran at capture. |
biometric_ | string | null | face, fingerprint, or platform when the phone checked a strong biometric but doesn't say which kind (Android with more than one sensor). Null when biometric_ is false. |
signature | string | Base64url ECDSA P-256 signature over the canonical JSON. |
signature_ | string | ECDSA-P256-SHA256. |
Three optional fields describe the phone, as its OS reports them to the app: time_zone (an IANA zone), locale (a BCP 47 tag) and device_model. Each is signed when present and left out when unknown, so a bundle without them signs and verifies the same way.
A video bundle also carries session_nonce and video_manifest; see video attestation.
What verification checks
Verify a bundle by its attestation_id, or by sending the image bytes with the bundle embedded:
export PROVENANCE_API=https://sandbox-api.provenanceauth.com
export PROVENANCE_KEY=prv_test_full_K7mN3xQp9RbT2vWm8sYd4cFjLhXn6gAe
curl $PROVENANCE_API/v1/attest/verifications \
-H "Authorization: Bearer $PROVENANCE_KEY" \
-H "Content-Type: application/json" \
-d '{ "attestation_id": "att_00000000000000000000000000000001" }'
import { Provenance } from "@provenanceauth/sdk";
const prov = new Provenance({ apiKey: process.env.PROVENANCE_KEY!, baseUrl: process.env.PROVENANCE_API });
const result = await prov.attest.verifications.create({ attestationId: "att_00000000000000000000000000000001" });
import os
from provenanceauth import Provenance
prov = Provenance(os.environ["PROVENANCE_KEY"], base_url=os.environ["PROVENANCE_API"])
result = prov.attest.verifications.create(attestation_id="att_00000000000000000000000000000001")
The response, trimmed:
{
"id": "att_00000000000000000000000000000001",
"object": "verification_result",
"status": "verified",
"risk_score": 0,
"risk_factors": [],
"device_info": {
"device_id": "dev_00000000000000000000000000000001",
"enrolled": true,
"cert_valid": true
},
"capture_type": "image"
}
Export to C2PA
A bundle exports to a C2PA-style manifest: a COSE-Sign1 signature over a CBOR claim carrying the capture time, location, device and the sensor_hash binding. Export with toC2paManifest(bundle) in @provenance/core or the provenance-c2pa export command. The bundle stays the source of truth.
To check a C2PA manifest you received, use POST /. Its result is an advisory signal (c2pa_present_valid or c2pa_invalid) kept separate from the risk score.
Limitations: the export checks manifest structure and the claim signature. Provenance's signer isn't on a C2PA trust list, so a C2PA verifier reports the signature as valid with an unlisted signer.