1
0
mirror of https://github.com/bitcoin/bips.git synced 2025-08-11 13:20:50 +00:00

BIP352: add warning against omitting outputs (#1908)

* doc: add warning against omitting outputs

While implied by the specification, add an explicit warning that
generated outputs MUST not be omitted from the final transaction.

Co-authored-by: Mark "Murch" Erhardt <murch@murch.one>
This commit is contained in:
josie 2025-08-04 18:36:01 +02:00 committed by GitHub
parent 31450c3dbd
commit 3e15178a43
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -312,6 +312,8 @@ After the inputs have been selected, the sender can create one or more outputs f
*** If no additional outputs are required, continue to the next ''B<sub>m</sub>'' with ''k++''<ref name="why_not_the_same_tn">''' Why not re-use ''t<sub>k</sub>'' when paying different labels to the same receiver?''' If paying the same entity but to two separate labeled addresses in the same transaction without incrementing ''k'', an outside observer could subtract the two output values and observe that this value is the same as the difference between two published silent payment addresses and learn who the recipient is.</ref>
** Optionally, if the sending wallet implements receiving silent payments, it can create change outputs by sending to its own silent payment address using label ''m = 0'', following the steps above
All generated outputs MUST be present in the final transaction. If an output ''P<sub>i</sub>'' with ''i < k'' is omitted, the receiver will not be able to find outputs ''P<sub>j</sub>'' where ''i < j <= k''.
=== Receiver ===
==== Key Derivation ====