getLastConnectionDid method
Implementation
String? getLastConnectionDid([KeyType keyType = KeyType.secp256k1]) {
if (keyType == KeyType.secp256k1) {
return _configBox!.get('lastConnectionDid');
} else if (keyType == KeyType.ed25519) {
return _configBox!.get('lastConnectionDidEd');
} else if (keyType == KeyType.x25519) {
return _configBox!.get('lastConnectionDidX');
} else {
throw Exception('Unknown KeyType');
}
}