Skip to main content
Version: 1.4

Class: MethodType

identity_wasm.MethodType

Supported verification method types.

Table of contents​

Methods​

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

▸ toString(): string

Returns the MethodType as a string.

Returns​

string


Ed25519VerificationKey2018​

▸ Static Ed25519VerificationKey2018(): MethodType

Returns​

MethodType


X25519KeyAgreementKey2019​

▸ Static X25519KeyAgreementKey2019(): MethodType

Returns​

MethodType


JsonWebKey​

▸ Static JsonWebKey(): MethodType

Returns​

MethodType

Deprecated

Use JsonWebKey2020 instead.


JsonWebKey2020​

▸ Static JsonWebKey2020(): MethodType

A verification method for use with JWT verification as prescribed by the Jwk in the publicKeyJwk entry.

Returns​

MethodType


custom​

▸ Static custom(type_): MethodType

A custom method.

Parameters​

NameType
type_string

Returns​

MethodType


fromJSON​

▸ Static fromJSON(json): MethodType

Deserializes an instance from a JSON object.

Parameters​

NameType
jsonany

Returns​

MethodType


clone​

▸ clone(): MethodType

Deep clones the object.

Returns​

MethodType