| With the intelligent transformation of China’s manufacturing industry,the demand for data resource sharing is increasing.At present,the data management system of automobile parts manufacturing enterprises mainly adopts the centralized storage mode,which is prone to malicious tampering,single point failure and other problems,resulting in difficulties in data sharing among enterprises,which is not conducive to the quality supervision of parts by regulators.With its decentralized and tamper proof features,blockchain technology can effectively overcome the security problems of centralized storage,but it also faces the shortcomings of limited storage capacity and difficult controlled access to data.To solve the above problems,this paper studies and designs the data storage and sharing scheme and prototype system of auto parts production line based on blockchain.The main research work is as follows:(1)By analyzing the production process and production process data of auto parts,the business requirements of the two scenarios are extracted for data sharing between enterprises and within enterprises;Aiming at the problem that data is difficult to be controlled,a private data access control method is adopted to realize fine-grained access control of private data;In view of the limited storage capacity of the blockchain system,the shared data is divided into private data and publicly available data.Combined with the interplanetary file system(IPFS)technology,a secure data storage mode on and off the chain is designed to enhance the scalability of the blockchain system.Through the above analysis,two storage and sharing models of private data and publicly available data based on blockchain are proposed.Compared with the relevant literature,this scheme model has certain advantages in privacy,scalability,fine-grained access control and so on.(2)A prototype system based on the above scheme model is designed.The front end is implemented based on Vue,the back end is implemented based on go gin,and the bottom development platform is implemented by FISCO BCOS.The blockchain network security control adopts the role-based management model to realize the effective management of permissions on the chain.The blockchain network structure adopts the network structure of single chain and double groups to realize the data isolation between groups.The smart contract adopts hierarchical design,which effectively realizes the business logic of the system.The functions of the system mainly include user registration and login,user role control,private data storage query,public data storage query and data access record query.(3)A test environment is built to test the function and performance of the prototype system.The system function test results show that the main functions of the system can be realized.The system performance test is mainly conducted for the private data storage interface and the public data query interface.The test results are as follows: the average response time at low frequency is 862 ms and 624 ms respectively,and the abnormal rate is 0;The average response time of intermediate frequency is 8052 ms and 1811 ms respectively,and the abnormal rate is 0 and 1%respectively,meeting the requirements and standards in the public literature. |