@umis/status-list lets you revoke and suspend UMIS credentials with Token Status List draft-21. You build and sign a
list, verify it under the issuer’s keys with an explicit maximum age and read the state of one credential. Verifiers
hold the lists they need and decide offline.
npm install @umis/status-list @umis/core
| Export | What it does |
|---|---|
buildStatusListToken |
signs a statuslist+jwt from one status per entry, with bits 1 or 2 and an optional ttl and exp |
verifyStatusListToken |
checks the signature, sub, iat, an age up to and including maxAgeSeconds, and exp |
checkStatus |
returns the state of a credential’s entry as VALID, REVOKED, SUSPENDED or OUT_OF_RANGE |
parseStatusListToken |
reads a token without trusting it |
createStatusListCache |
creates a least-recently-used cache that holds 64 verified lists by default |
STATUS, createStatusList, statusListFromValues, encodeLst, decodeLst |
the packed list and its lst encoding |
import { buildStatusListToken, checkStatus, verifyStatusListToken } from '@umis/status-list';
const values = new Uint8Array(1024); // 0 = valid, 1 = revoked, 2 = suspended (with bits: 2)
values[7] = 1;
const token = await buildStatusListToken({ signer, uri, bits: 1, values, iat: now, ttlSeconds: 600 });
const verdict = await verifyStatusListToken(token, { keys: [issuerKey], expectedUri: uri, now, maxAgeSeconds: 86_400 });
if (verdict.ok) checkStatus({ uri, idx: 7 }, verdict.list); // 'REVOKED'
verifyStatusListToken returns { ok: true, list, ageSeconds } or { ok: false, reason }. A list older than
maxAgeSeconds or past its exp gives the reason STATUS_LIST_STALE. Every other problem with a token gives
STATUS_LIST_INVALID. The package refuses a list that inflates beyond 1 MiB. Inflation stops at the cap instead of
materialising a hostile list. A value other than 0, 1 and 2 reads as revoked, so unknown status types fail closed.
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.