Skip to content

Commit d459bb9

Browse files
authored
Merge pull request bitcoin#1221 from kallerosenbaum/bip174in_final
BIP 0174: Clarify use of PSBT_IN_FINAL_* when data is empty
2 parents 708ce10 + a5fd6c8 commit d459bb9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

bip-0174.mediawiki

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -798,6 +798,8 @@ Or, for participants performing fA(psbt) and fB(psbt): Combine(fA(psbt), fB(psbt
798798

799799
The Input Finalizer must only accept a PSBT.
800800
For each input, the Input Finalizer determines if the input has enough data to pass validation. If it does, it must construct the <tt>0x07</tt> Finalized scriptSig and <tt>0x08</tt> Finalized scriptWitness and place them into the input key-value map.
801+
If scriptSig is empty for an input, <tt>0x07</tt> should remain unset rather than assigned an empty array.
802+
Likewise, if no scriptWitness exists for an input, <tt>0x08</tt> should remain unset rather than assigned an empty array.
801803
All other data except the UTXO and unknown fields in the input key-value map should be cleared from the PSBT. The UTXO should be kept to allow Transaction Extractors to verify the final network serialized transaction.
802804

803805
===Transaction Extractor===

0 commit comments

Comments
 (0)