Skip to content

Commit

Permalink
Update PSBT invariants
Browse files Browse the repository at this point in the history
  • Loading branch information
NicolasDorier committed Jun 16, 2020
1 parent 287e3c2 commit 801cc71
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions bip-0078.mediawiki
Original file line number Diff line number Diff line change
Expand Up @@ -109,14 +109,15 @@ The original PSBT MAY:
The payjoin proposal MUST:
* Use all the inputs from the original PSBT.
* Only finalize the inputs added by the receiver.
* Have all the <code>witnessUTXO</code> or <code>nonWitnessUTXO</code> information filled in.
* Keep all the outputs unrelated to the payment.
* Use all the outputs which do not belongs to the receiver from the original PSBT.
* Only finalize the inputs added by the receiver. (Referred later as <code>additional inputs</code>)
* Only fill the <code>witnessUTXO</code> or <code>nonWitnessUTXO</code> for the additional inputs.
The payjoin proposal MAY:
* Add inputs.
* Add outputs.
* Modify payment's output.
* Add, remove or modify the outputs belonging to the receiver.
The payjoin proposal MUST NOT:
* Shuffle the order of inputs or outputs, the additional outputs or additional inputs must be inserted at a random index.
===Receiver's well known errors===

Expand Down

0 comments on commit 801cc71

Please sign in to comment.