Skip to content

Commit 02ab2bf

Browse files
committed
370: Clarify that modifiable flags are bits
1 parent 5861862 commit 02ab2bf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bip-0370.mediawiki

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ The new global types for PSBT Version 2 are as follows:
103103
| None
104104
| No key data
105105
| <tt><8-bit uint></tt>
106-
| An 8 bit unsigned integer as a bitfield for various transaction modification flags. Bit 0 is the Inputs Modifiable Flag and indicates whether inputs can be added or removed. Bit 1 is the Outputs Modifiable Flag and indicates whether outputs can be added or removed. 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 or remove an input.
106+
| An 8 bit unsigned integer as a bitfield for various transaction modification flags. Bit 0 is the Inputs Modifiable Flag, set to 1 to indicate whether inputs can be added or removed. Bit 1 is the Outputs Modifiable Flag, set to 1 to indicate whether outputs can be added or removed. Bit 2 is the Has SIGHASH_SINGLE flag, set to 1 to indicate 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 or remove an input.
107107
|
108108
| 0
109109
| 2
@@ -265,7 +265,7 @@ If it changes the transaction's locktime when there are existing signatures, it
265265
If the Has SIGHASH_SINGLE flag is True, then the Constructor must iterate through the inputs and find the inputs which have signatures that use SIGHASH_SINGLE.
266266
The same number of inputs and outputs must be added before those inputs and their corresponding outputs.
267267

268-
A Constructor may choose to declare that no further inputs and outputs can be added to the transaction by setting the booleans in PSBT_GLOBAL_TX_MODIFIABLE to False or by removing this field entirely.
268+
A Constructor may choose to declare that no further inputs and outputs can be added to the transaction by setting the appropriate bits in PSBT_GLOBAL_TX_MODIFIABLE to 0 or by removing the field entirely.
269269

270270
A single entity is likely to be both a Creator and Constructor.
271271

0 commit comments

Comments
 (0)