[ad_1]
The time period CTxOut
is talked about a number of instances in BIP143 and BIP341. Nonetheless, I am unable to perceive what it truly represents? I assume it is simply the transaction output, however I’m not positive and the confusion comes from the next. BIP143 says:
- For P2WSH witness program,
- if the
witnessScript
doesn’t include anyOP_CODESEPARATOR
, thescriptCode
is the >witnessScript
serialized as scripts insideCTxOut
.
I do know that the witness script in P2WSH is identical because the redeem script in P2SH. Whereas in P2SH the redeem script is the final push inside scriptSig, the witness script in P2WSH is the final merchandise on the witness stack, that’s the final merchandise in witness knowledge. Nonetheless, in each instances, this (redeem/witness) script within the output is serialized within the type of its hash. Since I do know that the scriptCode
in P2WSH is the witness script (with its operators and knowledge) and never its hash, CTxOut
appears to be like extra just like the witness knowledge part of the transaction to me than the output of the transaction.
What’s the CTxOut
? Am I misinterpreting what’s written in BIP143?
[ad_2]