Skip to main content

Module provenance

Module provenance 

Source
Expand description

Signed manifests and append-only provenance chains (SSoT: Cryptography — Provenance).

Verification of all of this flows through the single verify_asset chokepoint.

Structs§

AssetManifest
A signed asset manifest: a ManifestCore plus its two hybrid signatures.
DerivativeCore
The signed core of a derivative manifest (thumbnail / preview / embedding).
DerivativeManifest
A signed derivative manifest.
ManifestCore
The signed core of an asset manifest — every field the two signatures cover.
ProvenanceChain
An in-memory append-only provenance chain for one asset.
ProvenanceRecord
One link in an asset’s provenance chain.
WrappedFileKey
An externally-chosen file key sealed under the AMK: wrap_nonce || AES-256-GCM(K) || tag (the asset-keywrap/v1 derivation — see Encryption — Asset Key Derivation). Length is fixed by crypto_suite_id; the bytes are ciphertext, opaque to the server.

Enums§

Action
The seven authorized lifecycle actions.
ChainError
Errors from building or walking a provenance chain.
DerivativeRole
The role of a derivative (SSoT: Provenance — Derivative Provenance).
KeyMode
How a reader obtains the asset’s file key (closed enum; SSoT: Cryptography — Provenance).
RecordDecodeError
Why a provenance record’s bytes could not be decoded.

Constants§

ASSET_MANIFEST_VERSION
Current asset-manifest schema string.
DERIVATIVE_MANIFEST_VERSION
Current derivative-manifest schema string.
PROVENANCE_RECORD_VERSION
The provenance-record version this build writes, and the newest it reads.