Witness serialization in PSBT non-witness UTXOs



Summary:

The bitcoin-dev mailing list recently discussed a proposal to update the BIP174 specification regarding non-witness UTXOs. Currently, the specification requires that these transactions be serialized in network format. However, Pieter Wuille brought up two issues with this approach. Firstly, even if the transaction being spent has a witness, it is not relevant to PSBT. Secondly, "network format" is ambiguous and could cause compatibility issues in the future.Wuille suggested that the specification should be updated to require non-witness UTXOs to be serialized without witness. If this is not possible, then the specification should explicitly state whether or not the witness is required. Andrew Chow also weighed in on the discussion, proposing that the non-witness utxo should just be "witness or non-witness" serialization. It was mentioned that two years from now, nothing will write the witnesses, and the requirement to support reading them could be dropped. Overall, the group seems to agree that the specification needs to be clarified for forward compatibility and maintaining compatibility with existing signers.


Updated on: 2023-05-20T17:33:13.826425+00:00