Font Size: a A A

Distributed File Storage And Secure Access System Based On IPFS And Ethereum

Posted on:2023-05-13Degree:MasterType:Thesis
Country:ChinaCandidate:W J YinFull Text:PDF
GTID:2558306914473574Subject:Electronic and communication engineering
Abstract/Summary:PDF Full Text Request
The rapid development of Internet technology has greatly influenced the development and working methods of social productivity,using it to download documents or transfer information,is becoming the dependence of people to produce life.However,the current Internet information transmission is built on the HTTP(Hyper Text Transfer Protocol,Hyper Text Transfer Protocol)protocol.As the carrier is continuously rising,the drawback of HTTP has gradually appeared:First,the data is concentrated on the server,get Downloading the files every time you need to download from the centralized server,resulting in a limit of download and upload speed,and low efficiency.Second,for the server,since the storage cost is expensive,the data has a certain lifecycle,and some web files will be regularly deleted,and persistence is not allowed;the third is the encryption effect of HTTP,and the information leakage cannot be avoid.Based on the above problems,this paper implements file distributed storage based on a new information transmission protocol-IPFS(Inter-Planetary File System,Star File System),using the Ethereum encryption mechanism and timestamp protection information,compared The Internet transport mechanism under the HTTP protocol has enhanced the security of information and implemented distributed storage.The main research content and innovation achievements in this article are as follows:(1)A communication storage system based on IPFS and Ethereum has been established.This system realizes a distributed communication storage system by building IPFS private nodes and Ethereum private chain,using distributed nodes to realize a distributed communication storage mechanism,processing data on IPFS through multiple nodes,putting immutable IPFS links into Ethereum transactions,using encryption Algorithms and timestamps protect the content,combine the distributed storage of IPFS and the security of Ethereum,and realize the DApp(Decentralization Application,decentralized application).Each edge layer node can obtain the file hash value uploaded to the IPFS system and store it in the Ethereum node,each node completes the interaction with the DApp through MetaMask(an Ethereum wallet),thus completing the IPFS and Ethereum-based The establishment of the communication storage mechanism of the workshop.(2)Based on MySQL database,the tag management of transaction data information is realized.Upload data on any IPFS node,put the IPFS link into the Ethereum transaction,use the IPFS and Ethereum communication storage system to obtain the IPFS hash value,ETH contract address,transaction hash,block value and Gas usage value,package the data,and formulate The unique label is stored in the database by using the label,and the addition,deletion,modification and checking of the label are carried out by using the management characteristics of the MySQL database,which realizes the standardized management of information data.(3)IPFS secure access and storage strategy optimization,the P2P network in IPFS uses a distributed hash table(DHT),which is a distributed system based on key-value pairs,but due to its large redundancy factor value and insufficient data storage strategy Flexibility makes it unsuitable for storing large data.This paper designs a new storage strategy,which is designed and implemented at the data access layer to accurately manage system data and backups.Through this storage strategy,the data access layer will Storage of data,including data that is used less frequently,enables the system to store all data long-term,which ensures the availability of potentially valuable data.Finally,this paper tests the IPFS and Ethereum communication storage system based on MySQL database management under laboratory network conditions,and the experiment shows that the system is feasible.
Keywords/Search Tags:IPFS, Ethereum, Distributed Storage, Database Management
PDF Full Text Request
Related items