Attribute-Based Encryption With Payable Outsourced Decryption Using Blockchain and Responsive Zero Knowledge Proof

Dongliang Cai, Borui Chen, Liang Zhang, Kexin Li, Haibin KanarXiv 2024 · DOI

Abstract

Attribute-Based Encryption (ABE) provides fine-grained access control but imposes significant computational overhead on end-user devices. While outsourcing decryption to cloud services (DCS) alleviates this burden, it introduces trust and fairness issues. This paper proposes CP-POABE, a blockchain-based system that utilizes "optimistic" verification and Responsive Zero-Knowledge Proofs (ZKP) to ensure verifiable and fair outsourced decryption. By assuming honesty by default and only requiring proofs during challenges, the system achieves up to 140x reduction in on-chain gas costs compared to state-of-the-art methods while maintaining constant verification costs.

Introduction

Attribute-Based Encryption (ABE) allows data to be encrypted such that only users with specific attributes (e.g., "Doctor" and "Cardiology") can decrypt it. However, the mathematical complexity of ABE decryption—specifically the "pairing" operations—grows linearly with the complexity of the access policy. For resource-constrained mobile or IoT devices, this "pairing tax" is often prohibitive.

Outsourced Decryption (OABE) was developed to shift this workload to a Decryption Cloud Service (DCS). However, existing OABE schemes often struggle with three main issues: ciphertext bloat due to verification tags, high on-chain verification costs, and a lack of "exemptibility"—the ability to protect an honest DCS from false accusations while ensuring they are paid fairly.

System Architecture and Workflow

The proposed CP-POABE system integrates IPFS for storage, Ethereum for orchestration and payment, and ZKPs for verification. The architecture involves four primary entities: the Data Owner, the Data User, the Decryption Cloud Server (DCS) network, and Challengers.

System architecture and workflow of the CP-POABE scheme, illustrating the interaction between users, cloud servers, and the blockchain.

The workflow proceeds as follows:

  1. The Data Owner uploads ciphertext to IPFS.
  2. The Data User retrieves the ciphertext and submits a decryption task.
  3. Task data is stored on IPFS, and its hash is recorded on the Blockchain.
  4. The DCS retrieves the task, performs the transformation, and submits the result to the blockchain.
  5. If the result is undisputed, the DCS is rewarded. If a Challenger disputes the result, the DCS must provide a Responsive ZKP to prove correctness.

Methods: Optimistic Verification and Responsive ZKP

The core innovation of CP-POABE is its "optimistic" approach to verification. Instead of verifying every decryption result on-chain, the system assumes the DCS is honest. A "challenge window" allows any party to dispute a result.

If challenged, the DCS generates a ZKP using the Halo2 framework (based on Plonk). This proof demonstrates that the transformation was mathematically correct without revealing sensitive data. To optimize this process, the authors modified the standard OABE transformation algorithm to be "ZK-friendly," removing operations like divisions and inverses that are computationally expensive to prove in a ZK circuit.

Smart contracts on Ethereum manage the "challenge game," handling token staking to prevent spam and automating rewards or slashing based on the validity of the ZKP.

Performance Evaluation

The system was evaluated using synthetic access policies (5 to 60 attributes) and simulated on an Ethereum Hardhat network.

  • Gas Efficiency: In the "happy case" (no challenge), gas usage is 11x to 140x lower than previous leading schemes. Even when a challenge occurs, the cost remains 4x to 55x lower due to the efficiency of Plonk-based verification.
  • Constant Verification: The cost to verify a proof on-chain is constant, regardless of the access policy's complexity.
  • User Experience: End-user decryption time remains consistently low at approximately 2.6ms, as the heavy lifting is successfully offloaded.

Conclusion

CP-POABE addresses the efficiency and trust gaps in outsourced ABE decryption. By combining blockchain-based game theory with responsive ZKPs, it provides a scalable, fair, and cost-effective solution for secure data sharing. Future work will focus on reducing the latency of proof generation to support real-time applications.

Summary updated

BibTeX
@misc{cai2024attribute,
  author = {Dongliang Cai and Borui Chen and Liang Zhang and Kexin Li and Haibin Kan},
  title = {{Attribute-Based Encryption With Payable Outsourced Decryption Using Blockchain and Responsive Zero Knowledge Proof}},
  year = {2024},
  eprint = {2411.03844},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2411.03844},
}
Figure