Context configuration for C2PA operations.
Context encapsulates settings and configuration options for Reader and Builder operations. It provides a flexible way to configure SDK behavior including the verification configuration, trust configuration, and builder options.
const context: Context = { verify: { verifyTrust: true, verifyAfterReading: true }, trust: { trustAnchors: 'https://example.com/anchors.pem' }};const reader = await c2pa.reader.fromBlob(blob.type, blob, JSON.stringify(context)); Copy
const context: Context = { verify: { verifyTrust: true, verifyAfterReading: true }, trust: { trustAnchors: 'https://example.com/anchors.pem' }};const reader = await c2pa.reader.fromBlob(blob.type, blob, JSON.stringify(context));
Optional
Builder settings.
Trust configuration for CAWG identity validation.
Trust configuration for C2PA claim validation.
Verification settings.
Context configuration for C2PA operations.
Context encapsulates settings and configuration options for Reader and Builder operations. It provides a flexible way to configure SDK behavior including the verification configuration, trust configuration, and builder options.
Example