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 RSAException(response.error!);
  }
  var output = response.output!;
  return KeyPair(output.publicKey!, output.privateKey!);
}