@contentauth/c2pa-js
    Preparing search index...

    A reference to a resource to be used in JSON serialization.

    The underlying data can be read as a stream via [Reader::resource_to_stream][crate::Reader::resource_to_stream].

    interface ResourceRef {
        alg?: null | string;
        data_types?: null | AssetType[];
        format: string;
        hash?: null | string;
        identifier: string;
        [k: string]: unknown;
    }

    Indexable

    • [k: string]: unknown
    Index

    Properties

    alg?: null | string

    The algorithm used to hash the resource (if applicable).

    data_types?: null | AssetType[]

    More detailed data types as defined in the C2PA spec.

    format: string

    The mime type of the referenced resource.

    hash?: null | string

    The hash of the resource (if applicable).

    identifier: string

    A URI that identifies the resource as referenced from the manifest.

    This may be a JUMBF URI, a file path, a URL or any other string. Relative JUMBF URIs will be resolved with the manifest label. Relative file paths will be resolved with the base path if provided.