| In recent years,National consumption level gradually increased,Consumers are not only concerned about the quantity of goods,but also have higher requirements for the quality of goods.In order to guarantee quality,providing corresponding traceability methods in the commodity supply chain is the preferred solution to achieve this goal.A complete supply chain traceability system includes external traceability and internal traceability.At present,external supply chain traceability has the problem of low traceability efficiency,while internal supply chain traceability has the problem of poor security.Nowadays,solving the above-mentioned shortcomings of traceability is an important research content for building a complete supply chain traceability system.Blockchain has become an excellent method to solve the supply chain traceability problem due to its decentralization and traceability characteristics.The core of achieving this goal lies in the consensus algorithm,and since different consensus algorithms have different bearing capacity for the number of nodes,it is necessary to select a suitable consensus algorithm to meet the demand in combination with the corresponding traceability scenario;At the same time,since consensus algorithms also have certain defects,mainly including: low security,high communication complexity or uneven distribution of rights and interests,different algorithms have different defects,if use it directly may become the major bottleneck in combine the algorithm and traceability scenario.Therefore,the consensus algorithm should be improving and optimizing in conjunction with the corresponding supply chain traceability scenarios.The main research work of this thesis is as follows:(1)To address the inefficiency of external supply chain traceability,the PBFT algorithm(Practical Byzantine Fault Tolerance)is used and the improvement algorithm SL-PBFT(Security and Lighting)is proposed to address the problems of arbitrary selection of master nodes and high consumption of communication resources in the current PBFT algorithm.The algorithm firstly uses the SCOR model(Supply Chain Operations Reference Model)to solve the problem of arbitrary selection of master nodes in the PBFT algorithm,and at the same time optimizes the security problem caused by the division of organization in the existing improvement.Secondly,the communication process of the PBFT algorithm is optimized by combining the transaction process of the supply chain;finally,the good performance of the SL-PBFT algorithm in improving the efficiency of external supply chain traceability is demonstrated through experiments.(2)To address the problem of weak security in internal supply chain traceability,an improved version of the Po A algorithm(Proof of Authority),BRBC algorithm(Blockchain Reputation-Based Consensus),is used,and to address the problems of poor identity management and weak trust mechanism of BRBC algorithm,an improved algorithm SF-BRBC(Security and Faster Blockchain Reputation-Based Consensus)is proposed.This algorithm solves the problem that the BRBC algorithm is not applicable in identity-sensitive scenarios by introducing Bloom filters,and also optimizes the trust mechanism that has the problems of doubtful reputation of judge nodes,long voting time and the SF-BRBC algorithm has been optimized to improve the security performance of internal supply chain traceability through experiments.It can be concluded from the above research that the proposed algorithm can effectively solve the problems existing in different supply chain traceability scenarios,and then build an efficient and secure supply chain traceability system.At the same time,the improved algorithm improves significantly in different performance indicators compared with the original algorithm and similar algorithms,it also has good performance in realistic scenarios.This can not only make the supply chain development better and more stable,but also give supply chain enterprises a greater advantage in the industry competition. |