code: function pubKeyToAddr(pubKey, pubKeyHash) {
    pubKeyHash = pubKeyHash || zconfig.mainnet.pubKeyHash;
  
    const hash160 = zcrypto.hash160(Buffer.from(pubKey, 'hex'));
    return bs58check.encode(Buffer.from(pubKeyHash + hash160, 'hex')).toString('hex');
  }
docs: /*
  Converts public key to zencash address
  @param {String} pubKey (public key)
  @param {String} pubKeyHash (public key hash (optional, else use defaul))
  @return {Sting} zencash address