Skip to main content

verify_catalog

Function verify_catalog 

Source
pub fn verify_catalog(
    bytes: &[u8],
    sig: &str,
    pinned: &[String],
    now: u64,
    seen: Option<&str>,
) -> CatalogCheck
Expand description

Verifies catalog.json bytes and the text of catalog.json.sig against the key of pinned (base64url public keys) that the catalog names, at Unix time now (seconds), after seen (the seen an earlier success returned for that registry, as JSON).