Repository navigation
Warn against third-party broadcast checks - #2080
Merged
spacebear21 merged 1 commit intoNov 24, 2026
Merged
Conversation
Collaborator
Coverage Report for CI Build 45447841349Coverage remained the same at 87.769%Details
Uncovered ChangesNo uncovered changes found. Coverage RegressionsNo coverage regressions found. Coverage Stats
💛 - Coveralls |
arminsabouri
left a comment
Contributor
There was a problem hiding this comment.
Concept & Approach ACK
Thanks for adding this!
| /// | ||
| /// # Privacy | ||
| /// | ||
| /// Run the broadcast check against a node you control, for example with Bitcoin |
Contributor
There was a problem hiding this comment.
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.
Collaborator
Author
There was a problem hiding this comment.
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
force-pushed
the
broadcast-check-privacy-docs
branch
from
November 24, 2026 17:22
5512c1a to
f6d8d1c
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
# Privacynote is added to the v1 and v2UncheckedOriginalPayloaddocs, the FFI broadcast-check methods, and the FFICanBroadcasttrait.Tagging @spacebear21 for review.
Claude Code wrote this PR description and the doc changes.
Pull Request Checklist
Please confirm the following before requesting review: