summaryrefslogtreecommitdiff
path: root/bip-0174.mediawiki
diff options
context:
space:
mode:
authorDr. Maxim Orlovsky <orlovsky@pandoracore.com>2020-09-07 13:06:43 +0200
committerGitHub <noreply@github.com>2020-09-07 13:06:43 +0200
commit3d297861eb78db6151f282e4eaff0be4cd819aec (patch)
tree6fb97dc219b52640a47b0f8913c1eece349f13fc /bip-0174.mediawiki
parentbdb297a7c847c23b96ff1dbe7bc91586ec8b59c5 (diff)
downloadbips-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.mediawiki2
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===