@hyperledger/identus-edge-agent-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
Name | Type |
---|---|
schema | string |
method | string |
methodId | string |
Returns
Defined in
Properties
method
• Readonly
method: string
Defined in
methodId
• Readonly
methodId: string
Defined in
schema
• Readonly
schema: string
Defined in
uuid
• Readonly
uuid: string
Universally Unique Identifier. should be unique across all items.
Implementation of
Defined in
Methods
toString
▸ toString(): string
Returns
string
Defined in
from
▸ from(value
): DID
parse value into a DID
Parameters
Name | Type | Description |
---|---|---|
value | unknown | some representation of a DID |
Returns
Defined in
fromString
▸ fromString(text
): DID
Parameters
Name | Type |
---|---|
text | string |
Returns
Defined in
getMethodFromString
▸ getMethodFromString(text
): undefined
| string
Parameters
Name | Type |
---|---|
text | string |
Returns
undefined
| string
Defined in
getMethodIdFromString
▸ getMethodIdFromString(text
): string
Parameters
Name | Type |
---|---|
text | string |
Returns
string
Defined in
getSchemaFromString
▸ getSchemaFromString(text
): undefined
| string
Parameters
Name | Type |
---|---|
text | string |
Returns
undefined
| string