| The Internet of Vehicles shares vehicle and road condition data collected by vehicle sensors and roadside sensors,providing decision-making basis for vehicle driving and greatly improving the urban traffic operating environment.However,in the traditional Internet of Vehicles system,the data is easily tampered,easily leaked,and access control is simplified,and the centralized architecture adopted has problems such as single point of failure and lack of privacy protection.In response to these issues,through the analysis and summary of domestic and foreign research results on data sharing in the Internet of Vehicles in recent years,a blockchain based data sharing model is designed to achieve data security sharing,which has practical significance for the development of smart transportation.The main work are as follows:First,design a layered consensus blockchain network structure to store and protect the data on the chain,ensure that the data on the chain is safe and cannot be tampered with,and achieve node consensus through the improved Practical Byzantine Fault Tolerance algorithm(PBFT).In the consensus confirmation stage,the entire network node broadcast confirmation message is improved to collect confirmation message for master nodes,reducing communication overhead.The hierarchical consensus storage structure solves the problem of high cost of storage space on the chain.The combination of multi-chain and optimized consensus algorithm is used to improve the scalability of the system and solve the problem of low blockchain throughput when the amount of data is large.Secondly,in order to ensure the security of communication and interaction between vehicle nodes and control the credibility of vehicles,a Blockchain Based Trust Evaluation scheme for the Internet of Vehicles(BBTE)was designed.The method integrates four trust decision factors,namely initial trust,historical trust,recommendation trust,and Road Side Unit(RSU)observation trust.Recommendation trust is divided into three types based on communication interaction: direct,indirect,and unfamiliar.The Critic algorithm is used to obtain the optimal weights of three types of recommendation trust and four types of trust decision factors,in order to obtain the overall trust value of the vehicle node.Then,a Trust and Weighted Attribute Based Access Control(TWABAC)method was designed,and pruning technology was used to optimize and reorganize the attribute set,removing redundant attributes,simplifying the complexity of access policies,reducing the required computational and transmission costs.This not only achieves secure access to data on the Internet of Vehicles chain,but also makes data sharing access more secure and efficient.Finally,through the time-consuming experiment of each component of the model and the proposed algorithm,the response time of the model(the time taken from sending the resource request to the result),the precision rate(the identification accuracy and detection rate of malicious nodes),and the calculation cost(attribute encryption and ciphertext encryption)and throughput performance are evaluated,and the process of applying the model to data sharing is visualized.The experimental results show that the hierarchical consensus storage model designed has better storage effect than the existing distributed storage model;the average identification accuracy of the BBTE trust evaluation model for malicious nodes reaches 94.58%,and the accuracy The efficiency has been improved;compared with the weighted attribute-based access control model,the designed TWABAC access control model has reduced the computational overhead time by 8.95%;compared with the data sharing model using PBFT consensus and single-chain structure,the throughput efficiency of the model has increased by an average of 28.97%,and the efficiency of information interaction has been greatly improved. |