| To improve consumer trust in wine suppliers,it is important to consider the security and authenticity of information in the wine supply chain.The traditional wine supply chain suffers from a high degree of centralization,insufficient timeliness of information sharing,and a lack of effective tamper-proof technology to secure information.Therefore,the traditional wine supply chain needs to explore new technological solutions to solve the problem.Blockchain technology incorporates a variety of technologies with features of decentralization,security and traceability,which can effectively solve the problems in the traditional wine supply chain.Therefore,this paper combines blockchain technology and applies it to the wine supply chain,and conducts an in-depth study on consensus algorithm,one of the core technologies of blockchain,to make it adaptable and useful.In this paper,the performance and application of blockchain consensus algorithms are studied,two improved consensus algorithms are proposed,and a wine supply chain information management scheme based on the improved PBFT algorithm is designed.The following studies are mainly conducted.1.In response to the problems of long consensus latency due to random node selection and inefficiency due to complex communication of the traditional PBFT algorithm,this paper proposes an improved PBFT algorithm based on reputation mechanism(RM-PBFT).The mechanism consists of a node consensus scoring strategy and a simplified consensus method.The consensus scoring strategy calculates the reputation value based on the performance of each node in the consensus and performs consensus on the basis of merit to improve the stability and reliability of consensus nodes.The simplified consensus method is to improve the communication of consensus,reduce the complexity of communication and consensus latency,and improve the consensus efficiency.2.To solve the communication complexity and node scalability problems of PBFT algorithm,this paper proposes an improved PBFT algorithm(DL-PBFT)based on a two-layer structure.The algorithm extends the single-layer PBFT algorithm into a two-layer structure,which reduces the burden of individual nodes to improve the scalability of the system.The communication process of consensus is also optimized to reduce the number and complexity of communications,thus improving the performance and scalability of the system.3.To address the defects of centralized and opaque wine supply chain information management,this paper designs a wine supply chain information management scheme based on the improved PBFT algorithm.The smart contract technology and consensus algorithm are applied to the storage and transmission process of supply chain information to ensure the openness,transparency,authenticity and security protection of wine information.The experimental results show that the DL-PBFT algorithm has a significant improvement over the traditional PBFT algorithm in the system throughput index and a 3.08% decrease in the system latency index,indicating that the DL-PBFT algorithm has a lower latency;moreover,the more nodes there are,the better the DL-PBFT algorithm works,indicating that the DL-PBFT algorithm has better scalability. |