Skip to content

Commit 91017ff

Browse files
josibakevostrnad
andcommitted
Add footnote for outpoints sorting
Co-authored-by: Vojtěch Strnad <[email protected]>
1 parent 5f63bb8 commit 91017ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bip-0000.mediawiki

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ A silent payment address is constructed in the following manner:
173173
The sender and receiver MUST calculate an outpoints hash for the transaction in the following manner:
174174
175175
* Collect each ''outpoint'' used as an input to the transaction
176-
* Let ''outpoints = outpoint<sub>0</sub> || … || outpoint<sub>n</sub>'', sorted by txid and vout, ascending order
176+
* Let ''outpoints = outpoint<sub>0</sub> || … || outpoint<sub>n</sub>'', sorted by txid and vout, ascending order<ref name="why_sort_outpoints">'''Why are outpoints sorted before hashing?''' This way the silent payment otuput does not need to be recalculated if the wallet changes the order of inputs, e.g. at signing time or during an RBF bump.</ref>
177177
* Let ''outpoints_hash = sha256(outpoints)''
178178
179179
=== Inputs For Shared Secret Derivation ===

0 commit comments

Comments
 (0)