Skip to main content

DID

@nevermined-io/nevermined-sdk-js / DID

Class: DID

Decentralized ID.

Table of contents

Constructors

Properties

Methods

Constructors

constructor

Private new DID(id)

Parameters

NameType
idstring

Defined in

src/nevermined/DID.ts:45

Properties

id

Private id: string

ID.

Defined in

src/nevermined/DID.ts:43

Methods

getDid

getDid(): string

Returns the DID.

Returns

string

A string with the prefixed id.

Defined in

src/nevermined/DID.ts:53


getId

getId(): string

Returns the ID.

Returns

string

A string of the id without the prefix.

Defined in

src/nevermined/DID.ts:61


generate

Static generate(): DID

Returns a new DID.

Returns

DID

DID

Defined in

src/nevermined/DID.ts:36


parse

Static parse(didString): DID

Parses a DID from a string.

Parameters

NameTypeDescription
didStringstring | DIDDID in string.

Returns

DID

DID

Defined in

src/nevermined/DID.ts:14