According to bip 141, the segwit transaction serialization format (used to compute the wtxid) is:
[nVersion][marker][flag][txins][txouts][witness][nLockTime]
The bip mentions that the flag
field MUST currently be 0x01
. What's the purpose of this field? Is it some kind of upgrading mechanism of the serialization format?