How Samourai Wallet Worked: Whirlpool CoinJoin and the Charges
This article was translated from Japanese with AI. Read the original (日本語) · Report a translation issue
Over the past few years, legal action against on-chain privacy tools has led to the arrest of Tornado Cash's founder and to Wasabi Wallet shutting down its CoinJoin feature. As part of the same crackdown, the founders of Samourai Wallet were arrested and charged in the United States, where prosecutors are now seeking five-year prison sentences.

Personally, I always had the impression that Samourai Wallet fans and Wasabi Wallet fans were constantly arguing with each other. The same is true of the hardware wallet industry. To put it kindly, the Bitcoin community has a culture of pushing each other forward through mutual criticism. (To put it less kindly, some of that criticism is just wrong, so it may be best not to put too much stock in these disputes.)
One criticism I saw often was a startling one: that Samourai Wallet was designed to send users' wallet xpubs (extended public keys) to its servers. What kind of privacy tool sends a full picture of your wallet to a server? When I looked into it, I found that this criticism was partly legitimate and partly overblown.
In this article, I'll explain in plain terms how Samourai Wallet worked and what its privacy strengths and flaws were. I'll also question whether it is justified to treat running on-chain privacy tools like Samourai Wallet as illegal.
• How Whirlpool worked: users gathering to mix their UTXOs together, over and over
• Most users self-hosted, but the rest did in fact send their xpubs to the server to look up their wallet contents
• Isn't it a stretch to call a non-custodial system that is largely peer-to-peer, and poorly suited to fast money laundering, a money laundering operation or an unlicensed money transmitting business?
How Whirlpool worked: users gathering to mix their UTXOs together, over and over
Many of our readers are longtime Bitcoiners, so some of you have probably used a CoinJoin like Wasabi Wallet at least once, perhaps before paying someone in bitcoin. As you'll know, CoinJoin basically works by "mixing UTXOs of fixed amounts, such as 0.1 BTC or 0.01 BTC, in a single transaction shared with many other users."
Here's what that looks like in a diagram:

A single CoinJoin grows your anonymity set by the number of participating UTXOs, and doing several CoinJoins in a row multiplies it. That's why quite a few users kept doing CoinJoins over long periods. For example, when I tried out Wasabi, there was a setting to keep joining CoinJoins for as long as the wallet was running.
Wasabi Wallet CoinJoins often had dozens of users participating at once, but Samourai's service, called Whirlpool, used a fixed number of participants, mixing five UTXOs at a time. Since each round yields only a limited anonymity set, many users took part multiple times, a practice called remixing, and Samourai's incentive design itself reportedly encouraged it. Of course, mixing again with the same participants achieves nothing, so improving privacy this way takes time.
You can see that, aside from some differences in design philosophy, the core mechanics of the product were almost the same as Wasabi Wallet's.
Most users self-hosted, but the rest did in fact send their xpubs to the server to look up their wallet contents
So where does the criticism that "Samourai is collecting users' xpubs!" come from?
Both Wasabi Wallet and Samourai Wallet were purely services for coordinating CoinJoins, and neither took custody of user funds at any point. Signing transactions and checking funds happened inside the user's wallet software. However, if a user wasn't self-hosting a full node and Dojo (*), the wallet apparently queried Samourai Wallet's servers using the xpub to retrieve the balance.
Admittedly, this does seem like a weak design for a privacy tool. It was probably meant to accommodate mobile users, but in CoinJoin, one user's loss of privacy also hurts everyone else's (the anonymity set shrinks), so I think the design deserves a certain amount of criticism.
That said, there's an interesting data point: while Samourai's servers were down for about 10 hours of maintenance, Whirlpool usage reportedly stayed at around 85–90% of its usual level. Based on this, some have suggested that perhaps 85% of Samourai Wallet users were self-hosting Dojo.

Remixing wasn't possible from mobile, so users who remixed necessarily self-hosted Dojo. I suspect the share wasn't this high among users who only joined their first CoinJoin, but looking at overall usage including remixing, it seems fair to say that users were highly privacy-conscious and avoided leaking their xpubs.
So the right answer is probably something like "it could be used safely if you had a reasonable level of privacy awareness and Bitcoin knowledge." Whether beginners even want CoinJoin is another question, but it certainly wasn't beginner-friendly.
Isn't it a stretch to call a non-custodial system that is largely peer-to-peer, and poorly suited to fast money laundering, a money laundering operation or an unlicensed money transmitting business?
Samourai also had many other features, including a Payjoin-style feature, a feature for "building up an anonymity set entirely on your own," and a feature for mixing coins with just one other user. For more on Payjoin, see our previous article.
What all of these services have in common is that Samourai never held custody. In fact, most of the features let users running Dojo connect to each other directly over Tor. At most, Samourai served as little more than a bulletin board.
It has also been pointed out that Samourai Wallet's system took time to build up anonymity, which made it a very poor fit for most money laundering patterns in the crypto industry. Here's a summary of the views in the following thread on X:
A thread about this statement made in Samourai's indictment, from the perspective of a person who has extensively studied the design of zerolink implementations and who has also analyzed the on-chain activity of some crypto money launderers. pic.twitter.com/neOcWvjxyv
— LaurentMT (@LaurentMT) April 25, 2024
(Abridged translation of the thread) Laundering of stolen crypto typically involves dumping a large amount of funds into obfuscation tools in a sudden blitz, pulling them right back out, and then consolidating them afterward, which yields almost no privacy. The goal isn't real anonymization; it's to run the funds through as many anonymization methods as possible in as little time as possible to slip past exchanges' deposit screening, then rush to cash out through money mules or exchange accounts opened under fake names. The poor fit between this strategy and Whirlpool, which deliberately takes time to build privacy, is likely why the share of criminal funds was just 5%, low compared with similar tools.
So if Samourai didn't actually control any funds, users could use the tool among themselves on their own, and it was a poor fit for anonymizing the very kind of criminal funds at issue, I'm inclined to agree with the view that trying to prosecute it as money laundering is a stretch.
Privacy is an essential element that can't be overlooked when using "money" like Bitcoin, so I sincerely hope the authorities stop persecuting privacy tools.

