toWIF method

String toWIF()

Implementation

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