Skip to main content
Version: 1.3

Class: Payloads

identity_wasm.Payloads

Table of contents

Constructors

Methods

Constructors

constructor

new Payloads(entries)

Parameters

NameType
entriesPayloadEntry[]

Methods

toJSON

toJSON(): Object

  • Return copy of self without private attributes.

Returns

Object

toJSON(): any

Serializes this to a JSON object.

Returns

any


toString

toString(): string

Return stringified version of self.

Returns

string


fromJSON

Static fromJSON(json): Payloads

Deserializes an instance from a JSON object.

Parameters

NameType
jsonany

Returns

Payloads


clone

clone(): Payloads

Deep clones the object.

Returns

Payloads


newFromValues

Static newFromValues(values): Payloads

Parameters

NameType
valuesany[]

Returns

Payloads


getValues

getValues(): any[]

Returns

any[]


getUndisclosedIndexes

getUndisclosedIndexes(): Uint32Array

Returns

Uint32Array


getDisclosedIndexes

getDisclosedIndexes(): Uint32Array

Returns

Uint32Array


getUndisclosedPayloads

getUndisclosedPayloads(): any[]

Returns

any[]


getDisclosedPayloads

getDisclosedPayloads(): Payloads

Returns

Payloads


setUndisclosed

setUndisclosed(index): void

Parameters

NameType
indexnumber

Returns

void


replacePayloadAtIndex

replacePayloadAtIndex(index, value): any

Parameters

NameType
indexnumber
valueany

Returns

any