Author: Aymeric Vitte 2019-05-26 21:17:30
Published on: 2019-05-26T21:17:30+00:00
The discussion on the Bitcoin development mailing list has turned to the topic of an empty scriptPubKey or OP_1 being a use case. Johnson Lau clarifies that an empty scriptSig does not imply segwit input and can still be spent with an empty scriptSig if the previous scriptPubKey is OP_1, which does not allow witness. Similarly, Aymeric Vitte questions the need for "00" in non-segwit inputs as the transaction creator can parse the transaction and associate the correct input to the correct witness data without it. However, Johnson Lau explains that validators have no way of knowing which inputs are segwit-enabled until they look up the UTXO set, so there needs to be a way to tell the validator that "the witness for this input is empty", and it is the "00". The lack of clear documentation on this topic is noted as a concern.
Updated on: 2023-06-13T19:09:46.765995+00:00