Skip to content

Latest commit

 

History

History
42 lines (22 loc) · 1.78 KB

1. Generate DID.md

File metadata and controls

42 lines (22 loc) · 1.78 KB

Generate DID

This tutorial describes the steps to generate a new LACChain DID using the command line tool (did-cli).

Pre-requisites

Create a new DID

Once you have the tool running, select the Create (Generate new DID) option on the interactive menu.

Create DID Step 1

There are two ways to create a DID: 1. Empty DID: this option will create a new empty DID (ie without any Verification Method), simply generating an Ethereum key pair 2. Bootstrap DID: this option will create a DID with a Verification Method to encrypt data (keyAgreement) generating a pair of keys using the NaCL algorithm, the latter with the purpose of being used to send Verifiable Credentials using the LACChain Mail box. Finally, it will create a new controller (Ethereum key pair) and assign it to the created DID for greater security.

Create DID Step 2

If you select the first option, only the main public-private key pair will be displayed:

Create empty DID

If you select the second option, the current controller key-pair will be displayed along with the encryption keys:

Create bootstrap DID

Resolve DID Document

Once the DID has been created, it is possible to resolve the DID Document from the same tool, selecting the option Resolve DID:

Resolve DID Step 1

Then, you need to enter the DID and press Enter:

Resolve DID Step 2

The DID Document will be resolved and displayed in the console:

Resolve DID Step 3