toWIF method

String toWIF()

Implementation

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