DID
@nevermined-io/nevermined-sdk-js / DID
Class: DID
Decentralized ID.
Table of contents
Constructors
Properties
Methods
Constructors
constructor
• Private
new DID(id
)
Parameters
Name | Type |
---|---|
id | string |
Defined in
Properties
id
• Private
id: string
ID.
Defined in
Methods
getDid
▸ getDid(): string
Returns the DID.
Returns
string
A string with the prefixed id.
Defined in
getId
▸ getId(): string
Returns the ID.
Returns
string
A string of the id without the prefix.
Defined in
generate
▸ Static
generate(): DID
Returns a new DID.
Returns
Defined in
parse
▸ Static
parse(didString
): DID
Parses a DID from a string.
Parameters
Name | Type | Description |
---|---|---|
didString | string | DID | DID in string. |