Skip to content

feat: add fee handling for OP_RETURN sweep - #3

Merged
Jolah1 merged 1 commit into
mainfrom
feat/op-return-method
Apr 10, 2026
Merged

feat: add fee handling for OP_RETURN sweep#3
Jolah1 merged 1 commit into
mainfrom
feat/op-return-method

Conversation

@Jolah1

@Jolah1 Jolah1 commented Apr 10, 2026

Copy link
Copy Markdown
Owner

Summary

Implements an OP_RETURN-based dust sweep method as an alternative to consolidation.

Closes #2

Impact

Consolidating dust UTXOs to a new address may introduce address linkage.

Using OP_RETURN allows dust to be safely removed by converting it into miner fees, improving privacy.

Changes

  • Added --method flag to sweep command
  • Implemented op-return sweep strategy
  • Constructed OP_RETURN output for dust inputs
  • Disabled change output for OP_RETURN method
  • Added fee handling logic

Usage

dust-cleaner sweep --method op-return

@Jolah1

Jolah1 commented Apr 10, 2026

Copy link
Copy Markdown
Owner Author

LGTM

@Jolah1
Jolah1 merged commit 4b66bae into main Apr 10, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add OP_RETURN dust sweep method

1 participant