diff options
author | Dr. Maxim Orlovsky <orlovsky@pandoracore.com> | 2020-09-07 13:06:43 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-07 13:06:43 +0200 |
commit | 3d297861eb78db6151f282e4eaff0be4cd819aec (patch) | |
tree | 6fb97dc219b52640a47b0f8913c1eece349f13fc /bip-0174.mediawiki | |
parent | bdb297a7c847c23b96ff1dbe7bc91586ec8b59c5 (diff) | |
download | bips-3d297861eb78db6151f282e4eaff0be4cd819aec.tar.xz |
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/a24806c25d7a81a9c436de58eb5778d93abab16b/src/psbt.cpp#L12), and [other PSBT implementations, like rust-bitcoin, follow this practice](https://github.com/rust-bitcoin/rust-bitcoin/blob/master/src/util/psbt/mod.rs#L59)
Diffstat (limited to 'bip-0174.mediawiki')
-rw-r--r-- | bip-0174.mediawiki | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bip-0174.mediawiki b/bip-0174.mediawiki index 65fa9a9..9bb35c8 100644 --- a/bip-0174.mediawiki +++ b/bip-0174.mediawiki @@ -357,7 +357,7 @@ Using the transaction format involves many different responsibilities. Multiple ===Creator=== The Creator creates a new PSBT. It must create an unsigned transaction and place it in the PSBT. -The Creator must create empty input fields. +The Creator must create empty input and output fields fields. ===Updater=== |