did
module is used to manage decentralized identifiers (DIDs) via the TrustStack platform.
Installation
With@truststack/sdk
installed and configured, or alternatively, just the @truststack/did
package.
Issuing a DID
DIDs against issued against and scoped to an organization. A singleorganization
can have multiple DIDs issued so long as a unique name is provided.
did:web
DID scoped to the organization
and name
provided. The response returned is below.
Response
DID Structure
The DID is constructed as follows:<ORG_ID>
is the organizationId
and <NAME>
is the name
provided to the createDid
method.
Deleting a DID
DIDs can be deleted by calling thedeleteDid
method.