Zero knowledge proofs, DIDs, and more could help DeFi protocols maintain regulatory compliance without exposing their users.