CoinJoin Implementation is the note for the coordinator-based side of the same problem and for the attack surface on UTXO hygiene. This one covers the two protocols that move toward "nobody can tell who owned which coin" by changing the shape of the transaction rather than by mixing with strangers.
Summary
| Payjoin | Ark | |
|---|---|---|
| What it is | A protocol where sender and receiver both contribute inputs to one transaction | A layer 2 where many users hold shares of shared on-chain UTXOs |
| What it breaks | The common-input-ownership heuristic, for that one transaction | The need for pairwise channels and inbound liquidity |
| Who is in the middle | A directory server in v2 (blind, untrusted, sees nothing) | An Ark server that coordinates rounds but never holds custody |
| Current spec | BIP 78 (v1, Deployed since 2019-05-01); BIP 77 (v2, Draft, Version 0.2.0) | No BIP. Published on the bitcoin-dev mailing list as TBDXXX, now named Ark |
| Implementations | Payjoin Dev Kit (Rust) 1.3.0; BTCPay Server; Bull Bitcoin; Cake Wallet; Sparrow; Bitcoin Core client | Second (Bark / Barkd) and Arkade (arkd) — both in development |
| Maturity warning | Two of the historically named senders dropped Payjoin in 2026, one for a fund-loss bug | Both implementations are explicitly in-development projects |
Payjoin, and why the sender's wallet is the weak part
Payjoin exists because the ordinary transaction shape leaks. A payment is one spender spending inputs to one receiver, and the smaller output is assumed to be change. BIP 78 names the three heuristics it targets: common-input, change-scriptpubkey and change-round-amount.
The mechanism is short. The receiver presents a BIP 21 URI with a pj= parameter naming an endpoint. The sender posts a finalized, signed PSBT — the original. The receiver replies with a payjoin proposal PSBT that adds the receiver's own signed inputs and outputs. The sender verifies, re-signs its inputs, and broadcasts the result. From BIP 78 directly: the proposal must use all the original's inputs, must use all outputs not belonging to the receiver, and must not decrease the absolute fee; the original must be finalized, broadcastable, and must not carry global xpubs or keypath data the receiver does not need.
The security properties of the transport are explicit in the spec and worth repeating, because they are the part most implementations get wrong:
- The sender must ensure the URL uses authenticated encryption, TLS with certificate validation, or a
.onionlink whose public key identifier was already communicated over TLS. Senders should not accept an unencrypted or unauthenticated URL. - The original PSBT is sent base64 in an HTTP POST body with
text/plaincontent type; the proposal comes back base64 in the body with HTTP 200. - Responses, including errors, must carry
Access-Control-Allow-Origin: *, for browser-based wallets. - The version is negotiated with a
v=query parameter; the current version is1. A receiver that does not support the sender's version answers HTTP 400 witherrorCode: version-unsupportedand asupportedlist. pjos=0tells the sender it must disallow payment output substitution.
Two structural weaknesses are worth naming because they are the reasons to use v2 rather than v1. In v1 the sender and receiver must be online at the same time, and the receiver must host a server. Payjoin v2 (BIP 77) removes both: messages are relayed through a store-and-forward directory server using Oblivious HTTP, and the messages between sender and receiver are end-to-end encrypted so the directory cannot read the transactions it stores. BIP 77's header still reads Status: Draft, Version: 0.2.0, assigned 2023-08-08, requiring BIPs 21, 78, 173 and 174; it was merged into the bitcoin/bips repository by PR #1483, and PR #2186 (2026-06) updated it to specify how a v2 receiver replies to a BIP-78-compatible sender. Bitcoin Optech's topic page calls BIP 77 the recommended approach.
One BIP 78 clause has quietly expired. The spec said the original PSBT should not include mixed input types "until September 2024", and the same for the proposal. That grace period is over; mixed inputs are permitted now.
The implementations that actually exist
| Implementation | State on 2026-11-15 |
|---|---|
| Payjoin Dev Kit / rust-payjoin | 1.3.0 released 2026-11-10; payjoin-ffi 0.26.0 on 2026-11-11; payjoin-python 0.3.0 on 2026-10-05; 1.0.0 shipped in August 2026 |
| BTCPay Server | Sender and receiver sides implemented, per the BIP 78 implementation list |
| Bitcoin Core | Payjoin client released in December 2023 |
| Sparrow Wallet | BIP 78 support since 0.9.7 (November 2020); current release 2.5.6, 2026-10-29 |
| Bull Bitcoin | BIP 77 serverless payjoin, January 2025 |
| Cake Wallet | Payjoin v2 support, May 2025; work in progress as of the project page |
| Wasabi Wallet | Removed — see below |
| JoinMarket | Unsafe for sending — see below |
| BlueWallet | Listed in BIP 78 as in the process of implementing |
| bitcoinjs/payjoin-client | JavaScript sender implementation |
Two senders left the field in 2026, and one of them left a warning
This is the part of the story that a 2024-era note would get wrong in the dangerous direction.
Wasabi Wallet v2.8.5, released 2026-10-27, lists "Payjoin discontinued" as a release highlight. Its own words: support for sending BIP78 payjoin transactions was removed to reduce code complexity and attack surface. The same release added stricter transaction verification to protect against malicious servers, and fixed coinjoin stability issues — including the case where clients failed to construct outputs, prioritization of inputs from partially signed coinjoins that contain payments, and amounts below 10,000 sats no longer being queueable for coinjoin payments. It also deprecated the compatibility-passphrase feature, the workaround for a 2021 macOS clipboard bug in the Avalonia UI that silently truncated non-ASCII passphrases. Preceding releases: v2.8.4 (2026-10-13), v2.8.3 (2026-09-14).
JoinMarket v0.9.12, published 2026-04-21, is the final release of joinmarket-clientserver, and the repository is archived and read-only. The security warning described below was added to the release page and the repository on 2026-11-04. The release notes say plainly: "This is probably the final release of this implementation of Joinmarket."
The release carries a security warning that deserves to be quoted rather than paraphrased: do not send PayJoin payments with any version of this software — you can lose all the funds in the payment. Versions v0.7.0 through v0.9.12 have a vulnerability in sending BIP 78 PayJoin payments. The software does not check the signature-hash type the receiver sets on your inputs, so a malicious receiver can get your wallet to produce signatures that do not commit to the transaction's outputs, and redirect the full value of the coins you spent to themselves. The archive means it will not be fixed.
The same release notes are careful about what they do recommend. They advise users to examine the reimplementation at joinmarket-ng/joinmarket-ng — and say explicitly that this is not a recommendation, and that use of any similar software is the user's own responsibility. The joinmarket-ng tag feed shows active work: 0.43.0 (2026-11-05), 0.42.1 and 0.42.0 (2026-10-19), 0.41.0 (2026-10-13), 0.40.0 (2026-09-28).
Other things v0.9.12 fixed, worth knowing because they show what the original implementation's long tail was like:
- A denial-of-service vector from commitment checking. Commitments are supposed to be one-use only, but the format was not being checked correctly, allowing near-continuous reuse; a motivated attacker using this could retrieve a lot of UTXO information from makers over a long period, degrading JoinMarket's functionality. The fix was credited to @m0wer.
- Descriptor wallet support, needed to run against Bitcoin Core ≥ 30.0, which disables old non-descriptor wallets.
- Payjoin PSBTs with multiple sender inputs, which JoinMarket's implementation had supported before but not in line with the BIP 78 spec.
- RPC API message signing, a wallet-rescan status endpoint, and a change to the
GetAddressResponseschema.
The attacker here is the other party, not the chain
Every tool above is trying to make a transaction look like several people touched it. The cost of that is that you now trust a protocol implementation on the other side of your payment with your money, and the failure mode is not a broken transaction but a successful theft.
| Attack | Description | Mitigation |
|---|---|---|
| Malicious receiver redirects the payment | The receiver sets a signature-hash type that does not commit to the outputs, so your signatures authorize a different transaction. JoinMarket's senders were vulnerable across v0.7.0–v0.9.12. | Do not send Payjoin with software that has not fixed this. Verify the proposal's outputs commit to what you expect before signing. Prefer implementations whose maintainers publish the check. |
| Wallet fingerprinting | Payjoin support itself is a signal: the set of wallets that can send Payjoin is small and shrinking, and a transaction with receiver-contributed inputs is unusual. | Assume any Payjoin transaction is classified. The gain is against third-party chain analysis, not against everyone. |
| Insecure transport | A receiver endpoint over plain HTTP, or a MITM that swaps the proposal. | BIP 78 requires authenticated encryption. Treat any endpoint that is not TLS or .onion as hostile. |
| Version mismatch | A sender and receiver disagree on v=, or the receiver's proposal does not satisfy the sender's rules. |
BIP 78's version-unsupported error with a supported list is the mechanism. Read it rather than retrying blindly. |
| Output substitution | A receiver replaces the payment output, so you pay a different output than the one you agreed to. | pjos=0 asks the sender to disallow substitution. Only pay an endpoint that advertises it if you need it. |
| Synchronous-only v1 | Both parties must be online at once, and the receiver must run a server — availability exposure and a visible server. | Use BIP 77 (v2) with the directory server, or a wallet that has. |
Payjoin v3 and the "second-party privacy" problem
The two-party model has a limit that the Payjoin project names precisely: because only two peers interact, each participant knows the other's inputs and outputs. Payjoin protects against third-party chain analysis; it does not protect you from the person you are paying.
Payjoin v3 is the attempt to fix that, by letting more than two parties contribute to one transaction so that no single participant sees everything. The published roadmap has four phases: Phase 0, multi-sender single-receiver, with a prototype demonstrating a five-party transaction (four senders, one receiver) and an experimental release planned in the rust-payjoin repository (PR #434); Phase 1, multi-sender and multi-receiver; Phase 2, privacy optimization with formal privacy metrics and analysis tooling; Phase 3, decentralized market mechanisms — a coalition formation protocol, privacy-preserving discovery, and sustainable economic incentives, aimed at a decentralized pseudo-mempool where transactions wait to be consolidated.
The roadmap is honest that the benefits land first inside single products: exchanges or self-custodial wallets with large user bases, where one entity coordinates many users' transactions. That is not the individual-holder privacy win the earlier versions promised.
Ark: a layer 2 of shared UTXOs, not channels
Ark was published on the bitcoin-dev mailing list as TBDXXX by Burak, and has since been named Ark with the design advanced substantially. It is deliberately not a channel network.
The comparison the project itself draws: Lightning is a payment channel network where participants create channels between pairs of users and route payments along paths between those channels. Ark is a client-server protocol. Users coordinate their payments via a central server while retaining control of their own bitcoin.
That framing is the whole trade. Lightning's friction is onboarding: you must open and fund at least one channel, and to receive you need inbound liquidity, meaning your counterparty must commit bitcoin into the channel to make it available for receiving. Ark has no channels to open and no liquidity to manage.
VTXOs
Ark is built around shared UTXOs. Where Lightning shares a UTXO between exactly two counterparties, Ark shares UTXOs among a large number of users — potentially hundreds of thousands. A user's share of an on-chain UTXO is a virtual UTXO (VTXO), achieved by building a tree of off-chain transactions where each user holds their branch and leaf.
The critical property is that the Ark server never takes custody. VTXO creation and transfers are coordinated by users through the server, and users can always claim their bitcoin on-chain without depending on the server at all: they broadcast their VTXO transactions in consecutive order until the bitcoin is released to an output only the users control.
Rounds and connectors
Ark's transaction trees are created in rounds. The server organizes rounds periodically, giving users the chance to forfeit old VTXOs for new ones — a refresh or batch. A participating user signs an off-chain forfeit transaction sending their input VTXO to the server; in return the server constructs and broadcasts a new shared on-chain UTXO containing the refreshes from that round.
Rounds create an ordering problem that connector outputs solve. Connector outputs are outputs in the shared UTXO transaction used as inputs for the forfeit transactions. They make the round atomic: users do not forfeit their VTXOs without a guarantee that the new VTXOs will confirm.
Payments happen out of round
Rounds need user interaction and produce on-chain transactions that need confirmation, which takes time. So payments are handled out of round — OOR, or arkoor — allowing instant payments between Ark users without waiting for a round.
The trust model of an OOR payment is explicit and worth stating plainly, because it is the weak joint of this design: the payment is cosigned by the Ark server, and the trust assumption is that the sender and the Ark server do not collude to double-spend. A receiver has two options — accept that assumption and keep the OOR VTXO until it expires, or participate in the next round to refresh it into an in-round VTXO. Choosing the second option converts a trust assumption into an on-chain fact.
The two implementations
ark-protocol.org lists two implementations in development:
| Implementation | Site | Code | Notes |
|---|---|---|---|
| Second | second.tech | gitlab.com/ark-bitcoin | Documents the stack as the Bark SDK, the Barkd server, and a "Run an Ark server" guide. One integration for Ark, Lightning and on-chain payments. |
| Arkade | arkadeos.com | github.com/arkade-os | arkd (Go, 172 stars, updated 2026-11-05) powers "an open execution engine for Bitcoin"; wallet (TypeScript, self-custodial wallet for Bitcoin and stablecoins — swap, borrow, earn); ts-sdk and rust-sdk; demos; compiler (Rust, marked EXPERIMENTAL, a high-level language for Bitcoin-native smart contracts); shielded (experimental shielded multi-asset protocol); intent-solver; emulator. Most repos updated 2026-11-05 to 2026-11-08. |
Arkade's framing is broader than Ark alone — "an open execution engine for Bitcoin" — and it is explicitly a smart-contract platform with a compiler and an intent solver. arkd is the backend; the wallet is a separate self-custodial application.
Both are described by their own project as in development. Neither is a deployment you can rely on for a payment you cannot afford to lose.
Trade-offs
| You want | You pay |
|---|---|
| To break the common-input heuristic on one payment | Trust in the other party's software, with a documented case of total fund loss. |
| To pay without the other party learning your inputs and outputs | The v3 work that would give this is at a five-party prototype, and its benefits land first inside large single products. |
| A serverless, asynchronous payjoin | A blind directory server that stores encrypted messages. It learns timing and volume. |
| A layer 2 with no channels and no inbound liquidity | An Ark server that coordinates rounds and cosigns out-of-round payments. |
| To exit an Ark VTXO without the server | Broadcasting your VTXO chain in order, which is slow and manual. |
| Privacy from chain analysis | Every one of these transactions is unusual, and unusual is classified. |
Attack surface
| What fails or leaks | Why | What actually helps |
|---|---|---|
| You send a Payjoin and lose the whole payment | A malicious receiver sets a signature-hash type that does not commit to the outputs. JoinMarket v0.7.0–v0.9.12 had this and the repo is archived unfixed. | Do not send Payjoin with that software. Verify the proposal commits to the outputs you expect before signing. |
| The receiver sees everything you hold | Two-party Payjoin gives each participant full visibility of the other's inputs and outputs. | Accept the limitation, or use a wallet with v3 support once it exists in production. |
| Your Payjoin transaction is flagged | Wallet fingerprinting: few wallets send Payjoin, and receiver-contributed inputs are rare. | Assume it is classified. Payjoin defends against third-party chain analysis, not against everyone. |
| The endpoint is hostile or intercepted | A plain-HTTP pj= endpoint, or a MITM that substitutes the proposal. |
BIP 78's authenticated-encryption requirement. TLS or .onion only. |
| The Ark server is unavailable or hostile | Rounds are coordinated by the server; OOR payments are cosigned by it. | The custody property is the mitigation: users can always claim on-chain without the server, in consecutive order. For OOR specifically, refresh in the next round rather than riding expiry. |
| The sender and the Ark server collude | The OOR trust model is precisely "the sender and the server do not collude to double-spend". | Refresh the OOR VTXO into an in-round VTXO on chain. That converts the assumption into a confirmed fact. |
| A round's connector outputs fail to confirm | Connector outputs are what make a round atomic. | Do not forfeit a VTXO without the guarantee that the new VTXOs will confirm — that is the connector's whole job. |
| Round latency spoils the payment | Rounds need interaction and confirmation; payments therefore happen out of round. | Use OOR for the instant case, and plan for a refresh round. |
| You rely on an archived codebase | joinmarket-clientserver is archived with a fund-loss bug unfixed. |
Treat archived Bitcoin privacy software as unmaintained regardless of how good it was. Check the archive banner, not the stars. |
| The layer 2 you picked is a research project | Both Ark implementations describe themselves as in development; Arkade's compiler is marked experimental. | Do not route money you cannot lose through an in-development layer 2. |
Evidence at a glance
| Claim | Source | Date read or published | What it supports |
|---|---|---|---|
BIP 78: Status Deployed, assigned 2019-05-01, BSD-2-Clause, replaces BIP 79; the three heuristics; the PSBT protocol steps; pj= and pjos=0; v= version negotiation with version-unsupported; authenticated-encryption requirement; Access-Control-Allow-Origin: *; MUST NOT decrease absolute fee; mixed inputs permitted after September 2024; implementations list |
BIP 78 | Read 2026-11-15 | The protocol, the transport rules, and the expired mixed-input clause |
| BIP 77: Async Payjoin, Status Draft, Version 0.2.0, assigned 2023-08-08, requires BIPs 21/78/173/174 | BIP 77 | Read 2026-11-15 | The v2 spec and its draft status |
| BIP 77 merged via bips PR #1483; PR #2186 (2026-06) specifies v2 receiver replying to a BIP 78 sender; PDK 1.0.0 in August 2026 | Bitcoin Optech: Payjoin | Read 2026-11-15 | The v2 timeline and the current recommendation |
| v1 needs both parties online and a receiver-hosted server; v2 removes both via OHTTP and an end-to-end encrypted store-and-forward directory | Payjoin: the evolution of payjoin | Published 2025-03-18; read 2026-11-15 | Why v2 exists |
| v3 roadmap: Phase 0 five-party prototype (4 senders, 1 receiver), rust-payjoin PR #434; Phase 1 multi-receiver; Phase 2 privacy metrics; Phase 3 decentralized coalition formation and pseudo-mempool; benefits land first inside single products | Payjoin: the evolution of payjoin | Published 2025-03-18; read 2026-11-15 | The multiparty state and its limits |
Payjoin Dev Kit: payjoin 1.3.0 (2026-11-10), payjoin-ffi 0.26.0 (2026-11-11), payjoin-python 0.3.0 (2026-10-05) |
payjoin/rust-payjoin releases | Read 2026-11-15 | The current implementation version |
| Wasabi v2.8.5 (2026-10-27): Payjoin discontinued — sending BIP 78 removed to reduce complexity and attack surface; stricter transaction verification against malicious servers; coinjoin output-construction fix; inputs with payments prioritized; amounts below 10,000 sats no longer queueable; compatibility passphrase deprecated | Wasabi Wallet v2.8.5 | Released 2026-10-27; read 2026-11-15 | Wasabi's removal and its reason |
JoinMarket v0.9.12 (2026-04-21) is the final release; repository archived and read-only, security warning added 2026-11-04; do not send Payjoin with any version — v0.7.0–v0.9.12 do not check the receiver-set signature-hash type, so a malicious receiver can redirect the full value; not fixed; joinmarket-ng mentioned without recommendation |
joinmarket-clientserver v0.9.12 and the repository archive banner | Published and archived 2026-11-04; read 2026-11-15 | The fund-loss advisory and the archive |
| v0.9.12 also fixes the commitment-reuse DoS (credits @m0wer), adds Bitcoin Core ≥ 30.0 descriptor-wallet support, fixes multi-sender-input Payjoin PSBTs, and adds RPC message signing | release-notes-0.9.12 | Published 2026-04-21; read 2026-11-15 | The final release's scope |
joinmarket-ng tags 0.43.0 (2026-11-05), 0.42.1 and 0.42.0 (2026-10-19), 0.41.0 (2026-10-13), 0.40.0 (2026-09-28) |
joinmarket-ng tags | Read 2026-11-15 | The active successor codebase |
| Sparrow 2.5.6 (2026-10-29), 2.5.5 (2026-09-17), 2.5.4 (2026-08-27) | sparrowwallet/sparrow releases | Read 2026-11-15 | The current wallet release |
Joinstr: mainnet supported; Electrum plugin (py-joinstr, no Bitcoin Core needed), Umbrel app, Flask web UI, joinstrd REST daemon and joinstr-cli, Sparrow fork (QcMrHyde/sparrow-joinstr), Android joinstr-kmp, rust-joinstr library; Nostr relays for coordination; custom pool denominations and peer counts; fees are transaction fees plus an optional paid-relay fee, with no coordinator cut |
joinstr.xyz | Read 2026-11-15 | Joinstr's actual 2026 state, from the project itself |
| Joinstr protocol is registered as NIP 2022 "Coinjoin Pool" | nostr-protocol/nips README | Read 2026-11-15 | The Nostr-standard status |
| Ark: published as TBDXXX on bitcoin-dev, now named Ark; client-server, not a channel network; no channels and no inbound liquidity to manage | ark-protocol.org | Read 2026-11-15 | The design premise |
| Ark: shared UTXOs among potentially hundreds of thousands of users; VTXOs as tree branches and leaves; server never holds custody; users can always claim on-chain by broadcasting their VTXO transactions in consecutive order | ark-protocol.org | Read 2026-11-15 | The custody property |
| Ark: rounds, forfeit transactions, refresh/batch, connector outputs making rounds atomic, out-of-round "arkoor" payments cosigned by the Ark server on the no-collusion assumption | ark-protocol.org | Read 2026-11-15 | The round mechanics and the OOR trust model |
| Second implementation: Bark SDK, Barkd, "Run an Ark server", one integration for Ark, Lightning and on-chain | docs.second.tech | Read 2026-11-15 | One of the two implementations |
Arkade: arkd (Go, 172 stars, updated 2026-11-05), wallet (self-custodial, Bitcoin and stablecoins; swap, borrow, earn), ts-sdk, rust-sdk, compiler (marked EXPERIMENTAL, Bitcoin-native smart contracts), shielded (experimental), intent-solver, emulator, demos |
arkade-os organisation | Read 2026-11-15 | The second implementation and its scope |
| Bitcoin Core 32.1, 31.2 and 30.4 published 2026-10-28 | bitcoin/bitcoin releases | Read 2026-11-15 | The node version backdrop for the Payjoin client |
| Samourai Wallet servers and domain seized with Icelandic assistance; Android app removed from Google Play; founders Keonne Rodriguez and William Lonergan Hill charged with conspiracy to commit money laundering and conspiracy to operate an unlicensed money-transmitting business; indictment alleged more than $2 billion in Bitcoin transactions | DOJ announcement, 24 April 2024, as reported and Axios coverage | Reported 2024-04-24 | The Whirlpool enforcement context |
Primary sources
- Specifications: BIP 78 Payjoin, BIP 77 Async Payjoin, BIP 79 Bustapay.
- Payjoin project: payjoin.org, the evolution of payjoin, Payjoin Dev Kit (rust-payjoin), Bitcoin Optech topic page.
- Implementations: BTCPay Server, Sparrow Wallet, Wasabi Wallet v2.8.5, joinmarket-clientserver v0.9.12 and its release notes, joinmarket-ng.
- Joinstr: joinstr.xyz, GitLab invincible-privacy/joinstr, rust-joinstr, sparrow-joinstr, NIP 2022 in nostr-protocol/nips.
- Ark: ark-protocol.org, docs.second.tech, gitlab.com/ark-bitcoin, github.com/arkade-os, arkadeos.com.
Page history
- Updated
- 2026-11-15
- Origin
- Compiled from the ungovernable.tech research notes.
- Improve this page
- Suggest an edit — issues and pull requests are welcome.