toWIF method
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));
}
Private Key to WIF
String toWIF() {
if (privateKey == null) {
throw ArgumentError("Missing private key");
}
return wif.encode(
WIF(version: network.wif, privateKey: privateKey!, compressed: true));
}