code: function privKeyToWIF(privKey, toCompressed, wif) {
    toCompressed = toCompressed || false;
    wif = wif || zconfig.mainnet.wif;
  
    if (toCompressed) privKey = privKey + '01';
  
    return bs58check.encode(Buffer.from(wif + privKey, 'hex'));
  }
docs: /*
  Converts a private key to WIF format
  @param {String} privKey (private key)
  @param {boolean} toCompressed (Convert to WIF compressed key or nah)
  @param {string} wif (wif hashing bytes (default: 0x80))
  @return {Sting} WIF format (uncompressed)