You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Implement (optional) BIP-0078PayJoin support in the bdk-cli wallet using the rust bip78 project. PayJoin transactions provides a way to collaboratively create a transaction with a receiver in a way that prevents on-chain surveillance from using the common input ownership heuristic. Adding this feature to the bdk-cli project will demonstrate to other wallet builders using bdk how to add PayJoin support.
Expected Outcomes
Integrate BIP-0078 functionality as an optional feature in bdk-cli using the rust bip78 crate
Contribute upstream to the rust bip78 project if any bugs or other issues are found
Document how to use new PayJoin functionality with bdk-cli and common services such as BTCPayServer
Could this be reviewed in separate send / receive portions? There is a CLI tool based on the bip78, actively maintained payjoin crate that would be straightforward to add to bdk-cli at this point.
Hi yes since this will be done by a summer of bitcoin student new to rust and bitcoin I'd like the idea of focusing on an easy win of adding send first. Then we can separately work on the receive side, and/or work on any open issues in the bip78 crate or the payjoin bin.
I went through the payjoin-client briefly, and it seems the send and recv logic is already there. The payjoin sending and receiving should be more involved than regular send/recv as it requires interaction with the sender. So makes sense to add a new send function.
This can be done as a separate send_payjoin and recv_payjoin function which takes in a bip21 URL and follows the logic of payjoin-client of the reference crate.
We can then feature gate it under a new payjoin feature and optional dependency on rust-payjoin.
This could be an extensive but achievable project for SOB. Pretty excited for this one. 😃
A look at Bitcoin Design Guide's case study might lend some inspiration. BlueWallet requires a bip21 to initiate a send no matter what and then prompts to confirm / change the amount. That user story could apply here as well.
The answer is not more options. If you feel compelled to add a preference that's exposed to the user, it's very possible you've made a wrong turn somewhere.
Reading in the required bip21 amount otherwise prompting seems to align with this philosophy.
@willowenss API looks good, but I agree with @DanGould we shouldn't need a required --amount option. Another way to handle confirmation in the case you don't want to be prompted is to have an optional -y option that skips the user confirmation prompt about the amount, without that option it would require the user to confirm.
This is how an option like that is documented for the apt-get command:
-y, --yes, --assume-yes
Automatic yes to prompts; assume "yes" as answer to all prompts and run non-interactively.
EDIT: But for now no need for a -y option, can add it later if needed, best to keep it simple if we can.
Activity
[-]Support payjoin[/-][+]Payjoin[/+]Merge pull request #67 from bitcoindevkit/allow-passing-a-fee-rate-wh…
[-]Payjoin[/-][+]Add Payjoin support[/+]notmandatory commentedon Mar 9, 2023
Moving this to
bdk-clisince this doesn't need to be part of the core bdk library, but still useful to have an example usingbdkin thebdk-clitool.DanGould commentedon Mar 10, 2023
Could this be reviewed in separate send / receive portions? There is a CLI tool based on the bip78, actively maintained
payjoincrate that would be straightforward to add tobdk-cliat this point.notmandatory commentedon Mar 11, 2023
Hi yes since this will be done by a summer of bitcoin student new to rust and bitcoin I'd like the idea of focusing on an easy win of adding send first. Then we can separately work on the receive side, and/or work on any open issues in the
bip78crate or thepayjoinbin.DanGould commentedon Mar 21, 2023
To get started on a sender CLI integration, check out this bitcoind payjoin-client cli based using the payjoin crate and this bdk + payjoin sender that's working in wasm at https://bitmask.app
rajarshimaitra commentedon Apr 13, 2023
Thanks @DanGould for the pointer to the new payjoin repo.
@notmandatory I think we should update the description to refer to https://github.com/payjoin/rust-payjoin, as that seemed more current.
I went through the
payjoin-clientbriefly, and it seems thesendandrecvlogic is already there. The payjoin sending and receiving should be more involved than regular send/recv as it requires interaction with the sender. So makes sense to add a new send function.This can be done as a separate
send_payjoinandrecv_payjoinfunction which takes in abip21URL and follows the logic ofpayjoin-clientof the reference crate.We can then feature gate it under a new
payjoinfeature and optional dependency onrust-payjoin.This could be an extensive but achievable project for SOB. Pretty excited for this one. 😃
DanGould commentedon Apr 13, 2023
I'm working on in-depth step-by-step documentation for both sender and receiver integrations. I figure it is appropriate to share here.
https://github.com/payjoin/rust-payjoin/pull/52/files?short_path=6a88930#diff-6a889308600e4d0b66f543c0d55b7b6238d10a6203f68ff79701f7cbaf8bbcad
10 remaining items
DanGould commentedon Jun 6, 2023
A look at Bitcoin Design Guide's case study might lend some inspiration. BlueWallet requires a bip21 to initiate a send no matter what and then prompts to confirm / change the amount. That user story could apply here as well.
I think Signal is an application design success story, so I find their contributing guidelines/development idology compelling. The first truth they find self evident is
Reading in the required bip21 amount otherwise prompting seems to align with this philosophy.
notmandatory commentedon Jun 7, 2023
@willowenss API looks good, but I agree with @DanGould we shouldn't need a required
--amountoption. Another way to handle confirmation in the case you don't want to be prompted is to have an optional-yoption that skips the user confirmation prompt about the amount, without that option it would require the user to confirm.This is how an option like that is documented for the
apt-getcommand:EDIT: But for now no need for a
-yoption, can add it later if needed, best to keep it simple if we can.spacebear21 commentedon Jan 5, 2026
#200 addressed this, though it would be nice to follow up with a persistence integration for true async payjoin support.
Merge #242: Payjoin persistence