3. Creation of a DID

Introduction

In this class, we will explore how to create a Decentralized Identifier (DID) using the Extrimian API, a key element for identity management in decentralized applications. We will learn about the importance of exposing transport layers in our DIDs to facilitate secure and verifiable communication and message exchange.

Creation of a DID

To create a DID, we use the operation PUT of the centralized identifier resource. This process allows specifying the transport layers, which are essential for the DID to receive messages. Extrimian’s API facilitates this task by providing an endpoint that opens a websocket, allowing other DIDs to communicate with ours through this channel.

Transport Layer Configuration

It is recommended to specify at least one transport layer when creating a DID. A DID without transport layers cannot receive messages directly, which limits its functionality, especially for issuers of verifiable credentials. Establishing a transport layer is critical to enable the efficient request and issuance of new credentials.

Key Generation and Management

When creating a DID with the Extrimian API, keys for signing verifiable credentials and for the secure exchange of messages (key agreement) are automatically generated. This ensures that the DID is prepared to issue verifiable credentials and to communicate in an encrypted and authenticated manner with other DIDs.

Use of the DID and its Document

Once the DID is created, we can obtain its DID document, which includes all the information necessary for its operation, such as the public keys and the configured transport layers. This document is essential for interoperability and security in the communication between DIDs.