Skip to content

Commit c099104

Browse files
committed
Explicitly specify PSBTv0
1 parent 50fdf54 commit c099104

File tree

3 files changed

+13
-4
lines changed

3 files changed

+13
-4
lines changed

README.mediawiki

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -850,7 +850,7 @@ Those proposing changes should consider that ultimately consent may rest with th
850850
|- style="background-color: #ffffcf"
851851
| [[bip-0174.mediawiki|174]]
852852
| Applications
853-
| Partially Signed Bitcoin Transaction Format
853+
| Partially Signed Bitcoin Transaction Format and Version 0
854854
| Andrew Chow
855855
| Standard
856856
| Proposed

bip-0174.mediawiki

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<pre>
22
BIP: 174
33
Layer: Applications
4-
Title: Partially Signed Bitcoin Transaction Format
4+
Title: Partially Signed Bitcoin Transaction Format and Version 0
55
Author: Andrew Chow <[email protected]>
66
Comments-Summary: No comments yet.
77
Comments-URI: https://github.com/bitcoin/bips/wiki/Comments:BIP-0174
@@ -21,6 +21,9 @@ signatures for an input while the input does not have a complete set of signatur
2121
The signer can be offline as all necessary information will be provided in the
2222
transaction.
2323

24+
The generic format is described here in addition to the specification for version 0
25+
of this format.
26+
2427
===Copyright===
2528

2629
This BIP is licensed under the 2-clause BSD license.
@@ -94,7 +97,7 @@ The currently defined global types are as follows:
9497
| None
9598
| No key data
9699
| <tt><transaction></tt>
97-
| The transaction in network serialization. The scriptSigs and witnesses for each input must be empty. The transaction must be in the old serialization format (without witnesses). A PSBT must have a transaction, otherwise it is invalid.
100+
| The transaction in network serialization. The scriptSigs and witnesses for each input must be empty. The transaction must be in the old serialization format (without witnesses).
98101
|-
99102
| Extended Public Key
100103
| <tt>PSBT_GLOBAL_XPUB = 0x01</tt>
@@ -311,6 +314,12 @@ It is useful when there are additional data that they need attached to a PSBT bu
311314
The proprietary use type is not to be used by any public specification and there is no expectation that any publicly available software be able to understand any specific meanings of it and the subtypes.
312315
This type must be used for internal processes only.
313316

317+
==Version 0==
318+
319+
Partially Signed Bitcoin Transactions version 0 is the first version of the PSBT format.
320+
Version 0 PSBTs must either omit PSBT_GLOBAL_VERSION or include it and set it to 0.
321+
Version 0 PSBTs must include PSBT_GLOBAL_UNSIGNED_TX, if omitted, the PSBT is invalid.
322+
314323
==Roles==
315324

316325
Using the transaction format involves many different roles. Multiple roles can be handled by a single entity, but each role is specialized in what it should be capable of doing.

scripts/buildtable.pl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@
8989
);
9090
my %GrandfatheredPD = map { $_ => undef } qw(9 36 37 38 42 49 50 60 65 67 69 74 80 81 83 90 99 105 107 109 111 112 113 114 122 124 125 126 130 131 132 133 140 141 142 143 144 146 147 150 151 152);
9191
my %TolerateMissingLicense = map { $_ => undef } qw(1 10 11 12 13 14 15 16 21 31 33 34 35 39 43 44 45 47 61 64 68 70 71 72 73 101 102 106 120 121);
92-
my %TolerateTitleTooLong = map { $_ => undef } qw(39 44 45 47 49 60 67 68 69 73 74 75 80 81 99 105 106 109 113 122 126 131 143 145 147 173);
92+
my %TolerateTitleTooLong = map { $_ => undef } qw(39 44 45 47 49 60 67 68 69 73 74 75 80 81 99 105 106 109 113 122 126 131 143 145 147 173 174);
9393

9494
my %emails;
9595

0 commit comments

Comments
 (0)