How anonymous pubsub is

  1. Is there way for recipient of pubsub message to see node id that sent the pubsub message into particular channel?

  2. Is there way for regular node that receives pubsub message (for any reason) from other node to find out whether the other node is original sender or just relay?

Thank you!

1 Like

Not at all. The sender signs all messages with the same key used to generate their peer ID.

Note: If you’re trying to detect the source IP address for a message, you’ll have to try to find the source peer in the DHT. There’s no guarantee you’ll be able to do that or that the peer will actually exist in the DHT.

What measures can a message sending node take to make sure it will not get into DHT?

In other words, what sender might do to ensure it will not be traced?

So, it’s theoretically possible to use IPFS/pubsub anonymously.

Unfortunately, it’s not just a matter of flipping a switch somewhere.
This is one of those things where you need a complete understanding of
how libp2p/pubsub/ipfs works to implement a correct solution.