createNewPrismDID

suspend fun createNewPrismDID(keyPathIndex: Int? = null, alias: String? = null, services: Array<DIDDocument.Service> = emptyArray()): DID(source)

This method create a new Prism DID, that can be used to identify the agent and interact with other agents.

Return

The new created DID

Parameters

keyPathIndex

key path index used to identify the DID.

alias

An alias that can be used to identify the DID.

services

an array of services associated to the DID.