Skip to content

feat: minimal sweep WIF QR implementation#355

Open
otaliptus wants to merge 6 commits intobitcoindevkit:mainfrom
otaliptus:feat/wif-sweep-qr-minimal
Open

feat: minimal sweep WIF QR implementation#355
otaliptus wants to merge 6 commits intobitcoindevkit:mainfrom
otaliptus:feat/wif-sweep-qr-minimal

Conversation

@otaliptus
Copy link

@otaliptus otaliptus commented Feb 26, 2026

Description

This PR adds an example WIF sweep with a QR code (or copy-paste a raw WIF string). Given this is an example wallet app, I tried to keep the changes & functionality minimal.

The basic flow is as follows:

  1. Using a regular wallet address A, go to Send part (i.e. QR scan)
  2. Scan a WIF QR for B
  3. It detects all sweepable funds at B and broadcasts a transaction that sweeps the funds to A

Best way to test it is generating a WIF/address and sending some funds there, and sweeping it. Some example transactions on testnet4 can be seen here.

I can also send the WIF of some addresses to Discord, in case you want to try.

Notes to the reviewers

I've tried to work clean here but let me know if you have an alternative implementation/flow in mind please. Also tried to use as much as existing features from BDK & FFI, but open to suggestions.

*Also I was having some problems with launching the wallet upon having an existin

Checklists

All Submissions:

New Features:

  • I've added tests for the new feature
  • I've added docs for the new feature
  • UI changes tested on small, medium, and large devices to ensure layout consistency

@reez reez self-requested a review February 26, 2026 14:56
@otaliptus otaliptus marked this pull request as ready for review February 26, 2026 16:33
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.

1 participant