Skip to content

Latest commit

 

History

History
33 lines (19 loc) · 1.03 KB

3. Deploy PKD.md

File metadata and controls

33 lines (19 loc) · 1.03 KB

Create regional Public Key Directory

This tutorial describes the steps to deploy a regional Public Key Directory (PKD) smart contract in order to build a Root of Trust using SSI API.

Pre-requisites

Note: This tutorial assumes that you have the API running at http://localhost:8080.

Deploy a new PKD

To deploy a new PKD smart contract, execute the following command:

curl -X POST http://localhost:8080/pki/pkd/deploy

This command will return the PKD address and blockchain transaction hash, as it is show in the next image:

PKD deploy

List deployed PKDs

To view the list of all PKDs deployed, execute the next command:

curl -X GET http://localhost:8080/pki/pkd

This command will return the PKD address and blockchain transaction hash, as it is show in the next image:

PKD list