Depending on your level of paranoia, you cannot assume that your xpub is safe anywhere.

A xpub is easy to spot if stored in plain file, so as long as a malicious OS process has read-access and can connect to the internet, all coinjoins are pointless.

Reply to this note

Please Login to reply.

Discussion

The problem is not your xpub in this case, but coordinator choosing other participants in a way that they know the xpubs. You could be safe and yet not really mixed.

I agree. The issue you're referring to is the degrading 'quality' of the mix.

I just wanted to point out that mixing quality goes straight to zero if the xpub gets into wrong hands. Obviously such a wallet should no longer be used.

The attack i mentioned does not degrade the quality of the mix. It also goes to zero immediately.

So you can do everything right, don't share xpub and you are not mixed either - at all.