diff --git a/bip-0078.mediawiki b/bip-0078.mediawiki index bf75ddfa..d43249f1 100644 --- a/bip-0078.mediawiki +++ b/bip-0078.mediawiki @@ -260,13 +260,14 @@ The sender should check the payjoin proposal before signing it to prevent a mali ** Verify that all of sender's inputs from the original PSBT are in the proposal. * For each outputs in the proposal: ** Verify that no keypaths is in the PSBT output -** If it is one of the sender's output -*** If that's the [[#fee-output|fee ouptut]]: -**** The amount that was substracted from the output's value is less or equal to maxadditionalfeecontribution. Let's call this amount actual contribution. -**** Make sure the actual contribution is only paying fee: The actual contribution is less or equals to the difference of absolute fee between the payjoin proposal and the original PSBT. -**** Make sure the actual contribution is only paying for fee incurred by additional inputs: actual contribution is less or equals to originalPSBTFeeRate * vsize(sender_input_type) * (count(original_psbt_inputs) - count(payjoin_proposal_inputs)). (see [[#fee-output|Fee output]] section) -*** If it is not the fee output: -**** Make sure the output's value did not changed. +** If the output is the [[#fee-output|fee ouptut]]: +*** The amount that was substracted from the output's value is less or equal to maxadditionalfeecontribution. Let's call this amount actual contribution. +*** Make sure the actual contribution is only paying fee: The actual contribution is less or equals to the difference of absolute fee between the payjoin proposal and the original PSBT. +*** Make sure the actual contribution is only paying for fee incurred by additional inputs: actual contribution is less or equals to originalPSBTFeeRate * vsize(sender_input_type) * (count(original_psbt_inputs) - count(payjoin_proposal_inputs)). (see [[#fee-output|Fee output]] section) +** If the output is the payment output and disableoutputsubstitution= is falseminfeerate was specified, check that the fee rate of the payjoin transaction is not less than this value.