Skip to content

bitcoind: Use Miniscript descriptors for the watchonly wallet #419

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

darosior
Copy link
Member

@darosior darosior commented Jul 6, 2022

Based on our #418.

This a PoC to demonstrate coin tracking by importing ranged Miniscript descriptors to bitcoind instead of addresses.
This uses:

I've tweaked the bitcoind used in CI to demonstrate all functional tests pass.

darosior added 3 commits July 6, 2022 19:16
By ignoring more entries that are obviously not the one we are looking for
- Don't generate a set of addresses to be imported, import the ranged
  Miniscript descriptors directly.
- Tell listsinceblock to list change, too (custom bitcoind patch). This
  is necessary because deposit addresses aren't part of bitcoind's
  address book anymore and we would otherwise fail to detect some
  deposits.
- Use the 'wallet_desc' field in listsinceblock entries to track coins,
  instead of the former labels imported along with the addresses.

This also cleans up the descriptor import routines.
@darosior darosior force-pushed the miniscript_new branch 8 times, most recently from 316d046 to 072f428 Compare July 11, 2022 14:36
@darosior
Copy link
Member Author

All upstream PRs were merged in order to support this. We'll be able to merge this PR once 24.0 is released.

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