We now have zero-knowledge proofs, blinding, homomorphic encryption and many other tried and tested techniques that can use to keep data private in normal circumstances but that can reveal it in special circumstances, such as the production of court order.