getNextConnectionDID method
Returns a new connection-DID.
Implementation
Future<String> getNextConnectionDID(
[KeyType keyType = KeyType.secp256k1]) async {
if (keyType == KeyType.secp256k1) {
return _getNextConnectionDidEthr();
} else if (keyType == KeyType.ed25519) {
return _getNextConnectionDIDWithEdKey();
} else if (keyType == KeyType.x25519) {
return _getNextConnectionDidXKey();
} else {
throw Exception('Unknown KeyType');
}
}