pub(crate) fn on_tx_input_and_witnesses<FI>(fragment: &Fragment, on_input: FI)where
    FI: FnMut((Input, Witness)),