mirror of
https://github.com/bitcoin/bips.git
synced 2026-10-19 19:29:18 +00:00
BIP 174 tells the Input Finalizer to clear all other data except the UTXO and unknown fields from a finalized input. It was written when the unsigned transaction was a global field. PSBTv2 moves the data that defines the input into the input map, and a finalizer that follows the sentence literally removes it: without PSBT_IN_PREVIOUS_TXID or PSBT_IN_OUTPUT_INDEX the result is invalid, and without PSBT_IN_SEQUENCE and the locktime fields the Transaction Extractor builds a different transaction. BIP 370 amends Creator, Updater, Signer and Transaction Extractor for PSBTv2, adds the Constructor, and says nothing about the Input Finalizer. Add the section: the five fields are kept. Bitcoin Core does this today: at 19b0ff2fa0, PSBTInput::Serialize in src/psbt.h writes them for every PSBTv2 input, finalized or not.
77 KiB
77 KiB