getLastCredentialDid method
String?
getLastCredentialDid(
[ - KeyType keyType = KeyType.secp256k1
])
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 if (keyType == KeyType.p384 ||
keyType == KeyType.p256 ||
keyType == KeyType.p521) {
return _configBox!.get('lastCredentialDidP');
} else {
throw Exception('Unknown KeyType');
}
}