Constructors
constructor
- new DID(schema, method, methodId): DID
-
Parameters
-
schema: string
-
method: string
-
methodId: string
Returns DID
Properties
Readonly
method
method: string
Readonly
methodId
methodId: string
Readonly
schema
schema: string
Methods
toString
- toString(): string
-
Returns string
Static
fromString
- fromString(text): DID
-
Returns DID
Static
getMethodFromString
- getMethodFromString(text): undefined | string
-
Returns undefined | string
Static
getMethodIdFromString
- getMethodIdFromString(text): string
-
Returns string
Static
getSchemaFromString
- getSchemaFromString(text): undefined | string
-
Returns undefined | string
parse value into a DID