code: function mkScriptHashReplayScript(address) {
    var addrHex = bs58check.decode(address).toString('hex');
    var subAddrHex = addrHex.substring(4, addrHex.length); // Cut out the '00' (we also only want 14 bytes instead of 16)
  
  
  
    // '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: /*
  Given an address, generates a script hash replay type script needed for the transaction
  @param {String} address
  @param {Number} blockHeight
  return {String} scriptHash script