| In recent years,with the rapid development of China’s economy and the continuous improvement of government subsidy policies,China’s car ownership has increased year by year.In public areas with dense floating populations,due to the shortage of public parking space resources,problems such as road congestion and parking difficulties are becoming increasingly serious,which further affects people’s quality of life.Research has found that today’s parking management systems mainly serve public parking lots,while private parking spaces are often idle on weekdays.In this situation,improving the resource utilization rate of private parking spaces becomes one of the important ways to alleviate parking difficulties.Current parking management systems have some drawbacks,such as insufficient transparency of parking space information and inability to provide credible transaction vouchers.At the same time,some existing parking space sharing service platforms are highly centralized,which may disclose user privacy when the server is attacked.In this thesis,a new method is proposed to solve the above problems.Use blockchain technology to build a private parking space sharing system,and use smart contracts to complete the required operations to improve service efficiency.This method is both stable and efficient,and to some extent improves trust.At the same time,the system also adopts decentralized storage technology to achieve distributed storage and sharing of data,avoiding potential security risks caused by centralized data storage.The system can improve the resource utilization rate of private parking spaces,alleviate the parking difficulties caused by the lack of public parking space resources,and improve people’s quality of life.The main research results of this article are as follows:(1)A private parking space sharing system based on blockchain and IPFS has been constructed.The underlying network operating environment of this system is established by the Ethereum platform.Since the entire system has only one type of user,who can be either a parking lot owner or a car owner,the system designs system functional modules for users based on We Chat applets and the Django framework.Due to the special requirements of blockchain storage fields and in order to improve system performance,Mongo database is used for auxiliary storage,while IPFS is used to achieve reliable data storage.(2)Based on Ethereum,Mongo database,and IPFS,a system data processing module is designed and implemented to provide necessary data support for the system.The data processing module consists of three parts: a smart contract,Web3.js based middleware,and a data transfer module.The smart contract provides the business implementation logic of the underlying system,and implements various functions required by the system.Web3.js based middleware encapsulates different functions implemented by smart contracts into different interfaces based on the design of smart contract code to facilitate application development calls and fulfill functional implementation requirements.The function of the data transfer module is to automatically store the data generated by the system transaction into IPFS,ensuring the security and reliability of the data.(3)Completed the development and implementation of a private parking space sharing system based on blockchain and IPFS.The system’s data is mainly stored in Ethereum and Mongo databases,and is effectively processed by smart contracts,Web3.js based middleware,and data transfer modules.Data interaction can be achieved,enabling users to easily access,view,reserve,map search,distribute parking spaces,query orders,and pay online.At the same time,a penalty mechanism based on credit scoring is introduced to provide protection for fair transactions between users.Finally,this article builds a running environment based on the Ethereum platform to conduct simulation experiments on the private parking space sharing system,designs a test plan,conducts functional and performance tests on the system,and conducts security analysis on the system,verifying the feasibility of this system. |