pub fn verify_asset(
manifest: &AssetManifest,
ciphertext: &[u8],
directory: &DeviceDirectory,
authority: &dyn AlbumAuthority,
local_chain_head: Option<Hash32>,
) -> VerifyOutcomeExpand 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.
ciphertextis the asset’s ciphertext, used to confirm the content hash (integrity); it need not be decryptable here.local_chain_headis the hash of the current head provenance record for this asset, orNoneif the asset is unknown locally.