Skip to content

Commit c798c9c

Browse files
authored
Merge pull request bitcoin#1197 from kallerosenbaum/patch-1
BIP 0174: Correct format of PSBT_GLOBAL_TX_MODIFIABLE
2 parents bd94366 + 33efbb2 commit c798c9c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bip-0174.mediawiki

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,8 +164,8 @@ The currently defined global types are as follows:
164164
| <tt>PSBT_GLOBAL_TX_MODIFIABLE = 0x06</tt>
165165
| None
166166
| No key data
167-
| <tt><single byte boolean> <single byte boolean> <bitvector></tt>
168-
| A single byte boolean (0 for False, 1 for True) representing whether inputs can be modified, followed by a single byte boolean representing whether outputs can be modified.
167+
| <tt><8-bit uint></tt>
168+
| An 8 bit little endian unsigned integer as a bitfield for various transaction modification flags. Bit 0 is the Inputs Modifiable Flag and indicates whether inputs can be modified. Bit 1 is the Outputs Modifiable Flag and indicates whether outputs can be modified. Bit 2 is the Has SIGHASH_SINGLE flag and indicates whether the transaction has a SIGHASH_SINGLE signature who's input and output pairing must be preserved. Bit 2 essentially indicates that the Constructor must iterate the inputs to determine whether and how to add an input.
169169
|
170170
| 0
171171
| 2

0 commit comments

Comments
 (0)