A cross-chain communication method, system, terminal and storage medium

By using cross-network devices and WebService interface calls, the problem of cross-chain network interconnection under the physical isolation of blockchain systems in different departments was solved, and cross-chain data transfer was realized.

CN115766820BActive Publication Date: 2026-04-10HANGZHOU QULIAN TECHNOLOGY CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-10-13
Publication Date
2026-04-10

AI Technical Summary

Technical Problem

How to achieve cross-chain network interconnection when there is physical isolation between blockchain systems in different departments?

Method used

By using cross-network devices and WebService interface calls, data transmission across physical isolation can be achieved, and cross-chain communication can be carried out by using cross-network devices as the server and client of WebService.

Benefits of technology

In situations where blockchain systems across different departments are physically isolated, it is crucial to ensure the interconnectivity of cross-chain networks and enable cross-network data transfer.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115766820B_ABST
    Figure CN115766820B_ABST
Patent Text Reader

Abstract

The application is suitable for the field of blockchain technology, and provides a cross-chain communication method, system, terminal and storage medium, wherein the method comprises the following steps: a first node in a network where a first blockchain system is located acquires a WebService interface call request sent by a cross-network device; the WebService interface call request is sent to the cross-network device by a second node in a network where a second blockchain system is located; the first node executes a target event in response to the WebService interface call request, sends output information corresponding to the target event to the cross-network device, and sends the output information to the second node through the cross-network device. The scheme can ensure the interconnection of cross-chain networks in the case that there is physical isolation between blockchain systems in different departments.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The application belongs to the technical field of blockchains, and particularly relates to a cross-chain communication method and system, a terminal and a storage medium. BACKGROUND

[0002] In current mainstream blockchain applications, each blockchain system is an independent value economic system. Cross-chain technology refers to connecting relatively independent blockchain systems to realize trusted interoperation of different ledgers, break through communication barriers between different ledgers, and realize value flow across different blockchain systems.

[0003] In some application fields, the blockchain systems in some departments with special security requirements are deployed in respective security-related internal networks, and are isolated from the external network through physical devices. Correspondingly, the blockchain systems of each department are also deployed in the security-related internal network due to the security requirements. The existence of the physical devices causes the respective security-related internal networks of different departments to be physically isolated, but to realize business cooperation and full-process tracking and tracing between different departments, it is necessary to guarantee the interconnection and intercommunication of the cross-chain network in the presence of physical isolation. SUMMARY

[0004] The embodiments of the application provide a cross-chain communication method, system, terminal and storage medium to guarantee the interconnection and intercommunication of the cross-chain network in the presence of physical isolation between blockchain systems in different departments.

[0005] A first aspect of the embodiments of the application provides a cross-chain communication method applied to a first node in a network where a first blockchain system is located. The method comprises the following steps.

[0006] The first node acquires a WebService interface call request sent by a cross-network device. The WebService interface call request is sent to the cross-network device by a second node in a network where a second blockchain system is located. The cross-network device is located between the network where the first blockchain system is located and the network where the second blockchain system is located.

[0007] The first node executes a target event in response to the WebService interface call request, sends output information corresponding to the target event to the cross-network device, and sends the output information to the second node through the cross-network device.

[0008] A second aspect of the embodiments of the application provides a cross-chain communication method applied to a cross-network device. The cross-network device is located between a network where a first blockchain system is located and a network where a second blockchain system is located. The method comprises the following steps.

[0009] obtain a WebService interface call request sent by a second node in a network where the second blockchain system is located;

[0010] According to the interface access control configuration, when it is determined that the WebService interface call request meets the configuration requirements, send the WebService interface call request to a first node in a network where the first blockchain system is located;

[0011] Obtain output information corresponding to the target event sent by the first node after the first node executes the target event in response to the WebService interface call request;

[0012] Send the output information to the second node.

[0013] The third aspect of the embodiment of the present application provides a terminal, including a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor implements the steps of the method according to the first aspect when executing the computer program.

[0014] The fourth aspect of the embodiment of the present application provides a computer readable storage medium, and the computer readable storage medium stores a computer program, and the computer program is executed by a processor to implement the steps of the method according to the first aspect.

[0015] The fifth aspect of the present application provides a computer program product, when the computer program product is executed on a terminal, so that the terminal executes the steps of the method according to the first aspect.

[0016] As can be seen from the above, based on the cross-network equipment supporting the WebService communication function, the embodiment of the present application realizes the cross-network transmission of data by the way of WebService across the physical isolation, and ensures the interconnection of the cross-chain network in the case that the blockchain systems in different departments exist physical isolation. BRIEF DESCRIPTION OF DRAWINGS

[0017] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following will briefly introduce the drawings needed to be used in the embodiments or prior art description. Obviously, the drawings in the following description are only some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative labor.

[0018] Figure 1 is a schematic diagram of a cross-chain communication system provided by the embodiment of the present application;

[0019] Figure 2 is a flow of a cross-chain communication method provided by the embodiment of the present application Figure 1;

[0020] Figure 3 is a flow of a cross-chain communication method provided by an embodiment of the present application Figure 2 ;

[0021] Figure 4 is a structural diagram of a terminal provided by an embodiment of the present application. DETAILED DESCRIPTION

[0022] In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular sequences of steps, techniques, etc., in order to provide a thorough understanding of the present embodiments. However, it will be apparent to those skilled in the art that the present embodiments can be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present embodiments.

[0023] It is to be understood that the terminology "includes", "has", "holds", "contains" and / or "comprising", when used in this specification and in the following claims, indicates the presence of the described features, integers, steps, operations, elements, and / or components, but does not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and / or groups thereof.

[0024] It is also to be understood that the terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting. As used in this specification and the appended claims, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.

[0025] It will be further understood that the terms "and / or", "including", "comprising" when used in this specification and in the following claims, specify the presence of features, integers, steps, operations, elements, and / or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and / or groups thereof.

[0026] As used in this specification and the appended claims, the term "if' can be construed to mean "when" or "once" or "in response to a determination" or "in response to a detection" of, as appropriate, according to context. Similarly, the phrase "if it is determined" or "if [a described condition or event] is detected" can be construed to mean "once it is determined" or "in response to a determination" or "once [the described condition or event] is detected" or "in response to the detection [of the described condition or event]", as appropriate, according to context.

[0027] In particular implementations, the terminals described in the embodiments of the present application include, but are not limited to, other portable devices such as mobile telephones, laptop computers, or tablet computers with touch-sensitive surfaces (e.g., touch screen displays and / or touch pads). It should also be understood that, in some embodiments, the device is not a portable communication device, but is a desktop computer with a touch-sensitive surface (e.g., a touch screen display and / or a touch pad).

[0028] In the following discussion, a terminal that includes a display and a touch-sensitive surface is described. It should be understood, however, that a terminal can include one or more other physical user-interface devices, such as a physical keyboard, a mouse and / or a joystick.

[0029] The terminal supports a variety of applications, such as one or more of the following: a drawing application, a presentation application, a word processing application, a website creation application, a disk authoring application, a spreadsheet application, a game application, a telephone application, a video conferencing application, an e-mail application, an instant messaging application, a workout support application, a photo management application, a digital camera application, a digital camcorder application, a web browsing application, a digital music player application, and / or a digital video player application.

[0030] The various applications that can be executed on the terminal can use at least one common physical user-interface device, such as the touch-sensitive surface. One or more functions of the touch-sensitive surface, as well as the corresponding information displayed on the display, can be adjusted and / or changed by a respective application being executed on the terminal. By way of example, the display modes of a respective user interface of the applications can be changed and / or adjusted by the respective application. In this way, the user- interface of the respective applications can be tailored to a user's preferences, and the user's quality of experience can be enhanced.

[0031] It should be understood that the sequence of the steps in the embodiments of the present application does not mean the order of execution, the execution order of the processes should be determined by its function and inherent logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

[0032] In order to illustrate the technical solutions described in the present application, the following will be described by specific embodiments.

[0033] First, an inter-chain communication system is disclosed in the embodiments of the present application, comprising:

[0034] The first node is located in the network where the first blockchain system is located;

[0035] The second node is located in the network where the second blockchain system is located;

[0036] The cross-network device is located between the network where the first blockchain system is located and the network where the second blockchain system is located.

[0037] Specifically, in one implementation scenario, in combination with Figure 1 are shown, wherein the application chain A or the application chain B corresponds to the first blockchain system described above, and the relay chain corresponds to the second blockchain system described above.

[0038] That is, the first blockchain system is the source chain system or the destination chain system, and the second blockchain system is the relay chain system.

[0039] There is physical isolation between the application chain A, the application chain B and the relay chain, and data transmission needs to be realized by means of a cross-network device, such as an optical gate, a network gate, etc.

[0040] Optionally, the first node is any blockchain node in the first blockchain system, or the first node is a server node connected to any blockchain node in the first blockchain system.

[0041] Optionally, the second node is any blockchain node in the second blockchain system, or the second node is a server node connected to any blockchain node in the second blockchain system.

[0042] The first node is equipped with an application chain plug-in for realizing listening to cross-chain events in the application chain A and accepting calls as a WebService server, and returning corresponding output information to the cross-network device, thereby realizing data cross-physical isolation transmission through the cross-network device.

[0043] The second node is used to realize the function of the cross-chain gateway, and can realize cross-physical isolation transmission of data between the first node equipped with the application chain plug-in and the second node by means of the cross-network device, thereby realizing data transmission between the first blockchain system and the second blockchain system, and realizing cross-physical isolation interconnection and intercommunication between the internal network and the external network.

[0044] In the above process, the existing method of assembling a cross-chain gateway in the network on the side of the source chain system or the destination chain system to perform cross-chain data transmission with the relay chain system is changed, the cross-chain gateway is functionally disassembled, the function part of the cross-chain gateway for data interaction with the source chain system or the destination chain system is integrated into an application chain plug-in retained in the source chain system or the destination chain system, and a cross-chain gateway connected with the relay chain system is set in the network of the relay chain system, and the information routing function of the cross-chain gateway on the side of the source chain system or the destination chain system is set on the side of the relay chain system.

[0045] The application chain plug-in set by disassembling and the cross-chain gateway set by increasing are used to successfully deploy the WebService service between the source chain system and the relay chain system or between the relay chain system and the destination chain system. By the application chain plug-in, the node equipped with the application chain plug-in is formed as a server of the WebService. By the cross-chain gateway, the node where the cross-chain gateway is located is formed as a client of the WebService. The cross-network isolated WebService interface calling and data feedback interaction between the relay chain system and the source chain system and the destination chain system are realized. In a specific embodiment, the above-mentioned function setting can be to separate the part of the original cross-chain gateway in the first blockchain system interacting with the application chain into an application chain plug-in service and deploy it in the first node in the intranet. Correspondingly, the service function of the cross-chain gateway is deployed in the extranet where the second blockchain system is located. The data transmission between the two is performed by crossing the physical isolation through the WebService.

[0046] The first node is configured to perform the cross-chain communication method in the respective embodiments, and / or the cross-network device is configured to perform the cross-chain communication method in the respective embodiments. Figure 2 The first node is configured to perform the cross-chain communication method in the respective embodiments, and / or the cross-network device is configured to perform the cross-chain communication method in the respective embodiments. Figure 3 The first node is configured to perform the cross-chain communication method in the respective embodiments, and / or the cross-network device is configured to perform the cross-chain communication method in the respective embodiments.

[0047] Specifically, in combination with Figure 2 The application embodiment provides a cross-chain communication method. The method is applied to a first node in a network where a first blockchain system is located. The method comprises the following steps:

[0048] In step 201, the first node acquires a WebService interface calling request sent by a cross-network device.

[0049] The WebService interface calling request is sent by a second node in a network where a second blockchain system is located to the cross-network device. The cross-network device is located between the network where the first blockchain system is located and the network where the second blockchain system is located.

[0050] The WebService interface calling request corresponds to a target event. The target event is, for example, a cross-chain transaction data on-chain event or an event of acquiring information of a cross-chain transaction to be transmitted.

[0051] The WebService is a remote calling technology across programming languages and across operating systems. In the technology, the Soap (Simple Object Access Protocol) transmission protocol needs to be used. The Soap is a transmission protocol based on HTTP used by the WebService and is used to solve how data is transmitted on the network.

[0052] At step 202, the first node executes a target event in response to the WebService interface call request, and sends output information corresponding to the target event to the cross-network device, and sends the output information to the second node through the cross-network device.

[0053] In this process, the cross-network device supports WebService communication, wherein the second node initiates a soap method as a WebService client, initiates a WebService interface call request to the secure isolation and information exchange platform provided by the cross-network device, the secure isolation and information exchange platform forwards the WebService interface call request, the first node where the application chain plug-in is located responds to the WebService interface call request as a WebService server, and feeds back the corresponding output information to the secure isolation and information exchange platform, thereby realizing the output of information to the second node.

[0054] In an optional embodiment, step 202 above, in which the first node executes a target event in response to the WebService interface call request, and sends output information corresponding to the target event to the cross-network device, specifically includes:

[0055] The first node responds to the WebService interface call request, calls the smart contract in the first blockchain system, and obtains a contract execution receipt; and sends the contract execution receipt as the output information to the cross-network device.

[0056] In this process, the first blockchain system is a target chain system, when receiving a WebService interface call request, can execute a corresponding transaction chaining operation based on the WebService interface call request, at this time, a function contract in the first blockchain system needs to be called to realize transaction chaining, and a contract call receipt is obtained to indicate that the contract execution result is transaction chaining success or failure, finally, the receipt is output as output information to realize the response and result feedback of the WebService interface call request.

[0057] In another optional embodiment, step 202 above, in which the first node executes a target event in response to the WebService interface call request, and sends output information corresponding to the target event to the cross-network device, specifically includes:

[0058] The first node responds to the WebService interface call request, obtains cross-chain transaction information in the first blockchain system; and sends the cross-chain transaction information as the output information to the cross-network device.

[0059] In the process, the first blockchain system is a source chain system, the first blockchain system can initiate cross-chain transactions, and the first node regularly listens to and caches cross-chain transactions in the first blockchain system. When the first node receives a WebService interface call request, the cached cross-chain transaction information can be read based on the WebService interface call request, and finally the cross-chain transaction information is output as output information to perform cross-chain transaction transmission.

[0060] The cross-chain communication method provided by the above embodiments of the application is suitable for a cross-chain network in a multi-chain business cooperation scenario, a cross-network device supporting WebService communication function is set, and the cross-network device crosses physical isolation through the WebService mode to realize cross-network transmission of data, so as to ensure the interconnection and intercommunication of the cross-chain network in the case that there is physical isolation between different departments.

[0061] Further, in combination with Figure 3 The embodiments of the application also provide another cross-chain communication method, which is applied to a cross-network device located between a network where a first blockchain system is located and a network where a second blockchain system is located, and the method comprises the following steps:

[0062] Step 301: obtaining a WebService interface call request sent by a second node in a network where a second blockchain system is located;

[0063] Step 302: according to interface access control configuration, if it is determined that the WebService interface call request meets the configuration requirements, sending the WebService interface call request to a first node in a network where a first blockchain system is located;

[0064] Optionally, after obtaining the WebService interface call request sent by the second node in the network where the second blockchain system is located, if it is determined that the WebService interface call request does not meet the set requirements according to the interface access control configuration, the WebService interface call request is discarded.

[0065] Step 303: obtaining output information corresponding to a target event sent by the first node after responding to the WebService interface call request to execute the target event;

[0066] Step 304: sending the output information to the second node.

[0067] This system provides a secure isolation and information exchange platform based on cross-network devices. Access control configuration information for the WebService interface is set on this platform. This configuration includes, for example, whether access is allowed to the second node corresponding to the second blockchain system, the allowed access period, the interface required for the WebService, the interface access command format, and the protocol. The secure isolation and information exchange platform filters access from WebService clients (i.e., the second node) according to the interface access control configuration (protocol filtering, format review, etc.). Disallowed access is discarded, while allowed access is forwarded.

[0068] Specifically, the output information is a contract execution receipt, which is obtained by the first node after responding to the WebService interface call request and calling the smart contract in the first blockchain system; or, the output information is cross-chain transaction information, which is the cross-chain transaction information in the first blockchain system obtained by the first node in response to the WebService interface call request.

[0069] Below, in a specific application scenario, taking a money transfer business as an example, we will combine... Figure 1 The cross-chain communication method described above is illustrated below:

[0070] 1. Alice, an account on application chain A in intranet A, initiates a cross-chain transfer to Bob, an account on application chain B in intranet B.

[0071] 2. The first node configured with the application chain plugin listens for and caches this transaction from application chain A;

[0072] 3. The node configured as cross-chain gateway A in the network where the relay chain is located initiates the SOAP method to pull cross-chain events to the security isolation and information exchange platform, and the security isolation and information exchange platform forwards the WebService interface call request;

[0073] 4. The first node in intranet A, where application chain plugin A is located, accepts the call and returns the cached cross-chain transaction to the security isolation and information exchange platform;

[0074] 5. The security isolation and information exchange platform will return cross-chain transactions to the node configured as cross-chain gateway A.

[0075] 6. The node configured as cross-chain gateway A receives the cross-chain transaction and sends it to the relay chain system. After review, the relay chain system routes the cross-chain transaction to the corresponding node configured as cross-chain gateway B.

[0076] 7. The node configured as cross-chain gateway B sends the SOAP method of cross-chain transaction to the security isolation and information exchange platform, which then forwards the access to the second node where the application chain plugin B is located in the intranet B.

[0077] 8. The second node where application chain plugin B is located accepts cross-chain transactions, calls the corresponding smart contract on application chain B, and returns a transaction receipt.

[0078] 9. The security isolation and information exchange platform will return the transaction receipt to the cross-chain gateway B.

[0079] The cross-chain communication method provided in the above embodiments of this application is applicable to cross-chain networks in multi-chain business collaboration scenarios. It sets up cross-network devices that support WebService communication functions, and uses WebService to overcome physical isolation to realize cross-network data transmission, ensuring the interconnection of cross-chain networks even when there is physical isolation between blockchain systems in different departments.

[0080] Figure 4 This is a structural diagram of a terminal provided in an embodiment of this application. As shown in the figure, the terminal 4 of this embodiment includes: at least one processor 40 ( Figure 4 (Only one is shown in the diagram), memory 41, and computer program 42 stored in said memory 41 and executable on said at least one processor 40, which, when executed, implements the steps in any of the above method embodiments.

[0081] The terminal 4 can be a computing device such as a desktop computer, laptop, handheld computer, or cloud server. The terminal 4 may include, but is not limited to, a processor 40 and a memory 41. Those skilled in the art will understand that... Figure 4 This is merely an example of terminal 4 and does not constitute a limitation on terminal 4. It may include more or fewer components than shown, or combine certain components, or different components. For example, the terminal may also include input / output devices, network access devices, buses, etc.

[0082] The processor 40 can be a central processing unit (CPU), and can also be other general-purpose processors, a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, etc. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor.

[0083] The memory 41 can be an internal storage unit of the terminal 4, such as a hard disk or a memory of the terminal 4. The memory 41 can also be an external storage device of the terminal 4, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. Further, the memory 41 can also include both the internal storage unit and the external storage device of the terminal 4. The memory 41 is used to store the computer program and other programs and data required by the terminal. The memory 41 can also be used to temporarily store data that has been output or is to be output.

[0084] Those skilled in the art can clearly understand that, for the convenience and brevity of description, only the division of the above functional units and modules is exemplified, and in actual application, the above functions can be completed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to complete all or part of the above described functions. Each functional unit and module in the embodiment can be integrated in one processing unit, or each unit can exist physically, or two or more units can be integrated in one unit, and the integrated unit can be realized in the form of hardware or in the form of software functional unit. In addition, the specific names of each functional unit and module are only for easy distinction, and do not limit the protection scope of the present application. The specific working process of the units and modules in the system can refer to the corresponding process in the foregoing method embodiments, which will not be described here.

[0085] In the above embodiments, the description of each embodiment has its own emphasis, and the parts not described or recorded in detail in a certain embodiment can refer to the relevant description of other embodiments.

[0086] Those skilled in the art can understand that the units and algorithm steps of each example described in combination with the embodiments disclosed herein can be realized by electronic hardware or a combination of computer software and electronic hardware. Whether the functions are realized in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of the present application.

[0087] In the embodiments provided by the present application, it should be understood that the disclosed apparatus / terminal and method can be implemented in other ways. For example, the apparatus / terminal embodiments described above are merely schematic. For example, the division of the modules or units is merely a logical function division, and there can be another division manner in actual implementation. For example, a plurality of units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the coupling or direct coupling or communication connection between the units shown or discussed can be indirect coupling or communication connection through some interface, device or unit, and can be electrical, mechanical or in other forms.

[0088] The units described as separate components can or can not be physically separate, and the components shown as units can or can not be physical units, i.e. they can be located in one place, or can be distributed on a plurality of network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the embodiments.

[0089] In addition, each functional unit in each embodiment of the present application can be integrated into a processing unit, or each unit can exist physically independently, or two or more units can be integrated into one unit. The integrated unit can be realized in the form of hardware or in the form of a software functional unit.

[0090] The integrated module / unit, if implemented in the form of a software function unit and sold or used as an independent product, can be stored in a computer readable storage medium. Based on such understanding, all or part of the processes in the above-mentioned embodiment methods can also be implemented by a computer program instructing related hardware, and the computer program can be stored in a computer readable storage medium. The computer program can implement the steps of each method embodiment when executed by a processor. The computer program includes computer program code, which can be in the form of source code, object code, executable files, or some intermediate forms. The computer readable medium can include any entity or device capable of carrying the computer program code, recording medium, U disk, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electrical carrier signal, telecommunication signal, and software distribution medium, etc. It should be noted that the contents included in the computer readable medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, the computer readable medium does not include electrical carrier signals and telecommunication signals.

[0091] The above-mentioned embodiment methods can also be implemented by a computer program product, which, when running on a terminal, enables the terminal to perform the steps of each method embodiment.

[0092] The above-mentioned embodiments are only used to illustrate the technical solutions of the present application, rather than limit them; although the present application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that they can modify the technical solutions recorded in the foregoing embodiments, or make equivalent replacements for part of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present application, and should be included in the protection scope of the present application.

Claims

1. A cross-chain communication method, characterized in that, A first node applied to a network where a first blockchain system is located, the first blockchain system being a source chain system or a destination chain system; the method comprises: The first node acquires a WebService interface call request sent by a cross-network device; the WebService interface call request is sent by a second node in a network where a second blockchain system is located to the cross-network device; the cross-network device is located between the network where the first blockchain system is located and the network where the second blockchain system is located; the second blockchain system is a relay chain system; an application chain plug-in is reserved in the source chain system or the destination chain system, the application chain plug-in being integrated by a cross-chain gateway function after the cross-chain gateway is disassembled and the function part of the cross-chain gateway for data interaction with the source chain system or the destination chain system; the relay chain system is provided with an information routing function after the cross-chain gateway function is disassembled; the first node assembled with the application chain plug-in forms a WebService server, and the second node forms a WebService client; The first node executes a target event in response to the WebService interface call request, sends output information corresponding to the target event to the cross-network device, and sends the output information to the second node through the cross-network device.

2. The method of claim 1, wherein, The first node executes a target event in response to the WebService interface call request, sends output information corresponding to the target event to the cross-network device, and comprises: The first node invokes a smart contract in the first blockchain system in response to the WebService interface call request to obtain a contract execution receipt; The contract execution receipt is sent to the cross-network device as the output information.

3. The method of claim 1, wherein, The first node executes a target event in response to the WebService interface call request, sends output information corresponding to the target event to the cross-network device, and comprises: The first node acquires cross-chain transaction information in the first blockchain system in response to the WebService interface call request; The cross-chain transaction information is sent to the cross-network device as the output information.

4. The method according to any one of claims 1 to 3, characterized in that, The first node is any blockchain node in the first blockchain system, or the first node is a server node connected with any blockchain node in the first blockchain system; And / or, The second node is any blockchain node in the second blockchain system, or the second node is a server node connected with any blockchain node in the second blockchain system.

5. A cross-chain communication method, characterized in that, Applied to a cross-network device located between a network where a first blockchain system is located and a network where a second blockchain system is located, the method comprises: Acquiring a WebService interface call request sent by a second node in the network where the second blockchain system is located; According to the interface access control configuration, in a case where it is determined that the WebService interface call request meets the configuration requirements, the WebService interface call request is sent to a first node in a network where the first blockchain system is located; the first blockchain system is a source chain system or a destination chain system, and the second blockchain system is a relay chain system; the source chain system or the destination chain system retains an application chain plug-in, the application chain plug-in is integrated by a function part of a cross-chain gateway and a source chain system or a destination chain system for data interaction after the cross-chain gateway function is disassembled; the relay chain system is provided with an information routing function after the cross-chain gateway function is disassembled; the first node provided with the application chain plug-in forms a WebService server, and the second node forms a WebService client; Obtaining output information corresponding to the target event sent by the first node after the first node executes the target event in response to the WebService interface call request; Sending the output information to the second node.

6. The method of claim 5, wherein the output information is a contract execution receipt, the contract execution receipt being obtained by the first node in response to the WebService interface call request calling a smart contract in the first blockchain system; or the output information is cross-chain transaction information, the cross-chain transaction information being obtained by the first node in response to the WebService interface call request. Comprising: a first node located in a network where a first blockchain system is located; 7. A cross-chain communication system, characterized by, the first blockchain system is a source chain system or a destination chain system; a second node located in a network where a second blockchain system is located; the second blockchain system is a relay chain system; the source chain system or the destination chain system retains an application chain plug-in, the application chain plug-in being integrated by a function part of a cross-chain gateway and a source chain system or a destination chain system for data interaction after the cross-chain gateway function is disassembled; the relay chain system is provided with an information routing function after the cross-chain gateway function is disassembled; the first node provided with the application chain plug-in forms a WebService server, and the second node forms a WebService client; a cross-network device located between the network where the first blockchain system is located and the network where the second blockchain system is located; wherein the first node is configured to execute the cross-chain communication method of any one of claims 1 to 4, and / or the cross-network device is configured to execute the cross-chain communication method of any one of claims 5 or 6. The processor executes the computer program to implement the steps of the method of any one of claims 1 to 6. The computer program is executed by the processor to implement the steps of the method of any one of claims 1 to 6.

8. A terminal comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, ​ 9. A computer-readable storage medium storing a computer program, the computer program comprising instructions that, when executed by a computer, cause the computer to perform the method of any one of claims 1 to 8. ​

Citation Information

Patent Citations

  • Network service filtering method based on private network brake special for electric power system

    CN102790759A

  • Intranet and extranet cross-chain communication method and device, computer equipment and storage medium

    CN112822180A