keyPairResponse static method
Implementation
static KeyPair keyPairResponse(Uint8List data) {
var response = model.KeyPairResponse(data);
if (response.error != null && response.error != "") {
throw OpenPGPException(response.error!);
}
var keyPair = response.output!;
return KeyPair(keyPair.publicKey!, keyPair.privateKey!);
}