Skip to content

Include BDK integration tests in rust-payjoin #741

Open

Description

@spacebear21

Currently rust-payjoin uses bitcoind for integration tests, and payjoin-ffi uses BDK for its integration tests.

Instead, we can ensure compatibility with BDK by including it in tests at the rust-payjoin library level, and use simple bitcoind tests to test each binding layer.

See also the conversation in LtbLightning/payjoin-ffi#11

Activity

  1. shinghim commented on Jul 10, 2025

    @shinghim
    Contributor

    Does this mean duplicate the existing rust-payjoin tests that use bitcoind but for BDK, and vice versa for the binding layer tests?

  2. spacebear21 commented on Jul 10, 2025

    @spacebear21
    CollaboratorAuthor

    We just need to bring in the BDK test from payjoin-ffi into rust-payjoin. After #790 we will no longer really need to test the payjoin-ffi wrappers directly, instead we can just have integration tests in each generated language.

    I think it's beneficial to test BDK integration in the core rust-payjoin library since it's so commonly used in Rust projects, but for language bindings the tests are really just there to prove that the bindings work as intended and to provide example usage, so IMO it's fine to just use bitcoind for these.

  3. DanGould commented on May 6, 2026

    @DanGould
    Member

    payjoin shipping with bdk as a feature has come up in conversation with both users and bdk contributors more than a few times. It's a big bundle, but one that seems to have demand. post-1.0 I can see that being viable. That's where these integration tests belong, probably not in rust-payjoin since I imagine it's a big dev-dep to bring in. If this passes the smell test maybe it's time to convert this to a discussion and tag the BDK guys starting with @luisschwab about the viability of such a move.

    This is the type of move that's a cool project for someone cutting their teeth since it's beyond bots and it requires adept social manouvering across multiple teams, as well as the actual engineering to get the integration tests making the right trade-off between safety and convenience for the BDK team. There might be info to learn about testing at other integration touchpoints too (cc @benalleng for the QA topic, NOT suggesting you take this on rn)

    proposal: title switch "How to test BDK and rust-payjoin compatibility for potential bundling" and move to discussion

  4. luisschwab commented on May 11, 2026

    @luisschwab
    Contributor

    This should perhaps live on a payjoin-bdk/bdk-payjoin repo where you use a published version of bdk_wallet and payjoin as a git dep pointing to master. I think having this directly on the bdk_wallet repo would be a tough sell.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions