prv2pub method

String prv2pub(
  1. String privateKey
)

Implementation

String prv2pub(String privateKey) {
  final prvKeyPtr = privateKey.toNativeUtf8();
  final resultPtr = _prv2Pub(prvKeyPtr);
  final String resultString = resultPtr.toDartString();
  //print("- Response string:  $resultString");
  // Free the string pointer, as we already have
  // an owned String to return
  //print("- Freeing the native char*");
  cstringFree(resultPtr);
  return resultString;
}