Skip to main content

MethodDigest

@iota/identity-wasm API documentation


Class: MethodDigest

Unique identifier of a VerificationMethod.

NOTE: This class does not have a JSON representation, use the methods pack and unpack instead.

Methods​

toJSON()​

toJSON(): Object

  • Return copy of self without private attributes.

Returns​

Object


toString()​

toString(): string

Return stringified version of self.

Returns​

string


pack()​

pack(): Uint8Array

Packs MethodDigest into bytes.

Returns​

Uint8Array


unpack()​

static unpack(bytes): MethodDigest

Unpacks bytes into MethodDigest.

Parameters​

bytes​

Uint8Array

Returns​

MethodDigest


clone()​

clone(): MethodDigest

Deep clones the object.

Returns​

MethodDigest