Skip to content

Commit

Permalink
Add footnote for outpoints sorting
Browse files Browse the repository at this point in the history
Co-authored-by: Vojtěch Strnad <[email protected]>
  • Loading branch information
josibake and vostrnad committed Jun 14, 2023
1 parent 5f63bb8 commit 91017ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bip-0000.mediawiki
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ A silent payment address is constructed in the following manner:
The sender and receiver MUST calculate an outpoints hash for the transaction in the following manner:
* Collect each ''outpoint'' used as an input to the transaction
* Let ''outpoints = outpoint<sub>0</sub> || … || outpoint<sub>n</sub>'', sorted by txid and vout, ascending order
* 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>
* Let ''outpoints_hash = sha256(outpoints)''
=== Inputs For Shared Secret Derivation ===
Expand Down

0 comments on commit 91017ff

Please sign in to comment.