Skip to main content
Version: 1.3

Class: MethodDigest

identity_wasm.MethodDigest

Unique identifier of a VerificationMethod.

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

Table of contents

Constructors

Methods

Constructors

constructor

new MethodDigest(verification_method)

Parameters

NameType
verification_methodVerificationMethod

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

NameType
bytesUint8Array

Returns

MethodDigest


clone

clone(): MethodDigest

Deep clones the object.

Returns

MethodDigest