Reading BIP152 I see that the Short Transaction ID is used in the cmpctblock message. Depending on whether the transaction is segwit or non-segwit, WTXID or TXID will be used to calculate its Short Transaction ID. What is not clear to me is whether getblocktxn meesage uses the index of the transaction or this Short Transaction ID?
In the BIP it is written that the getblocktxn message uses the following structure:
Based on that structure, indexes are sent.
However, the note for version 2 says the following:
Short transaction IDs sent to us in cmpctblock messages, and sent by us in getblocktxn messages, are computed using the same process as in version 1, but using the wtxid as defined in BIP 141 instead of the txid.
It is clear to me about cmpctmessages, but it says that the Short Transaction ID is also used in getblocktxn messages?