CN108924175A - A kind of communication means and device of block interchain - Google Patents

A kind of communication means and device of block interchain Download PDF

Info

Publication number
CN108924175A
CN108924175A CN201810412733.4A CN201810412733A CN108924175A CN 108924175 A CN108924175 A CN 108924175A CN 201810412733 A CN201810412733 A CN 201810412733A CN 108924175 A CN108924175 A CN 108924175A
Authority
CN
China
Prior art keywords
block chain
service request
block
sent
interchain
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.)
Pending
Application number
CN201810412733.4A
Other languages
Chinese (zh)
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.)
Beijing Chain Chain Information Technology Co Ltd
Original Assignee
Beijing Chain Chain Information 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 Beijing Chain Chain Information Technology Co Ltd filed Critical Beijing Chain Chain Information Technology Co Ltd
Priority to CN201810412733.4A priority Critical patent/CN108924175A/en
Publication of CN108924175A publication Critical patent/CN108924175A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/1066Session management
    • H04L65/1073Registration or de-registration
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1001Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/133Protocols for remote procedure calls [RPC]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION 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/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Business, Economics & Management (AREA)
  • General Business, Economics & Management (AREA)
  • Multimedia (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The present invention provides the communication means and device of a kind of block interchain, are related to block interchain communication technique field, by the way of isomorphism block chain interchanger is arranged, firstly, obtaining the service request that the first block chain is sent;Then, service request is sent to corresponding second block chain;Finally, obtaining the second feedback information of the block chain based on service request, and feedback information is sent to the first block chain, completes interchain communication.In embodiments of the present invention, by the way that isomorphism block chain interchanger is arranged, achieve the purpose that connect multiple block chains by way of common recognition, and then solved in the prior art that each block interchain is mutually indepedent, the technical issues of cannot being in communication with each other and not can be carried out data exchange.

Description

A kind of communication means and device of block interchain
Technical field
The present invention relates to block interchain communication technique fields, more particularly, to the communication means and dress of a kind of block interchain It sets.
Background technique
Block chain is the novel of the computer technologies such as Distributed Storage, point-to-point transmission, common recognition mechanism, Encryption Algorithm Application model.So-called common recognition mechanism is that the mathematics calculation established between different nodes and trust, obtain equity is realized in block catenary system Method.For narrow sense, block chain is a kind of a kind of chain for being sequentially in time combined into data block in such a way that sequence is connected Formula data structure, and the distributed account book that can not be distorted He can not forge guaranteed in a manner of cryptography.Broadly, block chain Technology is to verify to know together algorithm with storing data, using distributed node to generate and update number using block linked data structure According to, the safety that guarantees in the way of cryptography data transmission and access, utilize and closed by the intelligence that automatized script code forms About program the completely new distributed basis framework and calculation of one kind with operation data.
At this stage, most of enterprise focuses on the research and development of block platform chain in industry, and the research and development of block platform chain, only It is a kind of technology for being confined to certain vertical fields and removing application block chain, such as financial field, electric business field, reference field field The technical research of block chain still just as information island one by one between block chain and block chain, be unable to cooperative communication, into And data exchange is carried out, this is allowed for, and the block catenary system between different field is each self-enclosed, and each side's data cannot be reached in time Unanimously.
In view of the above problems, not proposing effective solution also.
Summary of the invention
In view of this, the purpose of the present invention is to provide the communication means and device of a kind of block interchain, it is existing to solve The technical issues of each block interchain is mutually indepedent in technology, cannot be in communication with each other and not can be carried out data exchange.
According to embodiments of the present invention, a kind of communication means of block interchain is provided, isomorphism block chain interchanger is applied to, The method includes:Obtain the service request of the first block chain transmission, wherein the first block chain is that common recognition has been used as to save Put any one being linked into multiple block chains of the isomorphism block chain interchanger;Institute is sent to corresponding second block chain State service request, wherein the second block chain is described for that can provide in the multiple block chain for the first block chain The block chain of the requested service of service request;The feedback information of the second block chain based on the service request is obtained, and The feedback information is sent to the first block chain.
Further, sending the service request to corresponding second block chain includes:To the note of the second block chain The first oracle listener in volume port sends the service request, so that first oracle listener sends the service request Extremely handled in the second block chain.
Further, the feedback information is sent to the first block chain includes:The feedback information is sent to The second oracle listener in the registered port of the first block chain, so that second oracle listener sends out the feedback information It send into the first block chain and is handled.
Further, before obtaining the service request that the first block chain is sent, the method also includes:It obtains described more The registration information of a block chain, wherein the registration information includes the port information of service IP address information and registered port, In, oracle listener is provided at the registered port, the oracle listener is for monitoring external feedback data.
Further, the multiple block chain is common recognition operation to be carried out in chain, and reach in chain based on the common recognition operation At the block chain of common recognition.
Further, the method also includes:Service call is carried out in the first block chain and the second block chain During, interchain data are written into interchain account book the isomorphism block chain interchanger, wherein the interchain data packet It includes:Interaction data between the first block chain and the isomorphism block chain interchanger, the second block chain and described same Interaction data between structure block chain interchanger.
According to embodiments of the present invention, a kind of communication device of block interchain is additionally provided, described device includes:Second obtains Unit, for obtaining the service request of the first block chain transmission, wherein the first block chain is that common recognition node has been used as to connect Enter to any one in multiple block chains of isomorphism block chain interchanger;Transmission unit is used for corresponding second block chain Send the service request, wherein it can be that the first block chain mentions that the second block chain, which is in the multiple block chain, For the block chain of the requested service of the service request;Third acquiring unit is based on institute for obtaining the second block chain The feedback information of service request is stated, and the feedback information is sent to the first block chain.
Further, the transmission unit includes:The first oracle listener into the registered port of the second block chain The service request is sent, is carried out so that the service request is sent in the second block chain by first oracle listener Processing.
Further, the feedback information is sent to the first block chain and includes by the third acquiring unit:By institute The second oracle listener that feedback information is sent in the registered port of the first block chain is stated, so that second oracle listener The feedback information is sent in the first block chain and is handled.
Further, before the service request that the second acquisition unit obtains that the first block chain is sent, described device Further include:First acquisition unit, for obtaining the registration information of the multiple block chain, wherein the registration information includes clothes The port information for the IP address information and registered port of being engaged in, wherein oracle listener, the monitoring journey are provided at the registered port Sequence is same as monitoring external feedback data.
In embodiments of the present invention, by the way of isomorphism block chain interchanger is arranged, firstly, obtaining the first block chain hair The service request sent;Then, service request is sent to corresponding second block chain;Finally, obtaining the second block chain is based on service The feedback information of request, and feedback information is sent to the first block chain, complete interchain communication.In embodiments of the present invention, lead to Setting isomorphism block chain interchanger is crossed, has achieved the purpose that connect multiple block chains by way of common recognition, and then is solved Each block interchain in the prior art of having determined is mutually indepedent, the technical issues of cannot being in communication with each other and not can be carried out data exchange, from And realize the technical effect that the data in block chain can swap between block chain.
Detailed description of the invention
It, below will be to specific in order to illustrate more clearly of the specific embodiment of the invention or technical solution in the prior art Embodiment or attached drawing needed to be used in the description of the prior art be briefly described, it should be apparent that, it is described below Attached drawing is some embodiments of the present invention, for those of ordinary skill in the art, before not making the creative labor It puts, is also possible to obtain other drawings based on these drawings.
Fig. 1 is a kind of flow chart of the communication means of the block interchain provided according to embodiments of the present invention;
Fig. 2 is a kind of flow chart that oracle listener is called in registered port provided according to embodiments of the present invention;
Fig. 3 is the interaction signal between a kind of block chain and isomorphism block chain interchanger provided according to embodiments of the present invention Figure;
Fig. 4 is a kind of schematic diagram of the communication device of the block interchain provided according to embodiments of the present invention.
Specific embodiment
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with attached drawing to the present invention Technical solution be clearly and completely described, it is clear that described embodiments are some of the embodiments of the present invention, rather than Whole embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art are not making creative work premise Under every other embodiment obtained, shall fall within the protection scope of the present invention.
Embodiment one:
Fig. 1 is a kind of flow chart of the communication means of the block interchain provided according to embodiments of the present invention, the communication means Applied to isomorphism block chain interchanger, as shown in Figure 1, this method comprises the following steps:
Step S102 obtains the service request that the first block chain is sent, wherein the first block chain is to be used as common recognition Node is linked into any one in multiple block chains of isomorphism block chain interchanger;
Step S104 sends service request to corresponding second block chain, wherein the second block chain is in multiple block chains The block chain of the requested service of the service request can be provided for the first block chain;
Step S106 obtains the second feedback information of the block chain based on service request, and feedback information is sent to first Block chain.
In embodiments of the present invention, by the way of isomorphism block chain interchanger is arranged, firstly, obtaining the first block chain hair The service request sent;Then, the service request is sent to corresponding second block chain;Finally, obtaining the second block chain is based on clothes The feedback information of business request, and feedback information is sent to the first block chain, complete interchain communication.In embodiments of the present invention, By the way that isomorphism block chain interchanger is arranged, achieve the purpose that connect multiple block chains by way of common recognition, in turn Solve in the prior art that each block interchain is mutually indepedent, the technical issues of cannot being in communication with each other and not can be carried out data exchange, To realize the technical effect that the data in block chain can swap between block chain.
In an alternative embodiment, step S104 sends institute's service request to corresponding second block chain, specific to wrap Include following method:
The first oracle listener into the registered port of the second block chain sends service request, so that the first oracle listener will Service request is sent in the second block chain and is handled.
In embodiments of the present invention, the second block chain needs to register the service IP address of itself in isomorphism block chain interchanger With serve port (that is, above-mentioned registered port), and at registered port call eventhub RPC (that is, it is above-mentioned first monitor journey Sequence) it is monitored, when the first oracle listener listens to what isomorphism block chain interchanger was sent to the registered port of the second block chain When service request, which is just sent in the second block chain and handles by the first oracle listener.
Fig. 2 is a kind of flow chart that oracle listener is called in registered port provided according to embodiments of the present invention.
In embodiments of the present invention, RPC (Remote Procedure Call) is known as remote procedure call, is a kind of logical It crosses network and requests service from remote computer program, the agreement without understanding underlying network technology.As shown in Fig. 2, should The process of eventhub RPC oracle listener is called to include the following steps:
Step S201, client Stub initiate RPC and call;
Step S202 selects a server-side example according to load balancing;
Step S203, PB serializing, is communicated based on HTTP/2Stream;
Step S204, net reading and writing;
Step S205, PB unserializing;
Step S206 adjusts back the set RespT method of GrpcFuture, and wake up call side is blocked thread, obtains response.
Specifically, the process of calling eventhub RPC (event engine) monitoring is:ClientCalls (client) In client Stub to LoadBalance (load balancing) initiate RPC call;LoadBalance is according to load balancing A server-side example is selected, which is constructed based on Netty (a java Open Framework);Then, should Server-side example is based on a kind of HTTP/2Stream (communications protocol) communication protocol and carries out PB (Protocol Buffer) sequence Change;And the data after being serialized are operated by net reading and writing based on Prototype Marshaller (serializing function) It is written in Network;Meanwhile the data can be carried out PB (Protocol by Prototype Marshaller (serializing function) Buffer) unserializing is returned the data after the unserializing based on a kind of HTTP/2Stream (communications protocol) communication protocol It is back to LoadBalance (load balancing);Finally, LoadBalance (load balancing) readjustment GrpcFuture (readjustment is monitored) Set RespT method, wake up call side is blocked thread, and ClientCalls (client) obtains response.
In another alternative embodiment, feedback information is sent to the first block chain by step S106, specifically include as Lower method:
The second oracle listener feedback information being sent in the registered port of the first block chain, so that the second oracle listener Feedback information is sent in the first block chain and is handled.
In embodiments of the present invention, the first block chain needs to register the service IP address of itself in isomorphism block chain interchanger With serve port (that is, above-mentioned registered port), and at registered port call eventhub RPC (that is, it is above-mentioned second monitor journey Sequence) it is monitored, when the second oracle listener listens to what isomorphism block chain interchanger was sent to the registered port of the first block chain When feedback information, which is just sent in the first block chain and handles by the second oracle listener.
In an optional embodiment, before obtaining the service request that the first block chain is sent, the block interchain Communication means further include:
Obtain the registration information of multiple block chains, wherein registration information includes service IP address information and registered port Port information, wherein oracle listener is provided at registered port, the oracle listener is for monitoring external feedback data.
In embodiments of the present invention, before the communication for carrying out block interchain, each block chain (that is, above-mentioned multiple block chains, It similarly hereinafter) is required to be registered in isomorphism block chain interchanger, service IP address and service including registering each block chain itself Port (that is, above-mentioned registered port), and at respective registered port call eventhub RPC (that is, above-mentioned oracle listener) into Row is monitored, which is used to monitor other block chains outside itself block chain and isomorphism block chain interchanger to itself The feedback data that block chain is sent.
After each block chain completes registration, isomorphism block chain interchanger can be in the clothes for obtaining the transmission of some block chain Before business request, the registration information of the block chain is obtained, and then carry out the communication of subsequent block interchain.
Specifically, above-mentioned multiple block chains are common recognition operation to be carried out in chain, and reach altogether in chain based on common recognition operation The block chain of knowledge.
In embodiments of the present invention, common recognition operation refers to that the one kind designed in block chain occurs within the similar time Affairs the method known together of sequencing.Under normal conditions, this affairs in a time window is successive suitable The algorithm that sequence is reached common understanding is also referred to as " common recognition mechanism ".
In embodiments of the present invention, it after multiple block chains carry out common recognition operation in respective chain, writes data into chain In interior account book, it should be noted that the data of account book include the sending time of the data in the write-in chain, the numerical value of the data with And version number of the data etc..
In an optional real-time mode, the communication means of the block interchain further includes:
During the first block chain and the second block chain carry out service call, isomorphism block chain interchanger is by interchain number According to write-in into interchain account book, wherein interchain data include:Interaction number between first block chain and isomorphism block chain interchanger According to interaction data between the second block chain and isomorphism block chain interchanger.
In embodiments of the present invention, during the first block chain and the second block chain carry out service call, due to the One block chain and the second block chain are the common recognition node access isomorphism block chain interchangers as isomorphism block chain interchanger, because It also will do it common recognition operation between this first block chain, the second block chain and isomorphism block chain interchanger, that is, isomorphism block chain is handed over Changing planes, interchain data can be written into interchain account book, it should be noted that the interchain data include the first block chain and isomorphism Interaction data between block chain interchanger, the interaction data between the second block chain and isomorphism block chain interchanger, that is, first The time that service request is sent between block chain and isomorphism block chain interchanger, the content of service request is sent, the service of transmission is asked The version number etc. asked, and, the time of feedback information is sent between the second block chain and isomorphism block chain interchanger, sends feedback The content of information sends the version number etc. of feedback information.
Specifically, the common recognition node access isomorphism of the first block chain and the second block chain as isomorphism block chain interchanger After block chain interchanger, isomorphism interchain exchange standardized communications protocol, at this point, the first block chain, the second block chain and isomorphism Between block chain interchanger protocol massages can be sent by the communications protocol.In the present embodiment, which can be with It is defined as:
It uses protobuf (Google Protocol Buffe, a kind of structural data storage format of portable and effective) Defining interface, i.e. .proto file;
The execution code of golang language is generated using compile function (compiling function);
Start the end Server, the end Server is by listening to specified port, to wait client Client link to ask It asks, is constructed usually using Netty, (high-performance communicates frame to a kind of built-in Netty of GRPC (remote method call agreement) Frame) support;
Start the end client Client, is linked by establishing TCP long with the end Server, and send request;Request It is packaged into the Stream Frame (stream frame) of HTTP2 with Response, frame (is communicated by Netty Channel Communication channel) it interacts.Come below with a specific example to above-mentioned first block chain, the second block chain and isomorphism block Interaction is specifically described between chain interchanger.
Fig. 3 is the interaction signal between a kind of block chain and isomorphism block chain interchanger provided according to embodiments of the present invention Figure.
In embodiments of the present invention, as shown in figure 3, the interaction between the block chain and isomorphism block chain interchanger includes such as Lower step:
(1) HLNA (that is, A shown in Fig. 3, also that is, above-mentioned first block chain, similarly hereinafter), HLNB are (that is, shown in Fig. 3 B, also that is, above-mentioned second block chain, similarly hereinafter) need first to carry out common recognition operation in chain, and write data into account in respective chain In this.
(2) HLNA, HLNB isomorphism block chain interchanger (that is, G shown in Fig. 3) register itself service IP address with Port, and eventhub RPC is called to initiate to monitor at respective port.The registration process and calling eventhub RPC exist It is as follows that the program monitored is initiated at port:
Var EVENTHUB_ADDRESS=" grpc://127.0.0.1:7053";
chain.eventHubConnect(EVENTHUB_ADDRESS);
(3) HLNA, HLNB as HLNGLOAB (that is, G shown in Fig. 3, also that is, above-mentioned isomorphism block chain interchanger, under Common recognition node together) accesses HLNGLOAB, and then, HLNA initiates to call the service request of HLNB to HLNGLOAB.This is as altogether The program for knowing node access HLNGLOAB and initiation call request is as follows:
(4) HLNGLOAB is known together by distributed network and node, and interchain account book is written in interchain data.The tool of the process Body program is as follows:
Err=stub.PutState (args [0]+" _ payload ", [] byte (eventPayload))
It should be noted that the process of interchain account book is written in interchain data by HLNGLOAB, it is as above-mentioned in the first block During chain and the second block chain carry out service call, interchain data are written into interchain account book isomorphism block chain interchanger Process.
(5) HLNGLOAB account book state will be broadcast to HLNA, HLNB eventhub RPC in a manner of monitoring feedback It is each to service related chain.The specific procedure of the process is as follows:
Err=stub.SetEvent (" notify ", eventPayload)
It should be noted that the process is that above-mentioned the first oracle listener into the registered port of the second block chain is sent Service request, so that service request is sent to the process handled in the second block chain by the first oracle listener, and, it will be anti- Feedforward information is sent to the second oracle listener in the registered port of the first block chain, so that the second oracle listener sends out feedback information Send the process handled into the first block chain.
Specifically, it as shown in figure 3, firstly, A and B first carry out common recognition operation in respective chain, and writes data into each From chain in account book;Then, A and B registers the respectively service IP address of itself and port at G, and calls eventhub RPC initiates to monitor at respective port;When G, which receives A, sends the service request for calling B to G, G can send out the service request It send to the registered port of B, after the registered port of B listens to the service request of G transmission, which can be sent to B, then Information corresponding with the service request can be fed back to G by B, which is sent to the registered port of A, the registration of A by subsequent G Port is sent to A after listening to the feedback information that G is sent, by the feedback information, and it is logical so far, between A and B to complete interchain Letter.It should be noted that in above process, G can be by itself interactive process between A, itself interactive process between B It is recorded in interchain account book as interchain data.
In embodiments of the present invention, by the way of isomorphism block chain interchanger is arranged, firstly, obtaining the first block chain hair The service request sent;Then, service request is sent to corresponding second block chain;Finally, obtaining the second block chain is based on service The feedback information of request, and feedback information is sent to the first block chain, complete interchain communication.In embodiments of the present invention, lead to Setting isomorphism block chain interchanger is crossed, has achieved the purpose that connect multiple block chains by way of common recognition, and then is solved Each block interchain in the prior art of having determined is mutually indepedent, the technical issues of cannot being in communication with each other and not can be carried out data exchange, from And realize the technical effect that the data in block chain can swap between block chain.
Embodiment two:
The embodiment of the invention also provides a kind of communication device of block interchain, the device is for executing the embodiment of the present invention The communication means of block interchain provided by above content, below to the communication device of block interchain provided in an embodiment of the present invention Do specific introduction.
Fig. 4 is a kind of schematic diagram of the communication device of the block interchain provided according to embodiments of the present invention, as shown in figure 4, The communication device of the block interchain mainly includes:Second acquisition unit 20, transmission unit 30, third acquiring unit 40, wherein:
Second acquisition unit 20, for obtaining the service request of the first block chain transmission, wherein the first block chain is Any one in multiple block chains of isomorphism block chain interchanger is linked into as common recognition node;
Transmission unit 30, for sending the service request to corresponding second block chain, wherein the second block chain is more In a block chain the block chain of the requested service of service request can be provided for the first block chain;
Third acquiring unit 40, for obtaining the second feedback information of the block chain based on service request, and by feedback information It is sent to the first block chain.
In an alternative embodiment, which includes:First into the registered port of the second block chain Oracle listener sends service request, handles so that service request is sent in the second block chain by the first oracle listener.
In another alternative embodiment, feedback information is sent to the first block chain and includes by third acquiring unit 40: The second oracle listener feedback information being sent in the registered port of the first block chain, so that the second oracle listener is by feedback letter Breath, which is sent in the first block chain, to be handled.
In an optional embodiment, as shown in figure 4, obtaining what the first block chain was sent in second acquisition unit 10 Before service request, the communication device of the block interchain further includes:
First acquisition unit 10, for obtaining the registration information of multiple block chains, wherein registration information includes with servicing IP The port information of location information and registered port, wherein oracle listener is provided at registered port, oracle listener is same as monitoring external Feedback data.
Specifically, above-mentioned multiple block chains are common recognition operation to be carried out in chain, and reach common understanding in chain based on common recognition operation Block chain.
Specifically, the communication device of the block interchain further includes:
Data write unit is used for during the first block chain and the second block chain carry out service call, isomorphism area Interchain data are written into interchain account book block chain interchanger, wherein interchain data include:First block chain and isomorphism block chain Interaction data between interchanger, the interaction data between the second block chain and isomorphism block chain interchanger.
In embodiments of the present invention, by the way of isomorphism block chain interchanger is arranged, firstly, obtaining the first block chain hair The service request sent;Then, service request is sent to corresponding second block chain;Finally, obtaining the second block chain is based on service The feedback information of request, and feedback information is sent to the first block chain, complete interchain communication.In embodiments of the present invention, lead to Setting isomorphism block chain interchanger is crossed, has achieved the purpose that connect multiple block chains by way of common recognition, and then is solved Each block interchain in the prior art of having determined is mutually indepedent, the technical issues of cannot being in communication with each other and not can be carried out data exchange, from And realize the technical effect that the data in block chain can swap between block chain.
The technical effect and preceding method embodiment phase of device provided by the embodiment of the present invention, realization principle and generation Together, to briefly describe, Installation practice part does not refer to place, can refer to corresponding contents in preceding method embodiment.
In addition, in the description of the embodiment of the present invention unless specifically defined or limited otherwise, term " installation ", " phase Even ", " connection " shall be understood in a broad sense, for example, it may be being fixedly connected, may be a detachable connection, or be integrally connected;It can To be mechanical connection, it is also possible to be electrically connected;It can be directly connected, can also can be indirectly connected through an intermediary Connection inside two elements.For the ordinary skill in the art, above-mentioned term can be understood at this with concrete condition Concrete meaning in invention.
In the description of the present invention, it should be noted that term " center ", "upper", "lower", "left", "right", "vertical", The orientation or positional relationship of the instructions such as "horizontal", "inner", "outside" be based on the orientation or positional relationship shown in the drawings, merely to Convenient for description the present invention and simplify description, rather than the device or element of indication or suggestion meaning must have a particular orientation, It is constructed and operated in a specific orientation, therefore is not considered as limiting the invention.In addition, term " first ", " second ", " third " is used for descriptive purposes only and cannot be understood as indicating or suggesting relative importance.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description, The specific work process of device and unit, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In several embodiments provided herein, it should be understood that disclosed systems, devices and methods, it can be with It realizes by another way.The apparatus embodiments described above are merely exemplary, for example, the division of the unit, Only a kind of logical function partition, there may be another division manner in actual implementation, in another example, multiple units or components can To combine or be desirably integrated into another system, or some features can be ignored or not executed.Another point, it is shown or beg for The mutual coupling, direct-coupling or communication connection of opinion can be through some communication interfaces, device or unit it is indirect Coupling or communication connection can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme 's.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.
It, can be with if the function is realized in the form of SFU software functional unit and when sold or used as an independent product It is stored in the executable non-volatile computer-readable storage medium of a processor.Based on this understanding, of the invention Technical solution substantially the part of the part that contributes to existing technology or the technical solution can be with software in other words The form of product embodies, which is stored in a storage medium, including some instructions use so that One computer equipment (can be personal computer, server or the network equipment etc.) executes each embodiment institute of the present invention State all or part of the steps of method.And storage medium above-mentioned includes:USB flash disk, mobile hard disk, read-only memory (ROM, Read- Only Memory), random access memory (RAM, Random Access Memory), magnetic or disk etc. are various can be with Store the medium of program code.
Finally it should be noted that:Embodiment described above, only a specific embodiment of the invention, to illustrate the present invention Technical solution, rather than its limitations, scope of protection of the present invention is not limited thereto, although with reference to the foregoing embodiments to this hair It is bright to be described in detail, those skilled in the art should understand that:Anyone skilled in the art In the technical scope disclosed by the present invention, it can still modify to technical solution documented by previous embodiment or can be light It is readily conceivable that variation or equivalent replacement of some of the technical features;And these modifications, variation or replacement, do not make The essence of corresponding technical solution is detached from the spirit and scope of technical solution of the embodiment of the present invention, should all cover in protection of the invention Within the scope of.Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (10)

1. a kind of communication means of block interchain, which is characterized in that it is applied to isomorphism block chain interchanger, the method includes:
Obtain the service request of the first block chain transmission, wherein the first block chain is that common recognition node has been used as to be linked into Any one in multiple block chains of the isomorphism block chain interchanger;
The service request is sent to corresponding second block chain, wherein the second block chain is in the multiple block chain The block chain of the requested service of the service request can be provided for the first block chain;
The feedback information of the second block chain based on the service request is obtained, and the feedback information is sent to described One block chain.
2. the method according to claim 1, wherein sending the service request packet to corresponding second block chain It includes:
The first oracle listener into the registered port of the second block chain sends the service request, so that first prison It listens program that the service request is sent in the second block chain to handle.
3. the method according to claim 1, wherein the feedback information is sent to the first block chain packet It includes:
The the second oracle listener feedback information being sent in the registered port of the first block chain, so that described second The feedback information is sent in the first block chain and handles by oracle listener.
4. the method according to claim 1, wherein obtain the first block chain send service request before, The method also includes:
Obtain the registration information of the multiple block chain, wherein the registration information includes service IP address information and registration end The port information of mouth, wherein oracle listener is provided at the registered port, the oracle listener is for monitoring external feedback number According to.
5. the method according to claim 1, wherein the multiple block chain be common recognition operation is carried out in chain, And the block chain reached common understanding based on the common recognition operation in chain.
6. the method according to claim 1, wherein the method also includes:
During the first block chain and the second block chain carry out service call, the isomorphism block chain interchanger Interchain data are written into interchain account book, wherein the interchain data include:The first block chain and the isomorphism block Interaction data between chain interchanger, the interaction data between the second block chain and the isomorphism block chain interchanger.
7. a kind of communication device of block interchain, which is characterized in that described device includes:
Second acquisition unit, for obtaining the service request of the first block chain transmission, wherein the first block chain is to have made Any one in multiple block chains of isomorphism block chain interchanger is linked into for common recognition node;
Transmission unit, for sending the service request to corresponding second block chain, wherein the second block chain is described In multiple block chains the block chain of the requested service of the service request can be provided for the first block chain;
Third acquiring unit, for obtaining the feedback information of the second block chain based on the service request, and will be described anti- Feedforward information is sent to the first block chain.
8. device according to claim 7, which is characterized in that the transmission unit includes:
The first oracle listener into the registered port of the second block chain sends the service request, so that first prison It listens program that the service request is sent in the second block chain to handle.
9. device according to claim 7, which is characterized in that the feedback information is sent to by the third acquiring unit The first block chain includes:
The the second oracle listener feedback information being sent in the registered port of the first block chain, so that described second The feedback information is sent in the first block chain and handles by oracle listener.
10. device according to claim 7, which is characterized in that obtain the first block chain hair in the second acquisition unit Before the service request sent, described device further includes:
First acquisition unit, for obtaining the registration information of the multiple block chain, wherein the registration information includes service IP The port information of address information and registered port, wherein oracle listener is provided at the registered port, the oracle listener is same In monitoring external feedback data.
CN201810412733.4A 2018-05-02 2018-05-02 A kind of communication means and device of block interchain Pending CN108924175A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810412733.4A CN108924175A (en) 2018-05-02 2018-05-02 A kind of communication means and device of block interchain

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810412733.4A CN108924175A (en) 2018-05-02 2018-05-02 A kind of communication means and device of block interchain

Publications (1)

Publication Number Publication Date
CN108924175A true CN108924175A (en) 2018-11-30

Family

ID=64403692

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810412733.4A Pending CN108924175A (en) 2018-05-02 2018-05-02 A kind of communication means and device of block interchain

Country Status (1)

Country Link
CN (1) CN108924175A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110943911A (en) * 2019-12-19 2020-03-31 北京轻元科技有限公司 High-efficiency data transmission method for Internet of things based on protobuf
CN111082904A (en) * 2019-12-06 2020-04-28 安徽芯智科技有限公司 Rtos-based rpc communication method
CN111738721A (en) * 2020-06-23 2020-10-02 金蝶软件(中国)有限公司 Block chain transaction monitoring method and related device
CN112104647A (en) * 2020-09-14 2020-12-18 中电科大数据研究院有限公司 Data interaction system and method between alliance chains
CN113689296A (en) * 2021-08-30 2021-11-23 北京泛融科技有限公司 Contract scheduling method and device for asynchronous trusted computing and electronic equipment
EP3896941A4 (en) * 2018-12-29 2022-05-25 Hangzhou Fuzamei Technology Co. Ltd Main chain and parallel chain architecture system, block synchronization method, device, and storage medium

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106899680A (en) * 2017-03-09 2017-06-27 上海亿账通区块链科技有限公司 The burst treating method and apparatus of multi-tiling chain
CN106899698A (en) * 2017-04-11 2017-06-27 张铮文 A kind of across chain mutual operation method between block chain
CN107085810A (en) * 2017-04-19 2017-08-22 朱皞罡 Across the chain operating method and block chain management system of a kind of block chain
CN107145605A (en) * 2017-06-07 2017-09-08 北京天德科技有限公司 One kind is based on block chain unified interface(OBCC)License chain application system
CN107231299A (en) * 2017-06-07 2017-10-03 众安信息技术服务有限公司 A kind of chain route and realized the system that block chain communicates across chain
CN107301536A (en) * 2017-06-12 2017-10-27 腾讯科技(深圳)有限公司 Resource transfers method and device
CN107464117A (en) * 2017-08-04 2017-12-12 平安科技(深圳)有限公司 Data managing method and block catenary system based on block chain
CN107742210A (en) * 2017-10-13 2018-02-27 布比(北京)网络技术有限公司 Across the chain fund transfer system and method for a kind of different blocks interchain
CN107888562A (en) * 2017-10-13 2018-04-06 布比(北京)网络技术有限公司 Interconnect serobila architecture
CN107911421A (en) * 2017-10-30 2018-04-13 上海点融信息科技有限责任公司 For configuring the method for internetwork communication, equipment and computer-readable storage medium in block chain

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106899680A (en) * 2017-03-09 2017-06-27 上海亿账通区块链科技有限公司 The burst treating method and apparatus of multi-tiling chain
CN106899698A (en) * 2017-04-11 2017-06-27 张铮文 A kind of across chain mutual operation method between block chain
CN107085810A (en) * 2017-04-19 2017-08-22 朱皞罡 Across the chain operating method and block chain management system of a kind of block chain
CN107145605A (en) * 2017-06-07 2017-09-08 北京天德科技有限公司 One kind is based on block chain unified interface(OBCC)License chain application system
CN107231299A (en) * 2017-06-07 2017-10-03 众安信息技术服务有限公司 A kind of chain route and realized the system that block chain communicates across chain
CN107301536A (en) * 2017-06-12 2017-10-27 腾讯科技(深圳)有限公司 Resource transfers method and device
CN107464117A (en) * 2017-08-04 2017-12-12 平安科技(深圳)有限公司 Data managing method and block catenary system based on block chain
CN107742210A (en) * 2017-10-13 2018-02-27 布比(北京)网络技术有限公司 Across the chain fund transfer system and method for a kind of different blocks interchain
CN107888562A (en) * 2017-10-13 2018-04-06 布比(北京)网络技术有限公司 Interconnect serobila architecture
CN107911421A (en) * 2017-10-30 2018-04-13 上海点融信息科技有限责任公司 For configuring the method for internetwork communication, equipment and computer-readable storage medium in block chain

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3896941A4 (en) * 2018-12-29 2022-05-25 Hangzhou Fuzamei Technology Co. Ltd Main chain and parallel chain architecture system, block synchronization method, device, and storage medium
CN111082904A (en) * 2019-12-06 2020-04-28 安徽芯智科技有限公司 Rtos-based rpc communication method
CN110943911A (en) * 2019-12-19 2020-03-31 北京轻元科技有限公司 High-efficiency data transmission method for Internet of things based on protobuf
CN111738721A (en) * 2020-06-23 2020-10-02 金蝶软件(中国)有限公司 Block chain transaction monitoring method and related device
CN112104647A (en) * 2020-09-14 2020-12-18 中电科大数据研究院有限公司 Data interaction system and method between alliance chains
CN113689296A (en) * 2021-08-30 2021-11-23 北京泛融科技有限公司 Contract scheduling method and device for asynchronous trusted computing and electronic equipment
CN113689296B (en) * 2021-08-30 2023-11-17 北京泛融科技有限公司 Contract scheduling method and device for asynchronous trusted computing and electronic equipment

Similar Documents

Publication Publication Date Title
CN108924175A (en) A kind of communication means and device of block interchain
CN109672612A (en) API gateway system
CN110166432A (en) The access method of internal net destination service provides the method for Intranet destination service
CN107277153A (en) Method, device and server for providing voice service
CN107347205A (en) A kind of network section system of selection, apparatus and system
CN108255614A (en) A kind of interface calling system and method based on micro services framework
CN108259599B (en) File data transmission system
CN109996307A (en) A kind of data routing method and terminal
CN109842637A (en) A kind of Distributed Services register method and device
CN107566671A (en) Network voice communication method and its system, storage medium, electronic equipment
CN107622771A (en) Home appliance and its control method, system and computer-readable recording medium
CN112769794B (en) Data conversion method and device
US20220232101A1 (en) Virtual workspace experience visualization and optimization
CN104122979A (en) Method and device for control over large screen through voice
CN107045475A (en) Method of testing and device
CN109996219A (en) A kind of Internet of Things method for authenticating, the network equipment and terminal
CN114518969A (en) Inter-process communication method, system, storage medium and computer device
CN111770122A (en) Service communication agent SCP registration method, service calling method and network equipment
CN108471361A (en) A kind of version upgrading method and device
CN109039959A (en) A kind of the consistency judgment method and relevant apparatus of SDN network rule
WO2021135117A1 (en) Communication method, apparatus and device for node and chaincode in blockchain, and storage medium
CN107276901A (en) The system and method and wireless router and terminal of integration application
CN105743997B (en) A method of for realizing Web Console outband management system
CN103905484B (en) Handle the method and device of hypertext transfer protocol requests
CN106992893A (en) The management method and device of router

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20181130