Skip to content

Test watch-only LND wallet and signing PSBT #87

Closed

Description

@notmandatory

This issue is to do a proof of concept test with BDK to confirm BDK can create a watch-only wallet to monitor the LND UTXOs and generate a PSBT that can be signed by LND. This idea is based on a discussion I had with @nicolasburtey and @bodymindarts about doing a BDK based wallet microservice for Galoy, initially for batching payments.

Goal of this test:

  • Setup regtest bitcoind with LND and BDK-CLI
  • Create LND on-chain wallet and load with test coins
  • Setup BDK-CLI wallet to watch LND on-chain wallet (xpub descriptor)
  • Create batch spending PSBT with BDK-CLI
  • Sign and spend BDK-CLI generated PSBT with LND on-chain wallet

Activity

  1. added
    discussion
    on May 2, 2022
  2. self-assigned this
    on May 2, 2022
  3. added this to BDK PM Roadmapand BDK-CLI and removed this from BDK PM Roadmapon May 2, 2022
  4. moved this to Todo in BDK-CLIon May 2, 2022
  5. nicolasburtey commented on May 2, 2022

    @nicolasburtey

    thanks @notmandatory still on my todo to create the ticket. I guess some of the early context is here already, will write down the full spec of a potential batching service shortly.

  6. nicolasburtey commented on May 5, 2022

    @nicolasburtey

    could @sandipndev and @krtk6160 you look at this maybe?

  7. rajarshimaitra commented on May 11, 2022

    @rajarshimaitra
    Contributor

    I am interested in having this test too.. I am currently working on the final part of regtest-node feature where bdk-cli will be able to spawn a bitcoind and have rpc controller access to it.. In the same PR I am planning to include the integration test framework similar to #79. This will allow us to do programmatic integration testing for bdk-cli and whatever backend combinations we wanna use in rust code. Maybe LND will need a separate handler..

    So @sandipndev @krtk6160 if you guys wanna mingle on this hit me up in discord. The approach of my current testframework will also depend on what you guys will need on this specific case..

    And ideally we should have this test and all other similar types in CI too..

    That will serve two purpose

    • Give example demo of how to use bdk-cli in various scenarios..
    • Ensure bdk-cli (in turn bdk) behaviors are maintained..
  8. added a commit that references this issue on Sep 10, 2022
  9. notmandatory commented on May 28, 2025

    @notmandatory
    ContributorAuthor

    I believe the batching tool was already created in the Galoy team for this. It would still be good to create an example for how to use bdk-cli to create "batch spend" transactions. Closing this for now and will create a new issue for that.

  10. moved this from Todo to Done in BDK-CLIon May 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

discussion

Type

No type

Projects

  • Status
    Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions