Skip to content

Commit 8faf97e

Browse files
authored
BIP-174: add missing types to Appendix A; fix proprietary type names
PSBT_INPUT_PROPRIETARY -> PSBT_IN_PROPRIETARY PSBT_OUTPUT_PROPRIETARY -> PSBT_OUT_PROPRIETARY to be consistent with other in/out type names that use shortened `IN` and `OUT`
1 parent 0a388fa commit 8faf97e

File tree

1 file changed

+27
-2
lines changed

1 file changed

+27
-2
lines changed

bip-0174.mediawiki

Lines changed: 27 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ The currently defined per-input types are defined as follows:
200200
** Value: The UTF-8 encoded commitment message string for the proof-of-reserves. See [[bip-0127.mediawiki|BIP 127]] for more information.
201201
*** <tt>{porCommitment}</tt>
202202
203-
* Type: Proprietary Use Type <tt>PSBT_INPUT_PROPRIETARY = 0xFC</tt>
203+
* Type: Proprietary Use Type <tt>PSBT_IN_PROPRIETARY = 0xFC</tt>
204204
** Key: Variable length identifier prefix, followed by a subtype, followed by the key data itself.
205205
*** <tt>{0xFC}|<prefix>|{subtype}|{key data}</tt>
206206
** Value: Any value data as defined by the proprietary type user.
@@ -228,7 +228,7 @@ determine which outputs are change outputs and verify that the change is returni
228228
** Value: The master key fingerprint concatenated with the derivation path of the public key. The derivation path is represented as 32-bit little endian unsigned integer indexes concatenated with each other. Public keys are those needed to spend this output.
229229
*** <tt>{master key fingerprint}|{32-bit uint}|...|{32-bit uint}</tt>
230230
231-
* Type: Proprietary Use Type <tt>PSBT_OUTPUT_PROPRIETARY = 0xFC</tt>
231+
* Type: Proprietary Use Type <tt>PSBT_OUT_PROPRIETARY = 0xFC</tt>
232232
** Key: Variable length identifier prefix, followed by a subtype, followed by the key data itself.
233233
*** <tt>{0xFC}|<prefix>|{subtype}|{key data}</tt>
234234
** Value: Any value data as defined by the proprietary type user.
@@ -748,6 +748,21 @@ Any data types, their associated scope and BIP number must be defined here
748748
| PSBT_GLOBAL_UNSIGNED_TX
749749
| BIP 174
750750
|-
751+
| Global
752+
| 1
753+
| PSBT_GLOBAL_XPUB
754+
| BIP 174
755+
|-
756+
| Global
757+
| 251
758+
| PSBT_GLOBAL_VERSION
759+
| BIP 174
760+
|-
761+
| Global
762+
| 252
763+
| PSBT_GLOBAL_PROPRIETARY
764+
| BIP 174
765+
|-
751766
| Input
752767
| 0
753768
| PSBT_IN_NON_WITNESS_UTXO
@@ -798,6 +813,11 @@ Any data types, their associated scope and BIP number must be defined here
798813
| PSBT_IN_POR_COMMITMENT
799814
| [[bip-0127.mediawiki|BIP 127]]
800815
|-
816+
| Input
817+
| 252
818+
| PSBT_IN_PROPRIETARY
819+
| BIP 174
820+
|-
801821
| Output
802822
| 0
803823
| PSBT_OUT_REDEEM_SCRIPT
@@ -812,4 +832,9 @@ Any data types, their associated scope and BIP number must be defined here
812832
| 2
813833
| PSBT_OUT_BIP32_DERIVATION
814834
| BIP 174
835+
|-
836+
| Output
837+
| 252
838+
| PSBT_OUT_PROPRIETARY
839+
| BIP 174
815840
|}

0 commit comments

Comments
 (0)