Can the first part of P2WSH witness data use non-push-data operations?

1

BIP 141 describes a new kind of authentication template called Pay-to-Witness-Script-Hash (P2WSH).

This template moves challenge and response scripts to witness data. The last element of witness data (serialized "witness script") corresponds to the challenge script that used to be encoded within an output. This script can use any operation, including non-push-data operations.

However, the nature of the first chunk of witness data is less clear. Is this section just deserialized and executed, as with an input script, or is this section just an array of bytes? If the former, can non-push-data operations be performed? Or do operations need to be restricted to push-data only?

In other words, will I be able to encode operations such as OP_DROP, etc into witness data outside of the witness script?

Rich Apodaca

Posted 2016-07-09T20:48:53.353

Reputation: 1 896

it seems no non-PUSH operations are supported, just by looking at the sources of NBitcoin: https://github.com/MetacoSA/NBitcoin/blob/v4.1.1.7/NBitcoin/Transaction.cs#L892

knocte 2018-05-09T08:45:27.693

No answers