BIP 0071: Difference between revisions
Initial spec |
Update BIP text with latest version from https://github.com/bitcoin/bips/blob/b5723035e23896d0/bip-0071.mediawiki |
||
(6 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
{{bip}} | {{bip}} | ||
{{BipMoved|bip-0071.mediawiki}} | |||
<pre> | <pre> | ||
BIP: | BIP: 71 | ||
Layer: Applications | |||
Title: Payment Protocol MIME types | Title: Payment Protocol MIME types | ||
Author: Gavin Andresen <gavinandresen@gmail.com> | Author: Gavin Andresen <gavinandresen@gmail.com> | ||
Status: | Comments-Summary: No comments yet. | ||
Comments-URI: https://github.com/bitcoin/bips/wiki/Comments:BIP-0071 | |||
Status: Final | |||
Type: Standards Track | Type: Standards Track | ||
Created: | Created: 2013-07-29 | ||
</pre> | </pre> | ||
Line 33: | Line 37: | ||
| Payment || application/bitcoin-payment | | Payment || application/bitcoin-payment | ||
|- | |- | ||
| | | PaymentACK || application/bitcoin-paymentack | ||
|} | |} | ||
Line 46: | Line 50: | ||
Content-Type: application/bitcoin-paymentrequest | Content-Type: application/bitcoin-paymentrequest | ||
Content-Transfer-Encoding: binary | Content-Transfer-Encoding: binary | ||
</pre> | </pre> | ||
Latest revision as of 18:00, 24 September 2019
This page describes a BIP (Bitcoin Improvement Proposal). |
Please do not modify this page. This is a mirror of the BIP from the source Git repository here. |
BIP: 71 Layer: Applications Title: Payment Protocol MIME types Author: Gavin Andresen <gavinandresen@gmail.com> Comments-Summary: No comments yet. Comments-URI: https://github.com/bitcoin/bips/wiki/Comments:BIP-0071 Status: Final Type: Standards Track Created: 2013-07-29
Abstract
This BIP defines a MIME (RFC 2046) Media Type for Bitcoin payment request messages.
Motivation
Wallet or server software that sends payment protocol messages over email or http should follow Internet standards for properly encapsulating the messages.
Specification
The Media Type (Content-Type in HTML/email headers) for bitcoin protocol messages shall be:
Message | Type/Subtype |
PaymentRequest | application/bitcoin-paymentrequest |
Payment | application/bitcoin-payment |
PaymentACK | application/bitcoin-paymentack |
Payment protocol messages are encoded in binary.
Example
A web server generating a PaymentRequest message to initiate the payment protocol would precede the binary message data with the following headers:
Content-Type: application/bitcoin-paymentrequest Content-Transfer-Encoding: binary