Skip to content

Function registry::verify_catalog

zaun_client::registry::verify_catalog · Function

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

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).

Full rustdoc page