mirror of
https://github.com/bitcoin/bips.git
synced 2025-03-04 11:08:05 +01:00
370: Clarify that modifiable flags are bits
This commit is contained in:
parent
5861862f59
commit
02ab2bfd79
1 changed files with 2 additions and 2 deletions
|
@ -103,7 +103,7 @@ The new global types for PSBT Version 2 are as follows:
|
||||||
| None
|
| None
|
||||||
| No key data
|
| No key data
|
||||||
| <tt><8-bit uint></tt>
|
| <tt><8-bit uint></tt>
|
||||||
| 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.
|
| 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.
|
||||||
|
|
|
|
||||||
| 0
|
| 0
|
||||||
| 2
|
| 2
|
||||||
|
@ -265,7 +265,7 @@ If it changes the transaction's locktime when there are existing signatures, it
|
||||||
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.
|
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.
|
||||||
The same number of inputs and outputs must be added before those inputs and their corresponding outputs.
|
The same number of inputs and outputs must be added before those inputs and their corresponding outputs.
|
||||||
|
|
||||||
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.
|
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.
|
||||||
|
|
||||||
A single entity is likely to be both a Creator and Constructor.
|
A single entity is likely to be both a Creator and Constructor.
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue