CN110278264B - Block chain-based cross-link communication method and device and transaction system - Google Patents
Block chain-based cross-link communication method and device and transaction system Download PDFInfo
- Publication number
- CN110278264B CN110278264B CN201910534425.3A CN201910534425A CN110278264B CN 110278264 B CN110278264 B CN 110278264B CN 201910534425 A CN201910534425 A CN 201910534425A CN 110278264 B CN110278264 B CN 110278264B
- Authority
- CN
- China
- Prior art keywords
- business system
- chain
- service
- order
- theme
- 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
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q40/00—Finance; Insurance; Tax strategies; Processing of corporate or income taxes
- G06Q40/04—Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0893—Assignment of logical groups to network elements
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/50—Network service management, e.g. ensuring proper service fulfilment according to agreements
- H04L41/5041—Network service management, e.g. ensuring proper service fulfilment according to agreements characterised by the time relationship between creation and deployment of a service
- H04L41/5054—Automatic deployment of services triggered by the service manager, e.g. service implementation by automatic configuration of network components
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/51—Discovery or management thereof, e.g. service location protocol [SLP] or web services
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/56—Provisioning of proxy services
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Business, Economics & Management (AREA)
- Accounting & Taxation (AREA)
- Finance (AREA)
- Development Economics (AREA)
- Economics (AREA)
- Marketing (AREA)
- Strategic Management (AREA)
- Technology Law (AREA)
- Physics & Mathematics (AREA)
- General Business, Economics & Management (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The invention discloses a block chain-based cross-link communication method, a block chain-based cross-link communication device and a transaction system, which are suitable for the transaction system comprising a committee chain, a plurality of service systems and service chains corresponding to the service systems. The method comprises the following steps: the first business system generates a first order according to the information acquired from the first business chain, the topic of the second business system corresponding to the first order is determined through the committee chain, and the first order is written into the topic of the second business system through the first proxy service, so that the second business system monitors the topic of the second business system through the second proxy service, and the execution of the first order is realized. According to the technical scheme, the coupling between each service system and the third-party service chain is eliminated, and the service chains are accessed by the service systems in the equity store system in a cross-chain mode on the premise of reducing the configuration workload.
Description
Technical Field
The embodiment of the invention relates to the field of financial technology (Fintech), in particular to a block chain (Blockchain) -based cross-chain communication method, a device and a transaction system.
Background
With the development of computer technology, more and more technologies are applied in the financial field, the traditional financial industry is gradually changing to financial science and technology, and the block chain technology is not exceptional, but due to the requirements of security and real-time performance of the financial and payment industries, higher requirements are also put forward on the block chain technology.
The equity store system comprises a plurality of service systems and service chains corresponding to the service systems, and each service system can access each service chain in a cross-chain manner, namely access to a third-party service chain, only by carrying out corresponding code configuration. As shown in fig. 1, the equity mall system includes a business system A, B, C respectively corresponding to business chains a, b, and c, and in order to implement cross-chain access of each business system, taking business system a as an example, code information for accessing business chains b and c needs to be configured, and similarly, business system B, C. In addition, if a service system D and a service chain D are newly added, the service system D needs to configure code information for accessing the service chains a, b, and c, and similarly, the service system A, B, C needs to configure code information for accessing the service chain D.
In the rights and interests mall system in the prior art, configuration between the service system and the service chain is complex, and once the service system and the service chain are newly added, each service system needs to be configured, so that configuration workload is large.
Disclosure of Invention
The embodiment of the invention provides a block chain-based cross-link communication method, a block chain-based cross-link communication device and a block chain-based cross-link communication transaction system, which are used for releasing the coupling between each service system and a third-party service chain and realizing cross-link access of each service system in a rights and interests mall system to each service chain on the premise of reducing the configuration workload.
The block chain-based cross-link communication method provided by the embodiment of the invention is suitable for a transaction system comprising a committee chain, a plurality of service systems and service chains corresponding to the service systems; the committee chain comprises nodes corresponding to all the service systems; the theme of each business system is recorded in the intelligent contract of the committee chain; each business system monitors the message in the theme of each business system;
the method comprises the following steps:
the first business system generates a first order according to the information acquired from the first business chain;
the first business system determines the theme of a second business system corresponding to the first order through the committee chain;
the first business system writes the first order into a theme of the second business system through a first agency service of the first business system; and the second business system monitors the theme of the second business system through a second proxy service of the second business system, so as to implement the execution of the first order.
In the technical scheme, the first service system generates the first order, determines the theme of the second service system corresponding to the first order from the committee chain, and writes the first order into the theme of the second service system through the first proxy service, the first service system does not need to store the theme of each service system or configure related information communicated with a third-party service chain in the first service system, the first service system only needs to maintain the service chain of the first service system and the relation between the first service system and the committee chain, and operation and maintenance work of the first service system is reduced. Furthermore, when a service system and a service chain are added, the newly added service system configures the relevant information between the service chain and the committee chain, the information between the newly added service system and other existing service chains is not required to be configured, and the relationship between the other existing service systems and the newly added service chain is also not required to be configured, so that the configuration work of the newly added service system and the service chain is reduced.
Optionally, the writing, by the first business system, the first order into the theme of the second business system through the first proxy service includes:
the first business system writes the first order into a theme of the second business system of a first node of the committee chain through the first proxy service so that the first node synchronizes the first order into the theme of the second business system of the second node; the first node is a node corresponding to the first service system in the committee chain, and the second node is a node corresponding to the second service system in the committee chain.
In the above technical solution, the first business system writes the first order into the theme of the second business system of the first node through the first proxy service, and synchronizes the first order to the theme of the second business system of the second node through the first node, so that the second business system can monitor the theme of the second business system of the second node through the second proxy service and obtain the first order.
Optionally, the method further includes:
the first business system monitors a second order from the theme of the first business system through the first agency service, wherein the second order is a message which is generated by a third business system and written into the theme of the first business system through the third agency service of the third business system;
the first business system sends the second order to a first business chain, and executes the second order through the first business chain, so that an execution result of the second order of the first business chain is received;
and the first business system writes the execution result of the second order into the theme of the third business system through the first agency service.
In the above technical solution, the first service system may also monitor the second order by subscribing to the theme of the third service system, so that each service system may send a message to a designated service system, and may also receive messages sent by other service systems, thereby completing communication between each service system. The first business system writes the execution result of the second order into the theme of the third business system through the first agent service, and the third business system can monitor the execution result of the second order, so that the communication between the first business system and the third business system is realized.
Optionally, the committee chain further includes a commodity contract, and the commodity contract records a contrast relationship between each commodity and a theme of each business system;
the first order comprises commodity information;
the first business system determines the theme of a second business system corresponding to the first order through the committee chain, and the method comprises the following steps:
the first business system sends a query request to the committee chain, wherein the query request comprises commodity information of the first order;
the first business system receives the theme of the second business system returned by the committee chain; the subject matter of the second business system is determined by the committee according to the commodity contract.
In the above technical solution, the committee chain further includes a commodity contract, the commodity contract records a contrast relationship between each commodity and the subject of each business system, and after the first business system generates the first order, the first business system may query the subject of the second business system corresponding to the first order by sending a query request to the committee chain, so that the first order may be sent to the subject of the second business system. And commodity contracts are deployed in the committee chains, so that the efficiency of acquiring the theme of the second business system by the first business system is improved.
Correspondingly, the embodiment of the invention also provides a device for cross-chain communication based on the block chain, which is suitable for a transaction system comprising a committee chain, a plurality of service systems and service chains corresponding to the service systems; the committee chain comprises nodes corresponding to all the service systems; the theme of each business system is recorded in the intelligent contract of the committee chain; each business system monitors the message in the theme of each business system;
the device comprises:
the generating unit is used for generating a first order according to the information acquired from the first service chain;
the determining unit is used for determining the theme of the second business system corresponding to the first order through the committee chain;
the processing unit is used for writing the first order into the theme of the second business system through the first agency service of the first business system; and the second business system monitors the theme of the second business system through a second agent service of the second business system, so that the execution of the first order is realized.
Optionally, the processing unit is specifically configured to:
the first business system writes the first order into a theme of the second business system of a first node of the committee chain through the first proxy service so that the first node synchronizes the first order into the theme of the second business system of the second node; the first node is a node corresponding to the first service system in the committee chain, and the second node is a node corresponding to the second service system in the committee chain.
Optionally, the method is further used for:
monitoring a second order form from the theme of the first business system through the first proxy service, wherein the second order form is a message which is generated by a third business system and is written into the theme of the first business system through the third proxy service of the third business system;
sending the second order to a first business chain, and executing the second order through the first business chain, so as to receive an execution result of the second order of the first business chain;
and writing the execution result of the second order into the theme of the third business system through the first agency service.
Optionally, the committee chain further includes a commodity contract, and the commodity contract records a contrast relationship between each commodity and a theme of each business system;
the first order comprises commodity information;
the determining unit is specifically configured to:
sending a query request to the committee chain, wherein the query request comprises commodity information of the first order;
receiving the theme of the second business system returned by the committee chain; the subject matter of the second business system is determined by the committee according to the commodity contract.
Correspondingly, the embodiment of the invention also provides a block chain-based transaction system, which comprises a committee chain, a plurality of service systems and service chains corresponding to the service systems;
the committee chain is used for bearing the theme of each business system;
the business systems are used for subscribing the theme of the business system;
the business system is used for generating a first order according to the business chain of the business system and writing the first order into the theme of the corresponding business system through the proxy service of the business system;
the business system is also used for monitoring the theme of the business system through the proxy service of the business system so as to obtain a second order of the business system;
and the service chain is used for processing the second order sent by the service system.
Correspondingly, an embodiment of the present invention further provides a computing device, including:
a memory for storing program instructions;
and the processor is used for calling the program instructions stored in the memory and executing the method for the cross-chain communication based on the block chain according to the obtained program.
Accordingly, the embodiment of the present invention further provides a computer-readable non-volatile storage medium, which includes computer-readable instructions, and when the computer-readable instructions are read and executed by a computer, the computer is enabled to execute the above method for inter-chain communication based on a blockchain.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a diagram of a system architecture in the prior art;
FIG. 2 is a diagram illustrating a system architecture according to an embodiment of the present invention;
fig. 3 is a flowchart illustrating a method of cross-link communication according to an embodiment of the present invention;
FIG. 4 is a flowchart illustrating another method for cross-link communication according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of an apparatus for cross-link communication according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the present invention will be described in further detail with reference to the accompanying drawings, and it is apparent that the described embodiments are only a part of the embodiments of the present invention, not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 2 exemplarily shows a system architecture to which the method for providing inter-chain communication based on a blockchain according to the embodiment of the present invention is applicable, where the system architecture may be a service chain including a committee chain, a plurality of service systems, and each service system. The committee link is a block link system consisting of nodes, and comprises nodes corresponding to all the service systems; the subject of each service system is recorded in the intelligent contract of the committee chain, wherein the subject can be understood as a message channel in a block chain node and is used for receiving a message corresponding to the subject; each business system is used for subscribing the theme of the business system, namely each business system monitors the information in the theme of each business system in the intelligent contract of the committee chain; and the service chain corresponding to the service system is used for processing the order information sent by the service system.
When each business system performs cross-link communication, a first order can be generated according to the business chain of the business system and written into the corresponding business system theme through the proxy service of the business system, a second order of the business system can be obtained by monitoring the business system theme through the proxy service of the business system, and the business system can send the second order to the corresponding business chain so that the business chain processes the second order.
As shown in fig. 2, the service system includes a service system a, a service system B, and a service system C, and the corresponding service chains are respectively: the service chain a, the service chain b and the service chain c correspond to committee chain nodes which are respectively as follows: the node 1, the node 2 and the node 3 respectively have the following corresponding themes: theme 1, theme 2, theme 3. Further, the committee chain comprises a node 1, a node 2 and a node 3, and each node in the committee chain is deployed with an intelligent contract which comprises a theme 1, a theme 2 and a theme 3. If the business system A needs to send a message to the business system B, the business system C can write the message into the topic 2 of the node 1 through the proxy service of the business system A, and each node in the committee chain executes broadcast consensus, namely the message exists in the topic 2 of the node 2, so that the business system B can subscribe the message in the topic 2 through the proxy service of the business system B. In addition, the service system may subscribe to the theme corresponding to itself, and may also correspond to the theme corresponding to another service system, for example, the service system B may subscribe to the theme 2 and the theme 3 at the same time.
In the embodiment of the invention, the publishing and subscribing of each business system can be realized by adopting the message middleware, and the business system can start an agent service to create a theme in a committee chain through the message middleware and is used for receiving the message corresponding to the theme. Further, the business system can also publish messages to corresponding topics through the proxy service.
Through the system architecture, cross-link communication among the service systems does not need to carry out a large amount of code configuration, and only the message needs to be sent to the theme of the service system to be communicated.
Based on the above description, fig. 3 exemplarily illustrates a flow of a method for block chain based inter-link communication according to an embodiment of the present invention, where the flow may be performed by an apparatus for block chain based inter-link communication.
As shown in fig. 3, the process specifically includes:
The first business chain is a business chain corresponding to the first business system, and an intelligent contract is deployed in the first business chain and used for storing commodity information in the first business system, wherein the commodity information can be card and coupon information. The first service system may determine information of goods to be purchased from an intelligent contract of the first service chain through an SDK (Software Development Kit), and generate a first order according to the information of the goods to be purchased.
The committee chain can store the contrast relationship between each commodity and the subject of each business system in the block chain account book, if each business system sends the respective commodity information to the committee chain, the committee chain is stored in the form of the account book, and when a first business system needs to send a first order, the whole account book can be traversed to check the subject of a second business system corresponding to the first order.
Committee chains can also be used for deploying commodity contracts, and contrast relations between commodities and themes of business systems are recorded in the commodity contracts. For example, the commodity contract records an identifier of a certain commodity, the commodity is a commodity in the business system a, and the subject of the business system a in the committee chain is the subject 1, and then the commodity contract records the corresponding relationship between the identifier of the commodity and the subject 1. In the embodiment of the present invention, a first order generated by a first business system includes commodity information and order information, the commodity information may include commodity category, commodity quoted price, card and ticket denomination, the order information may include order placement price, purchase quantity, supplier, purchaser, and the like, the first business system may record the commodity information in an inquiry request and send the inquiry request to a committee chain, and after receiving the inquiry request, the committee chain determines a corresponding theme of a second business system from a commodity contract according to the commodity information in the inquiry request, and returns the theme of the second business system to the first business system.
The first business system can package the first order according to a preset format and write the first order into a theme of a second business system of the committee chain through a first agency service of the first business system. Here, the first proxy service may return the first response, that is, the first proxy service writes the first order in the subject of the second business system of the committee chain, and then returns the first response to the first business system. In the embodiment of the invention, the publisher published message and the subscriber subscribed message are decoupled in an asynchronous mode, namely, the first business system sends the first order and the second business system obtains the first order, the first business system does not need to wait until the second business system obtains the response information of the first order, the efficiency of publishing the order by the first business system is improved, and each business system only needs to maintain the theme in the corresponding business chain and the committee chain, so that the maintenance workload of the business systems is reduced.
Specifically, a node corresponding to a first service system in the committee chain is denoted as a first node, and a node corresponding to a second service system in the committee chain is denoted as a second node. The first business system may write the first order into an intelligent contract of the first node through a first proxy service corresponding to the first business system, specifically, into a topic of a second business system of the intelligent contract of the first node, the first node synchronizes the first order written into the intelligent contract to each node of the committee chain, the intelligent contract of the second node is synchronized to the first order, specifically, the first order is synchronized into a topic of the second business system of the intelligent contract of the second node.
The second service system monitors the theme of the second service system through the second proxy service of the second service system, and equivalently, when the theme of the second service system in the intelligent contract of the second node is synchronized to the first order, the second service system can monitor the first order through the second proxy service, so that the first order can be executed through the service chain of the second service system.
In addition, the first business system can write the first order into the theme of the second business system through the first proxy service, and can also monitor the second order written into the theme of the first business system through the first proxy service, wherein the second order is a message which is generated by the third business system and written into the theme of the first business system through the third proxy service of the third business system. The first business system sends the monitored second order to the first business chain, the second order can be executed through the first business chain, after the first business chain finishes executing the second order, the execution result of the second order can be returned to the first business system, and the first business system writes the execution result of the second order into the theme of the third business system through the first agent service. And the third service system monitors the theme and acquires the third order.
For better explaining the embodiment of the present invention, the following describes the process of inter-link communication based on block chains in a specific implementation scenario, as shown in fig. 4, the service system includes a service system a and a service system B, and the corresponding service chains are respectively: the service chain a and the service chain b correspond to committee link nodes which are respectively as follows: the corresponding topics of the node 1 and the node 2 are respectively as follows: theme 1, theme 2. Further, the committee chain comprises a node 1 and a node 2, and each node in the committee chain deploys an intelligent contract which comprises a theme 1 and a theme 2. The message middleware starts a first proxy service for publishing the messages of the business system A and subscribing the messages in the topic 1; the message middleware initiates a second proxy service for publishing messages for business system B and subscribing to messages in topic 2. The business system A needs to send a first order to the business system B for the rights and interests exchange business.
The execution steps are as follows:
step 401, the service system a searches for product and order data that need to be sent to the service system B from the intelligent contract of the service chain a through the SDK, and generates a first order according to the obtained product and order data, for example, the first order has a commodity identifier and a purchase price of a first commodity to be purchased in advance.
Step 402, the service system a determines the subject 2 of the service system B corresponding to the commodity identification of the first commodity from the commodity contract of the node 1 of the committee link through the SDK.
Step 403, the service system a packages the first order according to a preset message format, and sends the first order to the subject 2 of the intelligent contract of the node 1 through the first agent service, and the first agent service returns a response of successful issuing to the service system a.
In step 404, the first order in the subject 2 of the intelligent contract of the node 1 in the committee chain is synchronized to the subject 2 of the intelligent contract of the node 2, namely, the first order is recorded in the subject 2 of the intelligent contract of the node 2.
Step 405, the business system B monitors a first order in the subject 2 of the intelligent contract of the node 2 through the second agent service, analyzes the first order, and determines whether the purchase price in the first order passes a preset exchange rule of the business system B, if it is determined that the purchase price of the first commodity is greater than the cost price, or sends information in the first order to a worker of the business system B, and the worker performs manual determination.
Step 406, if the business system B determines that the first order passes through the preset exchange rule, executing the exchange business in the business chain B, and writing the exchange business completion result into the theme 1 of the intelligent contract of the node 2 through the second proxy service; if the business system B determines that the first order fails the preset exchange rule, a corresponding response, such as the pre-sold price of the first commodity, may be generated and written into the subject 1 of the intelligent contract of the node 2 through the second agent service.
In the technical scheme, the first service system generates the first order, determines the theme of the second service system corresponding to the first order from the committee chain, and writes the first order into the theme of the second service system through the first proxy service, the first service system does not need to store the theme of each service system or configure related information communicated with a third-party service chain in the first service system, the first service system only needs to maintain the service chain of the first service system and the relation between the first service system and the committee chain, and operation and maintenance work of the first service system is reduced. Furthermore, the coupling between each service system and a third-party service chain is removed, the threshold for accessing a new service system is reduced, when a service system and a service chain are added, the newly added service system configures the relevant information between the service chain and the committee chain, the information between the newly added service system and other existing service chains is not required to be configured, and the relationship between the other existing service systems and the newly added service chain is not required to be configured, so that the configuration work of the newly added service system and the service chain is reduced. The expandability of each service system is enhanced, the cross-link access to the third-party service link data can be realized at low cost, and the expandability of the system is enhanced. Through the message middleware, a topic-based publish-subscribe mode is used, and because the implementation is based on a block chain, messages are never lost and cannot be tampered, a transmission channel is encrypted, and connection needs certificate authentication, and communication among all business systems is realized by selecting the cross-organization message middleware and establishing a committee chain to safely open all the business systems.
Based on the same inventive concept, fig. 5 exemplarily illustrates a structure of an apparatus for block chain based inter-link communication according to an embodiment of the present invention, and the apparatus may perform a flow of a method for block chain based inter-link communication.
The device is suitable for transaction systems comprising a committee chain, a plurality of service systems and service chains corresponding to the service systems; the committee chain comprises nodes corresponding to all the service systems; the theme of each service system is recorded in the intelligent contract of the committee chain; each business system monitors the message in the theme of each business system;
the device includes:
a generating unit 501, configured to generate a first order according to information obtained from the first service chain;
a determining unit 502, configured to determine, through the committee chain, a theme of the second business system corresponding to the first order;
a processing unit 503, configured to write the first order into a topic of the second business system through a first proxy service of a first business system; and the second business system monitors the theme of the second business system through a second proxy service of the second business system, so as to implement the execution of the first order.
Optionally, the processing unit 503 is specifically configured to:
the first business system writes the first order into a theme of the second business system of a first node of the committee chain through the first proxy service so that the first node synchronizes the first order into the theme of the second business system of the second node; the first node is a node corresponding to the first service system in the committee chain, and the second node is a node corresponding to the second service system in the committee chain.
Optionally, the processing unit 503 is further configured to:
monitoring a second order from the theme of the first business system through the first proxy service, wherein the second order is a message which is generated by a third business system and written into the theme of the first business system through the third proxy service of the third business system;
sending the second order to a first business chain, and executing the second order through the first business chain, so as to receive an execution result of the second order of the first business chain;
and writing the execution result of the second order into the theme of the third business system through the first agency service.
Optionally, the committee chain further includes a commodity contract, and the commodity contract records a contrast relationship between each commodity and a theme of each business system;
the first order comprises commodity information;
the determining unit 502 is specifically configured to:
sending a query request to the committee chain, wherein the query request comprises commodity information of the first order;
receiving the theme of the second business system returned by the committee chain; the subject matter of the second business system is determined by the committee according to the commodity contract.
Based on the same invention concept, the embodiment of the invention also provides a transaction system based on the block chain, which comprises a committee chain, a plurality of service systems and service chains corresponding to the service systems;
the committee chain is used for bearing the theme of each business system;
the business systems are used for subscribing the theme of the business system;
the business system is used for generating a first order according to the business chain of the business system and writing the first order into the theme of the corresponding business system through the proxy service of the business system;
the business system is also used for monitoring the theme of the business system through the proxy service of the business system so as to obtain a second order of the business system;
and the service chain is used for processing the second order sent by the service system.
Based on the same inventive concept, an embodiment of the present invention further provides a computing device, including:
a memory for storing program instructions;
and the processor is used for calling the program instructions stored in the memory and executing the block chain-based cross-chain communication method according to the obtained program.
Based on the same inventive concept, the embodiment of the present invention further provides a computer-readable non-volatile storage medium, which includes computer-readable instructions, and when the computer reads and executes the computer-readable instructions, the computer is caused to execute the above method for inter-chain communication based on a blockchain.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the invention.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.
Claims (9)
1. A block chain-based cross-chain communication method is characterized by being applicable to transaction systems comprising a committee chain, a plurality of service systems and service chains corresponding to the service systems; the committee chain comprises nodes corresponding to all the service systems; the theme of each business system is recorded in the intelligent contract of the committee chain; each business system monitors the message in the theme of each business system;
the method comprises the following steps:
the first business system generates a first order according to the information acquired from the first business chain;
the first business system determines a theme of a second business system corresponding to the first order through the committee chain;
the first business system writes the first order into a theme of the second business system through a first proxy service of the first business system; the second business system monitors the theme of the second business system through a second agent service of the second business system, so that the execution of the first order is realized;
the first business system writes the first order into the theme of the second business system through the first proxy service, and the method comprises the following steps: the first business system writes the first order into a theme of the second business system of a first node of the committee chain through the first proxy service so that the first node synchronizes the first order into the theme of the second business system of a second node; the first node is a node corresponding to the first service system in the committee chain, and the second node is a node corresponding to the second service system in the committee chain.
2. The method of claim 1, wherein the method further comprises:
the first business system monitors a second order form from the theme of the first business system through the first proxy service, wherein the second order form is a message which is generated by a third business system and written into the theme of the first business system through the third proxy service of the third business system;
the first business system sends the second order to a first business chain, and executes the second order through the first business chain, so that an execution result of the second order of the first business chain is received;
and the first business system writes the execution result of the second order into the theme of the third business system through the first agency service.
3. The method of claim 1 or 2, wherein the committee further comprises a commodity contract recording a comparison between each commodity and a subject matter of each business system;
the first order comprises commodity information;
the first business system determines the theme of a second business system corresponding to the first order through the committee chain, and the method comprises the following steps:
the first business system sends a query request to the committee chain, wherein the query request comprises commodity information of the first order;
the first business system receives the theme of the second business system returned by the committee chain; the subject matter of the second business system is determined by the committee according to the commodity contract.
4. A device for cross-chain communication based on a block chain is characterized by being suitable for a transaction system comprising a committee chain, a plurality of service systems and a service chain corresponding to each service system; the committee chain comprises nodes corresponding to all the service systems; the theme of each business system is recorded in the intelligent contract of the committee chain; each business system monitors the message in the theme of each business system;
the device comprises:
the generating unit is used for generating a first order according to the information acquired from the first service chain;
the determining unit is used for determining the theme of the second business system corresponding to the first order through the committee chain;
the processing unit is used for writing the first order into the theme of the second business system through the first agency service of the first business system; the second business system monitors the theme of the second business system through a second agent service of the second business system, so that the execution of the first order is realized;
the processing unit is specifically configured to:
the first business system writes the first order into a theme of the second business system of a first node of the committee chain through the first proxy service so that the first node synchronizes the first order into the theme of the second business system of a second node; the first node is a node corresponding to the first service system in the committee chain, and the second node is a node corresponding to the second service system in the committee chain.
5. The apparatus as recited in claim 4, said processing unit to further:
monitoring a second order from the theme of the first business system through the first proxy service, wherein the second order is a message which is generated by a third business system and written into the theme of the first business system through the third proxy service of the third business system;
sending the second order to a first business chain, and executing the second order through the first business chain, so as to receive an execution result of the second order of the first business chain;
and writing the execution result of the second order into the theme of the third business system through the first agency service.
6. The apparatus of claim 4 or 5, wherein the committee further comprises a commodity contract recording a correlation between each commodity and a subject matter of each business system;
the first order comprises commodity information;
the determining unit is specifically configured to:
sending a query request to the committee chain, wherein the query request comprises commodity information of the first order;
receiving the theme of the second business system returned by the committee chain; the subject matter of the second business system is determined by the committee according to the commodity contract.
7. A transaction system based on a block chain is characterized by comprising a committee chain, a plurality of service systems and service chains corresponding to the service systems;
the plurality of service systems comprise a first service system and a second service system;
the committee chain is used for bearing the theme of each business system;
the business systems are used for subscribing the theme of the business system;
the first business system is used for generating a first order according to the business chain of the first business system and writing the first order into the corresponding theme of the second business system through the proxy service of the first business system;
the second business system is used for monitoring the theme of the second business system through the proxy service of the second business system so as to obtain the first order; and processing the first order;
when the first service system is written into the theme of the corresponding second service system through the proxy service of the first service system, the first service system is specifically configured to: writing the first order into a theme of the second business system of a first node of the committee chain through proxy service of the first business system, so that the first node synchronizes the first order into the theme of the second business system of a second node; the first node is a node corresponding to the first service system in the committee chain, and the second node is a node corresponding to the second service system in the committee chain.
8. A computing device, comprising:
a memory for storing program instructions;
a processor for calling program instructions stored in said memory to execute the method of any one of claims 1 to 3 in accordance with the obtained program.
9. A computer-readable non-transitory storage medium including computer-readable instructions which, when read and executed by a computer, cause the computer to perform the method of any one of claims 1 to 3.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910534425.3A CN110278264B (en) | 2019-06-20 | 2019-06-20 | Block chain-based cross-link communication method and device and transaction system |
PCT/CN2020/096424 WO2020253688A1 (en) | 2019-06-20 | 2020-06-16 | Blockchain-based cross-chain communication method, device, and transaction system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910534425.3A CN110278264B (en) | 2019-06-20 | 2019-06-20 | Block chain-based cross-link communication method and device and transaction system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110278264A CN110278264A (en) | 2019-09-24 |
CN110278264B true CN110278264B (en) | 2023-02-21 |
Family
ID=67961092
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910534425.3A Active CN110278264B (en) | 2019-06-20 | 2019-06-20 | Block chain-based cross-link communication method and device and transaction system |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN110278264B (en) |
WO (1) | WO2020253688A1 (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110278264B (en) * | 2019-06-20 | 2023-02-21 | 深圳前海微众银行股份有限公司 | Block chain-based cross-link communication method and device and transaction system |
CN113204436B (en) * | 2020-02-03 | 2024-07-30 | 马上消费金融股份有限公司 | Message processing method, device, equipment and computer readable storage medium |
CN113467888B (en) * | 2021-06-29 | 2024-02-23 | 网易(杭州)网络有限公司 | Cross-chain calling method and device of intelligent contract, electronic equipment and storage medium |
CN113590426B (en) * | 2021-08-09 | 2023-06-09 | 中国人民大学 | Cross-trust-domain service monitoring method and system based on blockchain |
CN114666098A (en) * | 2022-02-28 | 2022-06-24 | 重庆趣链数字科技有限公司 | Mobile terminal non-intrusive event monitoring universal uplink mechanism |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108009811A (en) * | 2017-11-30 | 2018-05-08 | 中国人民解放军国防科技大学 | Inter-cloud computing environment value exchange-oriented cross-chain communication method |
CN108256864A (en) * | 2018-02-13 | 2018-07-06 | 中链科技有限公司 | Between a kind of block chain across the foundation of chain alliance and communication means, system |
CN108269190A (en) * | 2018-01-17 | 2018-07-10 | 深圳四方精创资讯股份有限公司 | Across chain method and its system based on across chain relaying platform |
CN108712257A (en) * | 2018-04-03 | 2018-10-26 | 阿里巴巴集团控股有限公司 | The authentication method and device, electronic equipment of transregional piece of chain |
CN108876618A (en) * | 2018-06-15 | 2018-11-23 | 浙江华信区块链科技服务有限公司 | A kind of exchange block catenary system and corresponding universal block chain mutual operation method and network |
WO2019042101A1 (en) * | 2017-08-29 | 2019-03-07 | 华为技术有限公司 | Cross-chain trading method and apparatus |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US10783272B2 (en) * | 2017-12-08 | 2020-09-22 | Nec Corporation | Method and system of preserving privacy for usage of lightweight blockchain clients |
CN108880794A (en) * | 2018-06-15 | 2018-11-23 | 浙江华信区块链科技服务有限公司 | Across chain user identity and its digital asset management system |
CN110278264B (en) * | 2019-06-20 | 2023-02-21 | 深圳前海微众银行股份有限公司 | Block chain-based cross-link communication method and device and transaction system |
-
2019
- 2019-06-20 CN CN201910534425.3A patent/CN110278264B/en active Active
-
2020
- 2020-06-16 WO PCT/CN2020/096424 patent/WO2020253688A1/en active Application Filing
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2019042101A1 (en) * | 2017-08-29 | 2019-03-07 | 华为技术有限公司 | Cross-chain trading method and apparatus |
CN108009811A (en) * | 2017-11-30 | 2018-05-08 | 中国人民解放军国防科技大学 | Inter-cloud computing environment value exchange-oriented cross-chain communication method |
CN108269190A (en) * | 2018-01-17 | 2018-07-10 | 深圳四方精创资讯股份有限公司 | Across chain method and its system based on across chain relaying platform |
CN108256864A (en) * | 2018-02-13 | 2018-07-06 | 中链科技有限公司 | Between a kind of block chain across the foundation of chain alliance and communication means, system |
CN108712257A (en) * | 2018-04-03 | 2018-10-26 | 阿里巴巴集团控股有限公司 | The authentication method and device, electronic equipment of transregional piece of chain |
CN108876618A (en) * | 2018-06-15 | 2018-11-23 | 浙江华信区块链科技服务有限公司 | A kind of exchange block catenary system and corresponding universal block chain mutual operation method and network |
Also Published As
Publication number | Publication date |
---|---|
WO2020253688A1 (en) | 2020-12-24 |
CN110278264A (en) | 2019-09-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110278264B (en) | Block chain-based cross-link communication method and device and transaction system | |
CN111159307B (en) | Cross-link data subscription method and device | |
CN110390525B (en) | Direct access method for block chain world state and block chain node | |
CN108985742B (en) | Transaction processing method and device and block chain system | |
CN111401871B (en) | Transaction processing method, device, equipment and system | |
CN110083629B (en) | Event subscription method and device based on blockchain | |
CN109345392B (en) | Method and system for issuing programming question, issuing solution code and checking solution code | |
CN112766854B (en) | Block chain-based digital commodity transaction method and device | |
CN110136018B (en) | Method, device and system for intelligently adding social friends | |
CN116385063A (en) | Rights and interests sharing processing method and device | |
CN106384255A (en) | Method and device for creating information code promotion information | |
CN110992039B (en) | Transaction processing method, device and equipment | |
CN110266610B (en) | Traffic identification method and device and electronic equipment | |
CN114491662B (en) | Block chain-based data asset auditing method, system and equipment | |
CN111369282B (en) | Resource processing method and device | |
CN106559470A (en) | A kind of method for pushing and device of account information | |
CN109308307A (en) | User information sharing system based on block chain | |
CN113837826A (en) | Order processing method and equipment | |
CN115983997A (en) | Block chain-based collection management method, block chain node and system | |
CN114119243A (en) | Pool financing management method, device, medium and electronic equipment based on block chain | |
CN114328560A (en) | Lean logistics execution method, device, system and computer readable storage medium | |
CN114756207A (en) | Business system development method, PaaS platform and related equipment | |
CN111798235A (en) | Method and device for storing wind control information | |
CN111144898A (en) | Method, equipment and medium for tracing source of legal book | |
CN111198846A (en) | Data exchange method and device based on block chain |
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 |