JustMix [A]II

How Bitcoin UTXO Consolidation Destroys Privacy Between KYC and Non-KYC Sources

One of the least obvious mistakes in Bitcoin OpSec is combining coins from different sources. A user may keep KYC and non-KYC bitcoin separate, use different addresses, buy BTC through P2P transactions, and even use CoinJoin. Yet one ordinary wallet operation can link that activity on the public blockchain.

The reason lies in Bitcoin’s UTXO model and blockchain-analysis methods that infer likely connections between addresses.

UTXO consolidation—combining multiple unspent transaction outputs into one—is often used to reduce the number of UTXOs and save on future fees. But it can also link funds that previously had no obvious connection.

The problem isn’t consolidation itself, but which UTXOs are combined and what outside observers already know about them.
Why Bitcoin Doesn’t Work Like a Traditional Bank Balance

In a typical banking app, users see a single account balance. If they receive three transfers of $100, the app shows $300.

Bitcoin works differently. Funds exist as separate UTXOs—Unspent Transaction Outputs, or outputs from previous transactions that have not yet been spent.

If a user receives 0.05 BTC from an exchange, 0.03 BTC through a P2P transaction, and 0.02 BTC from a friend, the wallet may show 0.1 BTC. Technically, however, these are three independent UTXOs, each with its own history. Each can be spent separately or combined with others in a new transaction.

For example, to send 0.07 BTC, the wallet might use the 0.05 BTC and 0.03 BTC UTXOs as inputs, then return the remainder—minus the fee—to the user as change.

This links two previously independent sources in a single public transaction. The blockchain reveals not just that funds were transferred, but which previous outputs were used. Unlike a bank account balance, the UTXO transaction history is public and available to anyone.
Common-Input Ownership Heuristic: How Analysts Group Addresses

One well-known Bitcoin analysis method is the Common-Input Ownership Heuristic, or CIOH. Its basic assumption is that if several UTXOs are used as inputs to one ordinary transaction, they are likely controlled by the same person or organization.

A standard transaction with multiple inputs requires authorization for each one. So when an analytics system sees five inputs, it may infer that all five belong to one owner and use that information to group addresses into clusters.

For example, if address A is linked to B because they appeared together in a transaction, and B later appears with C, an analytics system may group all three. Applied across many transactions, this can reveal large clusters of related addresses.

CIOH is a heuristic, not proof of common ownership. Collaborative transactions such as CoinJoin and PayJoin deliberately combine inputs from different participants, so modern analytics systems use additional indicators to identify them. Even so, CIOH can be useful for ordinary transactions created by a single wallet—which is why consolidation can pose a privacy risk.
What Happens When KYC and Non-KYC UTXOs Are Combined

Imagine a user with two sources of bitcoin.

The first UTXO, worth 0.06 BTC, came from a centralized exchange after KYC. The exchange has the user’s personal information and knows the withdrawal address. The second, worth 0.04 BTC, came from a P2P transaction without documents being provided to a centralized intermediary.

Before they are combined, there may be no obvious public link between them. The exchange may know nothing about the second UTXO, and an analyst cannot automatically conclude that both belong to the same person.

Now the user sends 0.07 BTC and lets the wallet use both UTXOs. The transaction has two inputs:

0.06 BTC from a KYC source;
0.04 BTC from a P2P source.

The recipient gets 0.07 BTC, and the remainder, minus the fee, returns to the user as change.

An analytics system may apply CIOH and infer that both inputs have the same owner. Since the first UTXO is linked to a verified exchange account, the second may also be associated with that user. Analysts can then examine the second UTXO’s history for further links.

One consolidation can create a bridge between two financial histories the user had tried to keep separate.

This does not automatically reveal someone’s identity. An outside observer still needs KYC data or other identifying information. But if that information is available, the consolidation may help connect it to a wider set of transactions.
Why Changing Addresses After Consolidation Doesn’t Help

A common misconception is that transferring consolidated funds to a new address restores privacy. It doesn’t erase the previous transaction history.

If a user combines two UTXOs, sends the output to a new address, then moves it to three more, all those transactions remain visible. Analysts can trace the sequence from the original sources to later outputs.

It may be difficult to determine the exact destination of each output, especially in transactions with multiple recipients. But changing addresses does not break an existing on-chain link.

Analysts also try to identify change outputs. When a user sends part of their funds, the wallet usually creates one output for the recipient and another for the remainder. Analysts may compare address formats, amounts, transaction structure, and later activity. For example, an irregular remainder may be a candidate for change, though this is not a universal rule.

If the change address is identified, analysts may be able to keep tracking the funds’ likely owner. Moving funds to a new address after consolidation is therefore not the same as restoring anonymity.
How Consolidation Can Undermine CoinJoin

CoinJoin lets several participants create a transaction together, making it harder to determine which input corresponds to which output. This makes the ordinary common-input heuristic unreliable.

But CoinJoin does not make its outputs permanently anonymous. Suppose a user receives three separate outputs after a CoinJoin. Each may have several possible sources. If the user later combines them in one ordinary transaction, analysts gain new information: the UTXOs are likely under common control.

They can compare the possible source sets for each output. Overlaps or additional information may narrow down the candidates, weakening the privacy benefit of the CoinJoin.

The risk increases if a UTXO from a KYC exchange is added to the same transaction. Analysts may then have evidence that the post-mix outputs are under common control, along with a potential link to an identified user.

This does not necessarily reveal the full CoinJoin history or definitively identify the origin of every output. The result depends on the protocol, number of participants, transaction structure, and other available data.

Still, privacy gained by making input-output links ambiguous can be significantly weakened when UTXOs are later spent together. What a user does after CoinJoin can matter as much as the process itself.
Why Automatic Coin Selection Can Be a Problem

Many Bitcoin wallets automatically select transaction inputs. Their algorithms generally aim to create a valid transaction with a reasonable fee and minimal unnecessary change. But economic efficiency and privacy do not always align.

A wallet may select small UTXOs from different sources to reach the required amount, while the user sees only the total balance and payment amount. If they don’t check the selected inputs, the funds may be combined without their noticing.

Coin Control lets users manually choose which UTXOs to use. Sparrow Wallet, Electrum, and Bitcoin Core support this feature. It can help users spend exchange funds, P2P receipts, and post-CoinJoin outputs separately.

Users can also label UTXOs by source and purpose—for example, exchange withdrawals, P2P transactions, or personal payments. These labels are stored locally, not recorded on the blockchain, and help users avoid unwanted links.

Separation should continue after payments, too. Change from a KYC-source UTXO retains that privacy context. If it is later combined with a non-KYC UTXO, the same problem arises.
When Consolidation Is Justified

Consolidation is not inherently a mistake. UTXOs take up space in future transaction inputs, and Bitcoin fees depend on transaction size. More inputs can mean higher fees, so consolidating small UTXOs during periods of low fees can be reasonable.

But users should weigh the privacy implications as well as the cost. Consolidating UTXOs that already come from the same publicly known source and are linked to one identity may reveal little new information. Combining funds from independent contexts is different: bitcoin received from an employer, a P2P transaction, and a KYC exchange may represent three distinct financial histories. Consolidation can bring them into one analytics cluster.

For users with heightened privacy requirements, a safer approach is to keep UTXOs separated by source, use Coin Control, and check inputs before signing. Separate wallets can help with organization, but they do not guarantee on-chain separation: if their UTXOs are later used in the same transaction, the link is created.

Bitcoin privacy depends not only on how coins are obtained, but also on every subsequent transaction. A non-KYC source does not guarantee anonymity, and CoinJoin does not provide permanent protection against blockchain analysis.

Each new transaction can reveal information about earlier activity. UTXO consolidation is therefore more than a technical wallet optimization: it can have lasting privacy consequences. One operation may save a little on fees while publicly linking funds that previously could not confidently be attributed to the same owner. Unlike local wallet settings, that record cannot be removed from the blockchain.

↑ 6

Обсуждение

Комментарии

3

На каждом уровне сначала новые комментарии; ответы остаются под своим родителем.

Написать Join — чтобы участвовать в обсуждении.

The change point is the one people actually get wrong in practice. Worth adding that consolidating only your own KYC-source UTXOs together is fairly harmless — you were already one known cluster there, so the fee saving is real and the new link reveals nothing.
The point people miss is that change from a KYC spend carries the label onward. If you pull 0.06 from an exchange and the change comes back to you, that change is still KYC-tainted, so mixing it later with P2P coins re-creates the bridge you tried to avoid. Coin control only helps if you actually label and hold the line on both sides of a payment.