Skip to content

Interface: C2paSign ​

Defined in: types.ts:54

Methods ​

c2paVersion() ​

c2paVersion(): string

Defined in: types.ts:65

The c2pa-rs version compiled into the module.

Returns ​

string


read() ​

read(image, format): ManifestReport | undefined

Defined in: types.ts:63

Reads a file's manifest store, for the host's own checks. undefined for a file that carries none. A file that only points at a remote manifest throws REMOTE_MANIFEST with the URL: the module reads nothing over the network. A broken store throws C2PA.

Parameters ​

image ​

Uint8Array

format ​

string

Returns ​

ManifestReport | undefined


sign() ​

sign(input): Promise<SignResult>

Defined in: types.ts:56

Signs the definition into the file.

Parameters ​

input ​

SignInput

Returns ​

Promise<SignResult>