Which one is a segwit tx? A Tx that send outputs to a segwit address or A Tx that create inputs along with witness part? Which one?
should segwit tx necessarily produce outputs of type
What about a Tx that has witness and send outputs of type pay-to-pubkey or pubkeyhash