| In recent years,China’s logistics industry has developed rapidly under the promotion of e-commerce.In 2022,the total social logistics in the country reached 347.6trillion yuan,becoming an important force for the smooth growth of the economy’s“main artery” and “microcirculation”.At the same time,problems such as information islands among various enterprises in the logistics field,malicious tampering of logistics information,and weak trust mechanisms among various subjects have become increasingly serious.The unique data management method of blockchain technology can effectively solve the above problems,but the low transaction throughput of blockchain systems is the biggest obstacle and challenge in its application.To address the aforementioned issues,this thesis proposes a node attribute-based sharding scheme that includes three parts: node random allocation method,transaction sharding method,and state sharding method.By assigning different attributes to nodes,the blockchain system is sharded.The node random allocation method randomly and evenly distributes nodes to different shards and can use cryptographic techniques to verify the correctness of the allocation results,improving the success rate and attack resistance of sharding and reducing the time required for resharding.The transaction sharding method enables most transactions in the system to be completed within the same shard,reducing the proportion of cross-shard transactions and improving transaction processing efficiency.The state sharding method reduces the storage burden of each node without affecting data integrity and traceability while ensuring data redundancy within the system,enhancing system robustness.The three methods work together to reduce the time overhead of completing sharding in a blockchain system,reduce the number of cross-shard transactions in the system,increase the proportion of transaction processing in system time,and thus improve the transaction throughput of the blockchain system.At the same time,to process cross-shard transactions in the system and reduce the computational and communication resources required for processing cross-shard transactions,a cross-shard transaction processing method is designed to improve the forwarding efficiency of cross-shard transactions,shorten the processing time of cross-shard transactions,and ensure system consistency.To verify the effectiveness of the scheme,this thesis applies the above scheme to a blockchain system and designs experiments from four aspects: node allocation balance,resharding time consumption,transaction throughput,and security.By analyzing the experimental results,it is shown that the sharding scheme designed in this thesis can effectively improve the transaction throughput of the blockchain.Finally,through the demand analysis of the logistics information platform,the application of the node attribute-based sharding scheme in the blockchain logistics information platform is realized. |