Skip to main content

Module verify_derivative

Module verify_derivative 

Source
Expand description

The derivative-manifest arm of the acknowledgement chokepoint (SSoT: Cryptography — Provenance § Derivative Provenance).

verify_derivative is the one path by which a client trusts a received DerivativeManifest — the manifest that names the epoch, the source asset and the nonce prefix a thumbnail or preview is decrypted with. “A derivative whose manifest fails verification is surfaced, never silently applied”: it answers with the same three-way VerifyOutcome verify_asset does, and holds a derivative to the same two signatures:

  • device_sig under the generating device’s entry in the published directory, dispatched on the entry’s declared classical algorithm;
  • write_sig under the album’s write-tier key for the epoch amk_version selects — through the very helper verify_asset uses, so a derivative can never be authorized by a weaker rule than an asset.

Two bindings an asset manifest does not need are added: source_asset_id must name the asset the derivative is being opened for (a validly signed derivative of another asset is a transplant), and prior_provenance_hash must chain to the receiver’s head for (source_asset_id, role) — the derivative-poisoning defense.

Functions§

verify_derivative
Verify a received derivative manifest for the asset asset_id.