UMIS SDK
    Preparing search index...

    Module @umis/registry

    @umis/registry

    @umis/registry builds and reads the trusted-issuer registry, which tells a UMIS verifier which issuers to trust. The registry is the only source of trust across organisations, so a verifier needs it as soon as it accepts credentials from another organisation.

    An organisation’s administrator signs a snapshot of the issuers it trusts. The organisation’s devices verify the snapshot with the administrator’s key and decide from it offline. There is no shared platform and no lookup on the network.

    npm install @umis/registry @umis/core
    
    Export What it does
    signRegistry(snapshot, signer) checks every entry and that no issuer repeats, then signs {iss, ver, iat, entries} as umis-registry+jwt
    parseRegistry(jws, ownerKeys) verifies a snapshot and returns {iss, version, iat, entries}
    resolveIssuer(trusted, { issuer, vct, kid, now }) tells whether an issuer is trusted for a type and returns the key that verifies it
    entryForStatusList(trusted, issuer, uri) returns the issuer’s own entry when that entry lists the status list
    selfEntry({ issuer, name, keys, vcts, statusLists }) builds the entry of the organisation’s own issuer for policies that accept 'self'
    trustedIssuerEntrySchema the entry as a zod schema

    An entry is {issuer, name, jwks, vcts, statusLists, validUntil?, status}, and its status is active, suspended or revoked. resolveIssuer runs its checks in this order and answers with the first failure. An issuer without an entry gives ISSUER_UNTRUSTED. An entry that is not active or is past validUntil gives ISSUER_SUSPENDED. A type the entry does not list gives ISSUER_VCT_NOT_ALLOWED. No matching key gives ISSUER_KEY_UNKNOWN. A verifier trusts a status list only through the entry of the issuer that signs it.

    import { parseRegistry, signRegistry } from '@umis/registry';

    // at organisation B, online: the administrator trusts organisation A for role and authority credentials
    const snapshot = await signRegistry({ iss: 'https://b.example', ver: 1, iat: now, entries: [entryOfA] }, adminKey);
    // on B's devices, offline afterwards
    const { entries: trusted } = await parseRegistry(snapshot, adminKey.publicJwk);

    See also the UMIS SDK, the profile, the security model and the API reference.

    Copyright 2026 Ishtvan Komonii. Licensed under the Apache License 2.0.

    RegistrySnapshotV1
    IssuerResolution
    trustedIssuerEntrySchema
    entryForStatusList
    parseRegistry
    resolveIssuer
    selfEntry
    signRegistry