BIP 78, A Simple Payjoin Proposal, is Nicolas Dorier's specification for making an ordinary Bitcoin payment with transaction inputs supplied by both the payer and the recipient. It carries an assigned date of 1 May 2019 and explicitly replaces Bustapay. Its numbered file entered the canonical BIPs Git history on 16 June 2020; the maintained status changed from Draft to Deployed only on 20 May 2026. Those dates describe different things: assignment, documented specification, and a later assessment of implementation. Maintained BIP 78 — primary · Numbered-file change — direct record · Deployment status — direct record
Why the recipient adds an input
A conventional wallet spends its own UTXOs, signs, and broadcasts a payment. Chain observers often assume that all inputs of the resulting transaction have a common owner, guess change by the script type of the inputs, or guess the intended payment from rounded amounts. The BIP names these common-input, change-scriptpubkey and change-round-amount heuristics. By letting a recipient add an input and adjust its own outputs, Payjoin makes those assumptions less reliable. It can also let a merchant consolidate UTXOs or batch its own payout alongside incoming funds. These are objectives stated by the proposal, not an archive-measured reduction in blockchain surveillance effectiveness. Motivation and rationale
The transaction has no special consensus designation as a Payjoin. The parties' negotiations happen before broadcast. Bitcoin consensus can check that the final transaction is properly signed and balanced without asking whether different inputs belong to different people. Specification
From payment URI to proposed transaction
The receiver advertises a pj= endpoint in a BIP 21 bitcoin: URI. The sender first creates an original PSBT with a fully signed, finalized, broadcastable transaction, including the UTXO information necessary for fee accounting but excluding unnecessary wallet metadata such as derivation paths and global extended public keys. This fallback transaction can be broadcast if the negotiation does not finish. The sender POSTs the base64 PSBT to the recipient's endpoint as text/plain. Protocol and original PSBT rules
The receiver may contribute new inputs and change its own outputs, signing the added inputs and returning a proposal PSBT. Before accepting it, the sender checks that its original inputs and non-recipient outputs have been preserved, that transaction version, locktime, sequence numbers and authorized fees satisfy the agreed constraints, and that the sender's inputs in the proposal are not already finalized. It then signs only the original sender inputs, and broadcasts the final transaction. The BIP permits a proposal with no added receiver input in some cases, but says it should not be described to the user as an actual Payjoin. Protocol; sender and receiver checklists
The signed fallback serves two functions. It allows the payer to finish an ordinary payment if collaboration fails, and allows the receiver to demand a plausible, broadcastable payment before revealing information about its UTXOs. The fallback and a normal Payjoin proposal conflict by spending common inputs, so only one can confirm on the canonical chain. Nevertheless the BIP also discusses hardware-signer attacks and re-signing hazards; a protocol-level invariant does not prove an arbitrary signer user interface safe. Attack vectors and hardware wallet warning
Four boundaries that matter
Output substitution. The recipient can alter or replace its own payment output unless the sender forbids that with disableoutputsubstitution=true or the payment URI specifies pjos=0. That capability can disguise the script type of the receiver's output and support transaction cut-through, but allowing an untrusted server to substitute arbitrary payee outputs creates another problem. The pjos=0 restriction was added on 19 June 2020, shortly after the first numbered draft. Addition of pjos=0 · Output substitution
Probing. If an automated receiver repeatedly supplies a different input to anyone who submits the same supposed original payment, it can leak its UTXO holdings. The BIP calls for receivers to check the original is usable and avoid repeatedly exposing different inputs; it also warns about attackers including a recipient-owned input already in the original. These are specified mitigations, not proof that all probing attacks have been prevented. Receiver checklist and probing attack
Fees. Added inputs increase weight and can reduce feerate without additional compensation. Optional parameters including additionalfeeoutputindex, maxadditionalfeecontribution and minfeerate bound what the sender may pay for the receiver's additions. Relay-policy examples and typical minimum feerates in the BIP are operational context, not unchangeable consensus constants. Fee output and optional parameters
Transport and interfaces. The BIP recommends authenticated encrypted endpoints and requires that arbitrary unfamiliar receiver error messages not be shown directly in user-facing software, since a malicious endpoint could use them for phishing. A successfully negotiated HTTP exchange and a correctly authorized final signature are different security properties. HTTP, errors and security discussion
The precursor was already shipping
BIP 79, Ryan Havar's 2018 Bustapay, already described a signed, broadcastable payment template to which the receiver contributed its inputs. It used raw binary transaction messages rather than PSBT, advertised bpu= rather than pj=, required SegWit inputs and never permitted reductions to original output values. BIP 78 deliberately changed the representation and made fee checking, version negotiation, errors and receiver-output substitution more explicit. BIP 78's own introduction states those reasons for departing from Bustapay. BIP 79 — direct primary · Relation to BIP 79
Here is the chronological wrinkle: on 16 April 2020, BTCPay Server announced Payjoin in version 1.0.4.0, claiming support on its invoicing and wallet sides. The release described its implementation as a modified and expanded BIP 79 Bustapay. That announcement preceded BIP 78's numbered-file arrival in canonical Git on 16 June. BTCPay's 26 June 2020 release then discussed standardizing and improving the protocol as BIP 78. This is clear contemporary first-party release evidence, but not a tagged-code verification of the precise version of the protocol shipped in April. BTCPay Server 1.0.4.0 — first-party, 16 April 2020 · BTCPay Server 1.0.5.0 — first-party, 26 June 2020
Corrections after software shipped
10 June 2024: keep UTXO information. A revision removed the sender's earlier requirement to reject UTXO data for its own inputs in the returned proposal. Its author said that LND's FinalizePsbt failed when the data was absent and cited the PSBT finalization rule preserving such information for extraction. The commit also altered the reference test vectors. This is a directly documented correction motivated by a reported implementation failure, not a failure recreated by this archive. The issue is comparable in principle to the later BIP 376 finalization discussion, without establishing a shared discovery process. Git diff and author rationale
8 July 2024: mixed input types were no longer prohibited. Earlier versions required homogeneous input types to avoid marking the payment as Payjoin. The new reasoning was the reverse: Bitcoin Core, LND and Coinomi were said already to use mixed-input transactions, so a prohibition could itself be a fingerprint. The BIP changed to a transition warning, advising against mixed inputs until September 2024 to let implementations catch up. That time-bound wording survives in the maintained text; it is historical grace-period language, not a perpetual restriction. The three-software compatibility statement is the commit author's report, not an independent release-by-release census. Mixed-input revision
A companion 8 July 2024 revision clarified receiver-output substitution and transaction cut-through. Both revisions demonstrate that Payjoin's privacy and payment semantics were still being revised after early product releases. Output-substitution clarification
Async Payjoin and implementation evidence
BIP 77, Async Payjoin, entered the canonical BIPs repository as a Draft on 28 May 2025. It retains the original/proposal PSBT negotiation but introduces directory-hosted mailboxes and encrypted Oblivious HTTP exchanges so that both wallets need not remain online simultaneously and the receiver need not run its own public HTTP endpoint. The BIP 77 specification still said Draft when inspected on 3 November 2026. First merged BIP 77 text · Maintained BIP 77
Version-1 fallback is not asynchronous v2 negotiation. BIP 77 allows a receiver to service an older BIP 78 sender, but that sender still expects a response within 30 seconds and provides no reply-mailbox key. In June 2026, BIP 77's text was corrected to require a backwards-compatible receiver to return an unencrypted base64 proposal via OHTTP-wrapped PUT to its own mailbox, not the separately encrypted v2 reply path. The receiver must disable output substitution (pjos=0) on this cleartext compatibility route. This is a documented specification correction; it does not independently show which older wallet versions implemented it. Git correction, 8 June 2026 · BIP 77 compatibility requirements
On 12 August 2026, the Payjoin maintainers announced Payjoin Dev Kit 1.0.0, a Rust library supporting BIP 77 and BIP 78. They explicitly distinguished the stable core library API from still-unstable bindings, CLI and mailroom software. This establishes first-party library-release evidence, not universal wallet interoperability. Maintainer release record
On 20 May 2026, the BIPs editor changed BIP 78's status from Draft to Deployed, citing multiple listed mainnet implementations. That is a retrospective administrative classification, not the moment Payjoin suddenly became possible on Bitcoin. Status and rationale
Ordinals and Bitmap: another layer of validity
Ordinal theory assigns sats to transaction outputs according to the ordering and amounts of inputs and outputs. Payjoin permits receiver input additions and some output modification. It follows as architectural inference that a wallet transferring an inscription, rare sat or Bitmap claim must check satpoint consequences in addition to BIP 78's monetary and signature invariants. The BIP does not describe a sat-aware Payjoin safety check, and this archive has not reproduced a misdirected inscription. Ordinal numbering and transfer — primary · Inscription transfers — first-party · BIP 78 sender checks
The boundary is worth keeping visible: '''a Bitcoin-valid transaction, a Payjoin-valid proposal and an asset transfer matching its owner's intention are three distinct claims'''.
Record of changes
pjos=0 followed. Rename · Output boundaryOpen research
Compare tagged BTCPay Server 1.0.4.0 code against the April 2020 Bustapay-derived design and June 2020 BIP 78 revisions, instead of treating release prose as a full interoperability test.
Reproduce the June 2024 reported LND PSBT finalization behavior with pinned software versions and the corrected reference vectors.
Find concrete BIP 77 sender–receiver interoperability records and distinguish library support from released wallet UI and successful mainnet negotiation.
Test sat-aware Payjoin transaction negotiation for an inscription or Bitmap claimant without assuming Bitcoin-valid PSBT checks guarantee intended sat delivery.
Evidence status
Canonical BIP text and Git diffs are direct primary records. The BTCPay Server and Payjoin Dev Kit releases are contemporary first-party software claims. The Ordinals/Bitmap safety observation is interpretation across separate protocols, not a demonstrated exploit. Exact historical wallet compatibility, chain-analysis effectiveness and asset-aware signing safety are not independently verified here.
Related pages
BIP 79 · BIP 77 · BIP 21 · BIP 321 · BIP 174 · BIP 375 · BIP 376 · CoinJoin · BTCPay Server · Ordinals · Bitmap