Skip to content

Commit 45df424

Browse files
committed
Clarify handling of duplicated keys
1 parent bfae179 commit 45df424

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

bip-0174.mediawiki

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -260,10 +260,9 @@ pass those key-value pairs through when re-serializing the transaction.
260260

261261
===Handling Duplicated Keys===
262262

263-
Keys within each scope should never be duplicated; all keys in the format are unique. However implementors
264-
will still need to handle events where keys are duplicated, either duplicated in the transaction
265-
itself or when combining transactions with duplicated fields. If duplicated keys are
266-
encountered, the software may choose to use any of the values corresponding to that key.
263+
Keys within each scope should never be duplicated; all keys in the format are unique. PSBTs containing duplicate keys are invalid. However implementors
264+
will still need to handle events where keys are duplicated when combining transactions with duplicated fields. In this event, the software may choose
265+
whichever value it wishes.
267266

268267
==Responsibilities==
269268

0 commit comments

Comments
 (0)