From 13ad4c69f6cc357de3ba7edf85b7dcca3b3d9542 Mon Sep 17 00:00:00 2001 From: josibake Date: Wed, 14 Jun 2023 12:35:13 +0200 Subject: [PATCH] Add footnote for outpoints sorting MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Vojtěch Strnad <43024885+vostrnad@users.noreply.github.com> --- bip-0000.mediawiki | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bip-0000.mediawiki b/bip-0000.mediawiki index cc81f18e1b..04a6dab75d 100644 --- a/bip-0000.mediawiki +++ b/bip-0000.mediawiki @@ -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 = outpoint0 || … || outpointn'', sorted by txid and vout, ascending order +* Let ''outpoints = outpoint0 || … || outpointn'', sorted by txid and vout, ascending order'''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. * Let ''outpoints_hash = sha256(outpoints)'' === Inputs For Shared Secret Derivation ===