Skip to main content

prior_hash_matches

Function prior_hash_matches 

Source
pub fn prior_hash_matches(
    prior: Option<Hash32>,
    stored_head: Option<Hash32>,
    is_create: bool,
) -> bool
Expand description

Invariant 17: prior_provenance_hash equals the last accepted manifest’s hash for this asset. stored_head is None for a never-seen asset (only a create is valid then).