Skip to content

Commit 88fb205

Browse files
committed
Combine Appendix with field listing tables
1 parent c27d5e8 commit 88fb205

File tree

1 file changed

+26
-126
lines changed

1 file changed

+26
-126
lines changed

bip-0174.mediawiki

Lines changed: 26 additions & 126 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ The currently defined global types are as follows:
9494
! Versions Requiring Inclusion
9595
! Versions Requiring Exclusion
9696
! Versions Allowing Inclusion
97+
! Parent BIP
9798
|-
9899
| Unsigned Transaction
99100
| <tt>PSBT_GLOBAL_UNSIGNED_TX = 0x00</tt>
@@ -104,6 +105,7 @@ The currently defined global types are as follows:
104105
| 0
105106
|
106107
| 0
108+
| 174
107109
|-
108110
| Extended Public Key
109111
| <tt>PSBT_GLOBAL_XPUB = 0x01</tt>
@@ -114,6 +116,7 @@ The currently defined global types are as follows:
114116
|
115117
|
116118
| 0
119+
| 174
117120
|-
118121
| PSBT Version Number
119122
| <tt>PSBT_GLOBAL_VERSION = 0xFB</tt>
@@ -124,6 +127,7 @@ The currently defined global types are as follows:
124127
|
125128
|
126129
| 0
130+
| 174
127131
|-
128132
| Proprietary Use Type
129133
| <tt>PSBT_GLOBAL_PROPRIETARY = 0xFC</tt>
@@ -134,6 +138,7 @@ The currently defined global types are as follows:
134138
|
135139
|
136140
| 0
141+
| 174
137142
|}
138143

139144
The currently defined per-input types are defined as follows:
@@ -148,6 +153,7 @@ The currently defined per-input types are defined as follows:
148153
! Versions Requiring Inclusion
149154
! Versions Requiring Exclusion
150155
! Versions Allowing Inclusion
156+
! Parent BIP
151157
|-
152158
| Non-Witness UTXO
153159
| <tt>PSBT_IN_NON_WITNESS_UTXO = 0x00</tt>
@@ -158,6 +164,7 @@ The currently defined per-input types are defined as follows:
158164
|
159165
|
160166
| 0
167+
| 174
161168
|-
162169
| Witness UTXO
163170
| <tt>PSBT_IN_WITNESS_UTXO = 0x01</tt>
@@ -168,6 +175,7 @@ The currently defined per-input types are defined as follows:
168175
|
169176
|
170177
| 0
178+
| 174
171179
|-
172180
| Partial Signature
173181
| <tt>PSBT_IN_PARTIAL_SIG = 0x02</tt>
@@ -178,6 +186,7 @@ The currently defined per-input types are defined as follows:
178186
|
179187
|
180188
| 0
189+
| 174
181190
|-
182191
| Sighash Type
183192
| <tt>PSBT_IN_SIGHASH_TYPE = 0x03</tt>
@@ -188,6 +197,7 @@ The currently defined per-input types are defined as follows:
188197
|
189198
|
190199
| 0
200+
| 174
191201
|-
192202
| Redeem Script
193203
| <tt>PSBT_IN_REDEEM_SCRIPT = 0x04</tt>
@@ -198,6 +208,7 @@ The currently defined per-input types are defined as follows:
198208
|
199209
|
200210
| 0
211+
| 174
201212
|-
202213
| Witness Script
203214
| <tt>PSBT_IN_WITNESS_SCRIPT = 0x05</tt>
@@ -208,6 +219,7 @@ The currently defined per-input types are defined as follows:
208219
|
209220
|
210221
| 0
222+
| 174
211223
|-
212224
| BIP 32 Derivation Path
213225
| <tt>PSBT_IN_BIP32_DERIVATION = 0x06</tt>
@@ -218,6 +230,7 @@ The currently defined per-input types are defined as follows:
218230
|
219231
|
220232
| 0
233+
| 174
221234
|-
222235
| Finalized scriptSig
223236
| <tt>PSBT_IN_FINAL_SCRIPTSIG = 0x07</tt>
@@ -228,6 +241,7 @@ The currently defined per-input types are defined as follows:
228241
|
229242
|
230243
| 0
244+
| 174
231245
|-
232246
| Finalized scriptWitness
233247
| <tt>PSBT_IN_FINAL_SCRIPTWITNESS = 0x08</tt>
@@ -238,6 +252,7 @@ The currently defined per-input types are defined as follows:
238252
|
239253
|
240254
| 0
255+
| 174
241256
|-
242257
| Proof-of-reserves commitment
243258
| <tt>PSBT_IN_POR_COMMITMENT = 0x09</tt>
@@ -248,6 +263,7 @@ The currently defined per-input types are defined as follows:
248263
|
249264
|
250265
| 0
266+
| [[bip-0127.mediawiki|127]]
251267
|-
252268
| RIPEMD160 preimage
253269
| <tt>PSBT_IN_RIPEMD160 = 0x0a</tt>
@@ -258,6 +274,7 @@ The currently defined per-input types are defined as follows:
258274
|
259275
|
260276
| 0
277+
| 174
261278
|-
262279
| SHA256 preimage
263280
| <tt>PSBT_IN_SHA256 = 0x0b</tt>
@@ -268,6 +285,7 @@ The currently defined per-input types are defined as follows:
268285
|
269286
|
270287
| 0
288+
| 174
271289
|-
272290
| HASH160 preimage
273291
| <tt>PSBT_IN_HASH160 = 0x0c</tt>
@@ -278,6 +296,7 @@ The currently defined per-input types are defined as follows:
278296
|
279297
|
280298
| 0
299+
| 174
281300
|-
282301
| HASH256 preimage
283302
| <tt>PSBT_IN_HASH256 = 0x0d</tt>
@@ -288,6 +307,7 @@ The currently defined per-input types are defined as follows:
288307
|
289308
|
290309
| 0
310+
| 174
291311
|-
292312
| Proprietary Use Type
293313
| <tt>PSBT_IN_PROPRIETARY = 0xFC</tt>
@@ -298,6 +318,7 @@ The currently defined per-input types are defined as follows:
298318
|
299319
|
300320
| 0
321+
| 174
301322
|}
302323

303324
The currently defined per-output <ref>'''Why do we need per-output data?''' Per-output data allows signers
@@ -314,6 +335,7 @@ determine which outputs are change outputs and verify that the change is returni
314335
! Versions Requiring Inclusion
315336
! Versions Requiring Exclusion
316337
! Versions Allowing Inclusion
338+
! Parent BIP
317339
|-
318340
| Redeem Script
319341
| <tt>PSBT_OUT_REDEEM_SCRIPT = 0x00</tt>
@@ -324,6 +346,7 @@ determine which outputs are change outputs and verify that the change is returni
324346
|
325347
|
326348
| 0
349+
| 174
327350
|-
328351
| Witness Script
329352
| <tt>PSBT_OUT_WITNESS_SCRIPT = 0x01</tt>
@@ -334,6 +357,7 @@ determine which outputs are change outputs and verify that the change is returni
334357
|
335358
|
336359
| 0
360+
| 174
337361
|-
338362
| BIP 32 Derivation Path
339363
| <tt>PSBT_OUT_BIP32_DERIVATION = 0x02</tt>
@@ -344,6 +368,7 @@ determine which outputs are change outputs and verify that the change is returni
344368
|
345369
|
346370
| 0
371+
| 174
347372
|-
348373
| Proprietary Use Type
349374
| <tt>PSBT_OUT_PROPRIETARY = 0xFC</tt>
@@ -354,6 +379,7 @@ determine which outputs are change outputs and verify that the change is returni
354379
|
355380
|
356381
| 0
382+
| 174
357383
|}
358384

359385
Types can be skipped when they are unnecessary. For example, if an input is a witness
@@ -817,129 +843,3 @@ and for coming up with the name and abbreviation of PSBT.
817843

818844
Thanks to Pieter Wuille, Gregory Maxwell, Jonathan Underwood, Daniel Cousens and those who commented on the bitcoin-dev mailing list for additional comments
819845
and suggestions for improving this proposal.
820-
821-
==Appendix A: Data types and their specifications==
822-
823-
Any data types, their associated scope and BIP number must be defined here
824-
825-
{| class="wikitable" style="width: auto; text-align: center; font-size: smaller; table-layout: fixed;"
826-
!Scope
827-
!Type values
828-
!Name
829-
!BIP Number
830-
|-
831-
| Global
832-
| 0
833-
| PSBT_GLOBAL_UNSIGNED_TX
834-
| BIP 174
835-
|-
836-
| Global
837-
| 1
838-
| PSBT_GLOBAL_XPUB
839-
| BIP 174
840-
|-
841-
| Global
842-
| 251
843-
| PSBT_GLOBAL_VERSION
844-
| BIP 174
845-
|-
846-
| Global
847-
| 252
848-
| PSBT_GLOBAL_PROPRIETARY
849-
| BIP 174
850-
|-
851-
| Input
852-
| 0
853-
| PSBT_IN_NON_WITNESS_UTXO
854-
| BIP 174
855-
|-
856-
| Input
857-
| 1
858-
| PSBT_IN_WITNESS_UTXO
859-
| BIP 174
860-
|-
861-
| Input
862-
| 2
863-
| PSBT_IN_PARTIAL_SIG
864-
| BIP 174
865-
|-
866-
| Input
867-
| 3
868-
| PSBT_IN_SIGHASH_TYPE
869-
| BIP 174
870-
|-
871-
| Input
872-
| 4
873-
| PSBT_IN_REDEEM_SCRIPT
874-
| BIP 174
875-
|-
876-
| Input
877-
| 5
878-
| PSBT_IN_WITNESS_SCRIPT
879-
| BIP 174
880-
|-
881-
| Input
882-
| 6
883-
| PSBT_IN_BIP32_DERIVATION
884-
| BIP 174
885-
|-
886-
| Input
887-
| 7
888-
| PSBT_IN_FINAL_SCRIPTSIG
889-
| BIP 174
890-
|-
891-
| Input
892-
| 8
893-
| PSBT_IN_FINAL_SCRIPTWITNESS
894-
| BIP 174
895-
|-
896-
| Input
897-
| 9
898-
| PSBT_IN_POR_COMMITMENT
899-
| [[bip-0127.mediawiki|BIP 127]]
900-
|-
901-
| Input
902-
| 10
903-
| PSBT_IN_RIPEMD160
904-
| BIP 174
905-
|-
906-
| Input
907-
| 11
908-
| PSBT_IN_SHA256
909-
| BIP 174
910-
|-
911-
| Input
912-
| 12
913-
| PSBT_IN_HASH160
914-
| BIP 174
915-
|-
916-
| Input
917-
| 13
918-
| PSBT_IN_HASH256
919-
| BIP 174
920-
|-
921-
| Input
922-
| 252
923-
| PSBT_IN_PROPRIETARY
924-
| BIP 174
925-
|-
926-
| Output
927-
| 0
928-
| PSBT_OUT_REDEEM_SCRIPT
929-
| BIP 174
930-
|-
931-
| Output
932-
| 1
933-
| PSBT_OUT_WITNESS_SCRIPT
934-
| BIP 174
935-
|-
936-
| Output
937-
| 2
938-
| PSBT_OUT_BIP32_DERIVATION
939-
| BIP 174
940-
|-
941-
| Output
942-
| 252
943-
| PSBT_OUT_PROPRIETARY
944-
| BIP 174
945-
|}

0 commit comments

Comments
 (0)