toWIF method
Returns the private key in WIF format
Implementation
String toWIF() {
if (privateKey == null) {
throw ArgumentError("Missing private key");
}
return wif.encode(wif.WIF(
version: network.private, privateKey: privateKey, compressed: compressed));
}