If one third party person knows a BTC address that is part of an electrum wallet, can he generate the other bitcoin addresses in that wallet based on that one address?
No.
What if he knows multiple addresses, can he derive all addresses from that info?
No.
Or only the master public key can generate the addresses?
Yes.
How to keep the master public key hidden, so that nobody can know the addresses in that wallet? (because it's not protected like the private key)
Dont let anyone get your wallet file, which you should do anyway to avoid brute force attacks on your private keys.
Thanks, another quick question:
If a third party knows several addresses from the same electrum wallet, can he associate them with eachother, meaning that can he prove it that those addresses belong to the same wallet , without knowing the master pub key of course?
So if they know A , B ,C addresses that are in the same wallet, can he prove that A B C are derived from the same master public key without knowing the master pub key?
Dont let anyone get your wallet file, which you should do anyway to avoid brute force attacks on your private keys.
Interesting but what if it's an electrum watch-only address.
The watch only is derived from the pub key, however it doesnt contain the private key.
So they can still obtain the pub key if you watch your money from a watch only wallet, and that can hurt your privacy.