Skip to content

verifyCatalog(bytes, signature, pinnedKeys, options?): Promise<CatalogVerification>

Defined in: zaun/js/index.d.ts:297

Verifies catalog.json (exact bytes) and catalog.json.sig against the pinned key (base64url) whose id the catalog names. now: Unix seconds or a Date (default: this device’s clock). seen: what an earlier success returned for this registry, so a rollback is refused.

Bytes

string | Uint8Array<ArrayBufferLike>

string | string[]

number | Date

CatalogSeen

Promise<CatalogVerification>