From a5fd6c8f6086f6d4d4a156e70eceb9107df0a1e9 Mon Sep 17 00:00:00 2001 From: Kalle Rosenbaum Date: Wed, 27 Oct 2021 20:34:53 +0200 Subject: BIP 0174: Clarify use of PSBT_IN_FINAL_* when data is empty --- bip-0174.mediawiki | 2 ++ 1 file changed, 2 insertions(+) (limited to 'bip-0174.mediawiki') diff --git a/bip-0174.mediawiki b/bip-0174.mediawiki index 9a663fc..27e475f 100644 --- a/bip-0174.mediawiki +++ b/bip-0174.mediawiki @@ -798,6 +798,8 @@ Or, for participants performing fA(psbt) and fB(psbt): Combine(fA(psbt), fB(psbt The Input Finalizer must only accept a PSBT. For each input, the Input Finalizer determines if the input has enough data to pass validation. If it does, it must construct the 0x07 Finalized scriptSig and 0x08 Finalized scriptWitness and place them into the input key-value map. +If scriptSig is empty for an input, 0x07 should remain unset rather than assigned an empty array. +Likewise, if no scriptWitness exists for an input, 0x08 should remain unset rather than assigned an empty array. 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. ===Transaction Extractor=== -- cgit v1.2.3