Skip to main content

DID

@hyperledger/identus-sdk v8.0.0


@hyperledger/identus-sdk / overview / Domain / DID

Class: DID

Defined in: packages/shared/domain/build/index.d.ts:530

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

Implements

Constructors

Constructor

new DID(schema: string, method: string, methodId: string): DID

Defined in: packages/shared/domain/build/index.d.ts:535

Parameters

ParameterType
schemastring
methodstring
methodIdstring

Returns

DID

Properties

PropertyModifierTypeDescriptionDefined in
methodreadonlystring-packages/shared/domain/build/index.d.ts:533
methodIdreadonlystring-packages/shared/domain/build/index.d.ts:534
schemareadonlystring-packages/shared/domain/build/index.d.ts:532
uuidreadonlystringUniversally Unique Identifier. should be unique across all items.packages/shared/domain/build/index.d.ts:531

Methods

toString()

toString(): string

Defined in: packages/shared/domain/build/index.d.ts:536

Returns a string representation of an object.

Returns

string


from()

static from(value: unknown): DID

Defined in: packages/shared/domain/build/index.d.ts:542

parse value into a DID

Parameters

ParameterTypeDescription
valueunknownsome representation of a DID

Returns

DID


fromString()

static fromString(text: string): DID

Defined in: packages/shared/domain/build/index.d.ts:543

Parameters

ParameterType
textstring

Returns

DID


replaceDID()

static replaceDID(oldStr: string, did: DID): string

Defined in: packages/shared/domain/build/index.d.ts:545

replace with a new DID

Parameters

ParameterType
oldStrstring
didDID

Returns

string