Skip to content

Latest commit

 

History

History
44 lines (33 loc) · 1.78 KB

manifest.md

File metadata and controls

44 lines (33 loc) · 1.78 KB

Manifest definition file

The manifest definition file is a JSON formatted file with a .json extension. Relative file paths are interpreted as relative to the location of the definition file unless you specify a base_path field.

Example manifest definition file

Here's an example of a manifest definition that inserts a CreativeWork author assertion. Copy this JSON int a file to use as a test manifest.

It is important to provide a value for the Time Authority URL (the ta_url property) to have a valid timestamp on the claim.

The default certificates in the sample folder are built into the c2patool binary. This example uses the default testing certs. You will see a warning message when using them, since they are meant for development purposes only.

NOTE: Use the default private key and signing certificate only for development. For actual use, provide a permanent key and cert in the manifest definition or environment variables; see Creating and using an X.509 certificate.

{
    "ta_url": "http://timestamp.digicert.com",

    "claim_generator": "TestApp",
    "assertions": [
        {
            "label": "stds.schema-org.CreativeWork",
            "data": {
                "@context": "https://schema.org",
                "@type": "CreativeWork",
                "author": [
                    {
                        "@type": "Person",
                        "name": "Joe Bloggs"
                    }
                ]
            }
        }
    ]
}

JSON schemas