Data Privacy Protection in DeFi Protocols

Jiawei Zhu, Zhuangtong Huang, Yixin Xu, Jerome Yen, Ye WangarXiv 2022 · DOI

Abstract

Decentralized Finance (DeFi) currently relies on over-collateralization due to the inherent transparency of public blockchains, which prevents the secure use of private financial data. This paper proposes a multi-layered cryptographic framework that integrates off-chain sensitive data—such as credit scores—into DeFi protocols without exposing raw information. By combining asymmetric encryption, homomorphic encryption (HE), and zero-knowledge proofs (ZKPs), the protocol ensures data privacy and user anonymity while enabling more capital-efficient financial services.

Introduction: The Transparency Paradox

The "radical transparency" of blockchain technology is a foundational pillar of DeFi, serving as a primary defense against fraud. However, this transparency creates a significant barrier to sophisticated financial products. For instance, credit-based lending requires verifying a user's financial standing, but uploading such sensitive data to a public ledger would compromise personal privacy. Consequently, DeFi lending is largely restricted to "over-collateralized" models, where users must lock up assets exceeding the value of their loans. To transition toward under-collateralized or credit-based lending, the ecosystem requires a mechanism to verify private data without revealing it.

Proposed Methodology

The authors introduce a protocol involving four distinct actors: the User, Trusted Sources (e.g., traditional banks), a Relayer, and a Zero-Knowledge Proof Service Provider (ZKPSP). The architecture relies on three core cryptographic primitives:

  1. Asymmetric Encryption (RSA): Protects the user's blockchain identity. The user encrypts their address with the DeFi protocol’s public key, ensuring only the final service provider can link the verification to a specific account.
  2. Homomorphic Encryption (HE): Enables the Relayer to perform computations (e.g., aggregating balances from multiple sources) on encrypted data. The Relayer processes the data without ever seeing the underlying values.
  3. Zero-Knowledge Proofs (ZKP): The ZKPSP decrypts the aggregated sum (without knowing the user's identity) and generates a proof. This proof confirms to the DeFi protocol that the user meets specific criteria (e.g., "balance is between $X$ and $Y$") without disclosing the exact figures.

The workflow is divided into two phases: Asset Uploading, where data is double-encrypted and aggregated, and Asset Verification, where the ZKP is generated to update the DeFi service.

Comparative Analysis

The proposed framework distinguishes itself from existing privacy-preserving blockchain research by simultaneously addressing content confidentiality and functional validation on public chains.

Comparison of the proposed DeFi protocol against existing privacy-preserving blockchain solutions.

As shown in the table above, while various works address specific aspects of privacy or computation, the proposed protocol ("Our work") is uniquely positioned to support DeFi applications with full content confidentiality and integrated data validation functions on public blockchains.

Key Insights and Security Analysis

  • Structural Separation of Data: The protocol's primary innovation is the "No-Single-Entity" rule. By distributing data aggregation, computation, and verification across different stakeholders, the system eliminates "centralized honeypot" risks. No single party—Trusted Source, Relayer, or ZKPSP—possesses enough information to link a user’s identity to their raw financial data.
  • Capital Efficiency: Enabling private credit ratings on-chain allows DeFi to move beyond the "pawn shop" model toward a mature, credit-based system.
  • Regulatory and Cross-Border Utility: Because data remains encrypted and "unseen" during transmission, the protocol could facilitate international financial verification that currently faces legal hurdles due to strict data-sharing regulations.

Results and Robustness

The paper validates the architecture through formal security proofs (Lemmas and Theorems). Key findings include:

  • Compromise Resilience: An adversary compromising any single entity cannot link a user's identity to their precise assets.
  • Malicious User Resistance: The system prevents users from providing fraudulent addresses, as Trusted Sources validate identities before the encryption process begins.
  • DeFi Evolution: The framework successfully resolves the "transparency vs. privacy" paradox, supporting advanced use cases like installment-based NFT purchases.

Limitations and Future Directions

Despite its theoretical strengths, the protocol faces practical challenges. The computational overhead of homomorphic encryption and ZKP generation may lead to significant "gas costs" and latency on live networks like Ethereum. Furthermore, the system's integrity remains dependent on the initial "Trusted Sources"; if a bank provides false data, the downstream verification is inherently flawed. Future work will likely focus on optimizing these cryptographic operations for blockchain environments and standardizing the infrastructure required for multi-entity coordination.

Summary updated

BibTeX
@misc{zhu2022data,
  author = {Jiawei Zhu and Zhuangtong Huang and Yixin Xu and Jerome Yen and Ye Wang},
  title = {{Data Privacy Protection in DeFi Protocols}},
  year = {2022},
  eprint = {2211.16082},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2211.16082},
}
Figure