> Your wallet contains a private key that can prove ownership of "outputs" from previous transactions on the blockchain.
If that private key is compromised can law enforcement read your past transaction history?
And if law enforcement compromises the private key on the other side of the transaction can they connect the two of you, and all your prior mutual transactions?
Yes. This is intentional and required to make it possible to opt-in to revealing transaction information. This is useful and enables compliance with current regulations.
Of course you can delete that key if you want, and perhaps run multiple wallets with which you can transact with yourself
If that private key is compromised can law enforcement read your past transaction history?
And if law enforcement compromises the private key on the other side of the transaction can they connect the two of you, and all your prior mutual transactions?