Actual witness necessities for a segwit transaction with P2PKH and P2WPKH inputs – CoinNewsTrend

Actual witness necessities for a segwit transaction with P2PKH and P2WPKH inputs


Segwit transactions can combine segwit and non-segwit inputs:

However how precisely are the non-segwit inputs accounted for, if in any respect, within the witness of a transaction with each P2PKH and P2WPKH inputs?

Is a brand new stack merchandise created for all inputs (non segwit included)? In that case, does a 0x00 should be added to the P2PKH enter’s stack merchandise measurement area to point an enter with no witness information (the P2KH enter), or is it ignored fully?

Is there an instance transaction on the mainnet I might have a look at? Or, what would the segwit fields be for a transaction that spent the under (pretending they’re legitimate UTXOs and utilizing placeholders for the important thing checking and so on):

Instance P2PK: 6f7cf9580f1c2dfb3c4d5d043cdbb128c640e3f20161245aa7372e9666168516

Instance P2WPKH dfcec48bb8491856c353306ab5febeb7e99e4d783eedf3de98f3ee0812b92bad



Supply hyperlink