class StatusListCredential

Encoded W3C-compatible status list credential.

Constructors

new
StatusListCredential()

Create new StatusListCredential with all bits set to 0.

Methods

allocate(): number
free(): void
isRevoked(idx: number): boolean

Check if a given index is revoked (bit set to 1).

revoke(idx: number): void

Revoke a given index (set bit to 1).

toJSON(): object

Serialize the current status list as an object.

Static Methods

fromCredentialSubject(credential_subject: object): StatusListCredential

Create new StatusListCredential from a credential subject object.