Skip to main content
info
IOTA Identity for Rebased is currently in alpha and may still be subject to significant changes

StatusList2021

@iota/identity-wasm API documentation


Class: StatusList2021

StatusList2021 data structure as described in W3C's VC status list 2021.

Constructors

new StatusList2021()

new StatusList2021(size?): StatusList2021

Creates a new StatusList2021 of size entries.

Parameters

size?

null | number

Returns

StatusList2021

Methods

toJSON()

toJSON(): Object

  • Return copy of self without private attributes.

Returns

Object


toString()

toString(): string

Return stringified version of self.

Returns

string


clone()

clone(): StatusList2021

Deep clones the object.

Returns

StatusList2021


len()

len(): number

Returns the number of entries in this StatusList2021.

Returns

number


get()

get(index): boolean

Returns whether the entry at index is set.

Parameters

index

number

Returns

boolean


set()

set(index, value): void

Sets the value of the index-th entry.

Parameters

index

number

value

boolean

Returns

void


intoEncodedStr()

intoEncodedStr(): string

Encodes this StatusList2021 into its compressed base64 string representation.

Returns

string


fromEncodedStr()

static fromEncodedStr(s): StatusList2021

Attempts to decode a StatusList2021 from a string.

Parameters

s

string

Returns

StatusList2021