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

Draft
pablomartin4btc wants to merge 2 commits from doc/privacy into master AGit
pablomartin4btc commented 2026-08-01 03:49:46 +00:00 (Migrated from github.com)

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).

[Suggested](https://github.com/bitcoin/bitcoin/pull/29415/changes#r2190771746) 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`).
DrahtBot commented 2026-08-01 03:49:52 +00:00 (Migrated from github.com)

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.

<!--e57a25ab6845829454e8d69fc972939a--> The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. <!--006a51241073e994b41acfe9ec718e94--> ### External sites * Code coverage & benchmarks: https://corecheck.dev/bitcoin/bitcoin/pulls/35858 * Ralph review <img src=https://review.fish.foo/assets/bitcoin/bitcoin/35858.png alt="Ralph review status"> https://git.fish.foo/bitcoin/bitcoin/pulls/35858#author-ralph <!--021abf342d371248e50ceaed478a90ca--> ### Reviews See [the guideline](https://github.com/bitcoin/bitcoin/blob/master/CONTRIBUTING.md#code-review) and [AI policy](https://github.com/bitcoin/bitcoin/blob/master/doc/AI_POLICY.md) for information on the review process. | Type | Reviewers | | ---- | --------- | | ACK | [vasild](https://github.com/bitcoin/bitcoin/pull/35858#pullrequestreview-5769106021) | | Concept ACK | [jonatack](https://github.com/bitcoin/bitcoin/pull/35858#pullrequestreview-5055285409) | If your review is incorrectly listed, please copy-paste <code>&lt;!--meta-tag:bot-skip--&gt;</code> into the comment that the bot should ignore. <!--174a7506f384e20aa4161008e828411d--> ### Conflicts No conflicts as of last run. <!--5faf32d7da4f0f540f40219e4f7537a3-->
pablomartin4btc commented 2026-08-28 21:11:16 +00:00 (Migrated from github.com)

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.

Gently pinging @ismaelsadeeq and @vasild — this follows up on the new `privacy.md` consolidation [suggested](https://github.com/bitcoin/bitcoin/pull/29415#discussion_r2190771746) during review of #29415, and covers the `-privatebroadcast` feature from that PR. Happy to adjust scope or wording based on your feedback.
jonatack (Migrated from github.com) reviewed 2026-08-28 21:38:38 +00:00
jonatack (Migrated from github.com) left a comment

Concept ACK

Concept ACK
jonatack (Migrated from github.com) commented 2026-08-28 21:38:29 +00:00

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).

> 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).
pablomartin4btc (Migrated from github.com) reviewed 2026-08-29 03:07:14 +00:00
pablomartin4btc (Migrated from github.com) commented 2026-08-29 03:07:14 +00:00

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!

Ok, I see that the thread you are referring to is [this](https://github.com/bitcoin/bitcoin/pull/33750#discussion_r2482683578) 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!
First-time contributor

🟠 Minor · Wallet rebroadcast can later announce privately broadcast transactions to all peers

The guide overstates origin concealment: an unconfirmed transaction involving a loaded wallet may be rebroadcast to all peers when wallet broadcasting is enabled.

Location: doc/privacy.md:14 (head).

🔵 Suggestion · Scope paragraph omits submitpackage’s standard broadcast behavior

The scope paragraph may lead package submitters to assume -privatebroadcast applies, although submitpackage broadcasts package transactions to all peers.

Location: doc/privacy.md:30 (head).

🔵 Suggestion · Private broadcast destinations are described too narrowly

The guide describes a single Tor or I2P connection, but each transaction uses several peers, including potentially clearnet peers reached through Tor.

Location: doc/privacy.md:12 (head).

🔵 Suggestion · Prerequisites omit a Tor setup route, the -connect conflict, and what reachability means

The guide omits startup errors users can encounter and may imply that a successful sendrawtransaction confirms Tor or I2P connectivity.

Location: doc/privacy.md:25 (head).

🔵 Suggestion · Privacy guide omits the -proxyrandomize caveat

Users who disable -proxyrandomize receive no guidance that private-broadcast Tor circuits may be correlated with their other Tor connections.

Location: doc/privacy.md:25 (head).

Review coverage was incomplete.


Reviewed: 1b07681dfebf · Full review report · Previous reports

<!-- forgejo-review-bot:bitcoin/bitcoin --> <!-- ralph-engine:current:6f232c871bca65facadc248ad7ecd634f87b0b5f6936bc30593af890589888f1:0cfbbc826fdd30e42f35c9a5b7d389c0902089c94f2400654bb32123e69823f6 --> <!-- ralph-base:6ed5aad06111177c39f9b9f07a52634476380ae1 --> <!-- ralph-head:1b07681dfebffe4e31dd92042c5ba8493a5cf9b7 --> <!-- ralph-case:398839bcb6af79e687acd12299dcaaaf2cc35bef21cdd3f06d66b252df5d3365 --> **🟠 Minor · Wallet rebroadcast can later announce privately broadcast transactions to all peers** The guide overstates origin concealment: an unconfirmed transaction involving a loaded wallet may be rebroadcast to all peers when wallet broadcasting is enabled. Location: [`doc/privacy.md:14`](<https://git.fish.foo/bitcoin/bitcoin/src/commit/1b07681dfebffe4e31dd92042c5ba8493a5cf9b7/doc/privacy.md#L14>) (head). **🔵 Suggestion · Scope paragraph omits `submitpackage`’s standard broadcast behavior** The scope paragraph may lead package submitters to assume `-privatebroadcast` applies, although `submitpackage` broadcasts package transactions to all peers. Location: [`doc/privacy.md:30`](<https://git.fish.foo/bitcoin/bitcoin/src/commit/1b07681dfebffe4e31dd92042c5ba8493a5cf9b7/doc/privacy.md#L30>) (head). **🔵 Suggestion · Private broadcast destinations are described too narrowly** The guide describes a single Tor or I2P connection, but each transaction uses several peers, including potentially clearnet peers reached through Tor. Location: [`doc/privacy.md:12`](<https://git.fish.foo/bitcoin/bitcoin/src/commit/1b07681dfebffe4e31dd92042c5ba8493a5cf9b7/doc/privacy.md#L12>) (head). **🔵 Suggestion · Prerequisites omit a Tor setup route, the `-connect` conflict, and what reachability means** The guide omits startup errors users can encounter and may imply that a successful `sendrawtransaction` confirms Tor or I2P connectivity. Location: [`doc/privacy.md:25`](<https://git.fish.foo/bitcoin/bitcoin/src/commit/1b07681dfebffe4e31dd92042c5ba8493a5cf9b7/doc/privacy.md#L25>) (head). **🔵 Suggestion · Privacy guide omits the `-proxyrandomize` caveat** Users who disable `-proxyrandomize` receive no guidance that private-broadcast Tor circuits may be correlated with their other Tor connections. Location: [`doc/privacy.md:25`](<https://git.fish.foo/bitcoin/bitcoin/src/commit/1b07681dfebffe4e31dd92042c5ba8493a5cf9b7/doc/privacy.md#L25>) (head). Review coverage was incomplete. <!-- Review tier: sensitive --> --- Reviewed: [`1b07681dfebf`](<https://git.fish.foo/bitcoin/bitcoin/commit/1b07681dfebffe4e31dd92042c5ba8493a5cf9b7>) · [Full review report](<https://review.fish.foo/traces/35858-1b07681dfebffe4e31dd92042c5ba8493a5cf9b7-1722-3.html>) · [Previous reports](<https://review.fish.foo/traces/35858/>)
pablomartin4btc commented 2026-10-29 18:24:04 +00:00 (Migrated from github.com)

Drafted due to a new approach defined in https://github.com/bitcoin/bitcoin/pull/36608, perhaps would be better to close this.

Drafted due to a new approach defined in https://github.com/bitcoin/bitcoin/pull/36608, perhaps would be better to close this.
vasild (Migrated from github.com) approved these changes 2026-11-04 13:39:27 +00:00
vasild (Migrated from github.com) left a comment

ACK 1b07681dfe

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

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

iQRPBAEBCAA5FiEE5k2NRWFNsHVF2czBVN8G9ktVy78FAmrrNW8bFIAAAAAABAAO
bWFudTIsMi41KzEuMTIsMiwzAAoJEFTfBvZLVcu/feEgAIjLspYUFF/FPH0sp+jx
fbKvlcKfcX+0/sSSeOjFABB8I0Yfs39wSFtv8ub4dWVIAWLcDRHFRxodIrrrLKsf
guiUJtiGik0skrUlxhygVySK/omegYp8F7vwfyLRepGnAHqc9mOQX8wVsKnnOvcc
EtDCJEL/lhwfvYZMOfCpwGFVdzleob2uCy/6XxhoFJDHOyr3Yg2PiCbGlv1PV4rd
JDiUP4Lk2R32f/AubE+jhE7T+o7cQx6r9AvTPQDybSve/oz8YJ2BsTPj1+Tfmeyq
x7t2JW/QkvujFJF2blcUhD/yTSIcXMDe5zZNIhcbbDKZmEJ5Q9nu0dY+B09aO6JD
3K7QLTdaKtOLKUx1dp7mc0pAyHG8DHJKS3fF+vMwyws1dnM4Nth1pvvfEjjewgVa
ZF+q5hmEAerWuLhJ77qpgo+bQ7lXJgTXoPHJzsMrsZU8vR9vooJ0p6ZO66YhPTao
RHT3Q9uJlreWoBCsQMnpPdkaGzKTh4sLCE0SOv8QM4T1R395A6jELoOwhBujOM19
ImmL8wECv+7CjIkbwhmxBnDh4Y/SQdUhj09nRLpzdrq/21F1c9KcI8MWlDa53AqG
VsyxWxMDMVI4xBNtHZM1PfmukWRky42ar+WQD2dyWNYpHzqLM0V/RCe9F8x5eobP
fBHeS2iKt8Ogg3Oc1uWFv8rLZIfTBan3Rk1N5hywCsgyNO6FapO215ajmg873vbC
mzpHAIY+iLzOQU4lTf+Q0TYBHXpaoViu7ErX0JOjAoB/k6X7MQvb3geSUahNPcGd
v7hO1x2mHCuWyxhaMpfQORd/xv070VMb7GlbrFuBQDQOu3Mb+qcWv3pT1XUyo9Vx
Hww/3eE8my8fmu/+O56C++C2CYnks+Au12DXDnxqyATa24uWGRGO4RuwQBsGx+y8
c/9GW6gHQ3EYMlCVkaXQZuBLGjAysaMi9eamOpO4al8RdoH3Z04XLq6l4SoEuj1M
mOMACJkvjuH3nV+2WuP2pxlDPo9YI1y3bq52Blf0ZXaQGwPGIB1nYNv8SXhz422x
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

ACK 1b07681dfebffe4e31dd92042c5ba8493a5cf9b7 <details> <summary>Show Signature</summary> ``` -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 ACK 1b07681dfebffe4e31dd92042c5ba8493a5cf9b7 -----BEGIN PGP SIGNATURE----- iQRPBAEBCAA5FiEE5k2NRWFNsHVF2czBVN8G9ktVy78FAmrrNW8bFIAAAAAABAAO bWFudTIsMi41KzEuMTIsMiwzAAoJEFTfBvZLVcu/feEgAIjLspYUFF/FPH0sp+jx fbKvlcKfcX+0/sSSeOjFABB8I0Yfs39wSFtv8ub4dWVIAWLcDRHFRxodIrrrLKsf guiUJtiGik0skrUlxhygVySK/omegYp8F7vwfyLRepGnAHqc9mOQX8wVsKnnOvcc EtDCJEL/lhwfvYZMOfCpwGFVdzleob2uCy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TPL0XU0GfbrQwGFytp9xXpjWpBweyUdbOqtGMIhGPKKpKRB2dGWa 3HtMS5FDi34IsAhtKFKnyT/TRcTlfVniHGkvJQwYpKXuk9F/z86v/EojVdaaagZ9 Qug= =Gj5W -----END PGP SIGNATURE----- ``` vasild's public key is [on openpgp.org](https://keys.openpgp.org/vks/v1/by-fingerprint/850E138BA9C0923881DFD55FCE712013582E2230) </details>
vasild (Migrated from github.com) commented 2026-11-04 13:26:44 +00:00

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

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...
vasild (Migrated from github.com) commented 2026-11-04 13:33:17 +00:00
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.

```suggestion 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`.
Lines 34-36
vasild (Migrated from github.com) commented 2026-11-04 13:35:34 +00:00
regardless of this setting. Wallet-level private broadcast is not yet supported.

I closed the issue: https://github.com/bitcoin/bitcoin/issues/34476#issuecomment-6012629426

```suggestion regardless of this setting. Wallet-level private broadcast is not yet supported. ``` I closed the issue: https://github.com/bitcoin/bitcoin/issues/34476#issuecomment-6012629426
instagibbs (Migrated from github.com) reviewed 2026-11-04 18:14:15 +00:00
instagibbs (Migrated from github.com) commented 2026-11-04 18:14:15 +00:00

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.

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 commented 2026-11-30 11:38:16 +00:00 (Migrated from github.com)
> Drafted due to a new approach defined in https://github.com/bitcoin/bitcoin/pull/36608, That PR has now been closed.
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
bitcoin/bitcoin!35858
No description provided.