forked from bitcoin/bips
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Archive Revision as of 01:47, 28 August 2013
- Loading branch information
Showing
1 changed file
with
50 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
{{bip}} | ||
|
||
<pre> | ||
BIP: 71 | ||
Title: Payment Protocol MIME types | ||
Author: Gavin Andresen <[email protected]> | ||
Status: Draft | ||
Type: Standards Track | ||
Created: 29-07-2013 | ||
</pre> | ||
|
||
==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: | ||
<pre> | ||
Content-Type: application/bitcoin-paymentrequest | ||
Content-Transfer-Encoding: binary | ||
</pre> | ||
|
||
[[Category:BIP]] |