keyPairResponse static method

KeyPair keyPairResponse(
  1. Uint8List data
)

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!);
}