| Blockchain technology is a successful application in the field of distributed information technology,which has been widely recognized in various industries.Blockchain technology provides new ideas for solving the problems of user trust and single point of failure in the traditional centralized model,and uses distributed storage systems such as the Interplanetary File System(IPFS)to reduce block size.Storage cost of chain data.However,IPFS itself does not have the function of data encryption protection.The data submitted to IPFS will be disclosed to all participating nodes,and the IPFS data transmission process in the blockchain environment will face the risk of data leakage.Therefore,for the security sharing of IPFS data on the blockchain,the research content and specific work of this paper are as follows.(1)A proxy re-encryption data sharing model in the blockchain environment based on zero-knowledge proof is proposed.In the case of untimely data sharing,zero-knowledge proof is used to verify the identity of IPFS data access users on the blockchain,so that IPFS third-party authorization services can prevent similar denial-of-service attacks,and IPFS data encryption transmission services on the blockchain can be realized through proxy re-encryption.Solve the security problem of untimely IPFS data sharing on the blockchain.(2)A blockchain data sharing model based on DH key exchange protocol is proposed.In the case of timely data sharing,by constructing a trusted and secure key between users on the blockchain,the traceability and verifiability of the key are realized,and the security problem of blockchain IPFS data sharing in a timely manner can be effectively solved.(3)Design and implement a blockchain data sharing system based on IPFS.The test shows that the system model is feasible and realizes the safe sharing of data in the blockchain environment. |