I used to be questioning, can one use an OP_RETURN within the witness script? If not, why not? Additionally, how might I determine this out from studying Bitcoin Core supply? I checked out this file, and it wasn’t fairly clear to me how I’d decide which opcodes are allowed within the witness script from this:
https://github.com/bitcoin/bitcoin/blob/e9262ea32a6e1d364fb7974844fadc36f931f8c6/src/script/script.cpp
However possibly I am lacking one thing.
I additionally regarded by a pair BIPs, together with BIP 143 and BIP 341, however they’re sort of past my present ability stage to grasp how they could apply to my query.
