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

Added file size limits for Payment and PaymentACK messages.

This commit is contained in:
Ross Nicoll 2014-04-26 16:44:13 +01:00
parent 22646636dd
commit 694314d296
No known key found for this signature in database
GPG Key ID: 9142E5F7E533CE3B

View File

@ -172,6 +172,9 @@ determine whether or not the transactions satisfy conditions of
payment. If and only if they do, if should broadcast the payment. If and only if they do, if should broadcast the
transaction(s) on the Bitcoin p2p network. transaction(s) on the Bitcoin p2p network.
Payment messages larger than 50,000 bytes should be rejected by
the merchant's server, to mitigate denial-of-service attacks.
===PaymentACK=== ===PaymentACK===
PaymentACK is the final message in the payment protocol; it is sent PaymentACK is the final message in the payment protocol; it is sent
@ -189,6 +192,11 @@ Payment message:
| memo || UTF-8 encoded note that should be displayed to the customer giving the status of the transaction (e.g. "Payment of 1 BTC for eleven tribbles accepted for processing.") | memo || UTF-8 encoded note that should be displayed to the customer giving the status of the transaction (e.g. "Payment of 1 BTC for eleven tribbles accepted for processing.")
|} |}
PaymentACK messages larger than 60,000 bytes should be rejected by
the wallet application, to mitigate denial-of-service attacks. This
is larger than the limits on Payment and PaymentRequest messages
as PaymentACK contains a full Payment message within it.
==Localization== ==Localization==
Merchants that support multiple languages should generate Merchants that support multiple languages should generate