Skip to content

doc: Add privacy.md consolidating network privacy recommendations - #35858

Draft
pablomartin4btc wants to merge 2 commits into
bitcoin:masterfrom
pablomartin4btc:doc/privacy
Draft

pablomartin4btc wants to merge 2 commits into
bitcoin:masterfrom
pablomartin4btc:doc/privacy

Conversation

@pablomartin4btc

@pablomartin4btc pablomartin4btc commented Aug 1, 2026 •

Copy link
Copy Markdown
Member

Suggested by ismaelsadeeq in #29415.

Creates doc/privacy.md as a single home for Bitcoin Core's privacy tools for transaction broadcasting and network connectivity.

  • Commit 1: Move the "Privacy recommendations" sections from doc/tor.md and doc/i2p.md into privacy.md, replacing them with pointers. The two files contained the same multi-network unlinkability warning duplicated verbatim; this consolidation removes the duplication. No content changes.

  • Commit 2: Add a "Transaction broadcasting privacy" section documenting -privatebroadcast, its prerequisites (Tor or I2P), current scope (sendrawtransaction only, with a link to the tracking issue for planned wallet-level support), and the related RPCs (getprivatebroadcastinfo, abortprivatebroadcast).

Move the "Privacy recommendations" sections from doc/tor.md and
doc/i2p.md into a new doc/privacy.md, replacing them with pointers.
The two files contained overlapping advice (the multi-network
unlinkability warning was duplicated verbatim); consolidating them
removes the duplication and gives privacy guidance a single home.

No behaviour changes; this is a pure documentation refactor.
Add a "Transaction broadcasting privacy" section explaining how
-privatebroadcast works, its prerequisites (Tor or I2P), current scope
(sendrawtransaction only, with a link to the tracking issue for
planned wallet-level support), and the two related RPCs
(getprivatebroadcastinfo, abortprivatebroadcast).

Update the pointers in doc/tor.md and doc/i2p.md to mention private
transaction broadcasting.
@DrahtBot DrahtBot added the Docs label Aug 1, 2026
@DrahtBot

DrahtBot commented Aug 1, 2026 •

Copy link
Copy Markdown
Contributor

The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

External sites

Reviews

See the guideline and AI policy for information on the review process.

Type Reviewers
ACK vasild
Concept ACK jonatack

If your review is incorrectly listed, please copy-paste <!--meta-tag:bot-skip--> into the comment that the bot should ignore.

Conflicts

No conflicts as of last run.

@pablomartin4btc pablomartin4btc changed the title doc: Add privacy.md consolidating network privacy recommendations and documenting -privatebroadcast doc: Add privacy.md consolidating network privacy recommendations Aug 1, 2026
@pablomartin4btc

Copy link
Copy Markdown
Member Author

Gently pinging @ismaelsadeeq and @vasild — this follows up on the new privacy.md consolidation suggested during review of #29415, and covers the -privatebroadcast feature from that PR. Happy to adjust scope or wording based on your feedback.

@jonatack jonatack left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Concept ACK

Comment thread doc/privacy.md
adversary that can connect to your node on multiple networks may be able to
correlate those identities by observing shared runtime characteristics. It is
not recommended to expose your node over multiple networks if you require
unlinkability across those identities.

@jonatack jonatack Aug 28, 2026 •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

under certain conditions...may be able to correlate those identities

IIRC this came from a study of nodes running over both IPv4 and Tor. As I pointed out in the PR that added this note, people running their node over Tor are probably much more likely to use I2P as a second network than clearnet (I can go into why if needed). However, that review and other suggestions from me were ignored.

It would thus be more helpful to describe (a) what those "certain conditions" are, and (b) clarify the more frequently used case of Tor + I2P

As-is, (and it isn't your fault), I think this note is incomplete (and perhaps misleading).

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Ok, I see that the thread you are referring to is this one. I agree that we could expand a bit on those circumstances and the risks that would be involved. I'll investigate a bit and see if I can come up with something else to add that I hope could help. Thanks!

@pablomartin4btc

Copy link
Copy Markdown
Member Author

Drafted due to a new approach defined in #36608, perhaps would be better to close this.

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

ACK 1b07681

Show Signature
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

ACK 1b07681dfebffe4e31dd92042c5ba8493a5cf9b7
-----BEGIN PGP SIGNATURE-----

iQRPBAEBCAA5FiEE5k2NRWFNsHVF2czBVN8G9ktVy78FAmrr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WuP2pxlDPo9YI1y3bq52Blf0ZXaQGwPGIB1nYNv8SXhz422x
9aBNt47hbfINdX1/Kx98LWWClpOLgHHpv5tCLViuEO44ptR/gBnP4W6uoURMPyEc
LxeYfFzgsv5veksXzMOjKHu+K2TDjKu1ivPvEieM0qjoOgSi4zd0S6Y1PD+hJnLm
bgNCEP/+qdu/o3jXSM2SE3gNk2DZrDITbHfWNqKRk0t7IsiOTMdOGlompxdwUFkJ
gz60bliWbaMRTPL0XU0GfbrQwGFytp9xXpjWpBweyUdbOqtGMIhGPKKpKRB2dGWa
3HtMS5FDi34IsAhtKFKnyT/TRcTlfVniHGkvJQwYpKXuk9F/z86v/EojVdaaagZ9
Qug=
=Gj5W
-----END PGP SIGNATURE-----

vasild's public key is on openpgp.org

Comment thread doc/privacy.md
## Transaction broadcasting privacy

By default, when Bitcoin Core submits a transaction to the network it announces
it to all connected peers. This allows any peer to correlate the transaction

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.

It is not "any" peer. That is, a single node being a recipient just sees an incoming transaction and they cannot tell if this is the originator or somebody relaying it. Maybe reword to something like:

This allows any peer an actor with many connections to many nodes to correlate...

Comment thread doc/privacy.md
privately through a short-lived Tor or I2P connection, without putting them
in the local mempool first. The transaction reaches the wider network only
once a recipient relays it, which prevents linking the submission to the
node's IP address.

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.

Suggested change
node's IP address.
node's identify.

Even if a node runs only on Tor+I2P and thus has concealed their IP address, it still has some identity which is protected by -privatebroadcast.

Comment thread doc/privacy.md
Comment on lines +32 to +34
regardless of this setting. Wallet-level private broadcast is not yet supported;
see the [private broadcast tracking issue](https://github.com/bitcoin/bitcoin/issues/34476)
for planned extensions.

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.

Suggested change
regardless of this setting. Wallet-level private broadcast is not yet supported;
see the [private broadcast tracking issue](https://github.com/bitcoin/bitcoin/issues/34476)
for planned extensions.
regardless of this setting. Wallet-level private broadcast is not yet supported.

I closed the issue: #34476 (comment)

@DrahtBot
DrahtBot requested a review from jonatack November 4, 2026 13:39
Comment thread doc/privacy.md

Transactions submitted via the `sendrawtransaction` RPC can be broadcast
privately through a short-lived Tor or I2P connection, without putting them
in the local mempool first. The transaction reaches the wider network only

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

The core of the claim is that our node is meant to act the same as any other, that we will not tell our peers about the tx until we hear about it over p2p. We don't know if it reaches the "wider network", as the recipient may be an adversary. We just don't want our node to act differently than any other node.

@fanquake

Copy link
Copy Markdown
Member

Drafted due to a new approach defined in #36608,

That PR has now been closed.

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants