Heuristics link 17.65% of Railgun withdrawals to deposits, causing 3.42-bit anonymity loss
Five heuristics can uniquely link 17.65% of Railgun withdraw transactions to their deposits and that a knapsack solver yields a median anonymity loss of 3.42 bits.
Security & privacy arXiv 24 Jun 2026 Measurement Real-world evidence
Published as “A Tattered Cloak of Invisibility: Measuring Anonymity Loss in Railgun on Ethereum”
Why it matters
Users can substantially improve their privacy on Railgun by avoiding address reuse, using relayers for withdrawals, and waiting weeks or months before withdrawing, thereby enlarging the effective anonymity set.
Summary
The study finds that 17.65% of Railgun withdraw transactions can be uniquely linked to a deposit transaction, and a knapsack-solver analysis shows a median anonymity loss of 3.42 bits. These results come from passive analysis of all public Ethereum data for Railgun (122 477 deposits, 328 520 withdrawals) using four heuristic linkages and a knapsack matching algorithm, providing moderate empirical evidence of significant behavioral privacy loss.
What they found 3
- 17.65% of withdraws can be uniquely linked to a deposit
“Our five heuristics are able to uniquely link 17.65% of Railgun withdraw transactions to deposit transactions.”
- Median anonymity loss of 3.42 bits from knapsack matching
“We also applied a knapsack solver algorithm that was able to produce a 3.42 bit median anonymity loss for withdraw transactions.”
- Table 3 reports the same 17.65% linkage rate across all heuristics
“Total (H1∪H2∪H3∪H4) 8398 (17.65%)”
Caveats 3
- We did not find fractional amount fingerprints sufficiently reliable for deanonymization.
- We solely focus on the
- We did not exploit many types of metadata, i.e., typically it is possible to assess which wallet software an entity uses.
What’s new here 4
- First measurement of behavioral leakage specifically in the Railgun mixer, which supports arbitrary token amounts and internal private transactions.
- Introduces four heuristic linkages (address reuse, direct on-chain links, gas-payer reuse, amount-based knapsack matching) plus a knapsack-solver to quantify anonymity loss.
- Provides a comprehensive public-blockchain dataset and open-source analysis code for Railgun.
- Offers concrete user-level privacy recommendations (e.g., always use relayers, avoid address reuse, wait longer before withdrawing).