createDid
createDid(
submitterAccount
,theMnemonic
?,didServiceEndpoint
?):Promise
<object
>
It creates a DID on chain, and returns the mnemonic and DID document
Parameters
• submitterAccount: CordKeyringPair
The account that will be used to pay for the transaction.
• theMnemonic?: string
• didServiceEndpoint?
The service endponits
Returns
Promise
<object
>
The mnemonic and the DID document.
document
document:
DidDocument
mnemonic
mnemonic:
string