Skip to content

Feature: UTXO management recommendations from xpub/descriptor scan #67

@Kilombino

Description

@Kilombino

Summary

When scanning an xpub or descriptor, am-i-exposed already provides per-transaction and per-address privacy analysis. It would be incredibly valuable to extend this into actionable UTXO management advice based on the full wallet state.

Problem

Right now, a user can scan their xpub and see which transactions or addresses have privacy issues. But they still need to manually figure out:

  • Which UTXOs are "toxic" (linked to known entities, low entropy, reused addresses)
  • Which UTXOs are safe to spend together without degrading privacy
  • What consolidation or mixing strategy would improve their overall score
  • Whether specific UTXOs should be isolated, coinjoined, or spent separately

This requires significant expertise that most users lack.

Proposed Feature

After scanning an xpub/descriptor, provide a UTXO management dashboard that includes:

1. UTXO Classification

  • Tag each UTXO with a privacy risk level (e.g., 🟢 clean / 🟡 caution / 🔴 toxic)
  • Flag UTXOs linked to known entities, address reuse, or round amounts
  • Identify cluster groups (UTXOs that are already linked via common input ownership)

2. Spend Recommendations

  • "Safe to combine" — groups of UTXOs that are already linked and can be spent together without additional privacy loss
  • "Never combine" — UTXOs from different identity clusters that should remain separate
  • "Consider mixing" — UTXOs that would benefit from a CoinJoin before spending

3. Consolidation Strategy

  • Suggest optimal fee windows for consolidation (based on current mempool)
  • Recommend batch sizes that minimize on-chain fingerprinting
  • Warn about dust UTXOs that cost more in fees than they are worth

4. Overall Wallet Hygiene Score

  • Aggregate UTXO-level analysis into a wallet-wide "hygiene" metric
  • Track improvement over time if the user rescans periodically

Why This Fits am-i-exposed

The tool already does the hard work: heuristic analysis, entity matching, Boltzmann entropy, and chain tracing — all client-side. UTXO management recommendations are a natural next step that turns diagnosis into actionable guidance.

Most users know they should care about UTXO management but don't know where to start. This feature would bridge that gap.

Implementation Notes

  • All computation should remain client-side (consistent with the project's privacy model)
  • Could be presented as a separate tab/view after xpub scan completes
  • The existing heuristic engine already provides most of the data needed for UTXO classification
  • Consider optional export of UTXO labels (BIP-329 format) for wallet import

Metadata

Metadata

Assignees

No one assigned

    Labels

    analysisHeuristics, scoring, detection, Boltzmann, chain tracingfeatureNew capabilityneeds-designAmbiguous, needs discussion before implementation

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions