Bitstring Status Lists
LearnCard Network can add W3C Bitstring Status List entries to VC 2.0 credentials. Status entries let verifiers check revocation and suspension without changing the signed credential.
import { initLearnCard } from '@learncard/init';
const issuer = await initLearnCard({ seed: 'issuer seed', network: true });
const verifier = await initLearnCard({ seed: 'verifier seed', network: true });Send a Boost With Status
Network-issued VC 2.0 Boost credentials receive both revocation and suspension status entries by default, so both states are externally verifiable from issuance.
const credentialUri = await issuer.invoke.sendBoost(recipientProfileId, boostUri);To allocate only a subset of status purposes, pass statusPurposes (e.g. revocation only):
const credentialUri = await issuer.invoke.sendBoost(recipientProfileId, boostUri, {
statusPurposes: ['revocation'],
});Supported status purposes are:
revocationsuspension
Allocate Status for Custom Issuance
Use allocateCredentialStatus when you are building and signing a credential directly.
The returned entries use this shape:
listSize can be passed for direct allocation. The default is 131,072 bits.
Revoke, Suspend, and Unsuspend
Revocation and suspension update the issuer's status list and re-sign the status list credential.
Revocation sets the revocation bit. Suspension sets the suspension bit. Unsuspension clears only the suspension bit.
These methods work for pending credentials as well as accepted credentials, because status is tracked on the issued credential relationship.
Public Status List Endpoint
Each status entry points to a public status list credential:
The endpoint has this form:
The response is a signed VC. The encodedList field is the compressed bitstring used by verifiers.
Verify Status
Raw verification includes structured status check results.
Example status result:
Use prettified verification output for user-facing display.
Prettified status messages include:
Status: ActiveStatus: Not RevokedStatus: RevokedStatus: SuspendedStatus: Not Suspended
Rollover
Each issuer gets status lists scoped by status purpose and list size. When a list reaches its configured size, LearnCard Network automatically creates a new list. Existing credentials keep pointing at their original status list URL.
New credentials receive entries for the current open list.
Last updated
Was this helpful?