Repository navigation
Conversation
This removes a very straightforward fingerprinting vector: Anyone could request the most recent tip as a compact block via getdata(MSG_CMPCT_BLOCK) over a clearnet and a tor connection and then compare the nonces - if they match it's likely the same peer.
|
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. External sites
ReviewsSee the guideline and AI policy for information on the review process.
If your review is incorrectly listed, please copy-paste ConflictsReviewers, this pull request conflicts with the following ones:
If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first. |
|
concept ACK |
|
The Ralph comment reminds me of an old conversation:
So maybe we should revisit it with this PR, which also affects outbounds? |
|
Concept ACK |
1 similar comment
|
Concept ACK |
|
@davidgumberg how would this work together with prefilling? |

This issue was reported by ajtowns on IRC some time ago.
For compact blocks, when we serve the last compact block from cache, we use a single nonce for all peers currently.
This means anyone can request the most recent tip as a compact block via
getdata(MSG_CMPCT_BLOCK)over a clearnet and a tor connection and then compare the nonces - if they match it's the same node.Fix this by using a different nonce per network/bind (
CNode::m_network_key).This means a little bit more work in
NewPoWValidBlockwhere we will now createCBlockHeaderAndShortTxIDsobjects for each network on which a peer has made us their hb peer. More instances may be created later when serving non-hb peers viaGETDATA. Note that while on master, theCBlockHeaderAndShortTxIDswas created eagerly, and its serialization lazily, we now create both objects lazily.From a high-level point of view, there are various remaining fingerprinting vectors even with this fix, some hard to fix, but I do think that we should be fixing at least the most obvious ones.