CN108366105A - Data access method, device, system and the computer-readable medium of transregional piece of chain - Google Patents
Data access method, device, system and the computer-readable medium of transregional piece of chain Download PDFInfo
- Publication number
- CN108366105A CN108366105A CN201810091905.2A CN201810091905A CN108366105A CN 108366105 A CN108366105 A CN 108366105A CN 201810091905 A CN201810091905 A CN 201810091905A CN 108366105 A CN108366105 A CN 108366105A
- Authority
- CN
- China
- Prior art keywords
- block chain
- chain apparatus
- registration
- subscribed
- block
- 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.)
- Granted
Links
Classifications
-
- 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/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1097—Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/25—Integrating or interfacing systems involving database management systems
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/27—Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/04—Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks
- H04L63/0428—Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/12—Applying verification of the received information
-
- 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/60—Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
Landscapes
- Engineering & Computer Science (AREA)
- Databases & Information Systems (AREA)
- Computer Security & Cryptography (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computing Systems (AREA)
- Data Mining & Analysis (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Hardware Design (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The present invention provides a kind of data access method, device, system and the computer-readable medium of transregional piece of chain.Its method includes:If after being registered the registration request that block chain apparatus agrees to registration block chain apparatus, being registered the detection of block chain apparatus is registered the block data for whether having in block chain apparatus and being newly written;If so, being registered block chain apparatus obtains the pre-stored corresponding monitoring address of registration block chain apparatus and listening port;It is registered block chain apparatus and is formed by safety communication channel by monitoring address and listening port, the message for the block data being newly written is carried to registration block chain apparatus push.Technical scheme of the present invention realizes the monitoring for registering block chain apparatus to being registered block chain apparatus by login mechanism, is registered block chain apparatus to registering the notice of block chain apparatus, to finally realize the data access of transregional piece of chain.The data access of the transregional piece of chain of the present invention, need not manually participate in, access efficiency is higher.
Description
【Technical field】
The present invention relates to computer application technology more particularly to a kind of data access method of transregional piece of chain, device,
System and computer-readable medium.
【Background technology】
As block chain technology is recognized and approved by more and more extensive, how to realize that the data between block chain are handed over
It changes and transmits, the block chain of each independent isolating is got through the general block chain network of composition bigger, become by across chain technology
Increasingly it is of practical significance.
For example, having 1 independent supply chain block chain and 1 independent commercial articles vending block chain, 2 block chains close
Come, can just cover whole life cycle of the commodity from producing to selling.If by across chain technology by 2 block chain chains
Data get through realization and share and exchange, and can be achieved with the retrospect of the Life cycle of a commodity, and based on the full life of realization
The data mining etc. in period, this will have very important reference value and directive significance to display production.
And existing block chain is individually independent, the data inside each block chain only supply its intra-sharing, different
The exchange of data and shared is realized between block chain, it is also necessary to it is artificial to participate in, cause the data access efficiency of transregional piece of chain compared with
It is low.
【Invention content】
The present invention provides a kind of data access method, device, system and the computer-readable mediums of transregional piece of chain, are used for
Improve the data access efficiency of transregional piece of chain.
The present invention provides a kind of data access method of transregional piece of chain, the method includes:
If described to be registered block chain apparatus after being registered the registration request that block chain apparatus agrees to registration block chain apparatus
The block data for whether having in block chain apparatus and being newly written is registered described in detection;
If so, the block chain apparatus that is registered obtains the pre-stored corresponding monitoring address of the registration block chain apparatus
And listening port;
The block chain apparatus that is registered is formed by safety communication by the monitoring address and the listening port
Channel carries the message of the block data of the new write-in to the registration block chain apparatus push.
The present invention also provides a kind of data access method of transregional piece of chain, the method includes:
If after being registered the registration request that block chain apparatus agrees to registration block chain apparatus, and block chain is registered described
When device detects the block data being newly written, the registration block chain apparatus is by listening port and monitors address institute shape
At safety communication channel, disappearing for the block data of the carrying new write-in of block chain apparatus push is registered described in reception
Breath;
Whether the message of the block data of the carrying new write-in of the registration block chain apparatus verification push is legal;
If legal, the registration block chain apparatus is using the block data of the new write-in received the area new as one
Block number is according to storage.
The present invention also provides a kind of data access method of transregional piece of chain, the method includes:
After if subscribed block chain apparatus agrees to the subscription request of event bus service unit, the event bus service dress
It sets when the subscribed block chain apparatus detects and has the block data being newly written in the subscribed block chain apparatus, receives
The block data of the carrying new write-in of the subscribed block chain apparatus push and the subscribed block chain apparatus mark
Message;
The event bus service unit is according to pre-stored subscribed block chain apparatus mark, subscription block chain apparatus
The subscribed block carried in the correspondence of the listening port of mark and subscription block chain apparatus and the message
Chain apparatus identifies, and obtains the corresponding listening port for subscribing to block chain apparatus of the subscribed block chain apparatus;
The event bus service unit is by the listening port for subscribing to block chain apparatus, to the subscription block chain
Device push carries the message of the block data of the new write-in.
The present invention also provides a kind of data access method of transregional piece of chain, the method includes:
After if subscribed block chain apparatus agrees to the subscription request of event bus service unit, the subscribed block chain dress
Whether set in the detection subscribed block chain apparatus has the block data being newly written;
If so, the subscribed block chain apparatus carries the area of the new write-in to event bus service unit push
The message of block number evidence and the subscribed block chain apparatus mark, so that the event bus service unit is according to pre-stored
The corresponding of listening port of subscribed block chain apparatus mark, subscription block chain apparatus mark and subscription block chain apparatus is closed
System obtains the corresponding listening port for subscribing to block chain apparatus of the subscribed block chain apparatus;And pass through the subscription block
The listening port of chain apparatus carries the message of the block data of the new write-in to the subscription block chain apparatus push.
The present invention provides a kind of block chain apparatus, and described device includes:
Detection module, if after the registration request for being used to agree to register block chain apparatus, block chain dress is registered described in detection
Whether the block data that is newly written is had in setting;
If acquisition module obtains the pre-stored registration block chain apparatus and corresponds to for there is the block data being newly written
Monitoring address and listening port;
Sending module, for being formed by safety communication channel by the monitoring address and the listening port, to
The registration block chain apparatus push carries the message of the block data of the new write-in.
The present invention provides a kind of block chain apparatus, and described device includes:
Receiving module, if after for being registered block chain apparatus agreement registration request, and it is registered block chain dress described
It sets when detecting the block data being newly written, by listening port and monitors address and be formed by safety communication channel, connect
The message of the block data of the carrying new write-in of block chain apparatus push is registered described in receipts;
Whether the message of authentication module, the block data of the carrying new write-in for verifying push is legal;
Memory module, if the message of the block data for the new write-in is legal, by the new write-in received
The block data block data storage new as one.
The present invention provides a kind of event bus service unit, and described device includes:
Receiving module is detecting the subscribed block if agreeing to after subscribing to request for subscribed block chain apparatus
When having the block data being newly written in chain apparatus, the area of the carrying new write-in of the subscribed block chain apparatus push is received
The message of block number evidence and the subscribed block chain apparatus mark;
Acquisition module, for according to pre-stored subscribed block chain apparatus mark, subscribe to block chain apparatus mark with
And subscribe to the listening port of block chain apparatus correspondence and the message in the subscribed block chain apparatus that carries
Mark obtains the corresponding listening port for subscribing to block chain apparatus of the subscribed block chain apparatus;
Sending module, for by the listening port for subscribing to block chain apparatus, being pushed away to the subscription block chain apparatus
Send the message for the block data for carrying the new write-in.
The present invention provides a kind of event bus service unit, and described device includes:
If detection module detects the subscribed block chain after for agreeing to that the subscription of event bus service unit is asked
Whether the block data that is newly written is had in device;
Sending module is pushed to the event bus service unit and is carried if the block data for there is the new write-in
The message of the block data of the new write-in and the subscribed block chain apparatus mark, for the event bus service unit
According to pre-stored subscribed block chain apparatus mark, subscribes to block chain apparatus mark and subscribe to the monitoring of block chain apparatus
The correspondence of port obtains the corresponding listening port for subscribing to block chain apparatus of the subscribed block chain apparatus;And pass through
The listening port for subscribing to block chain apparatus carries the block data of the new write-in to the subscription block chain apparatus push
Message.
The present invention also provides a kind of data access systems of transregional piece of chain, including the first block chain apparatus and the second block chain
Device, the first block chain apparatus and the second block chain apparatus communication connection, the first block chain apparatus is using such as
The upper block chain apparatus, the second block chain apparatus use block chain apparatus as described above.
The present invention also provides a kind of data access systems of transregional piece of chain, including at least one subscription block chain apparatus, quilt
Subscribe to block chain apparatus and event bus device, each subscription block chain apparatus and the subscribed block chain apparatus respectively with
The event bus device communication connection, the event bus device uses event bus device as described above, described subscribed
Block chain apparatus uses block chain apparatus as described above.
The present invention also provides a kind of computer equipment, the equipment includes:
One or more processors;
Memory, for storing one or more programs;
When one or more of programs are executed by one or more of processors so that one or more of processing
Device realizes the data access method of transregional piece of chain as described above.
The present invention also provides a kind of computer-readable mediums, are stored thereon with computer program, which is held by processor
The data access method of transregional piece of chain as described above is realized when row.
Data access method, device, system and the computer-readable medium of the transregional piece of chain of the present invention, by using above-mentioned
Technology realizes the monitoring for registering block chain apparatus to being registered block chain apparatus, is registered block chain apparatus by login mechanism
To registering the notice of block chain apparatus, to finally realize the data access of transregional piece of chain.The data of the transregional piece of chain of the present invention
It accesses, need not manually participate in, access efficiency is higher.
【Description of the drawings】
Fig. 1 is the flow chart of the data access method embodiment one of the transregional piece of chain of the present invention.
Fig. 2 is the flow chart of the data access method embodiment two of the transregional piece of chain of the present invention.
Fig. 3 is the signaling diagram of the data access method embodiment three of the transregional piece of chain of the present invention.
Fig. 4 is the flow chart of the data access method example IV of the transregional piece of chain of the present invention.
Fig. 5 is the flow chart of the data access method embodiment five of the transregional piece of chain of the present invention.
Fig. 6 is the signaling diagram of the data access method embodiment six of the transregional piece of chain of the present invention.
Fig. 7 is the structure chart of the block chain apparatus embodiment one of the present invention.
Fig. 8 is the structure chart of the block chain apparatus embodiment two of the present invention.
Fig. 9 is the structure chart of the block chain apparatus embodiment three of the present invention.
Figure 10 is the structure chart of the block chain apparatus example IV of the present invention.
Figure 11 is the structure chart of the event bus service unit embodiment one of the present invention.
Figure 12 is the structure chart of the event bus service unit embodiment two of the present invention.
Figure 13 is the structure chart of the block chain apparatus embodiment five of the present invention.
Figure 14 is the structure chart of the block chain apparatus embodiment six of the present invention.
Figure 15 is the structure chart of the data access system embodiment one of the transregional piece of chain of the present invention.
Figure 16 is the structure chart of the data access system embodiment two of the transregional piece of chain of the present invention.
Figure 17 is the structure chart of the computer equipment embodiment of the present invention.
Figure 18 is a kind of exemplary plot of computer equipment provided by the invention.
【Specific implementation mode】
To make the objectives, technical solutions, and advantages of the present invention clearer, right in the following with reference to the drawings and specific embodiments
The present invention is described in detail.
Fig. 1 is the flow chart of the data access method embodiment one of the transregional piece of chain of the present invention.As shown in Figure 1, this implementation
The data access method of transregional piece of chain of example, can specifically include following steps:
If after 100, being registered the registration request that block chain apparatus agrees to registration block chain apparatus, it is registered block chain apparatus
Detection is registered the block data for whether having in block chain apparatus and being newly written;
The data access method of the transregional piece of chain of the present embodiment is to pass through registration by taking two independent block chain apparatus as an example
The access of data is realized with the mode that is registered.I.e. by being noted from registration block chain apparatus to block chain apparatus application is registered
Volume, and after being registered block chain apparatus and agreeing to the registration request of registration block chain apparatus, being registered block chain apparatus can be
When having new write-in block data, in time to registration block chain apparatus push, to realize the data access of transregional piece of interchain.
The present embodiment describes technical scheme of the present invention being registered block chain apparatus side.The registration block chain of the present embodiment
Device and be registered block chain apparatus not only include block chain bottom multiple block chain nodes for memory block data,
It can also include the application for being encapsulated in the block chain on block chain node.It specifically, can be on each block chain node
There are one the applications that can encapsulate a block chain on the application of block chain or multiple block chain nodes jointly for encapsulation.This
The block chain application that registration request in embodiment is specifically as follows in registration block chain apparatus is sent to and is registered block chain apparatus
In block chain application, and all block chain nodes by being registered in block chain apparatus determine whether jointly agree to registration block
The registration request of chain apparatus, after agreement, the specifically responsible push by being registered in multiple block chain nodes of block chain apparatus
Block chain nodal test be registered in all block chain nodes in block chain apparatus whether have the block data being newly written.
For example, before the step 100, can also include the following steps:
(a1) it is registered block chain apparatus and receives the carrying registration block chain apparatus mark for registering that block chain apparatus is sent
Registration request;
Specifically, can be that the block chain application being registered in block chain apparatus receives the block in registration block chain apparatus
The registration request for the carrying registration block chain apparatus mark that chain application is sent.
All network communications between the block chain of the present embodiment are all made of based on secure transfer protocol (The
Transport Layer Security;TLS encrypted safe communication mode), such as hypertext transfer protocol (Hyper Text
Transfer Protocol;HTTP)+tls or grpc etc..Request and return all include corresponding signature.
For example, following format may be used in all requests:
{
sourceId:Source id, in the access of block interchain, if it is block that block chain A sends request to block chain B
The id of chain A;
sourceType:Source type is indicated, is mutually appointed, such as participant node, regulatory agency etc.;
nonce:32 random strings prevent signature predictable;
sign:Digital signature specifically uses sha256withrsa, ecc etc., source-verify:Initial data:According to parameter
After sequence, it is spliced into:K1=v1&k2=v2 is inputted as signature;
version:" 1.0.0 ", identity protocol version;
content:The particular content of request
}
In wherein asking sourceType can identify send request source be apply, device, platform or system etc.
Type, preset type all pre-define at communication both ends.The specific interior of request can be recorded in wherein content
Hold, so that it is determined that information request includes, request is specifically any request,
Accordingly, following format may be used in all responses return:
{
"code":Conditional code is returned, is mutually arranged;
"message":" success " returns to message;
"nonce":" JO391BMK3i35VsfzQoM0SblETNkj9Pmr ", 32 random strings prevent signature can
Prediction;
"sign":" AhDsf0kpd2/HS1W8HETc8btJUxRPyng+......g==", digital signature are specifically adopted
With sha256withrsa, ecc etc., source-verify:Initial data:After parameter marshalling, it is spliced into:K1=v1&k2=v2,
It is inputted as signature;
"result":The particular content of return;
}
In addition, can also include timestamp when sending registration request in registration request, for being registered block chain apparatus
According to when sending registration request timestamp and current time stamp verify whether the registration request is the time cycle to be processed
Interior registration request.In this way, after sending registration request caused by the reasons such as network delay can be filtered out, it is registered block chain dress
It is just received after setting for a long time.According to the program, be registered at this time block chain apparatus according to send registration request when
Between stamp and current time stamp determine the registration request be not meant to processing time cycle in registration request, can directly lose this
Registration request.
(b1) whether legal it is registered block chain apparatus verification registration request;If legal, step (c1) is executed;
Specifically, which can specifically be executed by being registered the block chain application of block chain apparatus.In addition, real
In the application of border, in addition to the registration block chain apparatus mark including sending request is sourceId in registration request, can also include
Register type sourceType, protocol version, signature and the particular content of request etc. of block chain apparatus.Therefore, the step
Suddenly when (b1) is realized, at least one of following several verifications can specifically be executed:
(1), whether the format for being registered block chain apparatus verification registration request is correct;
In the present embodiment, the format of above-mentioned restriction may be used in the format of all requests recognizes if format is incorrect
It is illegal for the registration request.
(2), whether the registration block chain apparatus being registered in block chain apparatus verification registration request identifies i.e. sourceId
It is legal;
(3), it is registered the type i.e. sourceType of the registration block chain apparatus in block chain apparatus verification registration request
It is whether legal;
Registration block chain apparatus mark in the present embodiment can be used for identifying entire block chain, for example, for the ease of pipe
All block chain apparatus are managed, the essential information of all block chain apparatus can be counted in advance, as block chain apparatus identifies
SourceId, the type of block data of storage, the type sourceType of block chain apparatus etc. that can support, and store
In the information bank of block chain apparatus.In this way, the block chain application being registered in block chain apparatus can be from block chain apparatus
The type of all block chain apparatus mark sourceId and all block chain apparatus that can be supported are obtained in information bank
SourceType can determine whether sourceId and sourceType is legal in registration request.
(4), whether the signature for being registered block chain apparatus verification registration request is legal;
Specifically existing relevant signature verification may be used in signature legitimate verification mode, and details are not described herein.
(5), whether legal it is registered the corresponding protocol version of block chain apparatus verification registration request;With
In the present embodiment, the highest version that can be supported can be stored in the block chain application for being registered block chain apparatus
This.If the corresponding protocol version of registration request is less than the corresponding highest version of block chain apparatus is registered, since highest version is to low
Version has compatibility, at this time it is considered that the protocol version is legal.And if the corresponding protocol version of registration request is higher than being noted
The corresponding highest version of volume block chain apparatus, at this point, the agreement version can not be handled by being registered the block chain application of block chain apparatus
This registration request, so at this point it is possible to thinking that protocol version is illegal.
(6), whether the content for being registered block chain apparatus verification registration request is legal.
Specifically, in the present embodiment, whether the particular content that can also be verified in the content in registration request is legal.
Such as communication two party can limit the quantity of parameter of each request, the type of service of the format of parameter and parameter in advance.This
Sample when whether the particular content in the content in verifying registration request is legal, can first determine that current request is that registration is asked
It asks, then knows the quantity of the parameter needed in registration request, the format of each parameter and the business of corresponding parameter
Type.Whether the particular content then verified in content is legal.If, can for example, may include delivery time information in parameter
To verify the delivery time information in content whether before current time, if so, it is legal, it is otherwise illegal.Example again
Such as, if it is desired to which the type of service of parameter is client, if the type of service in verification content is server, it may be considered that
It is legal.It above are only a kind of whether legal realization method of content of verification registration request, in practical application, it can also be used
Whether his content of mode authentication registration request is legal, and no longer citing repeats one by one herein.
Verify whether registration request is legal, if legal, the above-mentioned response of use is returned according to above-mentioned at least one mode
Mode returns to the response succeeded in registration.If illegal, the response of refusal registration is returned by the way of above-mentioned response return.It is right
It answers, the code that each response returns can indicate successful or unsuccessful when the response, if unsuccessful, different returns
State code can also identify unsuccessful reason.
(c1) it is registered block chain apparatus and passes through common recognition mechanism, it is determined whether agree to that the registration of registration block chain apparatus is asked
It asks;If agreeing to, subsequent step can be executed;Otherwise the registration request of refusal registration block chain apparatus accordingly returns different
Meaning registration request.The dissenting reason that basis is made an appointment during response at this time returns returns to corresponding conditional code.It returns and rings
The particular content answered can be recorded in result.
If after legitimate verification passes through, being registered block chain apparatus by common recognition mechanism, determining and agree to registration block chain
The registration request of device.For example, being registered block chain apparatus by common recognition mechanism, the registration for agreeing to registration block chain apparatus is determined
Request, specifically may be used and is realized such as under type:The block chain application being registered in block chain apparatus can select block chain
Either block chain node in device sends registration to the target block chain node and proposes as target block chain node
(Propose) it asks, is taken from target block chain node to other all block chain node transmissions being registered in block chain apparatus
(Propose) request, and all block chains by being registered block chain apparatus are proposed in registration with registration block chain apparatus mark
Node carries out common recognition scoring to registration block chain apparatus, obtains the final scoring of registration block chain apparatus;Such as block chain apparatus
Information bank in can store various attribute informations such as type of service, field, block chain node in each block chain apparatus
Manipulator etc. information, accordingly, each the block chain node for being registered block chain apparatus can be according to registration block chain
At least one attribute information of device gives a mark to the block chain apparatus.Then by target block chain node according to being registered area
The marking situation of each block chain node in block chain apparatus plays a final scoring for the registration block chain apparatus.For example,
The average value of the marking for all block chain nodes being registered in block chain apparatus can be taken, or uses other mathematical method meters
Calculate final scoring of the optimal value as the registration block chain apparatus.
Then whether default scoring threshold value is more than by the final scoring of block chain application detection being registered in block chain apparatus;
If so, the block chain application being registered in block chain apparatus determines the registration request for agreeing to register block chain apparatus.It is wherein default
Scoring threshold value can be chosen according to practical experience.
Or practical application, the parameter information of registration block chain apparatus can also be carried in the content of registration request,
Then by being registered multiple block chain nodes of block chain apparatus directly according to the parameter information carried in content come by altogether
Knowledge mechanism come determine whether agree to registration block chain apparatus registration request.In addition, common recognition mechanism is to be registered block chain apparatus
Multiple block chain nodes come a kind of realization mechanism for ballot of giving a mark jointly, can also be used except aforesaid way in practical application
Other modes realize that no longer citing repeats one by one herein.
By the above-mentioned means, the registration request for registering block chain apparatus can be verified by being registered block chain apparatus,
And after agreeing to register, registration block chain apparatus is informed.For example, (c1) is being registered block chain dress above-described embodiment the step of
It sets through common recognition mechanism, after determining the registration request for agreeing to registration block chain apparatus, can also include the following steps:
(a2) it is that address is monitored in registration block chain apparatus distribution to be registered block chain apparatus;
(b2) it is registered block chain apparatus and sends the response for carrying the agreement registration for monitoring address to registration block chain apparatus
Message, so that registration block chain apparatus opens accordingly listening port according to the response message for agreeing to register;
(c2) it is registered block chain apparatus and receives the listening port that registration block chain apparatus is sent;
(d2) the corresponding monitoring address of block chain apparatus and listening port storage will be registered by being registered block chain apparatus.
Specifically, block chain apparatus is being registered by common recognition mechanism, determine and agree to that the registration of registration block chain apparatus is asked
After asking, address can be monitored to be distributed for the block chain node of the registration tile system, and returned by above-mentioned response
Format sends response message to registration block chain apparatus, while carrying monitor address, such as the monitoring address in the response message
It can specifically carry in result.In addition, the mark for being registered block chain apparatus can also be carried in the result, to indicate
The response message is sent by being registered block chain apparatus.Then, corresponding registration block chain apparatus receives response message
Afterwards, message according to response, it may be determined that be registered block chain apparatus and have agreed to register, and be assigned and monitor address, then open
It enables in monitoring the listening port for being registered block chain apparatus pushed information, it specifically can be by any in registration block chain apparatus
A block chain node comes open-minded, and according to the information share of multiple block chain nodes, other block chain nodes can also be learnt
The listening port.At this point, in registration block chain apparatus side, the block chain node of registration block chain apparatus, which can store, is registered area
Block chain apparatus mark, the correspondence for monitoring address and listening port, with the monitoring for indicating the monitoring address received, opening
Port is for monitoring the block data for being registered the push of block chain apparatus.Then registration block chain apparatus is to being registered block
Chain apparatus sends the listening port.It can be specifically sent to by the block chain application of registration block chain apparatus and be registered block chain
The block chain application of device, then the block chain application by being registered block chain apparatus are sent to the block for being registered block chain apparatus
Chain node, in this way, the block chain node for being registered block chain apparatus receives the listening port that registration block chain apparatus is sent, and
It, can be according to registration block chain dress when will register the corresponding monitoring address of block chain apparatus and listening port storage, such as store
It sets mark, monitor address and the correspondence storage of listening port.According to the information share of multiple block chain nodes, other areas
The correspondence that block chain node is also stored with registration block chain apparatus mark, monitors address and listening port.
By using said program, registration block chain apparatus is completed to the registration of block chain apparatus is registered.Hereafter, it is registered
Block chain apparatus can detect the block data for being registered and whether having in block chain apparatus and being newly written.
101, if so, being registered block chain apparatus obtains the pre-stored corresponding monitoring address of registration block chain apparatus and prison
Listen port;Otherwise it returns and continues to detect;
102, it is registered block chain apparatus and is formed by safety communication channel by monitoring address and listening port, to note
Volume block chain apparatus push carries the message for the block data being newly written.
In the present embodiment, it is registered block chain apparatus and detects the block data for being registered and having in block chain apparatus and being newly written
When, first obtain the pre-stored corresponding monitoring address of registration block chain apparatus and listening port;Then it is registered block chain apparatus
It is formed by safety communication channel by monitoring address and listening port, is newly written to registration block chain apparatus push carrying
The message of block data, specifically by being registered the block chain node of the responsible push of block chain apparatus, by monitor address and
Listening port is formed by safety communication channel, what the either block chain node push carrying to registration block chain apparatus was newly written
The message of block data.It can also be carried in the message and be registered block chain apparatus mark, to indicate the source of the message of push.
In addition, the various information such as the protocol format, timestamp, signature of other message can also be carried in the message, herein no longer one by one
Citing.By using the technical solution of the present embodiment, a registration block chain apparatus can register multiple block chains that are registered and fill
It sets, realizes to multiple monitorings for being registered block chain apparatus.
In the technical solution of the present embodiment, if being registered the registration request that block chain apparatus agrees to registration block chain apparatus
Afterwards, then it represents that be registered the monitoring that block chain apparatus agrees to registration block chain apparatus, being registered block chain apparatus can detect
To when having the block data being newly written, registration block chain apparatus is notified.And if subsequent registration block chain apparatus no longer
Want to monitor and be registered the block data that block chain apparatus is newly written, at this point, registration block chain apparatus can be to being registered block chain
Device sends the solution registration request for carrying registration block chain apparatus mark, accordingly, by the block chain for being registered block chain apparatus
Legitimate verification is carried out using to the solution registration request, the legitimate verification process of above-mentioned registration request can be referred in detail.If
Solve that registration request is legal, being registered the application of block chain apparatus can be sent to the solution registration request and be registered block chain apparatus
Block chain node.Registration block chain apparatus mark correspondence can be recorded by being registered the block chain node of block chain apparatus at this time
Monitoring address and listening port solution log-on message, and by being registered the application of block chain apparatus to registration block chain apparatus
It returns to carry and is registered the response message that the solution of block chain apparatus mark succeeds in registration.In this way, the block of registration block chain apparatus
Chain applies the block chain node to registration block chain apparatus to return to the response message that solution succeeds in registration, and registers the area of block chain apparatus
Block chain node closes this and is registered the corresponding listening port of block chain apparatus mark, and being no longer registered block chain apparatus to this carries out
It monitors.
The data access method of the transregional piece of chain of the present embodiment, if being registered block chain apparatus agrees to registration block chain apparatus
Registration request after, be registered block chain apparatus detection the block data for whether having in block chain apparatus and being newly written be registered;If
Have, is registered block chain apparatus and obtains the pre-stored corresponding monitoring address of registration block chain apparatus and listening port;It is registered
Block chain apparatus is formed by safety communication channel by monitoring address and listening port, is taken to registration block chain apparatus push
The message for the block data that band is newly written.Registration block chain dress is realized by login mechanism using the technical solution of the present embodiment
The monitoring to being registered block chain apparatus is set, notice of the block chain apparatus to registration block chain apparatus is registered, to final real
The data access of existing transregional piece of chain.The data access of the transregional piece of chain of the present embodiment, need not manually participate in, access efficiency compared with
It is high.
Fig. 2 is the flow chart of the data access method embodiment two of the transregional piece of chain of the present invention.As shown in Fig. 2, this implementation
The data access method of transregional piece of chain of example, can specifically include following steps:
If after 200, being registered the registration request that block chain apparatus agrees to registration block chain apparatus, and being registered block chain
When device detects the block data being newly written, registration block chain apparatus is formed by by listening port and monitoring address
Safety communication channel receives the message for being registered the block data that the carrying that block chain apparatus pushes newly is written;
201, whether the message for the block data that the carrying of registration block chain apparatus verification push is newly written is legal;If closing
Method executes step 202;Otherwise, the block data of the new write-in of push is abandoned, is terminated.
202, registration block chain apparatus stores the block data being newly written received the block data new as one.
For example, wherein whether step 201 " close by the message for the block data that registration block chain apparatus verification push is newly written
Method " can specifically include following at least one step:
(a3) what is carried in the message for the block data that the carrying of registration block chain apparatus verification push is newly written is registered
Identifying whether for block chain apparatus is correct;
(b3) whether the signature of the message for the block data that the carrying of registration block chain apparatus verification push is newly written is correct;
And/or
(c3) whether the cryptographic Hash for the block data that the verification of registration block chain apparatus is newly written is correct.
It is registered the mark of block chain apparatus, monitor address and monitors end due to that can be recorded in registering block chain apparatus
The correspondence of mouth, if registration block chain apparatus is formed by escape way and receives newly from some monitoring address and listening port
The block data of write-in, and source can be carried in the PUSH message of the block data of the new write-in and be registered block chain apparatus
Mark.Then according to the mark for being registered block chain apparatus of registration block chain apparatus local record, monitoring address and monitoring
The correspondence of port obtains the mark for being registered block chain apparatus of local record, and it is noted with PUSH message
The mark of volume block chain apparatus is compared, if unanimously, then it represents that is carried in PUSH message is registered the mark of block chain apparatus
Know correct;Otherwise incorrect.Furthermore it is also possible to whether the signature for verifying the message for the block data that push is newly written is correct, with
Determine whether the message sent is correct.Whether the cryptographic Hash that the block data being newly written can also be verified is correct, is newly write with determination
Whether the block data entered is correct.The verification of signature can refer to related relevant art in detail to the verification of cryptographic Hash, herein not
It repeats again.
The message of block data that registration block chain apparatus verification push is newly written is legal, and by being newly written of receiving
The block data block data storage new as one;Otherwise the block data of the new write-in is abandoned.
Optionally, " registering block chain apparatus and agreeing to registration block chain apparatus in the technical solution of above-described embodiment
Before registration request ", can also include:Registration block chain apparatus sends carrying registration block chain dress to block chain apparatus is registered
The registration request for setting mark, to determine whether the registration request for agreeing to register block chain apparatus by being registered block chain apparatus.
Optionally, " being registered block chain apparatus and agreeing to registration block chain apparatus in the technical solution of above-described embodiment
Registration request " after, can also include the following steps:
(a4) registration block chain apparatus receives the agreement registration for the carrying monitoring address for being registered the transmission of block chain apparatus
Response message;
(b4) registration block chain apparatus opens accordingly listening port according to the response message for agreeing to register;
(c4) registration block chain apparatus sends listening port to block chain apparatus is registered, with by being registered block chain apparatus
It will the corresponding monitoring address of registration block chain apparatus and listening port storage.
Specifically, the data access method of the transregional piece of chain of the present embodiment, the difference with above-mentioned embodiment illustrated in fig. 1 exist
In:Above-mentioned embodiment illustrated in fig. 1 describes technical scheme of the present invention being registered block chain apparatus side.And the present embodiment is being noted
Volume block chain apparatus side describes technical scheme of the present invention, and the data access method detailed process of the transregional piece of chain of the present embodiment is also
The record of above-mentioned embodiment illustrated in fig. 1 can be referred to, details are not described herein.
The data access method of the transregional piece of chain of the present embodiment, if being registered block chain apparatus agrees to registration block chain apparatus
Registration request after, and when being registered block chain apparatus and detecting the block data being newly written, registration block chain apparatus is logical
It crosses listening port and monitors address and be formed by safety communication channel, the carrying that reception is registered the push of block chain apparatus is newly write
The message of the block data entered;Whether the message for the block data that the carrying of registration block chain apparatus verification push is newly written closes
Method;If legal, registration block chain apparatus stores the block data being newly written received the block data new as one.It adopts
The monitoring for registering block chain apparatus to being registered block chain apparatus is realized by login mechanism with the technical solution of the present embodiment,
Block chain apparatus is registered to registering the notice of block chain apparatus, to finally realize the data access of transregional piece of chain.This implementation
The data access of transregional piece of chain of example, need not manually participate in, access efficiency is higher.
Fig. 3 is the signaling diagram of the data access method embodiment three of the transregional piece of chain of the present invention.Transregional piece of the present embodiment
The data access method of chain, on the basis of the technical solution of above-mentioned Fig. 1 and embodiment illustrated in fig. 2, the angle moved towards from signaling
To describe technical scheme of the present invention.As shown in figure 3, the data access method of the transregional piece of chain of the present embodiment, can specifically wrap
Include following steps:
300, registration block chain apparatus sends the registration for carrying registration block chain apparatus and identifying to block chain apparatus is registered
Request;
301, be registered block chain apparatus verification registration request it is whether legal, and verify it is legal after, by know together mechanism,
Determine the registration request for agreeing to registration block chain apparatus;
In the present embodiment, by mechanism of knowing together, to determine and be described for agreeing to the registration request for registering block chain apparatus
Technical scheme of the present invention.In practical application, if by mechanism of knowing together, the registration request for disagreeing registration block chain apparatus is determined
When, directly return to the response message of refusal registration.
302, it is that address is monitored in registration block chain apparatus distribution to be registered block chain apparatus;
303, block chain apparatus is registered to send carrying monitoring address to registration block chain apparatus and be registered block chain dress
Set the response message of the agreement registration of mark;
304, registration block chain apparatus opens accordingly listening port according to the response message of the agreement registration received;
305, registration block chain apparatus sends listening port to block chain apparatus is registered;
306, the corresponding monitoring address of block chain apparatus and listening port storage will be registered by being registered block chain apparatus;
307, it is registered the detection of block chain apparatus is registered the block data for whether having in block chain apparatus and being newly written;If having
The block data being newly written obtains the pre-stored corresponding monitoring address of registration block chain apparatus and listening port;
308, it is registered block chain apparatus and is formed by safety communication channel by monitoring address and listening port, to note
Volume block chain apparatus push carries the message for the block data being newly written;
309, the legitimacy of the message for the block data that the carrying of registration block chain apparatus verification push is newly written, and closing
When method, the block data being newly written received the block data new as one is stored;
310, registration block chain apparatus sends the solution note for carrying registration block chain apparatus and identifying to block chain apparatus is registered
Volume request;
311, it is registered block chain apparatus and legitimate verification is carried out to solution registration request, after being verified, record the registration
Block chain apparatus identifies the corresponding solution log-on message for monitoring address and listening port;
In this way, the block data being newly written subsequently being registered in block chain apparatus monitors this
312, it is registered block chain apparatus and returns to the solution for carrying and being registered block chain apparatus and identifying to registration block chain apparatus
The response message to succeed in registration;
313, registration block chain apparatus closes this and is registered the corresponding listening port of block chain apparatus mark, and solution has been registered
At.
Solution registration at this time is completed, and registration block chain apparatus is no longer registered block chain apparatus to this and monitors.Remaining is in detail
It is thin to realize process, the detailed record of above-mentioned Fig. 1 and embodiment illustrated in fig. 2 can be referred to, details are not described herein.
The data access method of the transregional piece of chain of the present embodiment realizes note using above-mentioned technical proposal by login mechanism
Volume block chain apparatus is registered block chain apparatus to registering the notice of block chain apparatus to being registered the monitoring of block chain apparatus,
To finally realize the data access of transregional piece of chain.The data access of the transregional piece of chain of the present embodiment, need not manually participate in, and visit
Ask that efficiency is higher.
It should be noted that the data access method of transregional piece of chain of above-mentioned Fig. 1-embodiment illustrated in fig. 3, can also realize
The block data being newly written for registering a certain type of the block device only to being registered block device is monitored.For example, registration
Block chain apparatus can limit being noted of being monitored in the registration request to when being registered block chain apparatus and sending registration request
The type of the block data being newly written in volume block chain apparatus, such as the type can be written in content.Accordingly,
The follow-up block device that is registered can be based on the type, pass through mechanism of knowing together, it is determined whether agree to the base of registration block chain apparatus
In the registration request of the type.If agreeing to, block device is subsequently registered in the block counts being newly written for detecting the type
According to when, can to registration block chain apparatus push.Remaining realizes that process is same as described above, can refer to above-mentioned implementation in detail
The record of example, details are not described herein.
Fig. 4 is the flow chart of the data access method example IV of the transregional piece of chain of the present invention.As shown in figure 4, this implementation
The data access method of transregional piece of chain of example, can specifically include following steps:
If after 400, being subscribed the subscription request that block chain apparatus agrees to event bus service unit, event bus service dress
It sets when subscribed block chain apparatus detects and has the block data being newly written in subscribed block chain apparatus, receives and be subscribed area
The message of block data and subscribed block chain apparatus mark that the carrying of block chain apparatus push is newly written;
401, event bus service unit is according to pre-stored subscribed block chain apparatus mark, subscription block chain apparatus
The subscribed block chain apparatus mark carried in the correspondence and message of the listening port of mark and subscription block chain apparatus
Know, obtains and be subscribed the corresponding listening port for subscribing to block chain apparatus of block chain apparatus;
402, event bus service unit is pushed by the listening port of subscription block chain apparatus to block chain apparatus is subscribed to
Carry the message for the block data being newly written.
The data access method of the transregional piece of chain of the present embodiment, with transregional piece of chain of above-mentioned Fig. 1-embodiment illustrated in fig. 3
Data access method difference is:The data access method of transregional piece of chain of above-mentioned Fig. 1-embodiment illustrated in fig. 3 is registration block
Chain apparatus and being registered between block chain apparatus is directly communicated, and realizes the data access of transregional piece of chain.And the present embodiment is
By the way that event bus service unit is arranged between two block chains, as the intermediary of two block chain data access, two are realized
Data access between a block chain.
Specifically, it can be subscribed to from the subscription block chain apparatus for wanting to monitor to event bus service unit and be subscribed block
The push for the block data of chain apparatus being newly written, if event bus service unit, which has subscribed to the subscription, is subscribed block chain apparatus
Push can be to then when subscribed block chain apparatus detects and has the block data being newly written in subscribed block chain apparatus
Event bus service unit pushes the block data being newly written;Accordingly, event bus service unit, which receives, is subscribed block chain
The block data of device push being newly written.Then event bus service unit is according to pre-stored subscribed block chain apparatus
Mark and the correspondence for subscribing to block chain apparatus mark, obtain and are subscribed the corresponding subscription block chain apparatus mark of block chain apparatus
Know;Finally by the pre-stored listening port for subscribing to block chain apparatus, the area being newly written is pushed to block chain apparatus is subscribed to
Block number evidence.
Still optionally further, " subscribed block chain apparatus agrees to event bus service in the technical solution of above-described embodiment
The subscription of device is asked " before, can also include:Event bus service unit sends to subscribe to subscribed block chain apparatus and ask
It asks, with whether legal by subscribed block chain apparatus verification subscription request, if it is legal, and by mechanism of knowing together, determine and agree to thing
The subscription of part bus service unit is asked.
It should be noted that whether the subscribed block chain apparatus verification subscription request of the present embodiment is legal, with above-mentioned Fig. 1
In illustrated embodiment be registered block chain apparatus verification registration request it is whether legal realization mechanism it is identical, can refer in detail
The related of above-mentioned embodiment illustrated in fig. 1 is recorded, and is no longer repeating herein.
Similarly, block chain apparatus is subscribed by mechanism of knowing together, and determines the subscription request for agreeing to event bus service unit,
Pass through common recognition mechanism, the determining note for agreeing to registration block chain apparatus with block chain apparatus is registered in above-mentioned embodiment illustrated in fig. 1
The realization mechanism of volume request is identical, can refer to the related of above-mentioned embodiment illustrated in fig. 1 in detail and record, details are not described herein.
Still optionally further, " event bus service unit is according to pre-stored subscribed block chain apparatus mark for step 301
The correspondence known and subscribe to block chain apparatus mark obtains and is subscribed the corresponding subscription block chain apparatus mark of block chain apparatus
Know " before, it can also include the following steps:
(a5) event bus service unit, which receives, subscribes to block chain apparatus is sent, the subscribed block chain apparatus mark of carrying
Subscription request;
(b5) whether legal the verification of event bus service unit subscribes to request;If legal, step (c5) is executed;If otherwise not
It is legal, execute step (d5);The response message that refusal is subscribed to is returned to block chain apparatus is subscribed to, is terminated;
(c5) event bus service unit detects whether to have subscribed to the block data of subscribed block chain apparatus;If not ordering
It reads, executes step (d5);Otherwise, if having subscribed to, step (e5) is executed;
(d5) event bus service unit sends to subscribed block chain apparatus and subscribes to request, to be filled by subscribed block chain
Whether legal set verification subscription request, if it is legal, and by mechanism of knowing together, determine and agree to that the subscription of event bus service unit is asked
It asks, accordingly, event bus service unit, which receives, is subscribed the successful response message of subscription that block chain apparatus returns;Execute step
Suddenly (e5);
(e5) storage of event bus service unit is subscribed pair of block chain apparatus mark and subscription block chain apparatus mark
It should be related to;Execute step (f5);
(f5) event bus service unit returns to the successful response message of subscription to block chain apparatus is subscribed to, for subscribing to area
Block chain apparatus opens corresponding listening port;
(g5) event bus service unit, which receives, subscribes to the listening port that block chain apparatus is sent;
(h5) event bus service unit identifies according to the subscribed block chain apparatus of storage and subscribes to block chain apparatus mark
The correspondence of knowledge and the listening port for subscribing to block chain apparatus store and are subscribed block chain apparatus mark, subscribe to block chain
The correspondence of the listening port of device identification and subscription block chain apparatus.
For example, the subscription block chain apparatus mark of corresponding storage, subscribed block chain apparatus in event bus service unit
The correspondence of mark and listening port can indicate that subscribing to block chain apparatus has subscribed subscribed block chain apparatus, and lead to
Cross push of the listening port reception about subscribed block chain apparatus.
The event bus service unit of the present embodiment can support multiple subscription block chain apparatus to subscribe to the same quilt simultaneously
Subscribe to block chain apparatus.It is sent out to event bus service unit at first and subscribes to the subscription request for being subscribed block chain apparatus
When, the subscribed block chain apparatus is not subscribed in the discovery of event bus service unit, and event bus service unit can be to quilt at this time
It subscribes to block chain apparatus and sends subscription request;And follow-up other block chain apparatus of subscribing to are sent out to event bus service unit again
When subscribing to the subscription request for being subscribed block chain apparatus, at this time since event bus service unit has subscribed to subscribed block chain
Device can be subscribed to directly successfully to subscription block chain apparatus return.
The data access method of the transregional piece of chain of the present embodiment, if subscribed block chain apparatus agrees to event bus service dress
After the subscription request set, event bus service unit has newly in subscribed block chain apparatus detects subscribed block chain apparatus
When the block data of write-in, the block data and subscribed block chain for being subscribed that the carrying of block chain apparatus push is newly written are received
The message of device identification;Event bus service unit is according to pre-stored subscribed block chain apparatus mark, subscription block chain
The correspondence of the listening port of device identification and subscription block chain apparatus, obtains and is subscribed the corresponding subscription of block chain apparatus
The listening port of block chain apparatus;By subscribing to the listening port of block chain apparatus, carried newly to the push of block chain apparatus is subscribed to
The message of the block data of write-in.Using the technical solution of the present embodiment, pass through subscribing mechanism and the thing between block chain
Part bus service unit is realized at least one monitoring for subscribing to block chain apparatus to the same subscribed block chain apparatus, is ordered
Block chain apparatus is read to subscribing to the notice of block chain apparatus, to finally realize the data access of transregional piece of chain.The present embodiment
The data access of transregional piece of chain need not be participated in manually, and access efficiency is higher.
Fig. 5 is the flow chart of the data access method embodiment five of the transregional piece of chain of the present invention.As shown in figure 5, this implementation
The data access method of transregional piece of chain of example, can specifically include following steps:
If after 500, being subscribed the subscription request that block chain apparatus agrees to event bus service unit, being subscribed block chain dress
It sets detection and is subscribed in block chain apparatus whether have the block data being newly written;If so, executing step 501;Otherwise continue to detect;
501, block chain apparatus is subscribed to carry the block data being newly written to the push of event bus service unit and ordered
The message for readding block chain apparatus mark, so that event bus service unit is according to pre-stored subscribed block chain apparatus mark
The correspondence for knowing, subscribing to block chain apparatus mark and subscribing to the listening port of block chain apparatus, obtains and is subscribed block chain
The corresponding listening port for subscribing to block chain apparatus of device;And the listening port by subscribing to block chain apparatus, to subscription block
Chain apparatus push carries the message for the block data being newly written.
Still optionally further, " the subscribed block chain apparatus agreement event bus in the above-mentioned technical proposal of the present embodiment
The subscription of service unit is asked " before, it can also include the following steps:
(a6) it is subscribed block chain apparatus and receives the subscription request that event bus service unit is sent;
The mark of event bus service unit can be carried in subscription request so that subscribed block chain apparatus learns that this is ordered
Readding request is sent by whom.
(b6) whether legal it is subscribed block chain apparatus verification subscription request;If legal, step (c6) is executed, is otherwise returned
Subscribe to the response message of failure;
(c6) block chain apparatus is subscribed by mechanism of knowing together, and determines the registration request for agreeing to event bus service unit.
Similarly, the subscribed block chain apparatus verification of the present embodiment subscribes to whether request legal and subscribed block chain
Device is determined the registration request for agreeing to event bus service unit, is noted with above-mentioned embodiment illustrated in fig. 1 by mechanism of knowing together
Whether volume block chain apparatus verification registration request is legal, and is registered block chain apparatus by common recognition mechanism, determines and agrees to note
The realization mechanism of the registration request of volume block chain apparatus is identical, can refer to the related of above-mentioned embodiment illustrated in fig. 1 in detail and record,
Details are not described herein.
The data access method of the transregional piece of chain of the present embodiment, with above-mentioned embodiment illustrated in fig. 4 difference lies in:Above-mentioned figure
4 illustrated embodiments describe technical scheme of the present invention in event bus service unit system side;And the present embodiment is in subscribed area
Block chain apparatus side describes technical scheme of the present invention.The data access method detailed process of the transregional piece of chain of the present embodiment can also
With reference to the record of above-mentioned embodiment illustrated in fig. 4, details are not described herein.
The data access method of the transregional piece of chain of the present embodiment, if subscribed block chain apparatus agrees to event bus service dress
After the subscription request set, subscribed block chain apparatus detection is subscribed in block chain apparatus whether have the block data being newly written;
If so, subscribed block chain apparatus pushes the block data being newly written to event bus service unit, for event bus service
Device is ordered according to pre-stored subscribed correspondence block chain apparatus mark and subscribe to block chain apparatus mark, acquisition
Read the corresponding subscription block chain apparatus mark of block chain apparatus;And pass through the pre-stored monitoring end for subscribing to block chain apparatus
Mouthful, push the block data being newly written to block chain apparatus is subscribed to.Using the technical solution of the present embodiment, by subscribing mechanism and
Event bus service unit between block chain realizes at least one subscription block chain apparatus to the same subscribed block
The monitoring of chain apparatus is subscribed block chain apparatus to subscribing to the notice of block chain apparatus, to finally realize the number of transregional piece of chain
According to access.The data access of the transregional piece of chain of the present embodiment, need not manually participate in, access efficiency is higher.
Fig. 6 is the signaling diagram of the data access method embodiment six of the transregional piece of chain of the present invention.Transregional piece of the present embodiment
The data access method of chain, on the basis of the technical solution of above-mentioned Fig. 4 and embodiment illustrated in fig. 5, the angle moved towards from signaling
To describe technical scheme of the present invention.As shown in fig. 6, the data access method of the transregional piece of chain of the present embodiment, can specifically wrap
Include following steps:
600, subscribe to block chain apparatus A sent to event bus service unit carry the mark for subscribing to block chain apparatus A and
The registration request of the mark of subscribed block chain apparatus B;
601, whether event bus service unit verification registration request is legal, and after verification is legal, detects whether to subscribe to
The push of subscribed block chain apparatus B, and determination is not subscribed to;
This is described in the present embodiment by taking event bus service unit does not subscribe to the push of subscribed block chain apparatus B as an example
The technical solution of invention.
602, event bus service unit is sent to subscribed block chain apparatus B carries what event bus service unit identified
Subscribe to request;
603, it is whether legal that the B verification subscription requests of block chain apparatus are subscribed, and after verification is legal, pass through the machine of common recognition
System determines the registration request for agreeing to event bus service unit;And monitor address for the distribution of event bus service unit;
604, it is subscribed block chain apparatus B and sends the subscribed block chain apparatus B marks of carrying to event bus service unit
With the successful response message of subscription for monitoring address;
605, event bus service unit sends the registration that carrying is subscribed block chain apparatus B to block chain apparatus A is subscribed to
Successful response message;
606, block chain apparatus A is subscribed to according to the response message to succeed in registration, is opened and is monitored subscribed block chain apparatus B's
Listening port;
607, it subscribes to block chain apparatus A and sends the monitoring for monitoring subscribed block chain apparatus B to event bus service unit
Port;
608, event bus service unit record subscribes to the mark for identifying, being subscribed block chain apparatus B of block chain apparatus A
Know, the correspondence of listening port and monitoring address;
609, subscribe to block chain apparatus C sent to event bus service unit carry the mark for subscribing to block chain apparatus C and
The registration request of the mark of subscribed block chain apparatus B;
610, whether event bus service unit verification registration request is legal, and after verification is legal, detection has subscribed to
The push of subscribed block chain apparatus B;
611, event bus service unit sends the registration that carrying is subscribed block chain apparatus B to block chain apparatus C is subscribed to
Successful response message;
612, block chain apparatus C is subscribed to according to the response message to succeed in registration, is opened and is monitored subscribed block chain apparatus B's
Listening port;
613, it subscribes to block chain apparatus C and sends the monitoring for monitoring subscribed block chain apparatus B to event bus service unit
Port;
614, event bus service unit record subscribes to the mark for identifying, being subscribed block chain apparatus B of block chain apparatus C
Know, the correspondence of listening port and monitoring address;
615, it is subscribed block chain apparatus B to detect when having the block data being newly written in subscribed block chain apparatus, root
The block data being newly written is pushed to event bus service unit according to address is monitored;
616, mark and established correspondence of the event bus service unit according to subscribed block chain apparatus B,
It obtains and has subscribed to the corresponding listening ports of subscription block chain apparatus A of subscribed block chain apparatus B, subscribed to subscribed block chain
The corresponding listening ports of subscription block chain apparatus C of device B;
617, event bus service unit is filled according to the corresponding listening ports of block chain apparatus A are subscribed to block chain is subscribed to
It sets A push and is subscribed the block data being newly written in block chain apparatus B;
618, the legitimacy of the message for the block data that the A verification push of block chain apparatus is newly written is subscribed to, and when legal,
Using the block data being newly written received the block data storage new as one;
619, event bus service unit is filled according to the corresponding listening ports of block chain apparatus C are subscribed to block chain is subscribed to
Set the message that C push is subscribed the block data being newly written in block chain apparatus B;
620, the legitimacy of the message for the block data that the C verification push of block chain apparatus is newly written is subscribed to, and when legal,
Using the block data being newly written received the block data storage new as one;
621, subscribe to block chain apparatus C sent to event bus service unit carry the mark for subscribing to block chain apparatus C and
The solution registration request of the mark of subscribed block chain apparatus B;
622, whether event bus service unit verification solution registration request is legal, and after verification is legal, record subscribes to area
The solution registration of the mark for identifying, being subscribed block chain apparatus B, listening port and the correspondence of monitoring address of block chain apparatus C
Information;
623, event bus service unit sends the subscribed block chain apparatus B successes of solution registration to block chain apparatus C is subscribed to
Response message;
624, it subscribes to block chain apparatus C and closes the corresponding listening ports of subscribed block chain apparatus B, terminate.
In the present embodiment for subscribing to block chain apparatus A and C, in practical application, there can be multiple subscription block chains to fill
The block data subscribed to by event bus service unit be subscribed block chain apparatus B by a similar method is set, herein no longer
Citing repeats one by one.In addition, solving registration in the present embodiment for subscribing to block chain apparatus C, which can fit
For any one subscription block chain apparatus, realizes that process is identical, repeat no more.After solution succeeds in registration, even if subscribed area
For block chain apparatus B when detecting new block data write-in, event bus service unit will not be again to subscription block chain dress
Set C push.
The data access method of the transregional piece of chain of the present embodiment by subscribing mechanism and is located at using above-mentioned technical proposal
Event bus service unit between block chain realizes that at least one subscription block chain apparatus fills the same subscribed block chain
The monitoring set is subscribed block chain apparatus to subscribing to the notice of block chain apparatus, to finally realize that the data of transregional piece of chain are visited
It asks.The data access of the transregional piece of chain of the present embodiment, need not manually participate in, access efficiency is higher.
Similarly, the data access method of transregional piece of chain of above-mentioned Fig. 4-embodiment illustrated in fig. 6, can also realize subscription block
The block data of a certain type of the chain apparatus only to being subscribed block chain apparatus being newly written is monitored.Accordingly, area is subscribed to
Block chain apparatus can carry subscribed block chain apparatus mark and right sending the when of subscribing to request to event bus server unit
The type answered, to indicate only to subscribe to the block data being newly written of the type of the subscribed block chain apparatus.And event bus
Service unit can be subscribed to according to the type for the block data being newly written for requiring to subscribe to subscribed block chain apparatus.Using
The program, block chain apparatus A and block chain apparatus C can be respectively by event bus service units, while subscribing to block chain dress
The block data of the different types of new write-in of B is set, remaining realizes that process is same as described above, can refer to above-mentioned reality in detail
The record of example is applied, details are not described herein.
The data access method of the transregional piece of chain of the present invention is a kind of loose couplings, the area based on registration and message push
Block chain data-sharing scheme.According to practical application scene, optional distributed implementation shown in Fig. 3 and with collection shown in fig. 6
The implementation based on event bus service unit of Chinese style.The data access scheme of the transregional piece of chain of the present invention, it is easy to use,
Intrusion is small to be realized to various existing block chains, easily quickly can realize and dispose, and then realize the data of transregional piece of chain
It exchanges;After data exchange that is efficient, securely achieving transregional piece of chain, the upper layer application of block chain can be preferably supported.
Fig. 7 is the structure chart of the block chain apparatus embodiment one of the present invention.As shown in fig. 7, the block chain dress of the present embodiment
It sets, can specifically include:
If after the registration request that detection module 10 is used to agree to register block chain apparatus, detection is registered in block chain apparatus
Whether the block data that is newly written is had;
If acquisition module 11 detects the block data being newly written for detection module 10, pre-stored Acceditation Area is obtained
The corresponding monitoring address of block chain apparatus and listening port;
It is logical that the monitoring address and listening port that sending module 12 is used to obtain by acquisition module 11 are formed by safety
Channel is interrogated, the message for the block data being newly written is carried to registration block chain apparatus push.
The block chain apparatus of the present embodiment, the realization principle of the data access of transregional piece of chain is realized by using above-mentioned module
And technique effect is identical as the realization of above-mentioned related method embodiment, can refer to the note of above-mentioned related method embodiment in detail
It carries, details are not described herein.
Fig. 8 is the structure chart of the block chain apparatus embodiment two of the present invention.As shown in figure 8, the block chain dress of the present embodiment
It sets, on the basis of the technical solution of above-mentioned embodiment illustrated in fig. 7, further introduces the technical side of the present invention in further detail
Case.
As shown in figure 8, the block chain apparatus of the present embodiment, further includes:
The registration that receiving module 13 is used to receive the carrying registration block chain apparatus mark that registration block chain apparatus is sent is asked
It asks;
Whether the registration request that authentication module 14 is used to verify the reception of receiving module 13 is legal;
If determining module 15 is legal for the verification registration request of authentication module 14, by mechanism of knowing together, determines and agree to registration
The registration request of block chain apparatus.
Accordingly, detection module 10 is used for after determining module 15 determines the registration request for agreeing to registration block chain apparatus,
Detection is registered the block data for whether having in block chain apparatus and being newly written.
Still optionally further, as shown in figure 8, the block chain apparatus of the present embodiment further includes:Distribution module 16 and storage mould
Block 17;
Distribution module 16 is used for after determining module 15 determines the registration request for agreeing to registration block chain apparatus, is Acceditation Area
Address is monitored in the distribution of block chain apparatus;
Sending module 12 is used to send the agreement for carrying the monitoring address that distribution module 16 is distributed to registration block chain apparatus
The response message of registration, so that registration block chain apparatus opens accordingly listening port according to the response message for agreeing to register;
Receiving module 13 is additionally operable to receive the listening port that registration block chain apparatus is sent;
The corresponding monitoring address of registration block chain apparatus and receive mould that memory module 17 is used to distribute distribution module 16
The listening port storage that block 13 receives.
Still optionally further, the block chain apparatus of the present embodiment further includes:Authentication module 14 is specifically used for:
Whether the format for verifying registration request is correct;
It is legal that registration block chain apparatus in verification registration request identifies whether;
Whether the type for verifying the registration block chain apparatus in registration request is legal;
Whether the signature for verifying registration request is legal;
Whether legal verify the corresponding protocol version of registration request;And/or
Whether the content for verifying registration request is legal.
Still optionally further, the block chain apparatus of the present embodiment further includes:Determining module 15 is specifically equivalent to block chain dress
Block chain application in setting.Determining module 15 is specifically used for sending registration proposal request to either objective block chain node, by mesh
Mark block chain node sends to other all block chain nodes being registered in block chain apparatus and carries registration block chain apparatus mark
Request is proposed in the registration of knowledge, and all block chain nodes by being registered block chain apparatus know together to registration block chain apparatus
Scoring obtains the final scoring of registration block chain apparatus;Whether the final scoring of detection is more than default scoring threshold value;If so, determining
Agree to the registration request of registration block chain apparatus.
The block chain apparatus of the present embodiment, the realization principle of the data access of transregional piece of chain is realized by using above-mentioned module
And technique effect is identical as the realization of above-mentioned related method embodiment, can refer to the note of above-mentioned related method embodiment in detail
It carries, details are not described herein.
Fig. 9 is the structure chart of the block chain apparatus embodiment three of the present invention.As shown in figure 9, the block chain dress of the present embodiment
It sets, can specifically include:
If after receiving module 20 is for being registered block chain apparatus agreement registration request, and being registered the inspection of block chain apparatus
When measuring the block data being newly written, safety communication channel is formed by by listening port and monitoring address, receives quilt
The message for the block data that the carrying of registration block chain apparatus push is newly written;
Authentication module 21 is used to verify the message of block data that the carrying of the push of the reception of receiving module 20 is newly written
It is no legal;
If the message that memory module 22 verifies the block data being newly written for authentication module 21 is legal, verification is received into mould
The block data storage new as one of the block data being newly written that block 20 receives.
The block chain apparatus of the present embodiment, the realization principle of the data access of transregional piece of chain is realized by using above-mentioned module
And technique effect is identical as the realization of above-mentioned related method embodiment, can refer to the note of above-mentioned related method embodiment in detail
It carries, details are not described herein.
Figure 10 is the structure chart of the block chain apparatus example IV of the present invention.As shown in Figure 10, the block chain of the present embodiment
Device further introduces the technical side of the present invention in further detail on the basis of the technical solution of above-mentioned embodiment illustrated in fig. 9
Case.
In the block chain apparatus of the present embodiment, authentication module 21 is specifically used for:
What is carried in the message for the block data that verification push is newly written is registered identifying whether correctly for block chain apparatus;
Whether the signature of the message for the block data that verification push is newly written is correct;And/or
Whether the cryptographic Hash for verifying the block data being newly written is correct.
Still optionally further, as shown in Figure 10, in the block chain apparatus of the present embodiment, further include:
Sending module 23 is used for the registration request for being registered block chain apparatus transmission carrying registration block chain apparatus mark,
To determine whether the registration request for agreeing to register block chain apparatus by being registered block chain apparatus.
Still optionally further, as shown in Figure 10, further include opening module 24 in the block chain apparatus of the present embodiment:
Receiving module 20 is additionally operable to receive the sound for the agreement registration that address is monitored in the carrying for being registered the transmission of block chain apparatus
Answer message;
End is accordingly monitored in the response message unlatching for the agreement registration that opening module 24 is used to be received according to receiving module 20
Mouthful;
Sending module 23 is additionally operable to the listening port for being registered the transmission unlatching of opening module 24 of block chain apparatus, with by quilt
The corresponding monitoring address of block chain apparatus and listening port storage will be registered by registering block chain apparatus.
The block chain apparatus of the present embodiment, the realization principle of the data access of transregional piece of chain is realized by using above-mentioned module
And technique effect is identical as the realization of above-mentioned related method embodiment, can refer to the note of above-mentioned related method embodiment in detail
It carries, details are not described herein.
Figure 11 is the structure chart of the event bus service unit embodiment one of the present invention.As shown in figure 11, the present embodiment
Event bus service unit, can specifically include:
Agree to after subscribing to request if receiving module 30 is used for subscribed block chain apparatus, is detecting subscribed block chain dress
When having the block data being newly written in setting, the block data and ordered for being subscribed that the carrying that block chain apparatus pushes newly is written are received
Read the message of block chain apparatus mark;
Acquisition module 31 be used for according to pre-stored subscribed block chain apparatus mark, subscribe to block chain apparatus mark with
And subscribe to the subscribed area carried in the correspondence of the listening port of block chain apparatus and the message of the reception of receiving module 30
Block chain apparatus identifies, and obtains and is subscribed the corresponding listening port for subscribing to block chain apparatus of block chain apparatus;
The listening port for the subscription block chain apparatus that sending module 32 is used to obtain by acquisition module 31, to subscription block
Chain apparatus push carries the message for the block data being newly written.
The event bus service unit of the present embodiment, the reality of the data access of transregional piece of chain is realized by using above-mentioned module
Existing principle and technique effect are identical as the realization of above-mentioned related method embodiment, can refer to above-mentioned correlation technique in detail and implement
The record of example, details are not described herein.
Figure 12 is the structure chart of the event bus service unit embodiment two of the present invention.As shown in figure 12, the present embodiment
Event bus service unit further introduces this in further detail on the basis of the technical solution of above-mentioned embodiment illustrated in fig. 1
The technical solution of invention.
In the event bus service unit of the present embodiment, sending module 32 is additionally operable to order to the transmission of subscribed block chain apparatus
Request is read, with whether legal by subscribed block chain apparatus verification subscription request, if it is legal, and by mechanism of knowing together, determine same
The subscription request of meaning event bus service unit.
Still optionally further, as shown in figure 12, further include authentication module 33 in the event bus service unit of the present embodiment
With detection module 34;
Wherein receiving module 30, which is additionally operable to receive, subscribes to block chain apparatus is sent, the subscribed block chain apparatus mark of carrying
Subscription request;
Whether the subscription request that authentication module 33 is used to verify the reception of receiving module 30 is legal;
If detection module 34 is legal for the verification subscription request of authentication module 33, detect whether to have subscribed to subscribed block chain
The block data of device;
If memory module 35 detects the block data for having subscribed to subscribed block chain apparatus for detection module 34, storage
The correspondence of subscribed block chain apparatus mark and subscription block chain apparatus mark;
Sending module 32 is additionally operable to after memory module 35 stores correspondence, and subscription is returned to block chain apparatus is subscribed to
Successful response message opens corresponding listening port for subscribing to block chain apparatus;
Receiving module 30, which is additionally operable to receive, subscribes to the listening port that block chain apparatus is sent;
Memory module 35 is additionally operable to identify according to the subscribed block chain apparatus of storage and subscribe to block chain apparatus mark
The listening port for the subscription block chain apparatus that correspondence and receiving module 30 receive, stores and is subscribed block chain apparatus mark
The correspondence for knowing, subscribing to block chain apparatus mark and subscribing to the listening port of block chain apparatus.
The event bus service unit of the present embodiment, the reality of the data access of transregional piece of chain is realized by using above-mentioned module
Existing principle and technique effect are identical as the realization of above-mentioned related method embodiment, can refer to above-mentioned correlation technique in detail and implement
The record of example, details are not described herein.
Figure 13 is the structure chart of the block chain apparatus embodiment five of the present invention.As shown in figure 13, the block chain of the present embodiment
Device can specifically include:
After if detection module 40 is used to agree to the subscription request of event bus service unit, detects and be subscribed block chain apparatus
In whether have the block data being newly written;
If sending module 41 detects the block data being newly written for detection module 40, to event bus service unit
Push carries the message of the block data that is newly written and subscribed block chain apparatus mark, for event bus service unit according to
Pre-stored subscribed block chain apparatus mark subscribes to block chain apparatus mark and subscribes to the listening port of block chain apparatus
Correspondence, obtain and be subscribed the corresponding listening port for subscribing to block chain apparatus of block chain apparatus;And by subscribing to block
The listening port of chain apparatus, to the message for subscribing to the block data that the push carrying of block chain apparatus is newly written.
The block chain apparatus of the present embodiment, the realization principle of the data access of transregional piece of chain is realized by using above-mentioned module
And technique effect is identical as the realization of above-mentioned related method embodiment, can refer to the note of above-mentioned related method embodiment in detail
It carries, details are not described herein.
Figure 14 is the structure chart of the block chain apparatus embodiment six of the present invention.As shown in figure 14, the block chain of the present embodiment
Device further introduces the technology of the present invention in further detail on the basis of the technical solution of above-mentioned embodiment illustrated in fig. 13
Scheme.
As shown in figure 14, the block chain apparatus of the present embodiment further includes:
Receiving module 42 is used to receive the subscription request of event bus service unit transmission;
Whether the subscription request that authentication module 43 is used to verify the reception of receiving module 42 is legal;
If determining module 44 is legal for the verification subscription request of authentication module 43, by mechanism of knowing together, agreement event is determined
The registration request of bus service unit.
In this way, detection module 40 is after determining module 44 determines and agrees to the subscription request of event bus service unit, it can be with
Detection is subscribed in block chain apparatus whether have the block data being newly written.
The block chain apparatus of the present embodiment, the realization principle of the data access of transregional piece of chain is realized by using above-mentioned module
And technique effect is identical as the realization of above-mentioned related method embodiment, can refer to the note of above-mentioned related method embodiment in detail
It carries, details are not described herein.
Figure 15 is the structure chart of the data access system embodiment one of the transregional piece of chain of the present invention.As shown in figure 15, this reality
The data access system for applying transregional piece of chain of example includes the first block chain apparatus 50 and the second block chain apparatus 60, the first block chain
Device 50 and the communication connection of the second block chain apparatus 60, the first block chain apparatus 50 is using such as figure 7 above or block shown in Fig. 8
Chain apparatus, the second block chain apparatus 60 are correspondingly adopted such as figure 9 above or block chain apparatus shown in Fig. 10.Conversely, the firstth area
Block chain apparatus 50 can also use such as figure 9 above or block chain apparatus shown in Fig. 10, the second block chain apparatus 60 accordingly to adopt
With such as figure 7 above or block chain apparatus shown in Fig. 8, the transregional piece of chain such as figure 1 above-embodiment illustrated in fig. 3 may be used in detail
Data access method realize the data access of transregional piece of chain, the record of above-mentioned related embodiment can be referred in detail, herein not
It repeats again.
Figure 16 is the structure chart of the data access system embodiment two of the transregional piece of chain of the present invention.As shown in figure 16, this reality
The data access system for applying transregional piece of chain of example includes at least one subscription block chain apparatus 70, subscribed 80 and of block chain apparatus
Event bus device 90, each subscription block chain apparatus 70 and subscribed block chain apparatus 80 are communicated with event bus device 90 respectively
Event bus device shown in Figure 11 and Figure 12 may be used in connection, event bus device 90, and being subscribed block chain apparatus 80 can
To use the block chain apparatus as shown in figure 13 above and Figure 14, may be used in detail transregional such as figure 4 above-embodiment illustrated in fig. 6
The data access method of block chain realizes the data access of transregional piece of chain, can refer to the record of above-mentioned related embodiment in detail,
This is repeated no more.
Figure 17 is the structure chart of the computer equipment embodiment of the present invention.As shown in figure 17, the computer of the present embodiment is set
It is standby, including:One or more processors 300 and memory 400, memory 400 are used to store one or more programs, when
The one or more programs stored in memory 400 are executed by one or more processors 300 so that one or more processors
300 realize the data access method of the transregional piece of chain such as figure 1 above, Fig. 2, Fig. 4 or embodiment illustrated in fig. 5.Implement shown in Figure 17
In example for including multiple processors 300.The computer equipment of the present embodiment can be used as block chain apparatus or event total
Line apparatus realizes the function of the data access of the transregional piece of chain of above-described embodiment.
For example, Figure 18 is a kind of exemplary plot of computer equipment provided by the invention.Figure 18 is shown suitable for being used for realizing
The block diagram of the exemplary computer device 12a of embodiment of the present invention.The computer equipment 12a that Figure 18 is shown is only one and shows
Example, should not bring any restrictions to the function and use scope of the embodiment of the present invention.
As shown in figure 18, computer equipment 12a is showed in the form of universal computing device.The component of computer equipment 12a
It can include but is not limited to:One or more processor 16a, system storage 28a, connection different system component (including be
Unite memory 28a and processor 16a) bus 18a.
Bus 18a indicates one or more in a few class bus structures, including memory bus or Memory Controller,
Peripheral bus, graphics acceleration port, processor or the local bus using the arbitrary bus structures in a variety of bus structures.It lifts
For example, these architectures include but not limited to industry standard architecture (ISA) bus, microchannel architecture (MAC)
Bus, enhanced isa bus, Video Electronics Standards Association (VESA) local bus and peripheral component interconnection (PCI) bus.
Computer equipment 12a typically comprises a variety of computer system readable media.These media can be it is any can
The usable medium accessed by computer equipment 12a, including volatile and non-volatile media, moveable and immovable Jie
Matter.
System storage 28a may include the computer system readable media of form of volatile memory, such as deposit at random
Access to memory (RAM) 30a and/or cache memory 32a.Computer equipment 12a may further include it is other it is removable/
Immovable, volatile/non-volatile computer system storage medium.Only as an example, storage system 34a can be used for reading
Write immovable, non-volatile magnetic media (Figure 18 do not show, commonly referred to as " hard disk drive ").Although not showing in Figure 18
Go out, can provide for the disc driver to moving non-volatile magnetic disk (such as " floppy disk ") read-write, and to removable
The CD drive of anonvolatile optical disk (such as CD-ROM, DVD-ROM or other optical mediums) read-write.In these cases,
Each driver can be connected by one or more data media interfaces with bus 18a.System storage 28a may include
There is one group of (for example, at least one) program module, these program modules to be configured at least one program product, the program product
To execute the function of the above-mentioned each embodiments of Fig. 1-Figure 16 of the present invention.
Program with one group of (at least one) program module 42a/utility 40a can be stored in such as system and deposit
In reservoir 28a, such program module 42a include --- but being not limited to --- operating system, one or more application program,
Other program modules and program data may include the reality of network environment in each or certain combination in these examples
It is existing.Program module 42a usually executes the function and/or method in above-mentioned each embodiments of Fig. 1-Figure 16 described in the invention.
Computer equipment 12a can also be with one or more external equipment 14a (such as keyboard, sensing equipment, display
24a etc.) communication, the equipment interacted with computer equipment 12a communication can be also enabled a user to one or more, and/or
(such as network interface card is adjusted with any equipment that computer equipment 12a communicated with one or more of the other computing device is enable
Modulator-demodulator etc.) communication.This communication can be carried out by input/output (I/O) interface 22a.Also, computer equipment
12a can also by network adapter 20a and one or more network (such as LAN (LAN), wide area network (WAN) and/or
Public network, such as internet) communication.As shown, network adapter 20a by bus 18a and computer equipment 12a its
Its module communicates.It should be understood that although not shown in the drawings, other hardware and/or software can be used in conjunction with computer equipment 12a
Module, including but not limited to:Microcode, device driver, redundant processor, external disk drive array, RAID system, tape
Driver and data backup storage system etc..
Processor 16a is stored in program in system storage 28a by operation, to perform various functions application and
Data processing, such as realize the data access method of transregional piece of chain shown in above-described embodiment.
The present invention also provides a kind of computer-readable mediums, are stored thereon with computer program, which is held by processor
The data access method of the transregional piece of chain as shown in above-described embodiment is realized when row.
The computer-readable medium of the present embodiment may include in the system storage 28a in above-mentioned embodiment illustrated in fig. 18
RAM30a, and/or cache memory 32a, and/or storage system 34a.
With the development of science and technology, the route of transmission of computer program is no longer limited by tangible medium, it can also be directly from net
Network is downloaded, or is obtained using other modes.Therefore, the computer-readable medium in the present embodiment may include not only tangible
Medium can also include invisible medium.
The arbitrary combination of one or more computer-readable media may be used in the computer-readable medium of the present embodiment.
Computer-readable medium can be computer-readable signal media or computer readable storage medium.Computer-readable storage medium
Matter for example may be-but not limited to-system, device or the device of electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor, or
The arbitrary above combination of person.The more specific example (non exhaustive list) of computer readable storage medium includes:There are one tools
Or the electrical connections of multiple conducting wires, portable computer diskette, hard disk, random access memory (RAM), read-only memory (ROM),
Erasable programmable read only memory (EPROM or flash memory), optical fiber, portable compact disc read-only memory (CD-ROM), light
Memory device, magnetic memory device or above-mentioned any appropriate combination.In this document, computer readable storage medium can
With to be any include or the tangible medium of storage program, the program can be commanded execution system, device or device use or
Person is in connection.
Computer-readable signal media may include in a base band or as the data-signal that a carrier wave part is propagated,
Wherein carry computer-readable program code.Diversified forms may be used in the data-signal of this propagation, including --- but
It is not limited to --- electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be
Any computer-readable medium other than computer readable storage medium, which can send, propagate or
Transmission for by instruction execution system, device either device use or program in connection.
The program code for including on computer-readable medium can transmit with any suitable medium, including --- but it is unlimited
In --- wireless, electric wire, optical cable, RF etc. or above-mentioned any appropriate combination.
It can be write with one or more programming languages or combinations thereof for executing the computer that operates of the present invention
Program code, described program design language include object oriented program language-such as Java, Smalltalk, C++,
Further include conventional procedural programming language-such as " C " language or similar programming language.Program code can be with
It fully executes, partly execute on the user computer on the user computer, being executed as an independent software package, portion
Divide and partly executes or executed on a remote computer or server completely on the remote computer on the user computer.
Be related in the situation of remote computer, remote computer can pass through the network of any kind --- including LAN (LAN) or
Wide area network (WAN)-be connected to subscriber computer, or, it may be connected to outer computer (such as carried using Internet service
It is connected by internet for quotient).
In several embodiments provided by the present invention, it should be understood that disclosed system, device and method can be with
It realizes by another way.For example, the apparatus embodiments described above are merely exemplary, for example, the unit
It divides, only a kind of division of logic function, formula that in actual implementation, there may be another division manner.
The unit illustrated as separating component may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, you can be located at a place, or may be distributed over multiple
In network element.Some or all of unit therein can be selected according to the actual needs to realize the mesh of this embodiment scheme
's.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, it can also
It is that each unit physically exists alone, it can also be during two or more units be integrated in one unit.Above-mentioned integrated list
The form that hardware had both may be used in member is realized, can also be realized in the form of hardware adds SFU software functional unit.
The above-mentioned integrated unit being realized in the form of SFU software functional unit can be stored in one and computer-readable deposit
In storage media.Above-mentioned SFU software functional unit is stored in a storage medium, including some instructions are used so that a computer
It is each that equipment (can be personal computer, server or the network equipment etc.) or processor (processor) execute the present invention
The part steps of embodiment the method.And storage medium above-mentioned includes:USB flash disk, mobile hard disk, read-only memory (Read-
Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disc or CD etc. it is various
The medium of program code can be stored.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all essences in the present invention
With within principle, any modification, equivalent substitution, improvement and etc. done should be included within the scope of protection of the invention god.
Claims (31)
1. a kind of data access method of transregional piece of chain, which is characterized in that the method includes:
If described to be registered the detection of block chain apparatus after being registered the registration request that block chain apparatus agrees to registration block chain apparatus
It is described that the block data for whether having in block chain apparatus and being newly written be registered;
If so, the block chain apparatus that is registered obtains the pre-stored corresponding monitoring address of the registration block chain apparatus and prison
Listen port;
The block chain apparatus that is registered is formed by safety communication channel by the monitoring address and the listening port,
The message of the block data of the new write-in is carried to the registration block chain apparatus push.
2. according to the method described in claim 1, it is characterized in that, the block chain apparatus that is registered agrees to registration block chain dress
Before the registration request set, the method includes:
The block chain apparatus that is registered receives the carrying registration block chain apparatus mark that the registration block chain apparatus is sent
The registration request of knowledge;
It is described to be registered block chain apparatus whether verify the registration request legal;
If legal, the block chain apparatus that is registered determines the registration for agreeing to the registration block chain apparatus by common recognition mechanism
Request.
3. according to the method described in claim 2, it is characterized in that, the block chain apparatus that is registered by common recognition mechanism, really
Surely after the registration request for agreeing to the registration block chain apparatus, the method further includes:
The block chain apparatus that is registered is that address is monitored in registration block chain apparatus distribution;
The block chain apparatus that is registered sends the agreement registration for carrying the monitoring address to the registration block chain apparatus
Response message, so that the registration block chain apparatus opens accordingly listening port according to the response message for agreeing to registration;
The block chain apparatus that is registered receives the listening port that the registration block chain apparatus is sent;
The block chain apparatus that is registered is by the corresponding monitoring address of registration block chain apparatus and the listening port
Storage.
4. according to the method described in claim 2, it is characterized in that, the block chain apparatus that is registered verifies the registration request
It is whether legal, it specifically includes:
It is described be registered block chain apparatus verify the registration request format it is whether correct;
It is described be registered the registration block chain apparatus that block chain apparatus is verified in the registration request identify whether it is legal;
It is described be registered block chain apparatus verify the registration block chain apparatus in the registration request type it is whether legal;
It is described be registered block chain apparatus verify the registration request signature it is whether legal;
It is described to be registered block chain apparatus whether verify the corresponding protocol version of the registration request legal;And/or
It is described be registered block chain apparatus verify the registration request content it is whether legal.
5. according to the method described in claim 2, it is characterized in that, the block chain apparatus that is registered by common recognition mechanism, really
Surely the registration request for agreeing to the registration block chain apparatus, specifically includes:
The block chain being registered in block chain apparatus is applied to either objective block chain node and sends registration proposal request, by
The target block chain node sends to all block chain nodes of other being registered in block chain apparatus and carries the note
Request is proposed in the registration of volume block chain apparatus mark, and by all block chain nodes pair for being registered block chain apparatus
The registration block chain apparatus carries out common recognition scoring, obtains the final scoring of the registration block chain apparatus;
The block chain application being registered in block chain apparatus detects whether the final scoring is more than default scoring threshold value;
If so, the block chain application being registered in block chain apparatus, which determines, agrees to that the registration of the registration block chain apparatus is asked
It asks.
6. a kind of data access method of transregional piece of chain, which is characterized in that the method includes:
If after being registered the registration request that block chain apparatus agrees to registration block chain apparatus, and block chain apparatus is registered described
When detecting the block data being newly written, the registration block chain apparatus is formed by by listening port and monitoring address
Safety communication channel is registered the message of the block data of the carrying new write-in of block chain apparatus push described in reception;
Whether the message of the block data of the carrying new write-in of the registration block chain apparatus verification push is legal;
If legal, the registration block chain apparatus is using the block data of the new write-in received the block counts new as one
According to storage.
7. according to the method described in claim 6, it is characterized in that, described in the carrying of the registration block chain apparatus verification push
Whether the message for the block data being newly written is legal, specifically includes:
The quilt carried in the message of the block data of the carrying new write-in of the registration block chain apparatus verification push
Identifying whether for registration block chain apparatus is correct;
Whether the signature of the message of the block data of the carrying new write-in of the registration block chain apparatus verification push is correct;
And/or
Whether the cryptographic Hash for the block data that the registration block chain apparatus verifies the new write-in is correct.
8. according to the method described in claim 6, it is characterized in that, the block chain apparatus that is registered agrees to registration block chain dress
Before the registration request set, the method includes:
The registration block chain apparatus sends what the carrying registration block chain apparatus identified to the block chain apparatus that is registered
Registration request, to determine whether to agree to the registration request for registering block chain apparatus by the block chain apparatus that is registered.
9. according to the method described in claim 8, it is characterized in that, the block chain apparatus that is registered agrees to registration block chain dress
After the registration request set, the method further includes:
The registration block chain apparatus is registered the carrying agreement note for monitoring address that block chain apparatus is sent described in receiving
The response message of volume;
The registration block chain apparatus opens accordingly listening port according to the response message for agreeing to registration;
The registration block chain apparatus sends the listening port to the block chain apparatus that is registered, to be registered area by described
Block chain apparatus stores the corresponding monitoring address of registration block chain apparatus and the listening port.
10. a kind of data access method of transregional piece of chain, which is characterized in that the method includes:
After if subscribed block chain apparatus agrees to the subscription request of event bus service unit, the event bus service unit exists
The subscribed block chain apparatus detects when having the block data being newly written in the subscribed block chain apparatus, described in reception
The block data of the carrying new write-in of subscribed block chain apparatus push and disappearing for the subscribed block chain apparatus mark
Breath;
The event bus service unit is according to pre-stored subscribed block chain apparatus mark, subscription block chain apparatus mark
And subscribe to the listening port of block chain apparatus correspondence and the message in the subscribed block chain dress that carries
Mark is set, the corresponding listening port for subscribing to block chain apparatus of the subscribed block chain apparatus is obtained;
The event bus service unit is by the listening port for subscribing to block chain apparatus, to the subscription block chain apparatus
Push carries the message of the block data of the new write-in.
11. according to the method described in claim 10, it is characterized in that, the subscribed block chain apparatus agrees to event bus clothes
It is engaged in before the subscription request of device, the method further includes:
The event bus service unit sends to the subscribed block chain apparatus and subscribes to request, with by the subscribed block
Whether the chain apparatus verification subscription request is legal, if it is legal, and pass through the mechanism of common recognition, it determines and agrees to the event bus service
The subscription of device is asked.
12. according to the method described in claim 10, it is characterized in that, the event bus service unit is according to pre-stored
The corresponding of listening port of subscribed block chain apparatus mark, subscription block chain apparatus mark and subscription block chain apparatus is closed
System, before obtaining the corresponding listening port for subscribing to block chain apparatus of the subscribed block chain apparatus, the method further includes:
The event bus service unit receives the subscription block chain apparatus is sent, the carrying subscribed block chain apparatus
The subscription of mark is asked;
Whether the event bus service unit verifies the subscription request legal;
If legal, the event bus service unit detects whether to have subscribed to the block data of the subscribed block chain apparatus;
If having subscribed to, the event bus service unit storage subscribed block chain apparatus mark and the subscription block chain
The correspondence of device identification;
The event bus service unit returns to the subscription block chain apparatus and subscribes to successful response message, is ordered for described
It reads block chain apparatus and opens corresponding listening port;
The event bus service unit receives the listening port that the subscription block chain apparatus is sent;
The event bus service unit is filled according to the subscribed block chain apparatus mark of storage with the subscription block chain
It sets the correspondence of mark and subscribes to the listening port of block chain apparatus, the storage subscribed block chain apparatus mark, institute
State the correspondence for the listening port for subscribing to block chain apparatus mark and subscription block chain apparatus.
13. a kind of data access method of transregional piece of chain, which is characterized in that the method includes:
After if subscribed block chain apparatus agrees to the subscription request of event bus service unit, the subscribed block chain apparatus inspection
Whether survey in the subscribed block chain apparatus has the block data being newly written;
If so, the subscribed block chain apparatus carries the block counts of the new write-in to event bus service unit push
According to the message with the subscribed block chain apparatus mark, so that the event bus service unit is ordered according to pre-stored
The correspondence for readding block chain apparatus mark, subscribing to block chain apparatus mark and subscribing to the listening port of block chain apparatus, is obtained
Take the corresponding listening port for subscribing to block chain apparatus of the subscribed block chain apparatus;And pass through the subscription block chain apparatus
Listening port, the message of the block data of the new write-in is carried to the subscription block chain apparatus push.
14. according to the method for claim 13, which is characterized in that the subscribed block chain apparatus agrees to event bus clothes
It is engaged in before the subscription request of device, the method further includes:
The subscribed block chain apparatus receives the subscription request that the event bus service unit is sent;
Whether the subscribed block chain apparatus verifies the subscription request legal;
If legal, the subscribed block chain apparatus determines the note for agreeing to the event bus service unit by mechanism of knowing together
Volume request.
15. a kind of block chain apparatus, which is characterized in that described device includes:
If detection module is registered in block chain apparatus after the registration request for being used to agree to register block chain apparatus described in detection
Whether the block data that is newly written is had;
If acquisition module obtains the pre-stored corresponding prison of the registration block chain apparatus for there is the block data being newly written
Listen address and listening port;
Sending module, for being formed by safety communication channel by the monitoring address and the listening port, to described
Register the message that the push of block chain apparatus carries the block data of the new write-in.
16. device according to claim 15, which is characterized in that described device further includes:
Receiving module, the registration for receiving the carrying registration block chain apparatus mark that the registration block chain apparatus is sent
Request;
Authentication module, it is whether legal for verifying the registration request;
Determining module, by mechanism of knowing together, determines if legal for verifying the registration request and agrees to the registration block chain dress
The registration request set.
17. device according to claim 16, which is characterized in that described device further includes distribution module and memory module;
The distribution module, for monitoring address for registration block chain apparatus distribution;
The sending module, for sending the response for carrying the agreement registration for monitoring address to the registration block chain apparatus
Message, so that the registration block chain apparatus opens accordingly listening port according to the response message for agreeing to registration;
The receiving module is additionally operable to receive the listening port that the registration block chain apparatus is sent;
The memory module, for depositing the corresponding monitoring address of registration block chain apparatus and the listening port
Storage.
18. device according to claim 16, which is characterized in that the authentication module is specifically used for:
Whether the format for verifying the registration request is correct;
Verify the registration block chain apparatus in the registration request identify whether it is legal;
Whether the type for verifying the registration block chain apparatus in the registration request is legal;
Whether the signature for verifying the registration request is legal;
Whether legal verify the corresponding protocol version of the registration request;And/or
Whether the content for verifying the registration request is legal.
19. a kind of block chain apparatus, which is characterized in that described device includes:
Receiving module, if after for being registered block chain apparatus agreement registration request, and it is registered the inspection of block chain apparatus described
When measuring the block data being newly written, safety communication channel is formed by by listening port and monitoring address, receives institute
State the message of the block data for the carrying new write-in for being registered the push of block chain apparatus;
Whether the message of authentication module, the block data of the carrying new write-in for verifying push is legal;
Memory module, if the message of the block data for the new write-in is legal, by the block of the new write-in received
The data block data storage new as one.
20. device according to claim 19, which is characterized in that the authentication module is specifically used for:
The mark for being registered block chain apparatus carried in the message of the block data of the carrying new write-in of verification push
Whether correct know;
Whether the signature of the message of the block data of the carrying new write-in of verification push is correct;And/or
Whether the cryptographic Hash for verifying the block data of the new write-in is correct.
21. device according to claim 19, which is characterized in that described device further includes:
Sending module, for being asked to the registration for being registered the block chain apparatus transmission carrying registration block chain apparatus mark
It asks, to determine whether to agree to the registration request for registering block chain apparatus by the block chain apparatus that is registered.
22. device according to claim 21, which is characterized in that described device further includes opening module:
The receiving module is additionally operable to be registered the carrying agreement note for monitoring address of block chain apparatus transmission described in receiving
The response message of volume;
The opening module, for opening accordingly listening port according to the response message for agreeing to registration;
The sending module is additionally operable to send the listening port to the block chain apparatus that is registered, to be registered by described
Block chain apparatus stores the corresponding monitoring address of registration block chain apparatus and the listening port.
23. a kind of event bus service unit, which is characterized in that described device includes:
Receiving module is detecting the subscribed block chain dress if agreeing to after subscribing to request for subscribed block chain apparatus
When having the block data being newly written in setting, the block counts of the carrying new write-in of the subscribed block chain apparatus push are received
According to the message with the subscribed block chain apparatus mark;
Acquisition module, for identifying and ordering according to pre-stored subscribed block chain apparatus mark, subscription block chain apparatus
Read the listening port of block chain apparatus correspondence and the message in the subscribed block chain apparatus mark that carries,
Obtain the corresponding listening port for subscribing to block chain apparatus of the subscribed block chain apparatus;
Sending module, for by the listening port for subscribing to block chain apparatus, being taken to subscription block chain apparatus push
The message of block data with the new write-in.
24. device according to claim 23, it is characterised in that:
The sending module is additionally operable to send to the subscribed block chain apparatus and subscribes to request, with by the subscribed block
Whether the chain apparatus verification subscription request is legal, if it is legal, and pass through the mechanism of common recognition, it determines and agrees to the event bus service
The subscription of device is asked.
25. device according to claim 23, which is characterized in that described device further includes authentication module and detection module;
The receiving module is additionally operable to receive the subscription block chain apparatus is sent, the carrying subscribed block chain apparatus
The subscription of mark is asked;
The authentication module, it is whether legal for verifying the subscription request;
The detection module detects whether to have subscribed to the subscribed block chain dress if legal for verifying the subscription request
The block data set;
The memory module stores the subscribed area if the block data for having subscribed to the subscribed block chain apparatus
Block chain apparatus identifies the correspondence with the subscription block chain apparatus mark;
The sending module is additionally operable to return to the subscription block chain apparatus and subscribes to successful response message, ordered for described
It reads block chain apparatus and opens corresponding listening port;
The receiving module is additionally operable to receive the listening port that the subscription block chain apparatus is sent;
The memory module is additionally operable to the subscribed block chain apparatus mark according to storage and the subscription block chain apparatus
The correspondence of mark and the listening port for subscribing to block chain apparatus, the storage subscribed block chain apparatus identify, are described
It subscribes to block chain apparatus mark and subscribes to the correspondence of the listening port of block chain apparatus.
26. a kind of block chain apparatus, which is characterized in that described device includes:
If detection module detects the subscribed block chain apparatus after for agreeing to that the subscription of event bus service unit is asked
In whether have the block data being newly written;
Sending module, if the block data for there is the new write-in, described in event bus service unit push carrying
The message of the block data that is newly written and the subscribed block chain apparatus mark, for the event bus service unit according to
Pre-stored subscribed block chain apparatus mark subscribes to block chain apparatus mark and subscribes to the listening port of block chain apparatus
Correspondence, obtain the corresponding listening port for subscribing to block chain apparatus of the subscribed block chain apparatus;And by described
The listening port for subscribing to block chain apparatus carries disappearing for the block data of the new write-in to the subscription block chain apparatus push
Breath.
27. device according to claim 26, which is characterized in that described device further includes:
Receiving module, the subscription request sent for receiving the event bus service unit;
Authentication module, it is whether legal for verifying the subscription request;
If determining module, by mechanism of knowing together, determines legal for verifying the subscription request and agrees to the event bus service
The registration request of device.
28. a kind of data access system of transregional piece of chain, which is characterized in that filled including the first block chain apparatus and the second block chain
It sets, the first block chain apparatus and the second block chain apparatus communication connection, the first block chain apparatus is using as above
The block chain apparatus any claim 15-18, the second block chain apparatus are any using claim 19-22 as above
The block chain apparatus.
29. a kind of data access system of transregional piece of chain, which is characterized in that including at least one subscription block chain apparatus, ordered
Read block chain apparatus and event bus device, each subscription block chain apparatus and the subscribed block chain apparatus respectively with institute
The communication connection of event bus device is stated, the event bus device is total using any events of claim 23-25 as above
Line apparatus, the subscribed block chain apparatus is using the block chain apparatus any claim 26-27 as above.
30. a kind of computer equipment, which is characterized in that the equipment includes:
One or more processors;
Memory, for storing one or more programs;
When one or more of programs are executed by one or more of processors so that one or more of processors are real
The now method as described in any in claim 1-5, the method as described in any in claim 6-9, such as claim 10-12
In any method or the method as described in any in claim 13-14.
31. a kind of computer-readable medium, is stored thereon with computer program, which is characterized in that the program is executed by processor
Methods of the Shi Shixian as described in any in claim 1-5, the method as described in any in claim 6-9, such as claim
Any method or the method as described in any in claim 13-14 in 10-12.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810091905.2A CN108366105B (en) | 2018-01-30 | 2018-01-30 | Cross-block-chain data access method, device, system and computer readable medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810091905.2A CN108366105B (en) | 2018-01-30 | 2018-01-30 | Cross-block-chain data access method, device, system and computer readable medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108366105A true CN108366105A (en) | 2018-08-03 |
CN108366105B CN108366105B (en) | 2019-12-10 |
Family
ID=63007374
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810091905.2A Active CN108366105B (en) | 2018-01-30 | 2018-01-30 | Cross-block-chain data access method, device, system and computer readable medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108366105B (en) |
Cited By (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109218303A (en) * | 2018-09-10 | 2019-01-15 | 浙江天脉领域科技有限公司 | A kind of novel across chain method of block chain of homologous isomery link network fusion |
CN109600367A (en) * | 2018-12-07 | 2019-04-09 | 众安信息技术服务有限公司 | For realizing method and equipment across chain Message Processing |
CN109873861A (en) * | 2019-01-11 | 2019-06-11 | 平安科技(深圳)有限公司 | The exchange method and device, storage medium and electronic equipment of transregional piece of chain node |
CN110191188A (en) * | 2019-06-02 | 2019-08-30 | 四川虹微技术有限公司 | A kind of data processing method, block chain network and storage medium |
CN111159307A (en) * | 2020-04-02 | 2020-05-15 | 支付宝(杭州)信息技术有限公司 | Cross-link data subscription method and device |
CN111245910A (en) * | 2019-12-31 | 2020-06-05 | 杭州趣链科技有限公司 | Block chain light node multi-copy deployment method |
WO2020125389A1 (en) * | 2018-12-17 | 2020-06-25 | 深圳壹账通智能科技有限公司 | Image file acquisition method, apparatus, computer device and storage medium |
WO2020211629A1 (en) * | 2019-04-16 | 2020-10-22 | 深圳前海微众银行股份有限公司 | Short link message monitoring method and apparatus based on blockchain |
CN112905554A (en) * | 2021-02-07 | 2021-06-04 | 全链通有限公司 | Data sharing method and device based on block chain |
CN113077342A (en) * | 2021-04-06 | 2021-07-06 | 立旃(上海)科技有限公司 | Method and device for cross-border data use based on block chain |
CN113505319A (en) * | 2021-07-27 | 2021-10-15 | 上海点融信息科技有限责任公司 | Method, apparatus and medium for updating search content for search engine on BaaS platform |
CN113569300A (en) * | 2021-09-27 | 2021-10-29 | 环球数科集团有限公司 | Block chain data processing system based on cloud computing |
CN115334149A (en) * | 2022-08-15 | 2022-11-11 | 杭州复杂美科技有限公司 | Block chain information subscription pushing method, equipment and storage medium |
CN117708787A (en) * | 2024-02-06 | 2024-03-15 | 人民法院信息技术服务中心 | Cross-chain data acquisition method and device based on distributed identity recognition |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103297541A (en) * | 2013-06-24 | 2013-09-11 | 深圳市中兴移动通信有限公司 | Automatic pushing method and system for multi-media information |
CN104978386A (en) * | 2015-03-19 | 2015-10-14 | 腾讯科技(深圳)有限公司 | Data processing method and data processing device |
US20160275461A1 (en) * | 2015-03-20 | 2016-09-22 | Rivetz Corp. | Automated attestation of device integrity using the block chain |
CN107231299A (en) * | 2017-06-07 | 2017-10-03 | 众安信息技术服务有限公司 | A kind of chain route and realized the system that block chain communicates across chain |
-
2018
- 2018-01-30 CN CN201810091905.2A patent/CN108366105B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103297541A (en) * | 2013-06-24 | 2013-09-11 | 深圳市中兴移动通信有限公司 | Automatic pushing method and system for multi-media information |
CN104978386A (en) * | 2015-03-19 | 2015-10-14 | 腾讯科技(深圳)有限公司 | Data processing method and data processing device |
US20160275461A1 (en) * | 2015-03-20 | 2016-09-22 | Rivetz Corp. | Automated attestation of device integrity using the block chain |
CN107231299A (en) * | 2017-06-07 | 2017-10-03 | 众安信息技术服务有限公司 | A kind of chain route and realized the system that block chain communicates across chain |
Cited By (21)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109218303A (en) * | 2018-09-10 | 2019-01-15 | 浙江天脉领域科技有限公司 | A kind of novel across chain method of block chain of homologous isomery link network fusion |
CN109218303B (en) * | 2018-09-10 | 2020-12-11 | 浙江天脉领域科技有限公司 | Novel block chain cross-chain method for homologous and heterogeneous chain network fusion |
CN109600367A (en) * | 2018-12-07 | 2019-04-09 | 众安信息技术服务有限公司 | For realizing method and equipment across chain Message Processing |
WO2020125389A1 (en) * | 2018-12-17 | 2020-06-25 | 深圳壹账通智能科技有限公司 | Image file acquisition method, apparatus, computer device and storage medium |
CN109873861A (en) * | 2019-01-11 | 2019-06-11 | 平安科技(深圳)有限公司 | The exchange method and device, storage medium and electronic equipment of transregional piece of chain node |
CN109873861B (en) * | 2019-01-11 | 2022-04-12 | 平安科技(深圳)有限公司 | Cross-block chain node interaction method and device, storage medium and electronic equipment |
WO2020211629A1 (en) * | 2019-04-16 | 2020-10-22 | 深圳前海微众银行股份有限公司 | Short link message monitoring method and apparatus based on blockchain |
CN110191188A (en) * | 2019-06-02 | 2019-08-30 | 四川虹微技术有限公司 | A kind of data processing method, block chain network and storage medium |
CN110191188B (en) * | 2019-06-02 | 2021-09-14 | 四川虹微技术有限公司 | Data processing method, block chain network and storage medium |
CN111245910A (en) * | 2019-12-31 | 2020-06-05 | 杭州趣链科技有限公司 | Block chain light node multi-copy deployment method |
CN112182096A (en) * | 2020-04-02 | 2021-01-05 | 支付宝(杭州)信息技术有限公司 | Cross-link data subscription method and device |
CN111159307A (en) * | 2020-04-02 | 2020-05-15 | 支付宝(杭州)信息技术有限公司 | Cross-link data subscription method and device |
WO2021197097A1 (en) * | 2020-04-02 | 2021-10-07 | 支付宝(杭州)信息技术有限公司 | Cross-chain data subscription |
CN112905554A (en) * | 2021-02-07 | 2021-06-04 | 全链通有限公司 | Data sharing method and device based on block chain |
CN112905554B (en) * | 2021-02-07 | 2024-05-10 | 全链通有限公司 | Block chain-based data sharing method and device |
CN113077342A (en) * | 2021-04-06 | 2021-07-06 | 立旃(上海)科技有限公司 | Method and device for cross-border data use based on block chain |
CN113505319A (en) * | 2021-07-27 | 2021-10-15 | 上海点融信息科技有限责任公司 | Method, apparatus and medium for updating search content for search engine on BaaS platform |
CN113569300A (en) * | 2021-09-27 | 2021-10-29 | 环球数科集团有限公司 | Block chain data processing system based on cloud computing |
CN115334149A (en) * | 2022-08-15 | 2022-11-11 | 杭州复杂美科技有限公司 | Block chain information subscription pushing method, equipment and storage medium |
CN117708787A (en) * | 2024-02-06 | 2024-03-15 | 人民法院信息技术服务中心 | Cross-chain data acquisition method and device based on distributed identity recognition |
CN117708787B (en) * | 2024-02-06 | 2024-04-26 | 人民法院信息技术服务中心 | Cross-chain data acquisition method and device based on distributed identity recognition |
Also Published As
Publication number | Publication date |
---|---|
CN108366105B (en) | 2019-12-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108366105A (en) | Data access method, device, system and the computer-readable medium of transregional piece of chain | |
US11283797B2 (en) | Authenticating a user device associated with a user to communicate via a wireless network in a secure web-based environment | |
US12008555B2 (en) | Blockchain architecture, system, method and device including a hybrid public-private iteration for facilitating secure data collection and controlled distribution using a decentralized transaction information platform and token ecosystem | |
CN106453271B (en) | Identity registration method and system, identity identifying method and system | |
CN107592292B (en) | A kind of block chain communication method between nodes and device | |
US10614456B2 (en) | Dynamic cryptocurrency aliasing | |
US20190238327A1 (en) | Cross-blockchain data access method, apparatus and system, and computer readable medium | |
CN110291757A (en) | For providing the method for simplified account register service, user authentication service and utilizing its certificate server | |
CN108898389A (en) | Based on the content verification method and device of block chain, electronic equipment | |
CN107040373A (en) | Inter-authentication method and authenticating device | |
WO2022062399A1 (en) | Blockchain network-based diagnosis method and apparatus, and blockchain network system | |
US11539526B2 (en) | Method and apparatus for managing user authentication in a blockchain network | |
CN106664208A (en) | System and method for establishing trust using secure transmission protocols | |
CN110535648A (en) | Electronic certificate is generated and verified and key controlling method, device, system and medium | |
US12009073B2 (en) | Blockchain architecture, system, method and device for facilitating secure medical testing, data collection and controlled distribution using a decentralized health information platform and token ecosystem | |
CN106650495A (en) | File verification method and device | |
CN111506909A (en) | Silver tax data interaction method and system | |
CN112307458A (en) | Light node uplink method and device, Internet of things central control terminal and block chain network | |
CN109815659A (en) | Safety certifying method, device, electronic equipment and storage medium based on WEB project | |
CN105765941A (en) | Illegal access server prevention method and device | |
US10867326B2 (en) | Reputation system and method | |
EP3262553B1 (en) | Method of transaction without physical support of a security identifier and without token, secured by the structural decoupling of the personal and service identifiers | |
CN111931230A (en) | Data authorization method and device, storage medium and electronic device | |
US12143382B1 (en) | Authenticating a user device associated with a user to communicate via a wireless network in a secure web-based environment | |
CN109345215A (en) | Digital cash processing method, device, computer equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
EE01 | Entry into force of recordation of patent licensing contract |
Application publication date: 20180803 Assignee: SHANGHAI YOUYANG NEW MEDIA INFORMATION TECHNOLOGY Co.,Ltd. Assignor: BEIJING BAIDU NETCOM SCIENCE AND TECHNOLOGY Co.,Ltd. Contract record no.: X2019110000005 Denomination of invention: Cross-blockchain data access method, device and system and computer readable medium License type: Common License Record date: 20191119 |
|
EE01 | Entry into force of recordation of patent licensing contract |