| Initially,blockchain technology was widely acknowledged as the underpinning technology of Bitcoin,which incorporates technologies such as distributed data storage,peer-to-peer transmission,consensus mechanisms,and cryptographic algorithms,thus enabling the creation of reliable,secure,and decentralized distributed ledger systems.However,since each blockchain is developed independently and is isolated,all transactions are conducted within a single chain,and there is a lack of trust between different blockchains,resulting in "information silos",which impedes data sharing to some extent.For this reason,the cross-chain technology of blockchain is especially critical,as it can liberate the information value of blockchain from the conundrum of "information silo" and facilitate the interconnection of blockchain value.How to achieve secure and effective cross-chain data sharing and cross-chain identity anonymous authentication across blockchains is pivotal in promoting the development of the blockchain industry,improving the sharing of resources among different chains,advancing the integration of the industry,and facilitating the broader application of smart contracts and other technologies.The main research focus of this paper is as follows:This paper researches and analyzes existing cross-chain schemes in the context of blockchain cross-chain technology,discusses the potential security risks associated therein,and investigates issues such as cross-chain data sharing schemes and cross-chain authentication of WSN devices.Secondly,this paper proposes a relay-chain-based inter-chain data sharing scheme to securely enable data sharing between data owners and data demanders in response to the data siloing problem caused by the isolation among blockchains.The scheme utilizes the cross-chain technology of relay chains to enable secure cross-chain data sharing while ensuring complete decentralization in the cross-chain process.Furthermore,the scheme combines proxy re-encryption technology to transform the data ciphertext from being decryptable by the data provider to being decryptable by the data requester,without revealing the private key of the data provider during the whole process,thus effectively protecting the privacy and security of the data provider.Additionally,security analysis and comparison with similar schemes have been conducted to verify the reliability and security of the proposed scheme and attain more satisfactory results.Finally,based on the analysis of blockchain cross-chain technology,this paper proposes an inter-chain data sharing and authentication solution based on blockchain cross-chain technology in order to address the single point of failure issue posed by the traditional PKI-based WSN authentication mechanism,and to accomplish the cross-chain authentication of WSN devices and cross-chain data sharing through the establishment of a relay chain.This solution focuses on the implementation of authentication and trusted communication of WSN devices in smart grid.The WSN is divided into multiple private chains according to regions and then integrated with cross-chain technology to meet the scalability demands of the system and the global authentication requirements of the devices.Furthermore,blockchain technology is combined with fog computing to tackle the computational challenge of blockchain deployment and reduce data transmission latency.Finally,the security and performance of the proposed scheme are analyzed,and it is shown to have certain advantages in WSN applications. |