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
| Parameter | Type |
|---|---|
schema | string |
method | string |
methodId | string |
Returns
DID
Properties
Methods
toString()
toString():
string
Defined in: packages/shared/domain/build/index.d.ts:536
Returns a string representation of an object.
Returns
string
from()
staticfrom(value:unknown):DID
Defined in: packages/shared/domain/build/index.d.ts:542
parse value into a DID
Parameters
| Parameter | Type | Description |
|---|---|---|
value | unknown | some representation of a DID |
Returns
DID
fromString()
staticfromString(text:string):DID
Defined in: packages/shared/domain/build/index.d.ts:543
Parameters
| Parameter | Type |
|---|---|
text | string |
Returns
DID
replaceDID()
staticreplaceDID(oldStr:string,did:DID):string
Defined in: packages/shared/domain/build/index.d.ts:545
replace with a new DID
Parameters
| Parameter | Type |
|---|---|
oldStr | string |
did | DID |
Returns
string