@classmethod
    def get_xfer_affecting_inputs(cls, tx, padding, out_index):
        tx.ensure_input_values()
        out_prec_sum = 0
        for oi in range(out_index):
            value_wop = tx.outputs[oi].value - padding
            if value_wop <= 0:
                return set()
            out_prec_sum += value_wop
        out_value_wop = tx.outputs[out_index].value - padding
        if out_value_wop <= 0:
            return set()
        affecting_inputs = set()
        input_running_sum = 0
        for ii, inp in enumerate(tx.inputs):
            prev_tag = cls.get_tag(inp.prevtx)
            if not prev_tag:
                break
            value_wop = tx.inputs[ii].value - prev_tag.get_padding()
            if value_wop <= 0:
                break
            if ((input_running_sum < (out_prec_sum + out_value_wop)) and
                ((input_running_sum + value_wop) > out_prec_sum)):
                affecting_inputs.add(ii)
            input_running_sum += value_wop
        return affecting_inputs
Returns a set of indices that correspond to the inputs
dataset/ETHPy150Open chromaway/ngcccbase/coloredcoinlib/colordef.py/EPOBCColorDefinition.get_xfer_affecting_inputs