Update a DID
A DID Document provides a way to link a DID with the way the DID subject can be reached, i.e., through public keys, services endpoints, and more.
There are several reasons why one might need to update a DID document, including adding, deleting, or updating service endpoints and keys.
In this guide, we'll demonstrate how to update a DID Document using the Web5 SDK.
INFORMATION
Adding a Service
To add a new service, you can obtain the list of services from the DID Document, then add your new service to the list.
No snippet found for javascript
Updating a Service
To update a service, you can find the service within the existing list of services, update any of the values, then republish the DID Document.
No snippet found for javascript
Deleting a Service
To delete a service, you can remove the service from the existing list of services, then republish the DID Document.
No snippet found for javascript