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