Privacy Dashboard

The Privacy Dashboard visualizes the composition of the shielded pool and helps you understand the privacy guarantees of your transactions.

Pool Composition Scanner

When you open the dashboard, it scans the V7 pool for all deposited assets:

  1. Queries getEscrowBalance(asset) for native tokens and all known pallet assets
  2. Runs in parallel batches of 25 — scanning hundreds of assets in seconds
  3. Shows live progress with per-asset identification
  4. Displays the total value locked and asset diversity

The scanner detects both native tokens (DOT, KSM, PAS) and pallet assets (USDC, USDT, and any asset registered on AssetHub).

Sunburst Chart

The pool composition is rendered as an interactive D3.js sunburst chart:

  • Inner ring: Asset categories (native vs pallet assets)
  • Outer ring: Individual assets with their amounts
  • Hover: Shows asset name, amount, and percentage of pool
  • Color: Each asset gets a distinct color for easy identification

Below the chart, a tabular view lists every asset with its symbol, balance, and decimals for precise inspection.

K-Anonymity

K-anonymity measures how many other deposits your transaction is "hiding among":

\[ k = \text{number of unspent deposits in the pool} \]

A higher K-anonymity score means stronger privacy:

K ScorePrivacy Level
1-5Low — few deposits to hide among
5-20Moderate — some anonymity
20-50Good — difficult to trace
50+Strong — lost in the crowd

The dashboard displays the current K-anonymity score based on the pool's tree size. Each deposit and withdrawal changes the score, so check it before making large transactions.

How Pool Composition Affects Privacy

A diverse pool with many different assets and amounts provides better privacy than a pool dominated by a few large deposits:

  • More assets → Harder to correlate deposit/withdrawal pairs by asset type
  • More depositors → Higher K-anonymity
  • Varied amounts → Amount-based heuristics become unreliable
  • Frequent activity → Timing analysis becomes noisy

The sunburst chart helps you visually assess pool diversity at a glance.

Updating the Dashboard

The dashboard re-scans the pool every time you open it. For the most current view:

  1. Open the Privacy Guarantee Chart (click the chart icon)
  2. Wait for the scan to complete (progress bar shows status)
  3. Explore the sunburst chart and asset table
  4. Note the K-anonymity score before making deposits or withdrawals