Skip to main content

@atala/prism-wallet-sdk / Exports / Domain / DID

Class: DID

Domain.DID

Storable define properties a Domain object must implement to be compatible with Pluto

Implements

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new DID(schema, method, methodId): DID

Parameters

NameType
schemastring
methodstring
methodIdstring

Returns

DID

Defined in

src/domain/models/DID.ts:10

Properties

method

Readonly method: string

Defined in

src/domain/models/DID.ts:7


methodId

Readonly methodId: string

Defined in

src/domain/models/DID.ts:8


schema

Readonly schema: string

Defined in

src/domain/models/DID.ts:6


uuid

Readonly uuid: string

Universally Unique Identifier. should be unique across all items.

Implementation of

Storable.uuid

Defined in

src/domain/models/DID.ts:5

Methods

toString

toString(): string

Returns

string

Defined in

src/domain/models/DID.ts:17


from

from(value): DID

parse value into a DID

Parameters

NameTypeDescription
valueunknownsome representation of a DID

Returns

DID

Defined in

src/domain/models/DID.ts:26


fromString

fromString(text): DID

Parameters

NameType
textstring

Returns

DID

Defined in

src/domain/models/DID.ts:47


getMethodFromString

getMethodFromString(text): undefined | string

Parameters

NameType
textstring

Returns

undefined | string

Defined in

src/domain/models/DID.ts:70


getMethodIdFromString

getMethodIdFromString(text): string

Parameters

NameType
textstring

Returns

string

Defined in

src/domain/models/DID.ts:75


getSchemaFromString

getSchemaFromString(text): undefined | string

Parameters

NameType
textstring

Returns

undefined | string

Defined in

src/domain/models/DID.ts:65