@nevermined-io/sdk - v3.1.2 / DID
Decentralized ID.
• new DID(id): DID
| Name | Type | 
|---|---|
id | 
      string | 
    
• Private id: string
Short ID.
▸ getDid(): string
Returns the DID (i.e did:nv:…)
string
A string with the prefixed id.
▸ getEncoded(): string
Generates an encoded string in base 36 from a DID.
string
A base36 encoded string.
▸ getId(): string
Returns the Short ID.
string
A string of the id without the prefix.
▸ fromEncoded(encoded): DID
Returns a new DID from a base36 encoded string.
| Name | Type | Description | 
|---|---|---|
encoded | 
      string | 
      Base36 encoded string. | 
▸ generate(): DID
Returns a new DID.
▸ parse(didString): DID
Parses a DID from a string.
| Name | Type | Description | 
|---|---|---|
didString | 
      string | DID | 
      DID in string format or DID instance. The didString can be in did:nv: format or 0x: format. | 
▸ parseBigInt(value, radix?): any
| Name | Type | Default value | 
|---|---|---|
value | 
      any | 
      undefined | 
    
radix | 
      number | 
      36 | 
    
any