diff options
author | Andrew Chow <achow101-github@achow101.com> | 2022-06-13 12:21:42 -0400 |
---|---|---|
committer | Andrew Chow <achow101-github@achow101.com> | 2022-06-13 12:21:42 -0400 |
commit | 02ab2bfd79d860208fe09e7b2afa12541aba5eb2 (patch) | |
tree | b8b7390478790cd9b116743654422b3aee7c3b29 /bip-0370.mediawiki | |
parent | 5861862f598a7837a101dada50ee22aaa09e5c4f (diff) |
370: Clarify that modifiable flags are bits
Diffstat (limited to 'bip-0370.mediawiki')
-rw-r--r-- | bip-0370.mediawiki | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bip-0370.mediawiki b/bip-0370.mediawiki index cecd4ae..c0ea6d9 100644 --- a/bip-0370.mediawiki +++ b/bip-0370.mediawiki @@ -103,7 +103,7 @@ The new global types for PSBT Version 2 are as follows: | None | No key data | <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 | 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. 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. |