summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Todd <pete@petertodd.org>2013-10-21 00:59:49 -0400
committerPeter Todd <pete@petertodd.org>2013-10-21 00:59:49 -0400
commitfe026b8e00eea7b4fe92c62ac735d15191c218f9 (patch)
treef18cfa128843c324dbb57bd32081fac221ee6f1c
parent3bd2e6cda7ec5dce6f0e4be956918f322a090c4a (diff)
Archive Revision as of 01:47, 28 August 2013
https://en.bitcoin.it/w/index.php?title=BIP_0071&oldid=40534
-rw-r--r--bip-0071.mediawiki50
1 files changed, 50 insertions, 0 deletions
diff --git a/bip-0071.mediawiki b/bip-0071.mediawiki
new file mode 100644
index 0000000..d1e21c8
--- /dev/null
+++ b/bip-0071.mediawiki
@@ -0,0 +1,50 @@
+{{bip}}
+
+<pre>
+ BIP: 71
+ Title: Payment Protocol MIME types
+ Author: Gavin Andresen <gavinandresen@gmail.com>
+ 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]]