| The clustered agricultural product supply chain has the characteristics of long and multiple chains,dispersed production,heterogeneous information sources,and complex network structure.Facing the traceability demand of clustered agricultural product supply chain blockchain,multi-chain blockchain has more advantages than single chain blockchain.However,multiple blockchains are isolated,resulting in difficulties in cross chain interaction and broken traceability information.At the same time,most of the existing multi-chain consensus mechanisms use the main chain final consensus mechanism,which has problems of high main chain load and low consensus efficiency.Relay technology is a cross chain technology that can achieve information transmission between multiple chains.It has high scalability and does not rely on third parties,making it suitable for organizations with equal status in clustered agricultural product supply chains to form cross chain alliances.Therefore,based on relay technology,this paper studies the blockchain traceability technology suitable for clustered agricultural product supply chain scenarios,and makes the following contributions:(1)A clustered agricultural product supply chain blockchain traceability model based on relay technology is proposed to address the issues of difficult cross chain interaction and broken traceability information.Firstly,analyze the connection mode of clustered agricultural product supply chains and establish collaborative relationships between each supply chain.Secondly,based on relay technology,construct a relay multi-chain structure,allocate resources reasonably,and provide conditions for cross chain communication and cross chain information verification.Next,design alliance protocols to provide necessary specifications for cross chain interactions and ensure traceability and completeness of traceability information.Then,design cross chain plugins to provide cross chain interaction functionality.Finally,construct a traceability model to meet traceability requirements.(2)Based on the model,a multi-chain consensus mechanism for alliance chains based on MuSig2 signature is proposed to address the issues of high main chain load and low consensus efficiency.Firstly,based on MuSig2 signature,a multi-party endorsement signature method for alliance chain is constructed to improve the verification efficiency of transaction signatures.Secondly,drawing on the idea of multi-level consensus,a hierarchical classification consensus mechanism based on MuSig2 signature is constructed using a divide and conquer strategy to improve consensus efficiency.Finally,analyze the consensus mechanism to prove its feasibility.(3)Based on the above,taking the clustered kiwifruit supply chain as an example,design and implement a clustered agricultural product supply chain blockchain traceability system,and conduct testing and analysis.The results indicate that in terms of functionality,the system can achieve cross chain traceability,ensuring the integrity,credibility,and effectiveness of traceability information.In terms of performance,the overall efficiency of the alliance chain multi-party endorsement method based on MuSig2 signature is 1.55 times that of ECDSA signature;The hierarchical classification consensus mechanism based on MuSig2 signature has an O(n)level time complexity and can improve consensus efficiency by 12.5%.The maximum throughput of system data writing is 561.8transactions/s,which is higher than the 118.1 transactions/s of single chain blockchain;The average data write latency is 1.49 seconds,which is better than the average data write latency of 5.92 seconds for single chain blockchain;At the same time,the number of chains in the system can dynamically increase according to business needs,flexibly responding to changes in clustered supply chains.In summary,the proposed model can solve the problems of difficult cross-chain interaction and broken chain of traceability information,the proposed consensus mechanism can improve the consensus efficiency,and the constructed traceability system can meet the demand of clustered agricultural products supply chain traceability and also has better performance. |