toWif method

String toWif(
  1. String network
)

Implementation

String toWif(String network) {
  final nativeNetwork = network.toNativeUtf8();
  try {
    return DartApi.native.secpPrivateKey
        .toWif(_ffi, nativeNetwork)
        .intoString();
  } finally {
    calloc.free(nativeNetwork);
  }
}