code: def _adjusted_script_code(self, script):
          '''
          Checks if the script code pased in to the sighash function is already
          length-prepended
          This will break if there's a redeem script that's just a pushdata
          That won't happen in practice
  
          Args:
              script (bytes): the spend script
          Returns:
              (bytes): the length-prepended script (if necessary)
          '''
          script_code = ByteData()
          if script[0] == len(script) - 1:
              return script
          script_code += VarInt(len(script))
          script_code += script
          return script_codf _adjusted_script_code(self, script):
          '''
          Checks if the script code pased in to the sighash function is already
          length-prepended
          This will break if there's a redeem script that's just a pushdata
          That won't happen in practice
  
          Args:
              script (bytes): the spend script
          Returns:
              (bytes): the length-prepended script (if necessary)
          '''
          script_code = ByteData()
          if script[0] == len(script) - 1:
              return script
          script_code += VarInt(len(script))
          script_code += script
          return script_code
docs: Checks if the script code pased in to the sighash function is already
          length-prepended
          This will break if there's a redeem script that's just a pushdata
          That won't happen in practice
  
          Args:
              script (bytes): the spend script
          Returns:
              (bytes): the length-prepended script (if necessary)