Skip to content

Warn against third-party broadcast checks - #2080

Merged
spacebear21 merged 1 commit into
payjoin:masterfrom
xstoicunicornx:broadcast-check-privacy-docs
Nov 24, 2026
Merged

spacebear21 merged 1 commit into
payjoin:masterfrom
xstoicunicornx:broadcast-check-privacy-docs

Conversation

@xstoicunicornx

Copy link
Copy Markdown
Collaborator

This warns receivers not to run the broadcast suitability check against a third-party backend. That backend can match the Original transaction to the payjoin and learn the receiver's inputs and the payment amount. The same # Privacy note is added to the v1 and v2 UncheckedOriginalPayload docs, the FFI broadcast-check methods, and the FFI CanBroadcast trait.

Tagging @spacebear21 for review.

Claude Code wrote this PR description and the doc changes.

Pull Request Checklist

Please confirm the following before requesting review:

@coveralls

coveralls commented Nov 24, 2026 •

Copy link
Copy Markdown
Collaborator

Coverage Report for CI Build 45447841349

Coverage remained the same at 87.769%

Details

  • Coverage remained the same as the base build.
  • Patch coverage: No coverable lines changed in this PR.
  • No coverage regressions found.

Uncovered Changes

No uncovered changes found.

Coverage Regressions

No coverage regressions found.


Coverage Stats

Coverage Status
Relevant Lines: 18567
Covered Lines: 16296
Line Coverage: 87.77%
Coverage Strength: 103.25 hits per line

💛 - Coveralls

@arminsabouri arminsabouri 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.

Concept & Approach ACK
Thanks for adding this!

Comment thread payjoin-ffi/src/receive/mod.rs Outdated
///
/// # Privacy
///
/// Run the broadcast check against a node you control, for example with Bitcoin

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.

nit:

Do not send the transaction to a third-party backend such as a public block explorer AP

It does't have to be a node you run more generally this can be stated as: "a resource you trust with your privacy" and then the rationale you have is correct.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Thanks good nit, taken.

The receiver's broadcast suitability check hands the Original PSBT's
transaction to the caller. If the caller tests it against a backend it
doesn't trust with its privacy, such as a public block explorer API,
that backend can later link it to the payjoin. Since both spend the
same sender inputs, it learns which inputs belong to the receiver and
the payment amount, which breaks payjoin's privacy model.

Document this on the v1 and v2 UncheckedOriginalPayload typestates, on
the FFI methods that expose the transaction, and on the FFI
CanBroadcast callback trait.
@xstoicunicornx
xstoicunicornx force-pushed the broadcast-check-privacy-docs branch from 5512c1a to f6d8d1c Compare November 24, 2026 17:22

@spacebear21 spacebear21 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

cACK

@spacebear21
spacebear21 merged commit ec98fea into payjoin:master Nov 24, 2026
35 of 36 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants