code: function mkPubkeyHashReplayScript(address, pubKeyHash) {
    // Get lengh of pubKeyHash (so we know where to substr later on)
    pubKeyHash = pubKeyHash || zconfig.mainnet.pubKeyHash;
  
    var addrHex = bs58check.decode(address).toString('hex');
  
    // Cut out pubKeyHash
    var subAddrHex = addrHex.substring(pubKeyHash.length, addrHex.length);
  
    // Minimal encoding
  
    // block hash is encoded in little indian
  
    // '14' is the length of the subAddrHex (in bytes)
    return zopcodes.OP_DUP + zopcodes.OP_HASH160 + zbufferutils.getStringBufferLength(subAddrHex) + subAddrHex + zopcodes.OP_EQUALVERIFY + zopcodes.OP_CHECKSIG;
  }
docs: /* More info: https://github.com/ZencashOfficial/zen/blob/master/src/script/standard.cpp#L377
  Given an address, generates a pubkeyhash replay type script needed for the transaction
  @param {String} address
  @param {Number} blockHeight
  @param {String} pubKeyHash (optional)
  return {String} pubKeyScript