0
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 witness_v0_keyhash.
What about a Tx that has witness and send outputs of type pay-to-pubkey or pubkeyhash
Correct me if my understanding is wrong. A Tx is segwit or non-segwit is all about how you structure the data. I mean if you separate your signatures from inputs and place them as a witness, it becomes segwit. When consuming non-segwit outputs as inputs what prevents me from adding a witness to that new TX? – lch – 2018-06-08T22:56:42.570
2A transaction which consumes only non-segwit outputs is not allowed to have a witness. Doing so would result in a
wtxidwhich differs from thetxidwhich is not allowed for transactions which only spend non-segwit outputs. – Andrew Chow – 2018-06-08T23:29:23.473