Skip to main content

StatusList2021Entry

@iota/identity-wasm API documentation


Class: StatusList2021Entry

StatusList2021Entry implementation.

Constructors​

new StatusList2021Entry()​

new StatusList2021Entry(status_list, purpose, index, id?): StatusList2021Entry

Creates a new StatusList2021Entry.

Parameters​

status_list​

string

purpose​

StatusPurpose

index​

number

id?​

null | string

Returns​

StatusList2021Entry

Methods​

toJSON()​

Call Signature​

toJSON(): Object

  • Return copy of self without private attributes.
Returns​

Object

Call Signature​

toJSON(): any

Serializes this to a JSON object.

Returns​

any


toString()​

toString(): string

Return stringified version of self.

Returns​

string


id()​

id(): string

Returns this credentialStatus's id.

Returns​

string


purpose()​

purpose(): StatusPurpose

Returns the purpose of this entry.

Returns​

StatusPurpose


index()​

index(): number

Returns the index of this entry.

Returns​

number


statusListCredential()​

statusListCredential(): string

Returns the referenced StatusList2021Credential's url.

Returns​

string


toStatus()​

toStatus(): Status

Downcasts StatusList2021Entry to Status

Returns​

Status


clone()​

clone(): StatusList2021Entry

Deep clones the object.

Returns​

StatusList2021Entry


fromJSON()​

static fromJSON(json): StatusList2021Entry

Deserializes an instance from a JSON object.

Parameters​

json​

any

Returns​

StatusList2021Entry