arXiv:2608.22987cs.CRAug 2026

Manuscript Offprint

arXiv:2608.22987

The Anonymity Gap: Understanding Real Privacy in Shielded UTXO-based Protocols for DeFi

Hanze Guo, Stefanos Chaliasos, Yebo Feng, Jiahua Xu

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Shielded UTXO-based protocols are becoming a core form of privacy infrastructure for DeFi. Unlike mixers that organize privacy mainly around deposits and withdrawals, these protocols allow assets, once inside the shielded pool, to continue moving and being re-spent within the hidden state, and to become public only when users withdraw or interact with public DeFi protocols. Their anonymity is therefore no longer a flat pool-size problem, but a provenance problem that propagates across the note/UTXO, proof, and transaction layers. Yet, a unified analysis framework for this setting is still missing. We propose a layered system model and an analysis pipeline that uses prior history as the temporal baseline, applies cumulative pruning and cross-proof propagation to each proof's Commitment Set, and recursively traces the survivors through historical hidden-state transitions to derive the final transaction-level Anonymity Set Size.

We evaluate our methodology on the complete on-chain histories of all four Railgun production deployments and five independent Hinkal pools across six EVM chains, analyzing 186,356 unshielding spend transactions. Using only public protocol traces and constraints, our non-heuristic analysis yields mean Anonymity Set Size reductions of 40.1%–59.0% relative to each deployment's temporal baseline; 3,679 transactions retain at most 10 addresses, including 1,228 singletons. Public token constraints are the strongest and most stable source of pruning in both protocols, while the effects of tree number, proof roots, and value constraints vary with protocol design and historical state. Together with representative cases, these results reveal interpretable anonymity-loss patterns and implications for user behavior and future protocol design.

1 Introduction

Since the Office of Foreign Assets Control (OFAC) sanctions on Tornado Cash in August 2022 [1], on-chain demand for privacy has not disappeared; instead, protocol forms have continued to evolve [2]. Privacy usage is shifting from coin

Stefanos Chaliasos

UCL Centre for Blockchain Technologies, UK

zkSecurity, USA

Jiahua Xu

UCL Centre for Blockchain Technologies, UK

Exponential Science, Switzerland

Figure

Fig. 1: One-hop mixer matching versus recursive provenance in shielded UTXO-based protocols.

mixers supporting separate deposit and withdrawal pools to shielded unspent transaction output (UTXO)-based protocols that support richer hidden-state operations. Railgun, a leading representative of the latter category, illustrates this trend: a recent Cambridge analysis reports that daily transactions on Tornado Cash Classic and Tornado Cash Nova fell by 97% and 91%, respectively, after the Tornado Cash sanctions, while Railgun's share of transactions among major Ethereum privacy protocols rose from 13% in 2022 to 71% in 2025 [3]. As of our observation cutoff, its total value locked (TVL) was approximately 80.23million.80.23 million.^{1}$Unlike mixers, these shielded UTXO-based protocols let users move assets into the shielded pool (shield), continue transferring, splitting, merging, and re-spending them inside the hidden state (shielded transfer), and execute public release (unshield) only when they need to return to the public state, for example, to withdraw or interact with public decentralized finance (DeFi) protocols. As Fig. 1 shows, this protocol form changes the object of anonymity analysis. In mixer-style systems, fund flow is organized around the correspondence between deposit and withdrawal [4–6], whereas in shielded UTXO-based protocols, hidden state can be created, transferred, and re-spent, while a single spend transaction may aggregate multiple proofs. Accordingly, the feasible provenance sets underlying one unshield, and hence its Anonymity Set Size, are no longer a one-hop pool-matching problem. Instead, provenance propagates across the note/UTXO, proof, and transaction layers: the note layer provides candidate hidden-state objects, the

1^{1}TVL on July 30, 2026, from DefiLlama.

proof layer captures private-state relations, and the transaction layer exposes entry and exit addresses. Previous work has used address clustering, timing, value patterns, and other behavioral or attribution heuristics to reassess deployed privacy, including for Zcash, smart-contract mixers, Umbra, and, most recently, Railgun on Ethereum [4, 7–9]. A distinct line derives eliminations from public ring-membership structure in Monero and related systems, sometimes combined with temporal or decoy-selection heuristics [10–12]. To the best of our knowledge, this work provides the first systematic, non-heuristic analysis of how recursive provenance shapes transaction-level anonymity in deployed shielded UTXO-based protocols for DeFi. Using only publicly observable protocol traces and constraints, we set the analysis boundary at the transaction level: the unit is a transaction that executes unshield, and its candidate sources are protocol-visible shielding addresses. This design isolates anonymity loss caused by the protocol's own public constraints. We neither cluster addresses into users or entities nor weight candidates probabilistically. The former typically requires heuristic or off-chain attribution and the latter an explicit probabilistic model. Separating these choices from protocol-visible constraints yields a non-heuristic baseline for either extension. Within this scope, we ask: from which shielding addresses could the funds released by a transaction that executes unshield have originated, and by how much can that address set be reduced?

To answer this question, we design an empirical analysis that operates on executed traces and propagates constraints across layers. We organize the problem into three connected parts: first, the system model and privacy metrics; second, the proof-level shrinking of feasible hidden sources; third, the connection from these proof-level results to the final Anonymity Set Size at the transaction level. This organization reflects the actual distribution of public constraints in the target systems: hidden-state objects live at the note layer, private-state relations at the proof layer, and the visible anonymity outcome at the transaction layer.

Layered system model and privacy metrics. We first formalize a layered system model for shielded UTXO-based protocols and define transaction-level Anonymity Set Size together with the proof-level Commitment Set Size used to compute it. Commitment Set Size captures how many historical commitments remain feasible as hidden inputs for a given proof. Anonymity Set Size captures how many shielding addresses could have originated the funds released by one transaction that executes unshield. The model connects local hidden-source feasibility to final public release across the note, proof, and transaction layers. The formal model and metrics are developed in Sec. 3.

Commitment-source pruning. We then construct the Commitment Set of each proof and perform cumulative pruning over that set. Temporal order, tree number, historical roots, token compatibility, and value feasibility jointly determine whether one historical commitment can still serve as a feasible hidden input to the current proof. Starting from the temporal baseline, we apply these constraints and propagate their consequences to shrink each proof's feasible hidden sources. No address clustering, behavioral patterns, or external attribution signals are used. The full pipeline is presented in Sec. 4.

Closure-based lifting to transaction anonymity. Finally, we start from the Commitment Set obtained for each proof after cumulative pruning and propagation and trace its feasible provenance backward along the hidden-state history. These commitments may be introduced directly by shield or created by later shielded transfer and unshield and shielded transfer steps, while the final Anonymity Set Size identifies the shielding addresses through which the released funds could originally have entered the pool. We therefore connect the still-reachable commitments to historical shield transactions and their shielding addresses, and aggregate these address sets within each transaction. We instantiate this process on the complete histories of all four Railgun production deployments and the five most active independent pools in Hinkal's largest coordinated Ethereum Virtual Machine (EVM)-compatible deployment generation by aggregate commitments. Across these analyses, we cover 313,492 proofs and 259,049 spend transactions, of which 186,356 are unshielding spend transactions. Relative to their respective temporal baselines, the mean Anonymity Set Size shrinks by 40.1%–59.0% across the Railgun chains and by 48.9%–57.4% across the Hinkal chains. The final set contains at most ten addresses in 2,968 Railgun and 711 Hinkal transactions, including 920 and 308 singleton cases, respectively. From these measurements, we distill interpretable anonymity-loss patterns, explain when very small sets emerge, and derive practical implications for user behavior, protocol interfaces, and privacy-protocol design, as developed in Sec. 5 and Sec. 6.

Contributions. This work makes the following contributions:

• We formalize a layered system model for shielded UTXO-based protocols and define transaction-level Anonymity Set Size together with the proof-level Commitment Set Size used to compute it.

• We introduce a non-heuristic recursive provenance analysis combining four-stage pruning with cross-layer lifting to trace feasible hidden-state histories to shielding addresses and derive transaction-level Anonymity Set Size.

• We analyze the complete on-chain histories of all four Railgun production deployments and five independent Hinkal pools, finding mean Anonymity Set Size reductions of 40.1%–59.0% and 48.9%–57.4%, respectively, relative to their temporal baselines.

• We identify an eight-pattern anonymity-loss taxonomy across proof-level specialization, proof-structure effects, and transaction-level aggregation, support it with case studies, and distill it into practical implications for user behavior, privacy-protocol interfaces and design.

References (32)