mirror of
https://github.com/bitcoin/bips.git
synced 2025-05-12 12:03:29 +00:00
Correct format of PSBT_GLOBAL_TX_MODIFIABLE
The descriptions for this field differ between bip370 and bip174. I suppose the correct format of PSBT_GLOBAL_TX_MODIFIABLE is the one in BIP370.
This commit is contained in:
parent
bd943663d6
commit
33efbb2125
@ -164,8 +164,8 @@ The currently defined global types are as follows:
|
|||||||
| <tt>PSBT_GLOBAL_TX_MODIFIABLE = 0x06</tt>
|
| <tt>PSBT_GLOBAL_TX_MODIFIABLE = 0x06</tt>
|
||||||
| None
|
| None
|
||||||
| No key data
|
| No key data
|
||||||
| <tt><single byte boolean> <single byte boolean> <bitvector></tt>
|
| <tt><8-bit uint></tt>
|
||||||
| 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.
|
| 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.
|
||||||
|
|
|
|
||||||
| 0
|
| 0
|
||||||
| 2
|
| 2
|
||||||
|
Loading…
x
Reference in New Issue
Block a user