getLastCredentialDid method
Implementation
String? getLastCredentialDid([KeyType keyType = KeyType.secp256k1]) {
if (keyType == KeyType.secp256k1) {
return _configBox!.get('lastCredentialDid');
} else if (keyType == KeyType.ed25519) {
return _configBox!.get('lastCredentialDidEd');
} else {
throw Exception('Unknown KeyType');
}
}