Use @umis/issuer wherever you issue UMIS credentials. It signs organisation-member and role-and-authority credentials
as SD-JWT VCs, plus delegated credentials that can never be wider than their parent. It also gives you revocation
helpers and the offers, metadata and key proofs of an OpenID4VCI 1.0 issuer.
The package signs through a Signer, so the issuer key can live in WebCrypto, in a hardware module or behind a key
service. It runs in Node, browsers and React Native.
npm install @umis/issuer @umis/core
| Export | What it does |
|---|---|
issueOrgMember, issueRoleAuthority, issueSdJwtVc |
sign a credential bound to the holder key cnfJwk and report every problem in one INVALID_ARGUMENT error |
issueDelegated |
hands part of a parent’s authority on and checks the child before the same issuer signs it |
randomStatusIndex, cascadeRevocation |
randomStatusIndex picks an unpredictable free status index. cascadeRevocation lists the descendants to revoke with a credential |
createCredentialOffer, credentialOfferUri, credentialOfferUriByReference |
build Pre-Authorized Code offers as openid-credential-offer:// links |
credentialIssuerMetadata, jwtVcIssuerMetadata |
build the documents served at /.well-known/openid-credential-issuer and /.well-known/jwt-vc-issuer |
verifyKeyProof |
checks an openid4vci-proof+jwt and returns the key to bind the credential to |
TYPE_METADATA, CREDENTIAL_CONFIGURATION_IDS, profileErrors |
the type metadata of both types, the configuration ids and the claim-set rules |
The package also publishes the type metadata as JSON in @umis/issuer/type-metadata/org-member-v1.json and
role-authority-v1.json.
import { issueDelegated, issueRoleAuthority } from '@umis/issuer';
import { decodeCredential } from '@umis/core';
const manager = await issueRoleAuthority({
signer: issuerKey,
issuer,
jti: 'cred-1',
sub: 'p-1',
iat: now,
exp: now + 30 * 86_400,
cnfJwk: managerWalletKey,
status: { uri: listUri, idx: 7 },
maxDepth: 1,
claims: {
org: { id: 'lumera', name: 'Lumera' },
role: { code: 'site_manager', name: 'Site Manager' },
authority: [{ action: 'receive_materials', resource: 'rebar', limit: { amount: 10, unit: 't', per: 'shift' } }],
},
});
const foreman = await issueDelegated({
signer: issuerKey,
issuer,
jti: 'cred-2',
sub: 'p-2',
iat: now,
exp: now + 7 * 86_400,
cnfJwk: foremanWalletKey,
status: { uri: listUri, idx: 8 },
parent: decodeCredential(manager),
claims: {
authority: [{ action: 'receive_materials', resource: 'rebar', limit: { amount: 8, unit: 't', per: 'shift' } }],
},
});
Before signing, issueDelegated refuses a child in three cases, checked in this order. A child deeper than max_depth
fails with DELEGATION_DEPTH_EXCEEDED. A child that outlives its parent fails with DELEGATION_OUTLIVES_PARENT. A
child that is wider in any item fails with DELEGATION_WIDER_THAN_PARENT. A child item is no wider than its parent item
when it keeps the same action, resource, unit and period, has an amount that is not larger, keeps any object
restriction and has a valid_until that is not later.
The package gives you the documents and the checks. Your issuing service provides the HTTP server, the token endpoint
and the nonce endpoint. It also makes sure that each Pre-Authorized Code and each nonce is used only once. The
integration guide lists the
endpoints a server must expose. verifyKeyProof reports what is wrong with a proof as invalid_nonce or
invalid_proof instead of throwing. It accepts a proof whose iat is at most 300 seconds old unless you pass another
maxAgeSeconds.
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.