Javascript is required
1.
P. Lafourcade and M. Lombard-Platet, “About blockchain interoperability,” Inf. Process. Lett., vol. 161, p. 105976, 2020. [Google Scholar] [Crossref]
2.
T. T. Duan, H. W. Zhang, B. Li, Z. X. Song, Z. C. Li, J. Zhang, and Y. Sun, “Survey on blockchain interoperability,” J. Softw., vol. 35, no. 2, pp. 800–827, 2024. [Google Scholar] [Crossref]
3.
X. Y. Chen, K. Wang, S. Z. Ding, and Z. J. Fu, “Survey on progress of blockchain interoperability technology,” vol. 18, no. 1, pp. 75–92, 2024. [Google Scholar] [Crossref]
4.
V. Buterin, “Chain interoperability,” 2016. [Online]. Available: https://allquantor.at/blockchainbib/pdf/buterin2016chain.pdf [Google Scholar]
5.
J. Poon and T. Dryja, “The bitcoin lightning network: Scalable off-chain instant payments,” 2016. [Online]. Available: https://lightning.network/lightning-network-paper.pdf [Google Scholar]
6.
E. Schwartz, “A payment protocol of the web, for the web: Or, finally enabling web micropayments with the interledger protocol,” in Proceedings of the 25th International Conference Companion on World Wide Web, Republic and Canton of Geneva, CHE, 2016, pp. 279–280. [Google Scholar] [Crossref]
7.
S. Thomas and E. Schwartz, “A protocol for interledger payments,” 2015. [Online]. Available: https://interledger.org/interledger.pdf [Google Scholar]
8.
A. Back, M. Corallo, L. Dashjr, M. Friedenbach, G. Maxwell, A. K. Miller, A. Poelstra, and J. Tim, “Enabling blockchain innovations with pegged,” Comput. Eng. Appl., 2014. [Google Scholar]
9.
S. Li, “Research and implementation of relay-based blockchain cross-chain technology,” Ph.D. dissertation, SCUT, China, 2022. [Google Scholar]
10.
G. Z. Li, L. X. Li, and H. Y. Gao, “Research progress in the development and application of cross-chain technology,” Comput. Eng. Appl., vol. 60, no. 2, pp. 32–45, 2024. [Google Scholar] [Crossref]
11.
V. Buterin, “Ethereum: A next-generation smart contract and decentralized application platform,” 2014. [Online]. Available: https://courses.cs.duke.edu/spring23/compsci512/papers/ethereum.pdf [Google Scholar]
12.
P. Robinson, “Survey of crosschain communications protocols,” Comput. Netw., vol. 2021, pp. 1–17, 2021. [Google Scholar] [Crossref]
13.
J. Lu, B. Yang, Z. Liang, Y. Zhang, Demmon, Shi, E. Swartz, and L. Lu, “Wanchain: Building super financial markets for the new digital economy,” 2017. [Online]. Available: https://media.abnnewswire.net/media/en/docs/92537-WAN [Google Scholar]
14.
S. Yang, H. Wang, W. Li, W. Liu, and X. Fu, “CVEM: Across-chain value exchange mechanism,” in Proceedings of the 2018 International Conference on Cloud Computing and Internet of Things, Association for Computing Machinery, New York, NY, United States, 2018, pp. 80–85. [Google Scholar]
15.
S. T. Zhang, B. Qin, and H. B. Zheng, “Research on the protocol of multiple cross-chains based on the hash lock,” Cyberspace Secur., no. 11, pp. 57–62, 2018. [Google Scholar]
16.
J. Kwon and E. Buchman, “Cosmos whitepaper,” 2022. [Online]. Available: https://v1.cosmos.network/resources/whitepaper [Google Scholar]
17.
W. Gavin, “Polkadot: Vision for a heterogeneous multi-chain framewo,” 2022. [Online]. Available: https://polkadot.network/PolkaDotPaper.pdf [Google Scholar]
18.
W. Blockchain, “Wecross technical white paper,” 2020. [Online]. Available: https://mp.weixin.qq.com/s/w0APEAonFXbOoinMJipPAA [Google Scholar]
19.
F. Gai, J. Niu, S. A. Tabatabaee, C. Feng, and M. Jalalzai, “Cumulus: A secure BFT-based sidechain for off-chain scaling,” in 2021 IEEE/ACM 29th International Symposium on Quality of Service (IWQOS), Tokyo, Japan, 2021, pp. 1–6. [Google Scholar] [Crossref]
20.
L. Yin, J. Xu, and Q. Tang, “Sidechains with fast cross-chain transfers,” IEEE Trans. Depend. Secure Comput., vol. 19, no. 6, pp. 3925–3940, 2022. [Google Scholar] [Crossref]
21.
B. C. Ghosh, T. Bhartia, S. K. Addya, and S. Chakraborty, “Leveraging public-private blockchain interoperability for closed consortium interfacin,” in IEEE INFOCOM 2021-IEEE Conference on Computer Communications, Piscataway: Vancouver, BC, Canada, 2021, pp. 1–10. [Online]. Available: https://ieeexplore.ieee.org/document/9488683 [Google Scholar]
22.
F. Baldimtsi, I. Miers, and X. Y. Zhang, “Anonymous sidechainsy,” in Data Privacy Management, Cryptocurrencies and Blockchain Technology, Darmstadt, Germany: Springer, 2021, pp. 262–277. [Google Scholar] [Crossref]
23.
T. T. Li, M. S. Wang, Z. H. Deng, and D. D. Liu, “Sepow: Secure and efficient proof of work sidechains,” in Algorithms and Architectures for Parallel Processing - 21st International Conference, ICA3PP 2021, Springer, Cham, 2021, pp. 376–396. [Google Scholar] [Crossref]
24.
M. Westerkamp and M. Diez, “Verilay: A verifiable proof of stake chain relay,” in 2022 IEEE International Conference on Blockchain and Cryptocurrency (ICBC), Shanghai, China, 2022, pp. 1–9. [Google Scholar] [Crossref]
25.
Y. M. Hei, D. W. Li, C. Zhang, J. W. Liu, Y. Z. Liu, and Q. H. Wu, “Practical agentchain: A compatible cross-chain exchange system,” Future Generation Computer Systems, vol. 130, pp. 207–218, 2022. [Google Scholar] [Crossref]
26.
T. X. Xie, K. K. Gai, L. H. Zhu, S. Wang, and Z. J. Zhang, “RAC-chain: An asynchronous consensus-based cross-chain approach to scalable blockchain for metaverse,” ACM Trans. Multimedia Comput. Commun. Appl., vol. 20, no. 7, pp. 1–24, 2024. [Google Scholar] [Crossref]
27.
A. T. Lu, K. Zhao, J. Y. Yang, and F. Wang, “Research on cross-chain technology of blockchai,” Netinfo Secur., vol. 19, no. 8, pp. 83–90, 2019. [Google Scholar] [Crossref]
Search
Open Access
Research article

A Blockchain Cross-Chain Solution Based on Relays

Wanshu Fu1,2*,
Jiaqi Du2,3,
Yi Zhang4,
Ziqi Wang5
1
School of Information, Central University of Finance and Economics, 100081 Beijing, China
2
School of Management and Engineering, Capital University of Economics and Business,100070 Beijing, China
3
Collaborative Innovation Center of Steel Technology, University of Science and Technology Beijing, 100083 Beijing, China
4
School of Environment, Education and Development, The University of Manchester, M13 9PL Manchester, UK
5
Faculty of Engineering and Information Technology, The University of Melbourne, 1446535 Melbourne, Australia
International Journal of Knowledge and Innovation Studies
|
Volume 2, Issue 2, 2024
|
Pages 70-80
Received: 01-14-2024,
Revised: 03-21-2024,
Accepted: 04-06-2024,
Available online: 04-14-2024
View Full Article|Download PDF

Abstract:

Blockchain has attracted widespread attention due to its unique features such as decentralization, traceability, and tamper resistance. With the rapid development of blockchain technology, an increasing number of industries are gradually applying blockchain technology to various fields such as the Internet of Things, healthcare, finance, agriculture, and government affairs. However, there are certain differences in the underlying architecture, data structures, consensus algorithms, and other aspects of blockchain technology across different sectors, which restrict transactions to occur within a single blockchain. Achieving interoperability between different blockchains is challenging, hindering data exchange and collaborative business to some extent, inevitably leading to the problem of “data silo”. Against this backdrop, this study aims to explore a cross-chain solution based on relay technology to address the current challenges of interoperability between blockchain systems. By employing relay-based cross-chain technology, a blockchain cross-chain collaboration platform is established to simulate the construction of a real cross-chain network. By deploying business contracts, data and resources between heterogeneous blockchains can seamlessly communicate, resolving the challenge of cross-chain interoperability. The research findings demonstrate that the blockchain cross-chain solution based on relay technology can effectively enhance interoperability between different blockchain systems, enabling cross-chain asset circulation and information transmission, highlighting the practical applicability and scalability of this study.

Keywords: Blockchain, Cross-chain technology, Relays, Smart contracts, Interoperability

1. Introduction

At present, with the continuous development of blockchain technology and the continuous expansion of its application fields, a large number of blockchain applications that adapt to different scenarios are emerging. However, blockchain systems are independent from each other, and information and value are only shared and circulated on their own chains, making a large number of blockchain projects isolated information and value systems. With the in-depth application of blockchain technology, the demand for data exchange, value circulation, and business collaboration between blockchain applications is increasing, which has led to the increasingly prominent problem of “chain-level islands”. The demand for interconnection between cross-chain applications and data has become an urgent problem to be solved in the development of blockchain. Therefore, the research on scalability and interoperability of blockchain is becoming increasingly popular in the current blockchain field.

Blockchain interoperability technology [1], also known as blockchain cross-chain technology, refers to the ability of effectively exchanging data, value, and functions between different blockchain systems. It involves crossing the trusted boundary of blockchain data (the scope of the consensus mechanism) and achieving credible information acquisition and collaborative status updates among independent blockchain systems, which is consistent with the effect of intra-blockchain operations [2]. According to the degree of structural differences between interoperable blockchains, interoperability technology can be divided into homomorphic expansion technology and heterogeneous interoperability technology [3].

At present, the mainstream cross-chain technologies mainly include four methods [4]: hashed time lock contract [5], notary scheme [6], [7], sidechain/relays [8], and distributed private key control. Among them, the relay technology is essentially a fusion and extension of the notary scheme and sidechain mechanism [9]. The relay chain is a third-party chain built for the system, which is a channel for cross-chain transactions and data information transmission between various chains. It builds a cross-chain operation layer for various blockchains, provides a unified language, and collects inter-chain data status for self-verification, thus achieving the purpose of cross-chain. This technology has high security and important application value for many problems faced by blockchain.

The difficulty in solving the cross-chain interoperability problem for heterogeneous blockchains lies in the fact that each blockchain network is an independently vertical and closed system, as they all have their unique designs and implementations in terms of system architecture, network topology, consensus algorithms, encryption mechanisms, privacy and security mechanisms, etc. When it comes to cross-chain interactions, not only do we need to consider how to convert different data and asset formats into the target format to ensure the security and correctness of the interaction, but also address issues such as contract execution order, transaction confirmation, and the security of cross-chain assets [10]. However, all current cross-chain mechanisms applied in a multi-chain environment have their respective advantages and disadvantages. For instance, the security of the notary scheme relies on the honesty of notaries, which is easy to operate but poses a centralization risk. The hashed time lock contract has decentralized characteristics, but there is a risk of hackers stealing private keys [11]. Relay technology offers high security, but it may introduce additional delays and performance overheads, affecting the efficiency and speed of cross-chain transactions. Distributed private key control avoids the risk of centralization to a certain extent, but smart contracts do not yet support distributed computing and multi-trigger mechanisms, making development difficult. In summary, current cross-chain technologies mainly face issues such as low security, inefficient transaction processing, and unsupported smart contract operations. When facing practical problems, the most suitable method should be chosen according to local conditions.

To address these challenges, this study implements interoperability between heterogeneous blockchains based on relay technology. Specifically, by building a blockchain collaboration platform and deploying consortium blockchains and smart contracts, it realizes functions such as inter-blockchain information inquiry and asset transactions. This approach does not require the participation of a trusted third party, avoiding centralization risks and ensuring the security and correctness of transactions.

The remaining structure of this article is as follows: Section 2 outlines the background related to blockchain interoperability, including existing solutions and related research on cross-chain technology; Section 3 presents the research methods; Section 4 analyzes the experimental results, and Section 5 provides the concluding remarks of this study.

2. Related Work

As blockchain enters the 3.0 era, independent blockchains cannot meet the needs of most business scenarios, so collaboration between different blockchains has become an inevitable way to improve the scalability of blockchain. The emergence of cross-chain technology is of great significance to data sharing, value exchange, and business collaboration between different blockchains. At present, some scholars have conducted research on cross-chain technology.

In 2016, ConsenSys, an American company, designed a cross-chain technical solution BTC-Relay based on relay chain, but this technology cannot conduct two-way cross-chain operations [12], only realizing one-way cross-chain from Ethereum to Bitcoin. In 2017, the cross-chain project Wanchain [13] based on Ethereum was launched, which is a public chain cross-chain project adopting distributed private key control technology. It realizes the function of fully decentralized cross-chain asset account management with high security and privacy. In 2018, Yanget al. [14] proposed CVEM, a value exchange mechanism to support cross-chain transfers of different types of tokens. This solution shortened the delay in the trading process to a certain extent and also ensured the security and scalability of value exchange. In the same year, Zhang et al. [15] proposed a multi-party cross-chain protocol based on hash locking to solve the settlement problem of multi-party cross-chain asset transfers. In 2019, the Cosmos project was launched, which is composed of Hubs and Zones. In this project, a blockchain cross-chain communication protocol (Inter Blockchain, IBC) [16] was also designed for communication between Hubs and Zones, allowing different types of blockchains to freely expand and interact with high throughput. However, Cosmos only supports asset transfer and does not support smart contracts and other operations, so its application scenarios are limited. In 2020, Polkadot was officially launched [17], which is comparable to Cosmos, but Polkadot aims to solve the value circulation between blockchains. In the same year, the WeCross white paper [18] was released, indicating that the WeCross blockchain cross-chain collaboration platform can support various forms of cross-chain interactions between applications and blockchains, as well as between homogeneous and heterogeneous blockchains.

In June 2021, Gai et al. [19] proposed a novel sidechain framework called Cumulusbased on BFT, which selects sidechain nodes to communicate with the mainchain in a fair, efficient, and decentralized manner while not compromising the security and efficiency of both consensus protocols. In September 2021, Yin et al. [20] introduced a sidechain construction based on POS and POW, which improved the timeliness of cross-chain transfers through an innovative cross-chain certificate generation process and committee selection method. In the same year, Ghosh et al. [21] addressed the challenges of interoperability and data transfer between private and public blockchains. In January 2022, Baldimtsi et al. [22] put forward the concept of anonymous sidechains, which not only formally defined “anonymous sidechains” but also solved the problem of how multiple anonymous blockchains interact with each other, providing a structure for privacy-preserving Zerocash cross-ledger transactions. In February of the same year, Li et al. [23] proposed a secure and efficient sidechain construction method called SEPoW, suitable for PoW sidechain systems. This method overcomes the drawbacks of centralized exchange of cross-chain assets in participating blockchains. Also in 2022, Westerkamp and Diez [24] introduced a novel verifiable proof-of-stake chain relay cross-chain scheme, greatly promoting the development of proof-of-stake chain technology and enabling multiple proof-of-stake chains to securely interact and jointly participate in global industry applications. Hei et al. [25] built a comprehensive cross-chain trading system called Practical AgentChain, where various tokens can be mapped to corresponding tokens for trading, addressing many challenges of cross-chain transactions. In 2023, Xie et al. [26] achieved asynchronous consensus in relay chain scenarios by transmitting cross-chain messages and transactions through cross-chain gateways.

Although the above research has provided some solutions to break the “data silos” problem of blockchain, there are still some shortcomings. For example, although the importance of cross-chain technology is recognized by the industry, there is relatively little original research on cross-chain technology. Most of the cross-chain research stays at the level of theory, protocols, or models, and there are few actually implemented cross-chain platforms.

Despite the significant progress made in addressing the “data silos” issue in blockchain and providing valuable insights for the application and development of cross-chain technology, there are still limitations and challenges.

Cross-chain technology, as a bridge connecting different blockchain networks, its uniqueness and innovation are crucial to promoting the progress of the entire blockchain industry. However, most current research focuses on theoretical discussions, protocol design, and model construction, which undoubtedly lay a solid foundation for the development of cross-chain technology. Nevertheless, the transition from theory to practice still faces numerous challenges.

The relatively few actual implementations of cross-chain platforms reflect both the many technical, security, and performance issues that still exist in cross-chain technology and the industry's lack of application in this field. To truly solve the “data silos” issue, we need more practical exploration and implementations to verify the feasibility and effectiveness of cross-chain technology.

3. Research Methods and Cross-chain Network Construction

The challenges of interaction between heterogeneous blockchains lie in issues such as transaction verification, cross-chain transaction management, adaptation of multi-chain protocols, management of locked assets, and security guarantees [27].

To achieve interconnection and interoperability between heterogeneous blockchains, WeCross has designed a unified architectural abstraction for heterogeneous blockchains. From top to bottom, it includes the transaction layer, interaction layer, and data layer, with each layer supporting and cooperating with each other.

(1) The transaction layer encapsulates cross-chain transactions supported by the cross-chain collaboration platform. As shown in Figure 1 [18], it includes two-phase transaction and hashed time-lock contract, providing support for cross-chain transaction verification and asset transfer.

Figure 1. Transaction layer

(2) As shown in Figure 2 [18], the interaction layer encapsulates blockchain stubs suitable for adapting to different blockchains, internet protocols for data interoperability between different blockchains, and transaction verification to ensure the credibility of data on the blockchain. It realizes the correspondence of different cross-chain routing and other blockchain systems.

Figure 2. Interaction layer

(3) Based on the premise of enabling cross-chain operations, the data layer unifies interface resources. As shown in Figure 3 [18], it encapsulates resources necessary for cross-chain transactions, blockchain structures, and addressing protocol resources.

Figure 3. Data layer

Taking the FISCO BCOS consortium blockchain and the Hyperledger Fabric consortium blockchain as examples, the meanings of fields such as block height, block hash, previous block hash, and state data hash value in their abstract blockchain structures are the same, with the difference being the Merkle root field used for verification. As shown in Table 1.

Table 1. Blockchain abstraction structure table

Blockchain Type

Common Fields

Differentiated Fields

FISCO BCOS

Blockchain Height

Blockchain Hash

Previous Blockchain Hash

State Data Hash Value

Transaction Merkle Root
Receipt Merkle Root
State Merkle Root

Based on the abstract architecture of the blockchain system, heterogeneous blockchains can directly connect to the blockchain cross-chain collaboration platform without any changes. After successful connection, the process of interoperability between heterogeneous chains is shown in Figure 4 [18].

When performing interoperability between heterogeneous chains, the user initiates a cross-chain call first. The business contract registers the cross-chain call request with the bridge contract (used to record contract cross-chain requests). The bridge contract places the received request in a task queue. Finally, the router polls the task queue and forwards and processes the requests in the task queue.

Figure 4. System architecture

This paper simulates the construction of a comprehensive cross-chain ecosystem. By building the Router, Account Manager, Console, and a visual web-based management console of the blockchain cross-chain collaboration platform WeCross [18], a real cross-chain network system is formed, realizing functions such as cross-chain information inquiry and update, asset trading, etc.

3.1 Router

The router first provides a unified interface for heterogeneous blockchains, enabling different blockchains to access the router system in a “non-intrusive” manner through stubs. It abstracts resources on the blockchain, simplifying the complexity of cross-chain interactions. Finally, the router can effectively route the invocation requests to the corresponding blockchains, ensuring the smooth progress of cross-chain operations. In this experiment, two routers are built through ports 8250, 8251, 25500, and 25501 on the machine, with the specific deployment diagram as shown in Figure 5 [18].

Figure 5. System architecture
3.2 Universal Accounts

The universal account is an abstract object designed to uniformly manage different types of blockchain accounts, representing the identity of users. All blockchains use universal accounts when sending transactions, and all transactions can be mapped back to the corresponding universal accounts. There is a one-to-many relationship between universal accounts and chain accounts (the actual accounts used for transaction signatures when initiating transactions to different types of blockchains), but the relationship between chain accounts and cross-chain accounts is only one-to-one. The diagram of cross-chain accounts is shown in Figure 6.

Figure 6. Cross-chain account
3.3 Account Manager

Account Manager refers to an account that manages universal accounts of the institution. If a user wants to initiate a cross-chain transaction, he needs to log in on the router first. And the router needs to be connected to the Account Manager of its own institution, or else it cannot be accessed. The schematic diagram of the routing account is shown in Figure 7 [18].

Figure 7. Account manager diagram
3.4 Stub

As shown in Figure 8 [18], the relationship between the stub and the router is similar to a power strip and a plug. Different types of blockchains only need to customize their own ``plugs" to connect to the router. In this experiment, FISCO BCOS 2.0 consortium blockchain and Hyperledger Fabric 1.4 consortium blockchain were selected as the application chains of the cross-chain system. Therefore, FISCO BCOS-2-Stub and Hyperledger Fabric-1.4-Stub were implemented separately, enabling FISCO BCOS 2.0 consortium blockchain and Hyperledger Fabric 1.4 consortium blockchain to have the ability to connect to the router.

Figure 8. Relationship between router and stub

The implementation of the stub mainly includes four modules: BCOS-StubFactory, BCOS-Account, BCOS-Connection, and BCOS-Driver. BCOS-StubFactory is used to define the plugin type and provide the instantiation entry for BCOS-Account, BCOS-Connection, and BCOS-Driver. BCOS-Account represents the blockchain account, which is used for transaction signing and allows customization of information such as chain account name, type, whether it is the default account, etc. BCOS-Connection is responsible for parsing configuration files, initializing the blockchain SDK, providing a unified sending interface for the Driver, interacting with the blockchain, and obtaining resource lists on the blockchain. BCOS-Driver implements the basic interfaces of the stub, calls the sending entry of the BCOS-Connection object to interact with the blockchain, and encodes and decodes blockchain-related data.

3.5 Cross-chain Model

In this experiment, the main cross-chain models used include the single-partition single-router model and the single-partition multi-router model.

Single-partition single-router model: For a scenario where users from one organization need to access multiple blockchains simultaneously, a router can be built within the organization and configured with multiple blockchain stubs to connect to multiple blockchains. By configuring different prefixes for the multiple blockchain stubs, users can address and access resources in the network through the router. As shown in Figure 6, users can configure a router with two different blockchain stubs to access resources on two different blockchains.

Single-partition multi-router model: For a scenario where multiple users from multiple organizations want to cross-access each other's blockchains, multiple routers can be deployed and configured with their respective blockchain stubs. The routers interconnect through P2P network protocols, and they automatically synchronize and exchange blockchain stub and resource information among themselves. Users from different organizations can access the corresponding resources by calling their own organization's router, which forwards the requests to other organizations' routers and returns the results along the routing path. As shown in Figure 9 [18], User A and User B can access resources on two different blockchains through the routing network composed of routers.

Figure 9. Cross-chain model diagram
3.6 Smart Contract

Smart contracts leverage blockchain technology to enable trusted transactions without a third party. By automatically executing and verifying contract terms, they bring greater efficiency, security, and transparency to various fields. In this experiment, smart contracts with different functions were deployed on the Hyperledger Fabric 1.4 consortium blockchain and the FISCO BCOS 2.0 consortium blockchain to realize various business operations. Part of the resource deployment diagram is shown in Figure 10.

Figure 10. Partial resource deployment diagram
3.7 Two-phase Commit

Two-phase transactions are used to ensure the consistency of distributed system transactions, with advantages such as strong reliability, strong universality, and simple implementation. In the WeCross transaction model, the proxy contract is responsible for managing the transaction status and controlling the reading and writing of resources. It also saves the resources, invocation methods, and parameter lists for each execution step in the transaction. The transaction manager is implemented by router.

When a transaction begins, the resources participating in the transaction are recorded and locked by the proxy contract. Subsequent invocation requests must provide the corresponding transaction ID to be executed correctly. When rolling back a transaction, the reverse interfaces are called in the reverse order of the forward interface execution to ensure the consistency of the transaction.

4. Experimental Results and Analysis

Taking FISCO BCOS 2.0 consortium blockchain and Hyperledger Fabric 1.4 consortium blockchain as examples, the functions of heterogeneous blockchain interoperability were tested in sequence.

4.1 FISCO BCOS 2.0 Read and Write Operation Test

The HelloWorld smart contract was deployed on the FISCO BCOS 2.0 consortium blockchain and invoked accordingly. As shown in Figure 11, the get interface in the smart contract was successfully called using the call command, and information deployed on the FISCO BCOS 2.0 consortium blockchain was retrieved. As illustrated in Figure 12, the set interface in the smart contract was successfully invoked using the sendTransaction command, successfully updating the information on the FISCO BCOS 2.0 consortium blockchain.

Figure 11. FISCO BCOS read operation test diagram
Figure 12. FISCO BCOS write operation test diagram
4.2 Hyperledger Fabric 1.4 Read and Write Operation Test

The sacc smart contract was deployed on the Hyperledger Fabric 1.4 consortium blockchain and invoked accordingly. As shown in Figure 13, the get interface in the smart contract was successfully called using the call command, and information deployed on the Hyperledger Fabric 1.4 consortium blockchain was retrieved. As illustrated in Figure 14, the set interface in the smart contract was successfully invoked using the sendTransaction command, successfully updating the information on the Hyperledger Fabric 1.4 consortium blockchain.

Figure 13. FISCO BCOS read operation test diagram
Figure 14. FISCO BCOS write operation test diagram
4.3 Heterogeneous Blockchain Information Synchronization Update Test

Deploy the Interchain smart contract on the FISCO BCOS 2.0 consortium chain and the Hyperledger Fabric 1.4 consortium chain respectively. Initially, the smart contract on the source chain initiates a cross-chain request to the target chain, invoking the set interface of the target chain's smart contract to update the target chain's data. Subsequently, a callback is triggered, invoking the callback interface of the source chain and updating the data on the source chain.

As shown in Figure 15, before calling the smart contract, the data on the two consortium chains is “talk is cheap, show me the code”. After executing the sendTransaction command, the data on both consortium chains is simultaneously updated to ``HelloWorld", indicating a successful synchronization of data between heterogeneous blockchains through a single command.

Figure 15. FISCO BCOS write operation test diagram
4.4 Cross-chain Asset Transfer Test

Assuming the existence of two cross-chain accounts, where each account is registered on a different consortium chain: one on Hyperledger Fabric 1.4 consortium chain and the other on FISCO BCOS 2.0 consortium chain.

On the Hyperledger Fabric 1.4 consortium chain, a smart contract is deployed and instantiated. The assets of this blockchain are authorized through a custodial account. Subsequently, the address of the asset issuer and the asset balance are viewed and recorded. On the FISCO BCOS 2.0 consortium chain, a smart contract is deployed, and the asset owner needs to grant transfer permission to the smart contract.

Finally, the smart contract is initialized, and the address and balance of the asset issuer are viewed and recorded.

From Figure 16, Figure 17, Figure 18, Figure 19, the entire process of cross-chain asset transactions can be observed. Initially, the balances of the asset sender and receiver are checked separately. Subsequently, the asset sender on both blockchains sequentially creates transfer proposals, and finally, the router automatically completes the cross-chain transfer. On the Hyperledger Fabric 1.4 consortium chain, the sender and receiver transact 700 units, while on the FISCO BCOS 2.0 consortium chain, the sender and receiver transact 500 units, aligning with expectations.

Figure 16. Cross-chain asset transfer Test-1
Figure 17. Cross-chain asset transfer Test-2
Figure 18. Cross-chain asset transfer Test-3
Figure 19. Cross-chain asset transfer Test-4

5. Conclusions

Breaking the “data silos” problem between heterogeneous blockchains effectively is a significant challenge hindering the collaborative development of blockchain applications, attracting widespread attention from academia and society. In this context, this paper constructs a blockchain cross-chain collaboration platform, simulating a real cross-chain network system, and achieves the functionality of synchronizing information and exchanging assets between heterogeneous blockchains.

The research findings indicate that when using the WeCross blockchain cross-chain platform, it is necessary to implement stubs for heterogeneous blockchains to enable blockchain integration into routers and subsequently execute follow-up operations. To ensure the consistency and accuracy of operations on the blockchain, a two-phase transaction is employed. When developing business functions, rollback operations must be implemented. The blockchain cross-chain collaboration platform built using relay technology can be used to address the challenges of cross-chain interoperability, effectively enhancing interoperability between different blockchain systems, securely and efficiently enabling cross-chain asset transfer and information exchange. However, the implementation of business functions such as information synchronization and asset exchange between heterogeneous blockchains relies on the writing and deployment of smart contracts.

This paper has made significant progress in building a blockchain cross-chain collaboration platform based on relay technology, but there are still some aspects to be improved. Firstly, the current platform adopts the centralized CA technology for identity authentication, which meets the functional requirements to a certain extent, but there are certain limitations in terms of security and decentralization. In the future, we can consider using DID technology for identity authentication. DID technology assigns a unique, self-sovereign digital identity to each entity, which can greatly enhance the security of the system, prevent tampering and forgery of identity information, and further strengthen the decentralized characteristics of the cross-chain system, ensuring that each participant can interact in a fair and transparent environment.

Secondly, the cross-chain models used in this experiment are mainly single-partition single-route and single-partition multi-route models, which simplify the complexity of the problem to a certain extent. In the future, we should consider using a more complex multi-partition multi-route model to handle larger-scale transactions and data exchange, and solve problems that are closer to the complexity and diversity of real-world business.

Acknowledgments

The data used to support the research findings are available from the corresponding author upon request.

Conflicts of Interest

The authors declare that they have no conflicts of interest.

References
1.
P. Lafourcade and M. Lombard-Platet, “About blockchain interoperability,” Inf. Process. Lett., vol. 161, p. 105976, 2020. [Google Scholar] [Crossref]
2.
T. T. Duan, H. W. Zhang, B. Li, Z. X. Song, Z. C. Li, J. Zhang, and Y. Sun, “Survey on blockchain interoperability,” J. Softw., vol. 35, no. 2, pp. 800–827, 2024. [Google Scholar] [Crossref]
3.
X. Y. Chen, K. Wang, S. Z. Ding, and Z. J. Fu, “Survey on progress of blockchain interoperability technology,” vol. 18, no. 1, pp. 75–92, 2024. [Google Scholar] [Crossref]
4.
V. Buterin, “Chain interoperability,” 2016. [Online]. Available: https://allquantor.at/blockchainbib/pdf/buterin2016chain.pdf [Google Scholar]
5.
J. Poon and T. Dryja, “The bitcoin lightning network: Scalable off-chain instant payments,” 2016. [Online]. Available: https://lightning.network/lightning-network-paper.pdf [Google Scholar]
6.
E. Schwartz, “A payment protocol of the web, for the web: Or, finally enabling web micropayments with the interledger protocol,” in Proceedings of the 25th International Conference Companion on World Wide Web, Republic and Canton of Geneva, CHE, 2016, pp. 279–280. [Google Scholar] [Crossref]
7.
S. Thomas and E. Schwartz, “A protocol for interledger payments,” 2015. [Online]. Available: https://interledger.org/interledger.pdf [Google Scholar]
8.
A. Back, M. Corallo, L. Dashjr, M. Friedenbach, G. Maxwell, A. K. Miller, A. Poelstra, and J. Tim, “Enabling blockchain innovations with pegged,” Comput. Eng. Appl., 2014. [Google Scholar]
9.
S. Li, “Research and implementation of relay-based blockchain cross-chain technology,” Ph.D. dissertation, SCUT, China, 2022. [Google Scholar]
10.
G. Z. Li, L. X. Li, and H. Y. Gao, “Research progress in the development and application of cross-chain technology,” Comput. Eng. Appl., vol. 60, no. 2, pp. 32–45, 2024. [Google Scholar] [Crossref]
11.
V. Buterin, “Ethereum: A next-generation smart contract and decentralized application platform,” 2014. [Online]. Available: https://courses.cs.duke.edu/spring23/compsci512/papers/ethereum.pdf [Google Scholar]
12.
P. Robinson, “Survey of crosschain communications protocols,” Comput. Netw., vol. 2021, pp. 1–17, 2021. [Google Scholar] [Crossref]
13.
J. Lu, B. Yang, Z. Liang, Y. Zhang, Demmon, Shi, E. Swartz, and L. Lu, “Wanchain: Building super financial markets for the new digital economy,” 2017. [Online]. Available: https://media.abnnewswire.net/media/en/docs/92537-WAN [Google Scholar]
14.
S. Yang, H. Wang, W. Li, W. Liu, and X. Fu, “CVEM: Across-chain value exchange mechanism,” in Proceedings of the 2018 International Conference on Cloud Computing and Internet of Things, Association for Computing Machinery, New York, NY, United States, 2018, pp. 80–85. [Google Scholar]
15.
S. T. Zhang, B. Qin, and H. B. Zheng, “Research on the protocol of multiple cross-chains based on the hash lock,” Cyberspace Secur., no. 11, pp. 57–62, 2018. [Google Scholar]
16.
J. Kwon and E. Buchman, “Cosmos whitepaper,” 2022. [Online]. Available: https://v1.cosmos.network/resources/whitepaper [Google Scholar]
17.
W. Gavin, “Polkadot: Vision for a heterogeneous multi-chain framewo,” 2022. [Online]. Available: https://polkadot.network/PolkaDotPaper.pdf [Google Scholar]
18.
W. Blockchain, “Wecross technical white paper,” 2020. [Online]. Available: https://mp.weixin.qq.com/s/w0APEAonFXbOoinMJipPAA [Google Scholar]
19.
F. Gai, J. Niu, S. A. Tabatabaee, C. Feng, and M. Jalalzai, “Cumulus: A secure BFT-based sidechain for off-chain scaling,” in 2021 IEEE/ACM 29th International Symposium on Quality of Service (IWQOS), Tokyo, Japan, 2021, pp. 1–6. [Google Scholar] [Crossref]
20.
L. Yin, J. Xu, and Q. Tang, “Sidechains with fast cross-chain transfers,” IEEE Trans. Depend. Secure Comput., vol. 19, no. 6, pp. 3925–3940, 2022. [Google Scholar] [Crossref]
21.
B. C. Ghosh, T. Bhartia, S. K. Addya, and S. Chakraborty, “Leveraging public-private blockchain interoperability for closed consortium interfacin,” in IEEE INFOCOM 2021-IEEE Conference on Computer Communications, Piscataway: Vancouver, BC, Canada, 2021, pp. 1–10. [Online]. Available: https://ieeexplore.ieee.org/document/9488683 [Google Scholar]
22.
F. Baldimtsi, I. Miers, and X. Y. Zhang, “Anonymous sidechainsy,” in Data Privacy Management, Cryptocurrencies and Blockchain Technology, Darmstadt, Germany: Springer, 2021, pp. 262–277. [Google Scholar] [Crossref]
23.
T. T. Li, M. S. Wang, Z. H. Deng, and D. D. Liu, “Sepow: Secure and efficient proof of work sidechains,” in Algorithms and Architectures for Parallel Processing - 21st International Conference, ICA3PP 2021, Springer, Cham, 2021, pp. 376–396. [Google Scholar] [Crossref]
24.
M. Westerkamp and M. Diez, “Verilay: A verifiable proof of stake chain relay,” in 2022 IEEE International Conference on Blockchain and Cryptocurrency (ICBC), Shanghai, China, 2022, pp. 1–9. [Google Scholar] [Crossref]
25.
Y. M. Hei, D. W. Li, C. Zhang, J. W. Liu, Y. Z. Liu, and Q. H. Wu, “Practical agentchain: A compatible cross-chain exchange system,” Future Generation Computer Systems, vol. 130, pp. 207–218, 2022. [Google Scholar] [Crossref]
26.
T. X. Xie, K. K. Gai, L. H. Zhu, S. Wang, and Z. J. Zhang, “RAC-chain: An asynchronous consensus-based cross-chain approach to scalable blockchain for metaverse,” ACM Trans. Multimedia Comput. Commun. Appl., vol. 20, no. 7, pp. 1–24, 2024. [Google Scholar] [Crossref]
27.
A. T. Lu, K. Zhao, J. Y. Yang, and F. Wang, “Research on cross-chain technology of blockchai,” Netinfo Secur., vol. 19, no. 8, pp. 83–90, 2019. [Google Scholar] [Crossref]

Cite this:
APA Style
IEEE Style
BibTex Style
MLA Style
Chicago Style
GB-T-7714-2015
Fu, W. S., Du, J. Q., Zhang, Y., & Wang, Z. Q. (2024). A Blockchain Cross-Chain Solution Based on Relays. Int J. Knowl. Innov Stud., 2(2), 70-80. https://doi.org/10.56578/ijkis020202
W. S. Fu, J. Q. Du, Y. Zhang, and Z. Q. Wang, "A Blockchain Cross-Chain Solution Based on Relays," Int J. Knowl. Innov Stud., vol. 2, no. 2, pp. 70-80, 2024. https://doi.org/10.56578/ijkis020202
@research-article{Fu2024ABC,
title={A Blockchain Cross-Chain Solution Based on Relays},
author={Wanshu Fu and Jiaqi Du and Yi Zhang and Ziqi Wang},
journal={International Journal of Knowledge and Innovation Studies},
year={2024},
page={70-80},
doi={https://doi.org/10.56578/ijkis020202}
}
Wanshu Fu, et al. "A Blockchain Cross-Chain Solution Based on Relays." International Journal of Knowledge and Innovation Studies, v 2, pp 70-80. doi: https://doi.org/10.56578/ijkis020202
Wanshu Fu, Jiaqi Du, Yi Zhang and Ziqi Wang. "A Blockchain Cross-Chain Solution Based on Relays." International Journal of Knowledge and Innovation Studies, 2, (2024): 70-80. doi: https://doi.org/10.56578/ijkis020202
FU W S, DU J Q, ZHANG Y, et al. A Blockchain Cross-Chain Solution Based on Relays[J]. International Journal of Knowledge and Innovation Studies, 2024, 2(2): 70-80. https://doi.org/10.56578/ijkis020202
cc
©2024 by the author(s). Published by Acadlore Publishing Services Limited, Hong Kong. This article is available for free download and can be reused and cited, provided that the original published version is credited, under the CC BY 4.0 license.