UMIS SDK
    Preparing search index...

    UMIS SDK

    UMIS SDK

    TypeScript libraries for digital IDs that work offline. An organisation issues a credential to a member’s phone, and a door, a warehouse scanner or a website checks it in milliseconds, with or without a network.

    CI npm Licence: Apache-2.0 OpenSSF Scorecard

    UMIS is for developers who build door access, checks at a warehouse or a building site, and sign-in across organisations that share no platform. A credential says who the member is, which organisation they belong to, which role they hold and what they may do, up to a limit. The libraries run in browsers, in React Native apps and in Node.

    npx @umis/cli demo
    

    To run it from a clone, you need Node 22.13 or later and pnpm 12.

    git clone https://github.com/ishtvankomka/umis.git && cd umis
    pnpm i && pnpm build && pnpm -F cli exec umis demo

    The demo plays a day of three invented organisations in one process, on a simulated clock. Noah opens the office door of Lumera Software. The Nordkai Logistics warehouse lets Emma collect 10 t of rebar and turns Lucas away, because his limit is 8 t. Emma and Hanna check each other’s roles. Noah signs in to the Lumera Intranet.

    STEP               ACTOR                                   DECISION  REASON                     MS  QR CHARS
    -----------------  --------------------------------------  --------  ------------------------  ---  --------
    1 Access           Noah Lindgren → Lumera Software         accept    OK                        7.3       346
    2 Authority check  Emma Clarke → Nordkai Logistics         accept    OK                        7.4      1751
    2 Authority check  Lucas Bennett → Nordkai Logistics       reject    AUTHORITY_LIMIT_EXCEEDED  6.1      1820
    3 Mutual exchange  Emma Clarke → Nordkai Logistics         accept    OK                        7.6      1912
    3 Mutual exchange  Hanna Vogel → Alder Ridge Construction  accept    OK                        5.9      1385
    4 Login            Noah Lindgren → Lumera Intranet         accept    OK                        5.7       779
    
    6 results, all as the scenario expects
    

    MS is the time each decision took on your machine. Every other column is the same on every run, because the demo world takes its keys and signatures from fixed seeds. The command exits with 0 when every row comes out as the scenario expects.

    Emma Clarke, a site manager at Alder Ridge Construction, comes to the Nordkai Logistics warehouse to collect 10 t of rebar. The two companies share no platform, and the warehouse may have no network. Emma’s phone shows a credential that Alder Ridge signed. The warehouse device has to decide on the spot. Is Alder Ridge an issuer that Nordkai trusts? Does the credential belong to the person who holds the phone? Was it revoked recently enough to matter? Does the authority it carries cover 10 t?

    UMIS makes that decision offline. The verifier decides in milliseconds. That figure leaves out the camera, the radio and the network, as the benchmarks explain. Whatever an offline device cannot know has an explicit bound.

    Use it for Do not use it when you need
    checkpoints that are offline or online only now and then certified eIDAS or EUDI wallet conformance
    role and authority checks across organisations, with limits and delegation real-time revocation guarantees while offline
    door access with an explicit bound on how stale the revocation data may be hardware attestation of the holder’s device or key
    OpenID4VP login with a credential, through an OpenID provider you run anonymous credentials or unlinkability across verifiers
    browsers, React Native with Expo, and Node, in TypeScript a runtime other than JavaScript

    Issue a membership credential, show it as a QR code and verify it offline, all in one file. The file is examples/quickstart/index.ts, and pnpm -F umis-example-quickstart start runs it.

    import { VCT, generateSigner } from '@umis/core';
    import { issueOrgMember } from '@umis/issuer';
    import { DEFAULT_POLICIES } from '@umis/policy';
    import { selfEntry } from '@umis/registry';
    import { buildStatusListToken } from '@umis/status-list';
    import { createMemoryReplayStore, verifyAtCheckpoint } from '@umis/verifier';
    import { createFullQr } from '@umis/wallet';

    const now = 1_793_606_400; // the time is an input of every call, in seconds
    const [issuer, uri] = ['https://issuer.example/lumera', 'https://issuer.example/lumera/status/1'];
    const orgKey = await generateSigner(); // signs the credentials and the status list of the organisation
    const holderKey = await generateSigner(); // the key in Emma's wallet

    // 1. Issue a membership credential bound to Emma's key, and the status list it points to.
    const keys = { issuer, signer: orgKey, cnfJwk: holderKey.publicJwk, status: { uri, idx: 0 } };
    const claims = { org: { id: 'lumera', name: 'Lumera' }, display: { name: 'Emma' } };
    const sdJwtVc = await issueOrgMember({ ...keys, jti: 'm-1', sub: 'p-1', iat: now, exp: now + 86_400, claims });
    const token = await buildStatusListToken({ signer: orgKey, uri, bits: 1, values: new Uint8Array(8), iat: now });

    // 2. Present it. The wallet shows the credential as a QR code with a fresh proof made by Emma's key.
    const qr = await createFullQr({ sdJwtVc, disclose: ['org', 'display'], signer: holderKey, now });

    // 3. Verify it. The door decides offline from its own trust list and the status list it already holds.
    const entry = selfEntry({
    issuer,
    name: 'Lumera',
    keys: [orgKey.publicJwk],
    vcts: [VCT.orgMember],
    statusLists: [uri],
    });
    const statusLists = new Map([[uri, { token, fetchedAt: now }]]);
    const context = { now: now + 5, audiences: [issuer], selfIssuer: issuer, policy: DEFAULT_POLICIES.door_low };
    const replay = createMemoryReplayStore(); // remembers every proof it has seen, so none is accepted twice
    const result = await verifyAtCheckpoint(qr, { ...context, trusted: [entry], statusLists, replay });
    console.log(result.decision, result.reasons); // accept [ 'OK' ]

    examples/offline-checkpoint plays the warehouse decision from the problem above with a signed registry, a delegation and a replay. examples/browser-verify decides on a pasted frame in a web page.

    • Credential types. An organisation member credential says who someone is in an organisation. It carries org, and it may carry org_unit, role and display. A role and authority credential adds powers with numeric limits, such as “receive rebar, at most 10 t per shift”, and the delegation they came through. Both are SD-JWT VCs bound to a key in the holder’s wallet. The holder discloses only the claims a verifier asks for.
    • Risk classes, S and Δ. Every checkpoint has a policy with a risk class. S is the maximum age of a status list the checkpoint decides with. It is 72 h for low, 24 h for medium, 1 h for high and 10 min for highest. Δ is how often an online verifier refreshes the list, and it never exceeds S. A revocation reaches an offline checkpoint within S, or within the lifetime T of the credential when that is shorter.
    • Channels. A one-way QR code is a 30-second proof for a credential the door already knows, and only low checkpoints take it. A full presentation travels as a QR code. In a reverse QR exchange the verifier shows a request and the wallet answers it. In a mutual exchange two holders learn each other’s roles. An OpenID4VP 1.0 login signs a member in to a website. The same frames also travel as bytes over the UMIS-BLE framing.
    • Status lists. Each credential points to an entry in its issuer’s Token Status List. Verifiers keep the lists they need and decide from them offline, within S.
    • Issuer registry. A verifier trusts an issuer only through the signed registry of its own organisation. The registry names the issuer, its keys, the credential types and the status lists it may use. There is no shared platform to ask.
    • Delegation and limits. A site manager who holds 10 t per shift may pass 8 t on to a foreman. A delegated credential is never wider than its parent. At the warehouse, the site manager who asks for 10 t is accepted and the foreman who asks for 10 t is rejected with AUTHORITY_LIMIT_EXCEEDED. The verifier counts the budget of each shift.
    Package Runtime Purpose
    @umis/core browser, React Native, Node profile constants and types, crypto providers, JWS, SD-JWT VC codec, frames, decision events
    @umis/status-list browser, React Native, Node Token Status List building, parsing, verification and cache
    @umis/policy browser, React Native, Node checkpoint policies, risk-class caps, JSON Schema, presets, period ledger
    @umis/registry browser, React Native, Node trusted-issuer registry with signed snapshots and issuer resolution
    @umis/issuer browser, React Native, Node issuance, delegation, OpenID4VCI offers, metadata and key proofs
    @umis/verifier browser, React Native, Node the offline checkpoint decision, reverse QR, mutual exchange, OpenID4VP in ./oid4vp
    @umis/wallet browser, React Native, Node presentations and QR frames, request answers, OpenID4VCI client, OpenID4VP in ./oid4vp
    @umis/wallet-rn React Native with Expo SDK 58 crypto setup, key store with hardware keys where available, credential store
    @umis/transports browser, React Native, Node UMIS-BLE v1 framing, sessions and an in-memory link
    @umis/gateway browser, and Node for ./node signed relay commands, Shelly Gen3 RPC client, gateway pipeline, and in ./node a relay emulator and journal
    @umis/testkit Node demo world, simulated clock, hero scenario, benchmarks
    @umis/cli Node the umis command with demo, verify, inspect, keygen, relay-emu and bench

    All packages are ESM only and typed. None depends on a Node built-in unless the table names Node as its runtime.

    When you use the SDK as documented, the security model guarantees the following.

    • Issuer authenticity, through the verifier’s own registry.
    • Holder binding. Only the key a credential is bound to can present it.
    • Freshness. A decision uses revocation data at most S old.
    • Single use of every presentation, answer, login and relay command, given one shared replay store.
    • A delegation is never wider than its parent.

    These are not guaranteed.

    • A revocation becomes visible offline only after up to S.
    • A one-way QR code can be relayed within its 30 seconds at the same organisation, so only the low class allows it.
    • Limits per period are counted per verifier.
    • Keys made in Expo Go are software keys.
    • There is no device attestation.
    • The wallet app enforces biometric confirmation, and it cannot prove that to the verifier.
    • The keys of the demo world and the test vectors are public.
    • The SDK has not been independently audited, and the 0.x API may change.

    Known limitations has the full list.

    The UMIS profile v1 defines how they work together.

    test-vectors/ holds the vectors the tests check.

    File Covers Source
    umis-profile-v1.json credentials, a presentation for every channel, verifier contexts, decisions generated from the public seeds of the demo world
    rfc9285-base45.json Base45 encoding, decoding and rejects RFC 9285 sections 4.2 and 4.3
    rfc9901-disclosures.json disclosure digests RFC 9901 sections 4.2.1 to 4.2.3
    rfc7638-thumbprint.json JWK thumbprints and key fingerprints RFC 7638 section 3.1, RFC 7515 appendix A.3, RFC 7517 A.1
    token-status-list.json status list packing, rejected lists, a signed list Token Status List draft-21 sections 4.1 and 4.2
    event-chain.json the hash chain of decision events computed by an independent Python implementation

    pnpm test checks all of them. pnpm -F @umis/testkit gen:vectors writes umis-profile-v1.json again, byte for byte, and the file holds public keys only. To check another implementation against it, take the context an entry names, set its now and give it an empty replay store. Then decide on the entry’s input and compare the decision.

    Scenario webcrypto P50 / P95 noble P50 / P95 QR chars, P50
    oneway-low 0.313 / 0.542 3.471 / 3.932 350
    full-qr-low 0.574 / 1.950 5.589 / 6.198 1301
    s1-accept 0.618 / 2.164 5.622 / 6.561 1750
    s1-reject 0.732 / 2.369 5.586 / 6.275 1823
    mutual 1.261 / 3.152 12.338 / 13.981 1414
    oid4vp 0.481 / 0.737 5.040 / 5.529 779
    gateway 2.361 / 4.760 5.826 / 7.035 350

    Milliseconds per decision, 1000 presentations in each of 30 repeats, on Apple M1 Pro with Darwin arm64 and Node v24.19.0, at commit 9fae286. These are decision latencies inside one Node process with synthetic inputs. They leave out the camera, the optical decoding of the QR code, the radio and the network. docs/benchmarks.md has the method, the environment, every column and the autonomy and revocation timelines.

    UMIS is a 0.x alpha. All packages are released together under one version number through changesets, as pre-releases tagged alpha. Until 1.0, a minor version may change the API. The release workflow publishes with npm provenance and attaches a CycloneDX software bill of materials to each GitHub release. Version 0.1.0-alpha.0 was published by hand and carries neither.

    Contributions are welcome. Start with CONTRIBUTING.md. Report a vulnerability privately as SECURITY.md describes.

    Copyright 2026 Ishtvan Komonii. Licensed under the Apache License 2.0. See also NOTICE.