UMIS SDK
    Preparing search index...

    Interface DemoWorld

    Three invented organisations with their members, credentials, signed registries and status lists, and a simulated clock. Everything is built from public seeds, so the keys protect nothing and the world is the same on every run unless another crypto provider is given.

    interface DemoWorld {
        clock: SimClock;
        crypto: CryptoProvider;
        orgs: Readonly<Record<OrgSlug, DemoOrg>>;
        people: Readonly<Record<PersonKey, DemoPerson>>;
        context(
            i: {
                ledger?: AuthorityLedger;
                org: OrgSlug;
                policy: PresetName;
                replay?: ReplayStore;
            },
        ): VerifierContext;
        publish(): Promise<void>;
        revoke(jti: string, status?: 2 | 1): void;
        statusLists(): Map<string, { fetchedAt: number; token: string }>;
    }
    Index
    clock: SimClock

    The provider that made the world; frames built for it use the same one.

    orgs: Readonly<Record<OrgSlug, DemoOrg>>
    people: Readonly<Record<PersonKey, DemoPerson>>
    • What the verifier of org decides with at checkpoint policy policy, at the current time of the clock: its own registry, the status lists of the issuers in it, and (for a policy that takes one-way tokens) its member cache.

      Parameters

      Returns VerifierContext

    • Signs every status list again at the current time of the clock.

      Returns Promise<void>

    • Marks a credential revoked (status 1) or suspended (2) in its issuer's list. Revoking also revokes every credential delegated from it. Nothing changes for a verifier until DemoWorld.publish.

      Parameters

      • jti: string
      • Optionalstatus: 2 | 1

      Returns void

    • The status lists as last published, keyed by address; a copy, so a verifier that holds it keeps the old lists.

      Returns Map<string, { fetchedAt: number; token: string }>