Add Keys
This tutorial explains how to add public keys to a DID registered on InfraDID parachain.
Last updated
This tutorial explains how to add public keys to a DID registered on InfraDID parachain.
Last updated
Before you begin, Make sure you have the following:
InfraDID registered on the chain allows management of various items, one of which is the list of public keys. By storing a list of public keys that a specific DID can use on the chain, it makes it public for other users to inspect the Document of a specific DID.
To add public keys to InfraDID, follow these steps:
Visit the InfraBlockchain Explorer and follow the steps below.
Go to Developer
- Extrinsic
and select the addKeys
extrinsic of the didModule
palette.
Configure it as shown below and trigger the extrinsic:
Encode call data:
To remove public keys from InfraDID, follow these steps:
Visit the InfraBlockchain Explorer and follow the steps below.
Go to Developer
- Extrinsic
and select the removeKeys
extrinsic of the didModule
palette.
Configure it as shown below and trigger the extrinsic:
infra-did-js
LibraryTo add and remove public keys from InfraDID using the infra-did-js
library:
Install the infra-did-js
library.
Write code to set up the basic configuration code for accessing InfraDID chain, as shown below:
Write code to add public keys to InfraDID:
Alternatively, write code to remove public keys from InfraDID: