Skip to content

Commit 801cc71

Browse files
committed
Update PSBT invariants
1 parent 287e3c2 commit 801cc71

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

bip-0078.mediawiki

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -109,14 +109,15 @@ The original PSBT MAY:
109109
110110
The payjoin proposal MUST:
111111
* Use all the inputs from the original PSBT.
112-
* Only finalize the inputs added by the receiver.
113-
* Have all the <code>witnessUTXO</code> or <code>nonWitnessUTXO</code> information filled in.
114-
* Keep all the outputs unrelated to the payment.
112+
* Use all the outputs which do not belongs to the receiver from the original PSBT.
113+
* Only finalize the inputs added by the receiver. (Referred later as <code>additional inputs</code>)
114+
* Only fill the <code>witnessUTXO</code> or <code>nonWitnessUTXO</code> for the additional inputs.
115115
116116
The payjoin proposal MAY:
117-
* Add inputs.
118-
* Add outputs.
119-
* Modify payment's output.
117+
* Add, remove or modify the outputs belonging to the receiver.
118+
119+
The payjoin proposal MUST NOT:
120+
* Shuffle the order of inputs or outputs, the additional outputs or additional inputs must be inserted at a random index.
120121
121122
===Receiver's well known errors===
122123

0 commit comments

Comments
 (0)