Function createDIDFromKeyPairs