The InterPlanetary File System (IPFS) has significantly transformed data storage and retrieval, offering decentralized solutions for managing data. However, a gap exists in its ability to support secure data sharing. This project introduces a novel scheme for secure, flexible, and decentralized data sharing in IPFS, leveraging blockchain technology and smart contracts.
架构图如下
- Decentralized File Systems: Utilizes IPFS for decentralized data storage.
- Blockchain Integration: Employs smart contracts for secure data transactions.
- Secure Data Sharing: Ensures data confidentiality using symmetric encryption and proxy re-encryption (PRE).
- Flexibility: Provides flexible data sharing capabilities, enabling data owners to control access.
- Cost-Effective: Designed to be economically viable within blockchain environments.
- Encryption: Data is encrypted by the data owner using symmetric encryption.
- Capsule Creation: Symmetric keys are capsuled using the data owner's public key.
- File Storing Contract: Encrypted data is uploaded to IPFS, and the CID and capsuled key are stored in the blockchain ledger.
- Re-Capsule Contract: Enables data sharing through re-encryption keys and computation of re-capsuled symmetric keys.
Instructions on how to set up and use the system in a local development environment.
Conducted in the Polygon test network Mumbai, our tests validate the performance and efficiency of the system. The results demonstrate the achievement of our goals - confidentiality, flexibility, and decentralization, at an affordable cost.
We welcome contributions from the community. Please read our contributing guidelines before submitting your pull requests.
- Interplanetary File System (IPFS)
- Polygon Test Network Mumbai
- Additional relevant references
This project is licensed under the MIT License - see the LICENSE file for details.
Developed as part of research on decentralized data sharing systems. For more details, refer to the accompanying research paper.