BIP 77, Async Payjoin, is Dan Gould and Yuval Kogman's proposal for letting two Bitcoin wallets collaborate on a Payjoin transaction without remaining online at the same time or making the receiver operate a public HTTP server. It retains a fully signed fallback transaction and a negotiated transaction proposal, but moves coordination into encrypted, temporary mailboxes run by an untrusted directory. Its assigned date is 8 August 2023; the canonical BIPs repository accepted its first numbered Draft on 28 May 2025. The maintained document was Draft, version 0.2.0 when inspected on 3 November 2026. These are proposal and repository milestones, not a Bitcoin consensus activation. Maintained BIP 77 — primary specification · Original review — primary discussion · First canonical merge — direct Git record
The obstacle inherited from Payjoin
Bustapay and BIP 78 made a recipient's inputs part of a payer's transaction, undermining the assumption that every input in one transaction belongs to the same person. BIP 78 standardized a signed original PSBT sent to a receiver-controlled HTTP endpoint. That original transaction is already valid for broadcast. If the receiver participates, they return a proposal with additional inputs or adjustments, and the sender verifies and signs the result. This can help privacy, consolidation and batching, but BIP 78 requires an online receiver reachable during a synchronous request. BIP 78 — specification
BIP 77 retains that economic and transaction-construction structure while changing its communications. A third-party Payjoin Directory stores encrypted messages in temporary mailboxes. The receiver can publish an instruction, go offline, return to collect an original proposal, and submit its response. The sender can resume polling later. Neither wallet needs to accept inbound Internet connections. The directory supplies delivery, not approval of the payment, and cannot add valid sender signatures. BIP 77 — motivation and overview
This also distinguishes BIP 77 from simply sending a conventional transaction while the recipient is offline: the recipient must still contribute to the proposed Payjoin when it comes online. A directory can withhold, delay or lose messages; the protocol does not compel a counterparty to participate. Sessions, fallback and expiration
Two mailboxes, two kinds of encryption
The receiver starts a session with an ephemeral key and a mailbox whose identifier derives from a compressed public key. The sender learns the receiver's directory mailbox and session details from a bitcoin: payment URI, prepares a fully signed fallback PSBT and sends an encrypted message. It also supplies an ephemeral reply key, allowing the receiver to return an encrypted Proposal PSBT through a different mailbox associated with the sender. After verifying the proposal, the sender signs its own inputs and broadcasts the collaborative transaction. Session initiation, sender messaging, receiver messaging and signing
The specification uses two separable privacy mechanisms:
- End-to-end message encryption: session-specific Hybrid Public Key Encryption (HPKE) protects PSBT contents between payer and recipient. The sender-to-receiver and receiver-to-sender message types use different domain-separation strings,
PjV2MsgAandPjV2MsgB. Fixed-length encrypted message bodies are 7,168 bytes. - Oblivious HTTP (OHTTP): a client sends an encapsulated request through a relay to the directory's OHTTP gateway. The relay can see the client's network metadata but not the inner request; the directory can process the inner request without directly receiving that client's network metadata. Encapsulated OHTTP messages are 8,192 bytes in the described protocol.
The fixed sizes and ElligatorSwift-based public-key wire encoding are intended to limit message-type and client fingerprinting. They are specification claims about the design, not a measurement that deployment eliminates traffic analysis. The relay and directory must not collude if the client is to obtain the intended separation of identity and request information. An offline recipient also still needs to obtain the directory's OHTTP key configuration through an authenticated bootstrap. OHTTP bootstrapping, HPKE, uniform payloads and relay/directory interactions · Payjoin Mailroom — operator's account of role separation
The URI itself is sensitive: it includes payment and session information and should be conveyed through a confidential channel. The proposal does not claim to authenticate a human identity, guarantee mailbox uptime or conceal the fact that a normal Bitcoin transaction eventually appears on-chain. Session initiation, security and rationale
URI compatibility and the fragment correction
A BIP 77 request still uses a BIP 21-style URI with pj= pointing at a mailbox endpoint. The value may also travel in the more general BIP 321 URI context. Its URL's own fragment separator # is percent-encoded as %23 inside the Bitcoin URI so it is not mistaken for a fragment of the outer URI. The fragment carries uppercase, checksumless, bech32-inspired parameters: EX (session expiration), OH (directory OHTTP gateway key information) and RK (receiver session key). These are session parameters, not Bitcoin addresses or new on-chain script types. Payjoin URI and receiver fragment parameters
The first merged Draft in May 2025 separated fragment parameters with + and required reverse lexicographical ordering, matching the behavior already implemented in the Payjoin Dev Kit according to the later author's explanation. But software often treats + as a space while processing query strings. A proposal to percent-encode it was not merged; a different correction changed the separator to - and ordering to ordinary lexicographical sequence EX-OH-RK. The delimiter change landed on 9 July 2025 and the ordering change on 10 July 2025, even though BIP 77's own changelog dates version 0.2.0 to 8 July. That last date is the specification's stated version date, not the Git merge date. Encoding alternative — review · Accepted delimiter and ordering rationale · Delimiter Git diff · Ordering Git diff
A contradiction remains in the maintained text. The normative-looking parameter list says parameters must appear in lexicographical order and the example uses EX-OH-RK, while the later Rationale → Parameter Ordering section still says they MUST appear in reverse lexicographical order. The accepted July 2025 review explicitly explains the switch to ordinary order, so the latter sentence appears to be stale editorial language. I found no evidence here that a released wallet failed because of this inconsistency, and I have not opened or merged an upstream correction. The document also retains an instruction to accept the old delimiter and relax ordering until 2026; as of November 2026, the exact end of that grace period is not specified there. Maintained specification: fragment parameters and ordering rationale · Review and decision
Compatibility is narrower than the headline
BIP 77 describes itself as backward-compatible with BIP 78, but a BIP 78 sender does not automatically gain asynchronous operation. A BIP 77 receiver may, at its discretion, service an older sender that posts an unencrypted original PSBT. That older sender expects a response within 30 seconds. The directory must use the older error convention when it cannot get the reply promptly. BIP 77's receiver must also disable output substitution for this older cleartext path by setting pjos=0, preventing a malicious intermediary from freely replacing the intended recipient output. URI backward compatibility and BIP 78 fallback
A June 2026 correction made the response behavior explicit. The receiver sends the base64-encoded proposal without HPKE encryption, using an OHTTP-wrapped PUT to '''the receiver's own mailbox'''. This is not the usual encrypted v2 response sent to a mailbox derived from the sender's reply key: a BIP 78 sender provides no such key. The commit author said existing v1-compatible implementations already behaved this way and linked the clarification to issues in the Payjoin reference repository. That is a documented interoperability correction, not proof that every historic implementation agreed. June 2026 change with rationale · Maintained backward-compatibility section
Both v1 and v2 retain a fully signed, broadcastable fallback. Although the session has a declared expiration, the specification acknowledges that the receiver can broadcast that original transaction before the stated time. An expiry value is not a timelock or an enforceable promise of collaboration. If either fallback or negotiated transaction confirms, the other conflicts on shared inputs. Fallback, expiration and rationale
From an August 2023 assignment to software releases
PUT, mailbox and unencrypted-response requirements for serving a legacy BIP 78 sender. Direct correctionRelationship to Ordinals and Bitmap
Ordinal theory tracks individual sats through transaction input and output ordering. A Payjoin receiver may add inputs and outputs or substitute a recipient-controlled output within specified limits. It follows, as cross-protocol inference, that signing software moving an inscription, unusual sat or Bitmap claim needs to check the satpoint effects of the actual negotiated transaction, not just the payment amount and correct signatures. This caveat also applies to BIP 78; BIP 77's encrypted transport does not create an Ordinals-aware signer. No specific BIP 77 inscription-loss incident is established by this article. Ordinal assignment — primary · Proposal transaction checks · Ordinals documentation — first-party
Open research
Check whether an upstream amendment resolves the conflicting lexicographical and reverse-lexicographical statements, and how real URI parsers interpret version 0.1.0 versus 0.2.0 requests.
Reproduce a legacy BIP 78 sender talking to a BIP 77 receiver at pinned versions before and after the June 2026 clarification; distinguish documentation corrections from implementation changes.
Find independent, dated interoperability and mainnet-use records for BIP 77 in named wallets. A stable Rust library and pilot integration claims do not by themselves establish universal released-wallet support.
Assess whether separate OHTTP relays and directories are actually operated by independent parties in concrete deployments; the two-role security model does not guarantee noncollusion.
Test sat-aware Payjoin negotiation with asset-containing inputs, checking final satpoints and wallet-signing boundaries rather than assuming Bitcoin consensus will enforce Ordinals expectations.
Evidence status
The BIP's maintained Markdown, its Git diffs and pull-request reviews are direct primary records of what was proposed and corrected. The Dev Kit announcement is a contemporary maintainer report about software and pilots, not an independent interoperability audit. The leftover ordering contradiction is visible in the maintained source; calling it stale is an '''editorial inference supported by the accepted correction's rationale**. The Ordinals and Bitmap signing implications are **architectural interpretations''', not identified incidents. Availability, deployed anonymity properties, real-world uptake and downstream handling of the old separator remain unverified.
Related pages
BIP 78 · BIP 79 · BIP 21 · BIP 321 · BIP 174 · BIP 324 · Ordinals · Bitmap · Bitcoin transaction fees · CoinJoin · Oblivious HTTP · Payjoin Dev Kit