1
0
mirror of https://github.com/bitcoin/bips.git synced 2025-05-12 12:03:29 +00:00

Fix some formatting

This commit is contained in:
nicolas.dorier 2020-06-17 16:20:38 +09:00
parent f36ca8f43d
commit 3fc7032ec3
No known key found for this signature in database
GPG Key ID: 6618763EF09186FE

View File

@ -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 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. * 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: * Check that outputs from the original PSBT has not been modified except if:
* The output can contribute to fee (see below) ** The output can contribute to fee (see below)
* The output does not belong to the sender. ** 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: 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>. * 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) * 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.
* 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) * 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. The sender must be careful to only sign the inputs that were present in the original PSBT and nothing else.