toWIF method

String toWIF()

Private Key to WIF

Implementation

String toWIF() {
  if (privateKey == null) {
    throw ArgumentError("Missing private key");
  }
  return wif.encode(
      WIF(version: network.wif, privateKey: privateKey!, compressed: true));
}