Skip to main content

StatusList2021Credential

@iota/identity-wasm API documentation


Class: StatusList2021Credential

A parsed StatusList2021Credential.

Constructors​

new StatusList2021Credential()​

new StatusList2021Credential(credential): StatusList2021Credential

Creates a new StatusList2021Credential.

Parameters​

credential​

Credential

Returns​

StatusList2021Credential

Methods​

toJSON()​

Call Signature​

toJSON(): Object

  • Return copy of self without private attributes.
Returns​

Object

Call Signature​

toJSON(): any

  • Return copy of self without private attributes.
Returns​

any


toString()​

toString(): string

Return stringified version of self.

Returns​

string


setCredentialStatus()​

setCredentialStatus(credential, index, revoked_or_suspended): StatusList2021Entry

Sets the given credential's status using the index-th entry of this status list. Returns the created credentialStatus.

Parameters​

credential​

Credential

index​

number

revoked_or_suspended​

boolean

Returns​

StatusList2021Entry


purpose()​

purpose(): StatusPurpose

Returns the StatusPurpose of this StatusList2021Credential.

Returns​

StatusPurpose


entry()​

entry(index): CredentialStatus

Returns the state of the index-th entry, if any.

Parameters​

index​

number

Returns​

CredentialStatus