Journal of Computer Applications ›› 2022, Vol. 42 ›› Issue (2): 519-527.DOI: 10.11772/j.issn.1001-9081.2021020353

• Cyber security • Previous Articles     Next Articles

Cross-chain mechanism based on Spark blockchain

Jiagui XIE, Zhiping LI(), Jian JIN   

  1. Institute of Industrial Internet and Internet of Things,China Academy of Information and Communications Technology,Beijing 100191,China
  • Received:2021-03-09 Revised:2021-05-08 Accepted:2021-05-14 Online:2022-02-11 Published:2022-02-10
  • Contact: Zhiping LI
  • About author:XIE Jiagui, born in 1984, M. S., senior engineer. His research interests include domain name, industrial Internet identification, blockchain, Internet basic resources.
    LI Zhiping, born in 1981, M. S., engineer. His research interests include domain name, industrial Internet identification, blockchain.
    JIN Jian, born in 1976, Ph. D., professor of engineering. His research interests include domain name, industrial Internet identification, blockchain, Internet basic resources.

基于星火区块链的跨链机制

谢家贵, 李志平(), 金键   

  1. 中国信息通信研究院 工业互联网与物联网研究所,北京 100191
  • 通讯作者: 李志平
  • 作者简介:谢家贵(1984—),男,山东聊城人,高级工程师,硕士,主要研究方向:域名、工业互联网标识、区块链、互联网基础资源;
    李志平(1981—),男,河北邯郸人,工程师,硕士,主要研究方向:域名、工业互联网标识、区块链;
    金键(1976—),男,湖北十堰人,教授级高级工程师,博士,主要研究方向:域名、工业互联网标识、区块链、互联网基础资源。

Abstract:

Considering different blockchains being isolated and the data interaction and sharing difficulties in the current rapid development process of blockchain technology, a cross-chain mechanism based on Spark blockchain was proposed. Firstly, common cross-chain technologies and current mainstream cross-chain projects were analyzed, the implementation principles of different technologies and projects were studied, and their differences, advantages and disadvantages were summarized. Then, using the blockchain architecture maned main-sub blockchain mode, the key core components such as smart contract component, transaction verification component, transaction timeout component were designed, and the four stages of cross-chain process were elaborated in detail, including transaction initiation, transaction routing, transaction verification and transaction confirmation. Finally, the feasible experiments were designed for performance test and security test, and the security was analyzed. Experimental results show that Spark blockchain has significant advantages compared to other blockchains in terms of transaction delay, throughput and spike testing. Besides, when the proportion of malicious nodes is low, the success rate of cross-chain transactions is 100%, and different sub chains can conduct cross-chain transactions safely and stably. This mechanism solves the problem of data interaction and sharing between blockchains, and provides technical reference for the design of Spark blockchain application scenarios in the next step.

Key words: cross-chain mechanism, Spark blockchain, main-sub chain, public blockchain, consortium blockchain

摘要:

针对当前区块链技术飞速发展的过程中,不同区块链之间相对孤立,数据不能交互共享的问题,提出一种基于星火区块链的跨链机制。首先,对常见跨链技术和当前主流跨链项目作了分析,研究了不同技术和项目的实现原理,并总结了它们的区别和优缺点;然后,利用主子链模式的区块链架构,设计了智能合约组件、交易校验组件、交易超时组件等关键核心组件,并详细阐述了跨链过程的交易发起、交易路由、交易核验、交易确认这四个阶段;最后,设计了可行的实验进行性能测试和安全性测试,并对安全性进行了分析。实验结果表明,星火区块链在交易延迟、吞吐量和尖峰冲击测试等方面相比其他区块链有较显著的优势;另外在恶意节点的比例较低时,跨链交易的成功率为100%,不同子链间可以安全稳定地进行跨链交易。该机制解决了区块链之间数据交互共享的问题,能为下一步星火区块链应用场景的设计提供技术参考。

关键词: 跨链机制, 星火区块链, 主子链, 公有链, 联盟链

CLC Number: