Skip to main content

verify_asset

Function verify_asset 

Source
pub fn verify_asset(
    manifest: &AssetManifest,
    ciphertext: &[u8],
    directory: &DeviceDirectory,
    authority: &dyn AlbumAuthority,
    local_chain_head: Option<Hash32>,
) -> VerifyOutcome
Expand description

Verify a manifest against the device directory, the album’s MLS-attested authority, and the local provenance chain head. The one path by which an asset is acknowledged.

  • ciphertext is the asset’s ciphertext, used to confirm the content hash (integrity); it need not be decryptable here.
  • local_chain_head is the hash of the current head provenance record for this asset, or None if the asset is unknown locally.