createNewPeerDID

open suspend fun createNewPeerDID(services: Array<DIDDocument.Service> = emptyArray(), updateMediator: Boolean): DID(source)

This function creates a new Peer DID, stores it in pluto database and updates the mediator if requested.

Return

A new DID.

Parameters

services

The services associated to the new DID.

updateMediator

Indicates if the new DID should be added to the mediator's list. It will as well add the mediator service.