CN115174309B - Block chain communication method, communication device and computer readable storage medium - Google Patents

Block chain communication method, communication device and computer readable storage medium Download PDF

Info

Publication number
CN115174309B
CN115174309B CN202211081713.6A CN202211081713A CN115174309B CN 115174309 B CN115174309 B CN 115174309B CN 202211081713 A CN202211081713 A CN 202211081713A CN 115174309 B CN115174309 B CN 115174309B
Authority
CN
China
Prior art keywords
communication
chain
independent
interaction request
operation point
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202211081713.6A
Other languages
Chinese (zh)
Other versions
CN115174309A (en
Inventor
陈涛涛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Mingyuan Cloud Technology Co Ltd
Original Assignee
Shenzhen Mingyuan Cloud Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Mingyuan Cloud Technology Co Ltd filed Critical Shenzhen Mingyuan Cloud Technology Co Ltd
Priority to CN202211081713.6A priority Critical patent/CN115174309B/en
Publication of CN115174309A publication Critical patent/CN115174309A/en
Application granted granted Critical
Publication of CN115174309B publication Critical patent/CN115174309B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L12/40006Architecture of a communication node
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor

Abstract

The invention discloses a block chain communication method, communication equipment and a computer readable storage medium. The block chain communication method is applied to a block chain communication system, the block chain communication system comprises a plurality of independent chains and a plurality of communication chains, wherein one of the plurality of communication chains is respectively connected with the plurality of independent chains through a standard protocol, an operation point is formed at the connection position, an interaction request sent by an independent chain sending end in the independent chain is sent to a first operation point, and the first operation point is a connection point between the independent chain sending end and the communication chains in the independent chain; controlling the first operation point to broadcast the interaction request to a second operation point through a communication chain, wherein the second operation point is a connection point between an independent chain receiving end and the communication chain in the independent chain; and controlling the second operation point to execute the interactive request in the independent link receiving end. The invention provides a good and simple communication scheme for communication between different block chains.

Description

Block chain communication method, communication device and computer readable storage medium
Technical Field
The present invention relates to the field of block chain communication technologies, and in particular, to a block chain communication method, a communication device, and a computer-readable storage medium.
Background
In the current block chain technology, most of different block chains are independent from each other, and information interaction cannot be performed. A small number of block chains can be interconnected through specific development, but such block chains generally need to be developed specifically, heterogeneous data between different block chains is reprocessed, development cost is high, and maintenance cost is high. For example, to solve the problem of too high transaction cost in the ethernet, a side-chain extension scheme has been proposed. The side chain is a block chain specifically developed for being compatible with the EtherFang, has own block parameters and consensus model, and can share the transaction on the main chain. However, this solution can only be specifically directed to the side chains developed in etherhouses, and cannot be used for other existing heterogeneous blockchains. Similarly, the side chain of the ether house cannot become the side chain of other block chains, so that the problem of other block chains is solved. In addition, after the interconnection in the main chain side chain manner, the difficulty of disconnection and decoupling is also very large. Thus, there is currently no good, standardized, cross-chain communication scheme between different blockchain items.
Disclosure of Invention
The invention mainly aims to provide a block chain communication method, communication equipment and a computer readable storage medium. The method aims to solve the problem that no good and standardized cross-chain communication scheme among different blockchain items exists in the industry.
In order to achieve the above object, the present invention provides a block chain communication method, where the block chain communication method is applied to a block chain communication system, the block chain communication system includes a plurality of independent chains and a plurality of communication chains, where one of the plurality of communication chains is connected to the plurality of independent chains through a standard protocol, and an operating point is formed at the connection point, and any two of the plurality of communication chains are connected to each other, and the block chain communication method includes:
sending an interaction request sent by an independent chain sending end in an independent chain to a first operation point, wherein the first operation point is a connection point between the independent chain sending end and a communication chain in the independent chain;
controlling the first operation point to broadcast the interaction request to a second operation point through a communication chain, wherein the second operation point is a connection point between an independent chain receiving end in an independent chain and the communication chain;
and controlling the second operation point to execute the interactive request in the independent link receiving end.
Optionally, the interaction request comprises a data interaction request;
the step of controlling the first operation point to broadcast the interaction request to the second operation point through the communication link comprises:
and controlling the first operating point to convert the data interaction request into a relay data interaction request corresponding to a data structure preset in the communication chain, and sending the relay data interaction request to a second operating point according to a transmission scheme preset in the communication chain.
Optionally, the step of controlling the second operation point to execute the interactive request in the independent link receiving end includes:
controlling the second operating point to convert the data structure of the relay data interaction request into the data structure in the independent link receiving end;
and inquiring an interaction result corresponding to the data interaction request in the independent link receiving end according to the data structure in the independent link receiving end, and feeding back the interaction result to the independent link sending end.
Optionally, the interaction request comprises an asset interaction request;
the step of controlling the first operation point to broadcast the interaction request to the second operation point through the communication link comprises:
controlling the first operating point to receive an asset interaction request and locking the asset corresponding to the asset information in the asset interaction request in the independent chain sending end;
and converting the asset interaction request into a relay asset interaction request corresponding to a preset data structure in the communication chain, and sending the relay asset interaction request to a second operation point according to a preset transmission scheme in the communication chain.
Optionally, the step of controlling the second operation point to execute the interactive request in the independent link receiving end includes:
and controlling the second operating point to call an intelligent contract of the independent link receiving end, casting asset data corresponding to the asset information in the independent link receiving end according to the intelligent contract, and sending the asset data to an address corresponding to the asset interaction request.
Optionally, the interaction request comprises an operation interaction request;
the step of controlling the first operation point to broadcast the interaction request to the second operation point through the communication link comprises:
and controlling the first operation point to receive the operation interaction request, converting the operation interaction request into a relay operation interaction request corresponding to a data structure preset in the communication chain, and sending the relay operation interaction request to a second operation point according to a transmission scheme preset in the communication chain.
Optionally, the operation interaction request includes an execution request and an execution parameter;
the step of controlling the second operation point to execute the interactive request in the independent link receiving end comprises:
controlling the second operation point to call the intelligent contract in the independent link receiving end according to the execution request;
checking whether the independent chain sending end has execution authority or not according to the execution request and the intelligent contract;
and if the intelligent contract has the execution authority, executing the intelligent contract according to the execution parameters.
Optionally, after the step of checking whether the independent chain sender has the execution authority according to the execution request and the intelligent contract, the method further includes:
and if the execution authority is not provided, the execution request is not responded.
In addition, to achieve the above object, the present invention further provides a communication device, which includes a blockchain communication system, a memory, a processor, and a blockchain communication program stored in the memory and executable on the processor, wherein the blockchain communication program, when executed by the processor, implements the steps of the blockchain communication method as described above.
In addition, to achieve the above object, the present invention also provides a computer readable storage medium, on which a block chain communication program is stored, where the block chain communication program, when executed by a processor, implements the steps of the block chain communication method as described above.
The invention provides a block chain communication method, communication equipment and a computer readable storage medium, wherein the block chain communication method is applied to a block chain communication system, the block chain communication system comprises a plurality of independent chains and a plurality of communication chains, one of the communication chains is respectively connected with the independent chains through a standard protocol, an operation point is formed at the connection position, any two communication chains in the communication chains are mutually connected, and the block chain communication method comprises the following steps: sending an interaction request sent by an independent chain sending end in an independent chain to a first operation point, wherein the first operation point is a connection point between the independent chain sending end and a communication chain in the independent chain; controlling the first operation point to broadcast the interaction request to a second operation point through a communication chain, wherein the second operation point is a connection point between an independent chain receiving end in an independent chain and the communication chain; and controlling the second operation point to execute the interactive request in the independent link receiving end. By the structure and the method, the invention can realize the communication of a plurality of independent block chains at a higher level. Each block chain is regarded as data, and one block chain is used for stringing all the block chains to assist the mutual communication among different block chains. The communication chain is connected with each independent chain by a standard protocol, so that the connection can be realized quickly, and the conventional customized development is not required; on the other hand, with the end of the service, disconnection decoupling can be quickly realized. The method can enable any two block chains participating in the system to interact to the maximum extent, wherein the interaction comprises data interaction, asset interaction and interoperation. A good and simple communication scheme is provided for communication between different block chains.
Drawings
Fig. 1 is a schematic device structure diagram of a hardware operating environment according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a block chain communication method according to an embodiment of the present invention;
FIG. 3 is a block diagram of a block chain communication system according to the present invention;
FIG. 4 is a flowchart illustrating a block chain communication method according to a second embodiment of the present invention;
fig. 5 is a flowchart illustrating a detailed process of step S30 in the third embodiment of the block chain communication method according to the present invention.
The implementation, functional features and advantages of the present invention will be further described with reference to the accompanying drawings.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
As shown in fig. 1, fig. 1 is a schematic terminal structure diagram of a hardware operating environment according to an embodiment of the present invention.
The terminal of the embodiment of the invention can be communication equipment.
As shown in fig. 1, the terminal may include: a processor 1001, such as a CPU, a communication bus 1002, a user interface 1003, a dvi interface 1004, a usb interface 1005, and a memory 1006. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface, a wireless interface. The DVI interface 1004 may optionally include a standard wired interface to connect with other external devices via DVI wires. The USB interface 1005 may optionally include a standard wired interface to connect with other external devices via a USB cable. The memory 1006 may be a high-speed RAM memory or a non-volatile memory (e.g., a disk memory). The memory 1006 may alternatively be a storage device separate from the processor 1001.
Optionally, the terminal may further include an audio circuit and the like, which are not described in detail herein.
Those skilled in the art will appreciate that the terminal structure shown in fig. 1 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
As shown in fig. 1, the memory 1006, which is a type of computer storage medium, may include an operating system, a DVI interface module, a USB interface module, a user interface module, and a blockchain communication program.
In the terminal shown in fig. 1, the DVI interface 1004 is mainly used for connecting, and communicating data with, external devices; the USB interface 1005 is mainly used for connecting an external device and performing data communication with the external device; the user interface 1003 is mainly used for connecting a client and performing data communication with the client; the processor 1001 may be configured to call the blockchain communication program stored in the memory 1006, and perform the following operations:
sending an interaction request sent by an independent chain sending end in an independent chain to a first operation point, wherein the first operation point is a connection point between the independent chain sending end and a communication chain in the independent chain;
controlling the first operation point to broadcast the interaction request to a second operation point through a communication chain, wherein the second operation point is a connection point between an independent chain receiving end in an independent chain and the communication chain;
and controlling the second operation point to execute the interactive request in the independent link receiving end.
Further, the processor 1001 may call the blockchain communication program stored in the memory 1006, and further perform the following operations:
and controlling the first operating point to convert the data interaction request into a relay data interaction request corresponding to a data structure preset in the communication chain, and sending the relay data interaction request to a second operating point according to a transmission scheme preset in the communication chain.
Further, the processor 1001 may call the blockchain communication program stored in the memory 1006, and further perform the following operations:
controlling the second operating point to convert the data structure of the relay data interaction request into the data structure in the independent link receiving end;
and inquiring an interaction result corresponding to the data interaction request in the independent link receiving end according to the data structure in the independent link receiving end, and feeding back the interaction result to the independent link sending end.
Further, the processor 1001 may call the block chain communication program stored in the memory 1006, and further perform the following operations:
controlling the first operating point to receive an asset interaction request and locking the asset corresponding to the asset information in the asset interaction request in the independent chain sending end;
and converting the asset interaction request into a relay asset interaction request corresponding to a data structure preset in the communication chain, and sending the relay asset interaction request to a second operation point according to a transmission scheme preset in the communication chain.
Further, the processor 1001 may call the blockchain communication program stored in the memory 1006, and further perform the following operations:
and controlling the second operating point to call an intelligent contract of the independent link receiving end, casting asset data corresponding to the asset information in the independent link receiving end according to the intelligent contract, and sending the asset data to an address corresponding to the asset interaction request.
Further, the processor 1001 may call the blockchain communication program stored in the memory 1006, and further perform the following operations:
and controlling the first operation point to receive the operation interaction request, converting the operation interaction request into a relay operation interaction request corresponding to a data structure preset in the communication chain, and sending the relay operation interaction request to a second operation point according to a transmission scheme preset in the communication chain.
Further, the processor 1001 may call the blockchain communication program stored in the memory 1006, and further perform the following operations:
controlling the second operation point to call the intelligent contract in the independent link receiving end according to the execution request;
checking whether the independent chain sending end has execution authority or not according to the execution request and the intelligent contract;
and if the intelligent contract has the execution authority, executing the intelligent contract according to the execution parameters.
Further, the processor 1001 may call the blockchain communication program stored in the memory 1006, and further perform the following operations:
and if the execution authority is not provided, the execution request is not responded.
The specific embodiment of the communication device of the present invention is basically the same as the following embodiments of the block chain communication procedure, and will not be described herein again.
Referring to fig. 2, fig. 2 is a flowchart illustrating a block chain communication method according to a first embodiment of the present invention, where the block chain communication method includes the following steps:
step S10, sending an interaction request sent by an independent chain sending end in an independent chain to a first operation point, wherein the first operation point is a connection point between the independent chain sending end and a communication chain in the independent chain;
referring to fig. 3, fig. 3 is a schematic structural diagram of a block chain communication system according to the present invention, in which the block chain communication method of the present invention is applied to a block chain communication system, and the block chain communication system includes a plurality of independent chains and a plurality of communication chains, wherein one of the plurality of communication chains is respectively connected to the plurality of independent chains through a standard protocol, and an operation point is formed at the connection point.
In this embodiment, the communication link may be regarded as a block chain of an independent chain. The communication link itself does not store data, but is used only to facilitate independent link communications with which it is connected. The connection is realized by a uniform standard protocol, so that the connection can be realized quickly, and a large amount of repeated development work is avoided. Meanwhile, because the connection based on the standard protocol is also easy to disconnect, and the communication chain is not deeply coupled with any independent chain, the quick decoupling can be realized along with the service, so that the communication between the independent chains can be more convenient and simpler, and the adaptability is wide. Since the codes of each chain in the block chain system are different, the operation point formed between the independent chain and the communication chain refers to a part where interaction occurs among the codes of the independent chain and the codes of the communication chain. The standard protocol refers to a protocol that determines a data structure and a transmission scheme. In particular, there are many options for the data structure and transmission scheme, and generally the data structure of different block chains is different. The standard protocol here therefore means that the communication link defines a data structure and a transmission scheme (e.g. IFPS) so that the connection can perform both functions: converting the self data structure into a data structure specified by a communication chain, and then transmitting the data structure to other chains according to a transmission scheme specified by the communication chain; and converting the data sent by other chains into own data structure.
In addition, the number of the communication chains in the invention can be multiple, and the multiple communication chains can be connected with each other, that is, the communication chains can be connected with another communication chain as an independent chain, so that the situation that a plurality of block chains participate in a block chain communication system can be realized, wherein the multiple block chains can be connected through a standard protocol, and the expansion to an infinite block chain can be supported by setting the connection among the multiple communication chains in the technical aspect; from the aspect of service, different block chains are conveniently grouped and layered, a part of block chains can form a subsystem, and the subsystem forms a larger system according to service requirements, so that the management is very easy.
The design may include the current main chain and side chain design mode in the background art, for example, a certain blockchain is expected to share the business of the ether house, and only the blockchain and the ether house need to be connected to the same communication chain. In addition, even if an independent block chain not designed for interconnection itself, such as a heterogeneous block chain having a large number of applications itself, such as SOLANA, can be interconnected by connecting to a communication chain.
The interaction request comprises a data interaction request, an asset interaction request and an operation interaction request, wherein the data interaction request is used for data query between different independent chains, for example, a company A is in an independent chain A, a company B is in an independent chain B, and when the company A needs to query data disclosed by the company B in the independent chain B, the data interaction request can be sent to a communication chain and then to the independent chain B, so that the data interaction request between the independent chain A and the independent chain B is completed; the asset interaction request is used for asset transaction between different independent chains, for example, when there is asset transaction between company A and company B, company A needs to pay company B, then the asset interaction between company A and company B can be performed through the asset interaction request; the operation interaction request is used for invoking mutual intelligent contracts among different independent chains, for example, when the company A is a power supply station and the independent chain B is a user, the company A can deduct the electric charge of the user in the independent chain B by invoking the intelligent contracts of the independent chain B. In the independent chain communication, one interactive request may be called, or a combination of multiple interactive requests may be called, and a person skilled in the art may implement different communication operations as needed, which is not limited herein.
Step S20, controlling the first operation point to broadcast the interaction request to a second operation point through a communication chain, wherein the second operation point is a connection point between an independent chain receiving end in an independent chain and the communication chain;
in this embodiment, the first operation point is a connection point between an independent chain sending end and a communication chain, and the second operation point is a connection point between an independent chain receiving end and a communication chain in an independent chain, where the independent chain sending end is an independent chain sending an interaction request, and the independent chain receiving end is an independent chain receiving and executing the interaction request, for example, when an independent chain a in fig. 3 is a sending end, a connection point between a and the communication chain is an operation point; when the independent chain B is a receiving end, the connection between the independent chain B and the communication chain is an operation point. In addition, it should be noted that the number of the independent link receiving ends may be 1 or multiple, and when there are multiple independent link receiving ends, that is, the sending end may send the interaction request to multiple blockchains at the same time, so that the communication efficiency between blockchains is improved to a greater extent. For convenience of description, in the following embodiments, the independent chain a is used as a receiving end, and the independent chain B is used as a transmitting end.
Specifically, when the interactive request is a data interactive request, the step S20 further includes:
step A21, controlling the first operating point to convert the data interaction request into a relay data interaction request corresponding to a data structure preset in the communication chain, and sending the relay data interaction request to a second operating point according to a transmission scheme preset in the communication chain.
In this embodiment, since a data structure and a transmission scheme are determined in the communication chain, only the data structure is converted into the data structure specified in the communication chain, and different block chains generally have different data structures, in order to implement transmission of the data interaction request in the communication chain, after receiving the data interaction request sent by the independent chain a, the first operation point converts the data structure of the data interaction request into the data structure specified in the communication chain, and obtains the relay data interaction request corresponding to the data structure specified in the communication chain, so that the communication chain broadcasts the relay data interaction request in the communication chain according to the specified transmission scheme, and broadcasts the relay data interaction request to a connection point between the independent chain B and the communication chain, that is, the second operation point. Wherein the data interaction request may be a data query request.
And step S30, controlling the second operation point to execute the interactive request in the independent link receiving end.
In an embodiment, the step S30 further includes:
step a31, controlling the second operating point to convert the data structure of the relay data protection request into the data structure in the independent link receiving end;
step A32, according to the data structure in the independent link receiving end, inquiring an interaction result corresponding to the data interaction request in the independent link receiving end, and feeding back the interaction result to the independent link sending end.
In this embodiment, after receiving the relay data interaction request broadcast by the first operation point, the second operation point needs to convert the data structure corresponding to the relay data interaction request into the data structure corresponding to the independent link receiving end B in order to execute the relay data interaction request in B, and when executing the relay data interaction request, after the second operation point finds the interaction result corresponding to the relay data interaction request in B, the second operation point also needs to convert the data structure of the interaction result into the data structure specified in the communication chain, and rebroadcasts the interaction result to the first operation point, and the first operation point converts the data structure of the interaction result into the data structure of the independent link transmitting end, and finally retransmits the data structure to the node sending the data interaction request in the independent link transmitting end, thereby completing the data interaction request from the independent link transmitting end to the independent link receiving end. The data interaction request is a data query request, and the corresponding interaction result is a data query result.
By the method, the invention can realize the communication of a plurality of independent block chains at a higher level. Each block chain is regarded as data, and one block chain is used for stringing all the block chains to assist the mutual communication among different block chains. The communication chain is connected with each independent chain by a standard protocol, so that the connection can be realized quickly on one hand, and the customized development is not required as before; on the other hand, disconnection decoupling can be quickly realized along with the end of the service. The method can enable any two block chains participating in the system to carry out interaction to the maximum extent, wherein the interaction comprises data interaction, asset interaction and interoperation. A good and simple communication scheme is provided for communication between different block chains.
Further, referring to fig. 4, fig. 4 is a block chain communication method according to a second embodiment of the present application, where in this embodiment, when the interaction request is an asset interaction request, step S20 further includes:
step S22, controlling the first operating point to receive an asset interaction request and locking assets corresponding to asset information in the asset interaction request in the independent chain sending end;
and step S23, converting the asset interaction request into a relay asset interaction request corresponding to a preset data structure in the communication chain, and sending the relay asset interaction request to a second operation point according to a preset transmission scheme in the communication chain.
In an embodiment, the step S30 further includes:
step A301, controlling the second operation point to call an intelligent contract of the independent link receiving end, casting asset data corresponding to the asset information in the independent link receiving end according to the intelligent contract, and sending the asset data to an address corresponding to the asset interaction request.
In this embodiment, when the interaction request is an asset interaction request, that is, asset transaction can be implemented between the independent link sending end and the independent link receiving end. The asset interaction request includes information such as asset information and attributes to be interacted, after receiving the asset interaction request at the first operation point, only the corresponding asset at the independent chain sending end needs to be locked according to the asset information in the asset interaction request, and then the asset interaction request is sent to the second operation point by the first operation point through the corresponding data structure in the communication chain. And the second operation point calls an intelligent contract of the block link receiving end, casts equivalent assets corresponding to the asset information on the independent link receiving end through the intelligent contract and the asset information, and sends the equivalent assets to a receiving address which is positioned on the independent link receiving end and is appointed in the asset interaction request, so that asset interaction between the independent link sending end and the independent link receiving end is completed. In addition, before asset interaction is performed between the independent link sending end and the independent link receiving end, the sending end and the receiving end need to be verified, and specifically, verification can be achieved through a consensus scheme in the independent link sending end and the independent link receiving end, so that the safety of transaction is guaranteed.
Further, a third embodiment of the block chain communication method according to the present application is provided according to the first embodiment of the block chain communication method, and in this embodiment, when the interaction request is an operation interaction request, the step S20 further includes:
step A24, controlling the first operation point to receive the operation interaction request, converting the operation interaction request into a relay operation interaction request corresponding to a data structure preset in the communication chain, and sending the relay operation interaction request to a second operation point according to a transmission scheme preset in the communication chain.
In this embodiment, the operation interaction request is used by the independent link sender to invoke the intelligent contract from the independent link receiver. Specifically, after receiving the operation interaction request, the first operation point sends the operation interaction request to the second operation point according to the data structure specified by the communication link, and for a specific data structure conversion process, please refer to the conversion process of the data interaction request in the above embodiment, which is not described herein again.
In an embodiment, referring to fig. 5, the step S30 further includes:
step S302, controlling the second operation point to call the intelligent contract in the independent link receiving end according to the execution request;
step S303, checking whether the independent chain sending end has execution authority according to the execution request and the intelligent contract;
and step S304, if the intelligent contract has the execution authority, executing the intelligent contract according to the execution parameters.
Step S305, if the execution request does not have the execution permission, the execution request is not responded to.
In this embodiment, the operation interaction request includes an execution request and an execution parameter, where the execution request is used by the independent chain receiving end to verify an execution authority of the independent chain sending end, and the execution parameter is used by the independent chain receiving end to execute the intelligent contract according to the parameter. The execution authority is the execution authority of the independent link sending end to the independent link receiving end, and the execution authority of the intelligent contract relates to the asset security problem, for example, an intelligent contract which is paid by a user every month exists, and the intelligent contract is called by the power supply bureau every month according to the electricity charge using condition of the user to deduct the electricity charge of the user, but the fact that whether a deducting person is the power supply bureau needs to be checked, namely, whether the execution authority of the intelligent contract exists at the independent link sending end is checked. And the execution parameter is the specific electricity fee to be deducted. For example, the independent link sender invokes a voting intelligence contract in the independent link receiver, the execution authority is whether the independent link sender has the voting right, and the execution parameters are who the independent link sender specifically throws the tickets.
By the method, the intelligent contract calling among different block chains can be realized, so that the communication among the blocks is more convenient and the management is easy.
In addition, an embodiment of the present invention further provides a computer-readable storage medium, where a block chain communication program is stored on the computer-readable storage medium, and when executed by a processor, the block chain communication program implements the following operations:
sending an interaction request sent by an independent chain sending end in an independent chain to a first operation point, wherein the first operation point is a connection point between the independent chain sending end and a communication chain in the independent chain;
controlling the first operation point to broadcast the interaction request to a second operation point through a communication chain, wherein the second operation point is a connection point between an independent chain receiving end in an independent chain and the communication chain;
and controlling the second operation point to execute the interactive request in the independent link receiving end.
Further, when executed by the processor, the block chain communication program further implements the following operations:
and controlling the first operating point to convert the data interaction request into a relay data interaction request corresponding to a data structure preset in the communication chain, and sending the relay data interaction request to a second operating point according to a transmission scheme preset in the communication chain.
Further, when executed by the processor, the block chain communication program further performs the following operations:
controlling the second operating point to convert the data structure of the relay data interaction request into the data structure in the independent link receiving end;
and inquiring an interaction result corresponding to the data interaction request in the independent link receiving end according to the data structure in the independent link receiving end, and feeding back the interaction result to the independent link sending end.
Further, when executed by the processor, the block chain communication program further implements the following operations:
controlling the first operating point to receive an asset interaction request and locking the asset corresponding to the asset information in the asset interaction request in the independent chain sending end;
and converting the asset interaction request into a relay asset interaction request corresponding to a data structure preset in the communication chain, and sending the relay asset interaction request to a second operation point according to a transmission scheme preset in the communication chain.
Further, when executed by the processor, the block chain communication program further performs the following operations:
and controlling the second operating point to call an intelligent contract of the independent link receiving end, casting asset data corresponding to the asset information in the independent link receiving end according to the intelligent contract, and sending the asset data to an address corresponding to the asset interaction request.
Further, when executed by the processor, the block chain communication program further implements the following operations:
and controlling the first operation point to receive the operation interaction request, converting the operation interaction request into a relay operation interaction request corresponding to a data structure preset in the communication chain, and sending the relay operation interaction request to a second operation point according to a transmission scheme preset in the communication chain.
Further, when executed by the processor, the block chain communication program further implements the following operations:
controlling the second operation point to call the intelligent contract in the independent link receiving end according to the execution request;
checking whether the independent chain sending end has execution authority or not according to the execution request and the intelligent contract;
and if the intelligent contract has the execution authority, executing the intelligent contract according to the execution parameters.
Further, when executed by the processor, the block chain communication program further performs the following operations:
and if the execution authority is not provided, the execution request is not responded.
The specific embodiment of the computer readable storage medium of the present invention is substantially the same as the embodiments of the above block chain communication program, and is not described herein again.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrases "comprising one of 8230; \8230;" 8230; "does not exclude the presence of additional like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) as described above and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and is not intended to limit the scope of the present invention, and all equivalent structures or equivalent processes performed by the present invention or directly or indirectly applied to other related technical fields are also included in the scope of the present invention.

Claims (9)

1. A block chain communication method is characterized in that the block chain communication method is applied to a block chain communication system, the block chain communication system comprises a plurality of independent chains and a plurality of communication chains, wherein one of the plurality of communication chains is respectively connected with the plurality of independent chains through a standard protocol, an operation point is formed at the connection position, any two communication chains of the plurality of communication chains are connected with each other, and any two communication chains are used for grouping and layering different block chains according to service requirements, wherein the standard protocol is a protocol for determining a data structure and a transmission scheme of the communication chains and is used for realizing connection and disconnection of the communication chains and the independent chains, and the operation point refers to a part for generating interaction between codes of the independent chains and the codes of the communication chains;
the block chain communication method comprises the following steps:
sending an interaction request sent by an independent chain sending end in an independent chain to a first operation point, wherein the first operation point is a connection point between the independent chain sending end and a communication chain in the independent chain;
controlling the first operation point to broadcast the interaction request to a second operation point through a communication chain, wherein the second operation point is a connection point between an independent chain receiving end in an independent chain and the communication chain;
controlling the second operation point to execute the interactive request in the independent link receiving end;
wherein the interaction request comprises an asset interaction request;
the step of controlling the first operation point to broadcast the interaction request to the second operation point through the communication link comprises:
controlling the first operating point to receive an asset interaction request and locking asset data corresponding to asset information in the asset interaction request in the independent chain sending end;
converting the asset interaction request into a relay asset interaction request corresponding to a preset data structure in the communication chain, and sending the relay asset interaction request to a second operation point according to a preset transmission scheme in the communication chain;
before the step of controlling the first operation point to receive the asset interaction request, the method further includes:
and verifying the independent link sending end and the independent link receiving end through a common identification scheme in the independent link sending end and the independent link receiving end.
2. The blockchain communication method of claim 1, wherein the interactive request includes a data interactive request;
the step of controlling the first operation point to broadcast the interaction request to the second operation point through the communication link comprises:
and controlling the first operating point to convert the data interaction request into a relay data interaction request corresponding to a data structure preset in the communication chain, and sending the relay data interaction request to a second operating point according to a transmission scheme preset in the communication chain.
3. The method as claimed in claim 2, wherein the step of controlling the second operation point to execute the interactive request in the independent link receiver comprises:
controlling the second operating point to convert the data structure of the relay data interaction request into the data structure in the independent link receiving end;
and inquiring an interaction result corresponding to the data interaction request in the independent link receiving end according to the data structure in the independent link receiving end, and feeding back the interaction result to the independent link sending end.
4. The blockchain communication method according to claim 1, wherein the step of controlling the second operation point to execute the interactive request in the independent link receiving end includes:
and controlling the second operating point to call an intelligent contract of the independent link receiving end, casting asset data corresponding to the asset information in the independent link receiving end according to the intelligent contract, and sending the asset data to an address corresponding to the asset interaction request.
5. The blockchain communication method of claim 1, wherein the interactive request includes an operation interactive request;
the step of controlling the first operation point to broadcast the interaction request to the second operation point through the communication link comprises:
and controlling the first operation point to receive the operation interaction request, converting the operation interaction request into a relay operation interaction request corresponding to a data structure preset in the communication chain, and sending the relay operation interaction request to a second operation point according to a transmission scheme preset in the communication chain.
6. The blockchain communication method of claim 5, wherein the operation interaction request includes an execution request and an execution parameter;
the step of controlling the second operation point to execute the interactive request in the independent link receiving end comprises:
controlling the second operation point to call the intelligent contract in the independent link receiving end according to the execution request;
checking whether the independent chain sending end has execution authority or not according to the execution request and the intelligent contract;
and if the intelligent contract has the execution authority, executing the intelligent contract according to the execution parameters.
7. The blockchain communication method according to claim 6, wherein after the step of checking whether the independent chain sender has the execution authority according to the execution request and the intelligent contract, further comprising:
and if the execution authority is not provided, the execution request is not responded.
8. A communication device comprising a blockchain communication system, a memory, a processor and a blockchain communication program stored on the memory and executable on the processor, wherein the blockchain communication program when executed by the processor implements the steps of the blockchain communication method according to any one of claims 1 to 7.
9. A computer-readable storage medium, wherein a block chain communication program is stored on the computer-readable storage medium, and when the block chain communication program is executed by a processor, the steps of the block chain communication method according to any one of claims 1 to 7 are implemented.
CN202211081713.6A 2022-09-06 2022-09-06 Block chain communication method, communication device and computer readable storage medium Active CN115174309B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211081713.6A CN115174309B (en) 2022-09-06 2022-09-06 Block chain communication method, communication device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211081713.6A CN115174309B (en) 2022-09-06 2022-09-06 Block chain communication method, communication device and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN115174309A CN115174309A (en) 2022-10-11
CN115174309B true CN115174309B (en) 2022-12-27

Family

ID=83481244

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211081713.6A Active CN115174309B (en) 2022-09-06 2022-09-06 Block chain communication method, communication device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN115174309B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018223995A1 (en) * 2017-06-07 2018-12-13 众安信息技术服务有限公司 Method, device and system for cross-chain communication in blockchains
CN113965329A (en) * 2021-10-25 2022-01-21 浙江师范大学 Cross-chain interoperation system, method, medium and data processing terminal

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20200074470A1 (en) * 2018-09-05 2020-03-05 International Business Machines Corporation Database configuration for asset transfers
CN110650189B (en) * 2019-09-20 2022-01-18 深圳供电局有限公司 Relay-based block chain interaction system and method
CN111741114B (en) * 2020-06-24 2023-05-16 陈鹏 Chain-of-block-based supervision cross-chain interaction system, method and equipment
CN114553884B (en) * 2022-01-24 2023-05-30 中国科学院计算技术研究所 Block chain cross-chain interaction method and system based on-demand domain establishment

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018223995A1 (en) * 2017-06-07 2018-12-13 众安信息技术服务有限公司 Method, device and system for cross-chain communication in blockchains
CN113965329A (en) * 2021-10-25 2022-01-21 浙江师范大学 Cross-chain interoperation system, method, medium and data processing terminal

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
"Atomic Cross-Chain Asset Exchange for Ethereum Public Chains";Monika等;《2021 International Conference on Computer Communication and Informatics (ICCCI)》;20210421;全文 *

Also Published As

Publication number Publication date
CN115174309A (en) 2022-10-11

Similar Documents

Publication Publication Date Title
CN102938770B (en) A kind of method and relevant apparatus, system realizing multi-protocols message unified interface
CN104080086A (en) Wireless connection establishment method and wireless connection establishment device
CN105323076A (en) Method for supplying power to power device (PD) through PSE (power supply equipment), and Ethernet PSE
CN114219414B (en) Subscription method, settlement method and system of flexible recruitment business center
CN108712320B (en) Message pushing method and device
CN112055078B (en) Data transmission method, device, computer equipment and storage medium
CN104410982B (en) Terminal polymerization and reconstructing method in a kind of Wireless Heterogeneous Networks
CN108170285B (en) Interactive control method and device for electronic equipment
CN113141383A (en) Device information subscription method, client, server, system and storage medium
CN101729557A (en) Method and system for realizing resource sharing of terminal equipment
CN111586105A (en) Automatic network distribution method for intelligent equipment and intelligent equipment
CN115174309B (en) Block chain communication method, communication device and computer readable storage medium
CN111200653B (en) Multi-platform communication method, multi-platform communication device and intermediate server
CN106254040B (en) Command response processing method and device
CN113535431A (en) Service calling method and system
KR102363539B1 (en) Communication module for electric vehicle charging system based on open charge point protocol and operation method of that
CN102708008A (en) Implementation method of linking download strategy
CN112449357B (en) Information interaction method and related equipment
CN111277982B (en) Face retrieval method and system for reducing IOT platform server consumption
CN103024021B (en) A kind of information transferring method and system
CN113256884B (en) Public power access box based on power Ethernet and service system thereof
CN112087745A (en) Network distribution method and device of household appliance, electronic device and storage medium
CN110213748A (en) Data transmission method, device, terminal and system
KR102330230B1 (en) Electric vehicle charging management system with OCPP-based message and signal processing
CN102739789A (en) Method and device for processing service, method and device for providing service, and service system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
EE01 Entry into force of recordation of patent licensing contract

Application publication date: 20221011

Assignee: Shenzhen Mingyuan cloud chain Internet Technology Co.,Ltd.

Assignor: Shenzhen Mingyuan Cloud Technology Co.,Ltd.

Contract record no.: X2023980038712

Denomination of invention: Blockchain communication methods, communication devices, and computer-readable storage media

Granted publication date: 20221227

License type: Common License

Record date: 20230727

EE01 Entry into force of recordation of patent licensing contract