Skip to content

Commit dd68abc

Browse files
authored
Merge pull request bitcoin#1120 from t-bast/bip-174
BIP 174: clarify key uniqueness
2 parents 7e16a94 + 4a1077d commit dd68abc

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

bip-0174.mediawiki

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ be used as a separator and allow for easier unserializer implementation.</ref>.
6565
Where:
6666

6767
;<tt><keytype></tt>
68-
: A compact size unsigned integer representing the type. This compact size unsigned integer must be minimally encoded, i.e. if the value can be represented using one byte, it must be represented as one byte. This must be unique within a specific <tt><map></tt>.
68+
: A compact size unsigned integer representing the type. This compact size unsigned integer must be minimally encoded, i.e. if the value can be represented using one byte, it must be represented as one byte. There can be multiple entries with the same <tt><keytype></tt> within a specific <tt><map></tt>, but the <tt><key></tt> must be unique.
6969
;<tt><keylen></tt>
7070
: The compact size unsigned integer containing the combined length of <tt><keytype></tt> and <tt><keydata></tt>
7171
;<tt><valuelen></tt>
@@ -544,7 +544,7 @@ values are valid, then it does not matter which is chosen as either way the tran
544544

545545
===Proprietary Use Type===
546546

547-
For all global, per-input, and per-output maps, the types <tt>0xFC</tt> is reserved for proprietary use.
547+
For all global, per-input, and per-output maps, the type <tt>0xFC</tt> is reserved for proprietary use.
548548
The proprietary use type requires keys that follow the type with a compact size unsigned integer representing the length of the string identifer, followed by the string identifier, then a subtype, and finally any key data.
549549

550550
The identifier can be any variable length string that software can use to identify whether the particular data in the proprietary type can be used by it.
@@ -554,7 +554,7 @@ The subtype is defined by the proprietary type user and can mean whatever they w
554554
The subtype must also be a compact size unsigned integer in the same form as the normal types.
555555
The key data and value data are defined by the proprietary type user.
556556

557-
The proprietary use types is for private use by individuals and organizations who wish to use PSBT in their processes.
557+
The proprietary use type is for private use by individuals and organizations who wish to use PSBT in their processes.
558558
It is useful when there are additional data that they need attached to a PSBT but such data are not useful or available for the general public.
559559
The proprietary use type is not to be used by any public specification and there is no expectation that any publicly available software be able to understand any specific meanings of it and the subtypes.
560560
This type must be used for internal processes only.
@@ -727,7 +727,7 @@ If an updater is updating a PSBT and needs to add a field that is only available
727727
===Procedure For New Fields===
728728

729729
New fields should first be proposed on the bitcoin-dev mailing list.
730-
If a field requires significatn description as to its usage, it should be accompanied by a separate BIP.
730+
If a field requires significant description as to its usage, it should be accompanied by a separate BIP.
731731
The field must be added to the field listing tables in the Specification section.
732732

733733
===Procedure For New Versions===

0 commit comments

Comments
 (0)