Sub topic 14
Limitations, Labeling Errors, and Privacy Considerations
This chapter assumes you have read the earlier chapters on clustering, labeling, exchange wallet structure, and netflow. It also assumes you can read short Python functions. The goal is to show where the numbers you compute can be wrong, how to measure and report that uncertainty, and where responsible use of this data stops.
Why the pipeline is only as good as its weakest step
Every exchange-flow figure comes from a chain of steps. Each step adds its own error, and the errors multiply instead of averaging out.
A useful habit is to ask of any published chart: which of these five stages did the author verify, and which did they inherit from a vendor?
Labeling errors
A label maps an address to an entity, such as "ExchangeA hot wallet". Labels come from exchange disclosures, deposit-and-withdraw probing, heuristics, and community tagging. Their quality varies a lot.
Kinds of labeling error
| Error | What happens | Effect on exchange netflow |
|---|---|---|
| Missing label (false negative) | An exchange address is unlabeled | Inflows and outflows are undercounted |
| Wrong label (false positive) | A user or service address is tagged as an exchange | Ordinary transfers appear as exchange flow |
| Stale label | Wallet was retired, rotated, or sold | Old addresses keep producing phantom flows |
| Overbroad label | A whole cluster is tagged from one confirmed address | One bad merge contaminates every address in the cluster |
| Wrong entity type | A custodian, bridge, or market maker is tagged as an exchange | Flows reflect custody or routing, not trading |
Missing labels are the most common error and the least visible. A chart built from incomplete labels still looks smooth. Because exchanges rotate hot wallets and open new ones, label coverage tends to decay over time. A netflow trend can therefore drift simply because your labels got older.
Reporting results as a range
Instead of one number, you can compute netflow under a strict and a loose label policy and report both. This function assumes each label carries a confidence score.
def netflow(transfers, labels, entity, min_conf):
"""labels: address -> (entity_name, confidence between 0 and 1)."""
def resolve(addr):
item = labels.get(addr)
if item and item[1] >= min_conf:
return item[0]
return None
net = 0.0
for t in transfers:
src, dst = resolve(t["from"]), resolve(t["to"])
if src == dst:
continue # unlabeled both sides, or internal move
if dst == entity:
net += t["amount"]
if src == entity:
net -= t["amount"]
return net
labels = {"ex1": ("ExchangeA", 0.95), "ex2": ("ExchangeA", 0.55)}
transfers = [
{"from": "user", "to": "ex1", "amount": 100.0},
{"from": "ex2", "to": "user", "amount": 40.0},
{"from": "user", "to": "ex2", "amount": 10.0},
]
print(netflow(transfers, labels, "ExchangeA", 0.8)) # strict: 100.0
print(netflow(transfers, labels, "ExchangeA", 0.5)) # loose: 70.0The two results differ by 30 units. That gap is a rough measure of how much your conclusion depends on a single weakly supported label. If the sign of the netflow flips between policies, the signal is not reliable.
Clustering errors
Clustering groups addresses that probably share an owner. Two heuristics dominate:
- Common-input ownership (UTXO chains): addresses spent together as inputs of one transaction belong to one entity.
- Change-address detection: a transaction output that looks like change is attributed to the sender.
Both are heuristics, not proofs. CoinJoin transactions deliberately combine inputs from many unrelated users, which breaks the first heuristic. Because clustering uses transitive merging, one false merge is not local. It fuses two entire clusters, and every label on either side then applies to the union.
A simple defense is to skip transactions with an unusually high number of inputs:
def cluster_with_guard(transactions, max_inputs=10):
parent = {}
def find(a):
parent.setdefault(a, a)
while parent[a] != a:
parent[a] = parent[parent[a]]
a = parent[a]
return a
skipped = 0
for inputs in transactions:
for a in inputs:
find(a)
if len(inputs) > max_inputs:
skipped += 1
continue
for a in inputs[1:]:
ra, rb = find(inputs[0]), find(a)
if ra != rb:
parent[rb] = ra
groups = {}
for a in list(parent):
groups.setdefault(find(a), set()).add(a)
return sorted(sorted(g) for g in groups.values()), skipped
txs = [["A", "B"], ["C", "D"], ["A", "C", "E", "F"]]
print(cluster_with_guard(txs, max_inputs=10)) # one merged group, 0 skipped
print(cluster_with_guard(txs, max_inputs=3)) # keeps A-B and C-D apart, 1 skippedWith the guard, the suspicious transaction is skipped and the two real clusters stay separate. The cost is that genuine large consolidations, which exchanges perform often, are skipped too. Any threshold trades false merges against missed merges.
On account-based chains such as Ethereum there is no common-input rule. Clustering relies on other signals, like shared deposit-sweep patterns and funding sources, which are weaker. Smart-contract wallets and shared infrastructure make them weaker still.
Measurement errors
Even with perfect labels, the arithmetic can go wrong.
- Chain reorganizations: recent blocks can be replaced. Count flows only after a confirmation depth suited to the chain, and be ready to restate recent values.
- Decimals and units: token amounts are integers scaled by the token's decimals. Mixing 6-decimal and 18-decimal tokens is a classic bug.
- Missed or duplicated events:
eth_getLogsover wide block ranges can hit provider limits and return partial results or errors. Check that your block ranges are contiguous and complete. - Internal transfers and contract calls: native-currency transfers made by contracts do not appear as ordinary transactions. They need traces, and logs alone miss them.
- Wrapped and bridged assets: the same value can appear as several tokens. Summing them double counts.
- Price conversion: converting flows to a currency value with a daily price hides intraday swings and can misstate large moves.
Concentration metrics and what they hide
A top-N share is only meaningful after you separate real holders from infrastructure. The largest balances for most tokens belong to exchanges, custodians, staking contracts, bridges, and burn addresses. A function that ignores this will report concentration that is really a list of services.
def top_n_share(balances, n, excluded=frozenset()):
"""balances: address -> amount. Excluded addresses are removed first."""
kept = [v for a, v in balances.items() if a not in excluded]
total = sum(kept)
if total == 0:
return 0.0
return sum(sorted(kept, reverse=True)[:n]) / total
balances = {"bridge": 9000, "w1": 800, "w2": 600, "w3": 300, "w4": 200, "w5": 100}
print(round(top_n_share(balances, 2), 3)) # 0.875
print(round(top_n_share(balances, 2, {"bridge"}), 3)) # 0.7Even the adjusted figure describes addresses, not people. One person may hold a balance through several addresses, and one custodial address may hold funds for thousands of customers. Top-N share is a statement about the labeled address set. It does not describe the real distribution of ownership.
Interpretation limits
Netflow shows where coins moved. It does not show why. A deposit to an exchange might be a sale, but it can also be collateral for a loan, a transfer between a user's own accounts, an OTC settlement, or a market maker restocking. A withdrawal might mean long-term holding, or it might be a move to another venue.
- Exchange flows cover only on-chain movement. Trades inside the exchange, derivatives positions, and off-chain netting leave no trace.
- Proof of reserves, covered earlier, usually shows assets at a point in time. It does not show liabilities, and funds can be borrowed for the snapshot.
- Whale alerts fire on size, not intent. A large transfer is often internal housekeeping.
- Signals are often published after the move they describe, and many traders watch the same signals.
Treat these metrics as one input among several. They suggest hypotheses to check, and they do not predict prices.
Privacy and responsible use
Public blockchains are pseudonymous, not anonymous. An address has no name, but the transaction history is permanent. Once a single address is linked to a real identity, for example through an exchange withdrawal, a payment, or a public donation, clustering can extend that link to many other addresses and to the person's past and future activity.
Consider these points before publishing or acting on labels:
- Entities versus individuals. Labeling "ExchangeA hot wallet" is low risk. Labeling an address as a named private person can expose them to targeting, extortion, or physical risk. Avoid attaching names to personal wallets.
- Inference is not evidence. A cluster is a probabilistic guess. Presenting it as fact about a person can cause real harm if it is wrong.
- Data minimization. Keep only what the analysis needs. Aggregate where you can, and avoid building profiles of individual users.
- Legal context. Linked address data about identifiable people can count as personal data under privacy laws such as the GDPR, even when the source is public. Rules differ by jurisdiction, and this chapter is not legal advice.
- Honest uncertainty. Publish labels with confidence levels and sources, and fix or retract errors.
A practical checklist
- Report ranges under strict and loose label policies, not a single number.
- Record the label source, date, and confidence for every address.
- Re-verify labels periodically, and drop retired addresses.
- Exclude infrastructure addresses before measuring concentration.
- Skip or flag CoinJoin-like transactions before clustering.
- Wait for confirmations and check block-range coverage.
- State plainly what the metric cannot tell the reader.
Exercise
Your netflow for ExchangeA is +500 under a loose label policy and -200 under a strict one. What does this tell you, and what should you do before drawing a conclusion?
Show answer
The sign depends on low-confidence labels, so the signal is not reliable. Inspect which addresses were included only in the loose policy and check their label sources and dates. Look for missing labels on the other side, then report the range instead of a single figure.
Exercise
Why can a single CoinJoin transaction corrupt an entire clustering run, and what is the trade-off of the max-inputs guard?
Show answer
Clustering merges transitively, so one transaction that joins inputs from unrelated users fuses two whole clusters, and every label on either side then applies to the union. The guard skips transactions with many inputs, which prevents these false merges. It also skips real large consolidations by an exchange, so some true links are missed.
Exercise
A token's top-3 holders show 80% of supply. Name two reasons this might not mean three people control the token.
Show answer
The top addresses may be exchanges, custodians, bridges, or staking contracts holding assets for many users. Even a personal address may be one of several that a single holder uses, so address-level share does not equal ownership share.