toip.tools

class · Browser and Node

StatusRegistry

One signed revocation list per issuer, with id "#status". The caller persists save(). The list format is trust-core's StatusListDoc, so trust-core's checkStatus reads it too.

@toip-tools/mandatesView source
TypeScriptImport
import { StatusRegistry } from "@toip-tools/mandates";

Constructor

TypeScriptConstructor
new (issuer: Identity, clock: Clock, saved?: StatusRegistryState): StatusRegistry;

Parameters

issuerrequired
Identity
clockrequired
Clock
savedoptional
StatusRegistryState | undefined

Returns

Properties

listIdrequired · readonly
string

Methods

allocate

TypeScriptSignature
allocate(): StatusEntry;

No parameters.

Returns

revoke

TypeScriptSignature
revoke(e: StatusEntry): void;

Parameters

erequired
StatusEntry

Returns

void

isRevoked

TypeScriptSignature
isRevoked(e: StatusEntry): boolean;

Parameters

erequired
StatusEntry

Returns

boolean

sign

A freshly signed list. Verifiers refuse lists older than a mandate's revocation.maxAgeSeconds, so re-sign often.

TypeScriptSignature
sign(): StatusListDoc;

No parameters.

Returns

save

TypeScriptSignature
save(): StatusRegistryState;

No parameters.

Returns