Exact witness requirements for segwit transactions with P2PKH and P2WPKH inputs
Segwit transactions can mix segwit and non-segwit inputs.
but When witnessing a transaction with both P2PKH and P2WPKH inputs, how exactly are the non-Segwit inputs accounted for?
Is a new stack item created for every input (not including Segwit)? then 0x00
Should I add to the Stack Entry Size field of the P2PKH input to indicate an input without watch data (P2KH input), or is it completely ignored?
Are there any examples of mainnet transactions that I can see? Or what is the segwit field for the transaction that consumed the below (pretending to be a valid UTXO and using placeholders for key verification etc):
P2PK example: 6f7cf9580f1c2dfb3c4d5d043cdbb128c640e3f20161245aa7372e9666168516
Yes P2WPKH dfcec48bb8491856c353306ab5febeb7e99e4d783eedf3de98f3ee0812b92bad