← Back to Bitcoin Improvement Proposals
BIPinformationalpsbtkey-managementscript

BIP 174: require creator to initialize empty output fields

The current version of the spec requires creator role to initialize empty input fields, but says nothing about output field initialization. At the same time, the following role, updater, "should also add redeemScripts, witnessScripts, and BIP 32 derivation paths to the input and output data if it knows them.", which does not make any sense if the fields were uninitialized. The [current Bitcoin Core implementation does this](https://github.com/bitcoin/bitcoin/blob/a24806c25d7a81a9c436de58eb5778d9

No reviews
dr-orlovsky·Updated Aug 2, 2023·0 reviews·0 attestations·View source
Collections:BIPs — Merged

Specification

The current version of the spec requires creator role to initialize empty input fields, but says nothing about output field initialization. At the same time, the following role, updater, "should also add redeemScripts, witnessScripts, and BIP 32 derivation paths to the input and output data if it knows them.", which does not make any sense if the fields were uninitialized. The current Bitcoin Core implementation does this, and other PSBT implementations, like rust-bitcoin, follow this practice

Discussion (0 threads)

Loading discussions...