BIP 70, Payment Protocol, is the 2013 proposal by Gavin Andresen and Mike Hearn for a structured exchange between a Bitcoin merchant and a customer's wallet. It was assigned 29 July 2013. Instead of displaying only an address and perhaps an amount, a merchant could supply a signed request naming payment output scripts, an expiry, an invoice memo and a return channel for an acknowledgement. BIP 71 described its media types; BIP 72 connected remote requests to the older BIP 21 bitcoin: URI. Canonical BIP 70 — primary · BIP 71 · BIP 72
BIP 70 entered Bitcoin Core's GUI in version 0.9.0 (19 March 2014). That implementation was later made optional, disabled by default and finally removed in version 0.20.0 (3 June 2020). The maintained BIP is nevertheless marked Deployed. Those statements concern different things: the specification's editorial status, a particular wallet's released features and the wider ecosystem's actual use. Bitcoin Core 0.9.0 release — first-party · Bitcoin Core 0.20.0 release — first-party · BIPs status conversion — direct history
The HTTP representation layer
BIP 71 named the three binary media types used by the protocol: application/bitcoin-paymentrequest, application/bitcoin-payment and application/bitcoin-paymentack. BIP 73 then proposed using HTTP Accept to let a short web URL return a payment request, a text/uri-list Bitcoin URI or HTML depending on the caller. Neither negotiation nor the declared media type authenticates the payment destination by itself. BIP 71 — primary · BIP 73 — primary
What the protocol actually exchanged
A BIP 70 request was encoded using Protocol Buffers, not human-readable URI fields alone. Its core elements formed a short conversation:
- PaymentRequest: the merchant offered a serialized
PaymentDetailsobject containing one or more payment output scripts and amounts. The request could also carry a network name, creation and expiry timestamps, a memo,payment_url, and opaquemerchant_data. A wrapper optionally authenticated the request with an X.509 certificate chain and signature. - Payment: after approval, the customer's wallet prepared signed Bitcoin transaction(s) satisfying the outputs and could POST them to the specified merchant endpoint with
merchant_data, optional refund output(s), and a memo. - PaymentACK: the merchant could reply with an acknowledgement containing the Payment message and a memo about processing. This was an application response, not a substitute for confirmation in a Bitcoin block.
The Output structure held an amount in satoshis and an output script, not necessarily a conventional encoded Bitcoin address. That made it possible to request several outputs and, in principle, future script forms. If all requested amounts summed to zero, the client could ask the customer how much to pay; otherwise it had to meet the specified non-zero output amounts. Message schema and output rules — primary · Protocol Buffers schema — primary
The specification describes broadcasting signed transactions and submitting a Payment message to the merchant endpoint. It also instructs merchants to evaluate submitted transactions before broadcasting them. These passages describe intended integration paths, not a consensus guarantee that the merchant has received or acknowledged the payment. A wallet or merchant must independently inspect the Bitcoin transaction and settlement state. Payment and PaymentACK sections
BIP 71 specifies application/bitcoin-paymentrequest, application/bitcoin-payment, and application/bitcoin-paymentack as the corresponding binary media types. BIP 72 supplies the r= link parameter by which a compatible wallet could discover the request. The URI holds a location; the BIP 70 request lives at that location, not inside the URI. Media types — primary · URI extension — primary
The identity promise, and its limits
One design goal was to display something more meaningful than a long receiving address: a merchant identity backed by a certificate. BIP 70's default model used X.509, with request signatures described under pki_type values x509+sha256 or x509+sha1. The wallet was meant to verify the certificate chain and signature, reject an invalid request, check expiry and show the merchant identity before obtaining customer authorization. Motivation, certificate and validation rules
But pki_type=none was explicitly permitted. That is an unauthenticated request, not an X.509-verified merchant identity; the existence of a BIP 70 message does not imply the presence of a valid certificate. Even a correctly validated certificate authenticates a claim within a certificate-authority trust system. It does not independently settle whether the customer intended to pay that merchant or whether a different site or QR code supplied the request. These are limitations of the trust model, not reports of a specific attack. PKI selection and client authorization — primary
The design required protection for the endpoint accepting payment messages, notably because Payment.refund_to could otherwise be modified in transit. A request can also have a payment_url distinct from the URL used to retrieve it. This introduces a second important trust boundary: checking the initial request does not remove the need to secure the subsequent exchange. Payment URL protection rules
The refund_to field is not itself a Bitcoin transaction, a signed transfer of funds, or cryptographic proof that a proposed refund script belongs to the payer. The BIP also warns that malicious clients may modify merchant_data, urging merchants to authenticate it. In the text, refund destination, merchant invoice association and proof of payment are separate claims with separate validation problems. Refund and merchant-data fields
A specification revised while software was already shipping
BIP 70's assigned date, first recovered Git file and later normative corrections are distinct events. The earliest file recovered from the canonical BIPs Git history was imported 21 October 2013 and identified itself as an archived 28 August 2013 wiki revision. It was a Draft under Gavin Andresen's name. This does not prove that nobody circulated a version before that date. Imported 2013 revision — direct record
Bitcoin Core 0.9.0 released on 19 March 2014 with GUI payment-request support, before several significant clarifications entered the BIP itself. Release record — first-party
During April–May 2014, the BIP accumulated changes addressing matters the early draft had left insufficiently explicit. They included certificate-chain contents, an expiry check again immediately before payment (not only when the request arrived), size limits for protocol messages, handling duplicate Payment submissions after connection failures, and the time window for using refund destinations. The expiry correction's commit message specifically notes the case in which a request expires while the user is considering whether to pay. That is direct evidence of a changed instruction, not proof that a released wallet had been exploited. Expiry recheck — direct diff · Duplicate submission handling · Refund deadline review
On 12 June 2014, Andresen added Mike Hearn as co-author and advanced the document from Draft to Final, explaining in his commit message that there were multiple implementations. That is a contemporary author's rationale for the status change, not an audited count of deployed merchants. Final-status and co-author change
A revealing 11 September 2014 correction changed one description of the signature from using the public key in pki_data to using the private key corresponding to that public key. The rest of the specification's cryptographic context already required the private key, so this is a wording correction, not evidence that functioning signatures once used public keys for signing. Still, an apparently small edit matters to anybody reconstructing what implementers actually read. Signature-language correction — direct diff
Why Bitcoin Core stepped away
By 2018, keeping BIP 70 support in Bitcoin Core meant continuing to maintain additional GUI and network-processing code and dependencies, including OpenSSL and Protocol Buffers. The 24 October 2018 merge of PR #14451 added a deprecation warning and made it possible to build the GUI without the feature. Its author's stated rationale included increased attack surface, difficulty of secure implementation in independent wallets, and limited use of the standard variant. That is a contemporary first-party development argument, not an ecosystem-wide statistical measurement. Review and merged proposal
The steps were not instantaneous:
- In 2018, BIP 70 became an optional build feature in the development path for Core 0.18.
- On 13 September 2019, PR #15584 merged, disabling support by default for 0.19 builds; a deliberate
--enable-bip70configuration could still restore it. - On 26 October 2019, PR #17165 merged to remove it completely, also eliminating related OpenSSL/Protocol Buffers GUI dependencies.
- On 3 June 2020, the removal shipped in Bitcoin Core 0.20.0. Its release notes say that configuring the former BIP 70 option now produced an error.
Default-disable review — direct · Removal review — direct · Release notes — first-party
This sequence establishes '''Bitcoin Core's''' retreat. It does not establish the same deprecation date for bitcoinj, BitPay's distinct implementations, or every merchant that ever issued a BIP 70-shaped request. In particular, review of PR #14451 explicitly distinguished standard BIP 70 from a major processor's customized protocol. Treating all similarly named payment protocols as identical would erase the actual interoperability problem. Original proposal and merchant distinction
The flaw disclosed after removal: CVE-2024-52918
A first-party Bitcoin Core advisory published 3 July 2024 describes CVE-2024-52918, a medium-severity memory-exhaustion crash in Bitcoin-Qt. A malicious BIP 72 URI could point its r= URL at an extremely large file. The vulnerable GUI would attempt to allocate memory for the download, potentially crashing with little visible progress. This was a malicious-URI / GUI request-processing vulnerability, not a demonstrated consensus failure or an attack that every Bitcoin node automatically suffered merely by being connected to peers. Bitcoin Core advisory — primary
The dates tell an important story. According to the maintainer's advisory, Michael Ford reported the bug privately on 12 August 2019. Ford opened the BIP 70-removal PR on 16 October 2019; it merged 26 October. The removal shipped 3 June 2020 in version 0.20.0. The final 0.19.x series reached end of life on 13 September 2021. The public advisory was not posted until 3 July 2024. These are respectively report, code change, release, end-of-life and disclosure dates, not interchangeable discovery dates. Advisory chronology — first-party · Removal PR
There is a design irony here. BIP 70's specification recommended rejecting oversized parsed PaymentRequest messages, but the documented Core weakness involved fetching an enormous response from the link first. A limit on a parsed object is not necessarily a bound on network bytes buffered before parsing. That comparison is archivist analysis of the separate records; no source here proves exactly which implementation path skipped which check. Request size guidance · Advisory
What survived after Bitcoin Core removed it
BIP 70 is a useful ancestor to today's payment-link discussions, but BIP 321 does not simply switch BIP 70 back on. BIP 321 modernizes the information that a bitcoin: URI can carry; BIP 353 adds authenticated DNS payment-name resolution. Neither one should be described as automatically providing a BIP 70 merchant acknowledgement or certificate-signed request. Conversely, any application still implementing a BIP 70-like exchange must be assessed on its own protocol and validation behavior. BIP 321 — primary · BIP 353 — primary
BIP 75 later proposed a different extension of the merchant-payment model: an optional signed payer identity, an InvoiceRequest asking the recipient for fresh instructions, and participant-encrypted messages carried through possible store-and-forward servers. It was assigned in 2015 and extensively revised in 2016. Its maintained prose requires SEC-encoded EC public-key points, while comments in its associated Protocol Buffers file still describe some keys as DER-encoded. That documented discrepancy should not be mistaken for a verified interoperability failure. The BIP's later Deployed label does not reverse Bitcoin Core's 2020 removal of BIP 70. BIP 75 — primary · Associated schema comments · Encoding revision
For Ordinals and Bitmap, the general lesson is a boundary, not a claim that these later protocols used BIP 70. An off-chain invoice, identity claim, index view or acknowledgement can help people interpret a Bitcoin payment. The actual on-chain outputs and any ownership rules still have to be independently checked. A wallet's rendering of a recipient name does not move satoshis or establish ownership by itself.
Record of changes
Open research
Establish implementation-by-implementation adoption and retirement dates for bitcoinj, Bitcoin Core, payment processors and independently maintained payment servers. Do not mistake Core's retirement for the end of every BIP 70-derived system.
Trace the original 2013 public review and earliest live merchant usage separately from the BIP's assigned date and its October Git import.
Audit particular historic wallet builds for certificate validation, unauthenticated
pki_type=none handling, refund metadata and errors after a Payment was sent but before PaymentACK arrived. Source text alone is not a runtime result.Locate and weigh original peer-reviewed refund-attack research and any directly documented patches or merchant incidents before claiming actual exploitation of BIP 70's refund mechanism.
Reproduce CVE-2024-52918 only in an isolated historical test environment if needed; the first-party advisory establishes the reported flaw, not an independent test by this archive.
Evidence status
The specification, Git diffs and Core pull requests are direct primary records. Version 0.9.0 and 0.20.0 release notes are contemporary first-party release statements. The 2024 vulnerability notice is a later first-party disclosure describing events from 2019 onward; its date is not the date of the original bug report. Comparisons among requests, signatures, settlements and network-buffering boundaries are archivist interpretation. Independent merchant deployments, real-life exploitation and historical end-to-end interoperability remain unverified unless separately evidenced.