user47827: scriptPubKey, redeem script, witness script, witness program are defined in this StackExchange post.
What are the scriptPubKey, scriptSig, redeem script and witness for the various output types (P2PKH, P2SH, P2WPKH, P2WSH etc)?

user47827: This was answered during the Bitcoin Core PR review club on July 7th 2021 hosted by Gloria Zhao (who also provided this table).

The <public key> in the P2TR (key path) and P2TR (script path) scriptPubKey column is the tweaked public key rather than the internal key (assuming they aren't the same and the tweak is being used as recommended by BIP 341).

47827: <p>scriptPubKey, redeem script, witness script, witness program are defined in this StackExchange <a href="https://bitcoin.stackexchange.com/questions/95231/redeem-script-script-hash-witness-script-and-witness-program/">post</a>.</p>
<p>What are the scriptPubKey, scriptSig, redeem script and witness for the various output types (P2PKH, P2SH, P2WPKH, P2WSH etc)?</p>
 47827: <p>This was answered during the Bitcoin Core PR <a href="https://bitcoincore.reviews/22363" rel="nofollow noreferrer">review club</a> on July 7th 2021 hosted by Gloria Zhao (who also provided this table).</p>
<p><a href="https://i.stack.imgur.com/iXfVX.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/iXfVX.png" alt="enter image description here" /></a></p>
<p>The <code>&lt;public key&gt;</code> in the P2TR (key path) and P2TR (script path) scriptPubKey column is the tweaked public key rather than the internal key (assuming they aren't the same and the <a href="https://bitcoin.stackexchange.com/questions/99325/how-do-i-construct-a-p2tr-address-if-i-just-want-to-use-the-key-path">tweak</a> is being used as recommended by <a href="https://github.com/bitcoin/bips/blob/master/bip-0341.mediawiki#cite_ref-23-0" rel="nofollow noreferrer">BIP 341</a>).</p>
