diff options
Diffstat (limited to 'bip-0078.mediawiki')
-rw-r--r-- | bip-0078.mediawiki | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/bip-0078.mediawiki b/bip-0078.mediawiki index 5c06c2f..621e0d9 100644 --- a/bip-0078.mediawiki +++ b/bip-0078.mediawiki @@ -249,13 +249,13 @@ The sender should check the payjoin proposal before signing it to prevent a mali * If the sender's inputs' sequence numbers are all the same, check that the receiver's contributed inputs match those. * If <code>minfeerate</code> was specified, check that the estimated fee rate of the payjoin proposal is not less than this value. * Check that outputs from the original PSBT has not been modified except if: - * The output can contribute to fee (see below) - * The output does not belong to the sender. +** The output can contribute to fee (see below) +** The output does not belong to the sender. -If a fee output exists, (ie, <code>maxadditionalfeecontribution=</code> and <code>additionalfeeoutputindex=</code> have been set by the sender), the sender must checks: - * The amount that was substracted from the output's value is less or equal to <code>maxadditionalfeecontribution</code>. Let's call this amount <code>actual contribution</code>. - * The <code>actual contribution</code> is less or equals to the difference of absolute fee between the payjoin proposal and the original PSBT. (This make sure the contribution actually goes to fee) - * The <code>actual contribution</code> is less or equals to <code>originalPSBTFeeRate * vsize(sender_input_type) * (count(original_psbt_inputs) - count(payjoin_proposal_inputs))</code>. (This make sure the contribution only pays for additional inputs, see [[#fee-output|Fee output]] section) +If a [[#fee-output|fee ouptut]] exists, the sender must checks: +* The amount that was substracted from the output's value is less or equal to <code>maxadditionalfeecontribution</code>. Let's call this amount <code>actual contribution</code>. +* Make sure the contribution are only paying fee: The <code>actual contribution</code> is less or equals to the difference of absolute fee between the payjoin proposal and the original PSBT. +* Make sure the contribution are only paying for fee incurred by additional inputs: <code>actual contribution</code> is less or equals to <code>originalPSBTFeeRate * vsize(sender_input_type) * (count(original_psbt_inputs) - count(payjoin_proposal_inputs))</code>. (see [[#fee-output|Fee output]] section) The sender must be careful to only sign the inputs that were present in the original PSBT and nothing else. |