Skip to content

payjoin: exclude 0-conf inputs from receiver candidates - #3389

Merged
OmarHatem28 merged 1 commit into
cake-tech:devfrom
bc1cindy:payjoin-confirmed-inputs
Jul 10, 2026
Merged

OmarHatem28 merged 1 commit into
cake-tech:devfrom
bc1cindy:payjoin-confirmed-inputs

Conversation

@bc1cindy

@bc1cindy bc1cindy commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

the payjoin receiver's candidate list (getCandidateInputs → getUtxoWithPrivateKeys()) filtered only isSending && !isFrozen, never confirmation depth, so the receiver could contribute a 0-conf input, a temporal fingerprint (an unconfirmed-ancestor spend is observable and lets an analyst partition the payjoin's inputs by owner), and a 0-conf parent can be RBF'd out, invalidating the payjoin.

adds an opt-in confirmedOnly flag to getUtxoWithPrivateKeys, set only on the receiver candidate path. Scoped to payjoin receiving; signing and normal sends are unaffected.

ref: payjoin/rust-payjoin#1597 (comment)

closes #3388

@OmarHatem28 OmarHatem28 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yup, Thanks for updating it

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.

Payjoin receiver can contribute unconfirmed (0-conf) inputs

2 participants