CN112910946B - Block chain information cross-chain interaction method, system and equipment applied to t2 node - Google Patents

Block chain information cross-chain interaction method, system and equipment applied to t2 node Download PDF

Info

Publication number
CN112910946B
CN112910946B CN202011601909.4A CN202011601909A CN112910946B CN 112910946 B CN112910946 B CN 112910946B CN 202011601909 A CN202011601909 A CN 202011601909A CN 112910946 B CN112910946 B CN 112910946B
Authority
CN
China
Prior art keywords
block
blockchain
node
chain
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011601909.4A
Other languages
Chinese (zh)
Other versions
CN112910946A (en
Inventor
张焱
施逸
杨东
李汪红
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hefei DappWorks Technology Co Ltd
Original Assignee
Hefei DappWorks Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hefei DappWorks Technology Co Ltd filed Critical Hefei DappWorks Technology Co Ltd
Priority to CN202011601909.4A priority Critical patent/CN112910946B/en
Publication of CN112910946A publication Critical patent/CN112910946A/en
Application granted granted Critical
Publication of CN112910946B publication Critical patent/CN112910946B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1097Protocols 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]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/14Network architectures or network communication protocols for network security for detecting or protecting against malicious traffic
    • H04L63/1441Countermeasures against malicious traffic
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/50Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols using hash chains, e.g. blockchains or hash trees

Abstract

The invention relates to a block chain information cross-chain interaction method, a system and equipment applied to a t2 node, comprising the following steps: node T2 of blockchain T receives the block and sends the transaction to blockchain B; a T2 node of the block chain T starts monitoring operation to read block information of the block chain B, whether the block chain B successfully packages the block is judged, if yes, the T2 node reads data of the block chain B, whether the read data of the block chain B meet threshold conditions is verified, and if not, cross-chain information copying fails; if the verification is unsuccessful, judging that the cross-chain copy value condition is met, judging that the cross-chain copy information is successful, and sending a packaging instruction to a block node by the t2 node; if the threshold condition is not met, cross-chain copy information fails. The invention stores the information on the block chain A to the block chain B through an extra block chain T, can support the information copying of isomorphic chains and can also support the cross-link information copying of heterogeneous chains.

Description

Block chain information cross-chain interaction method, system and equipment applied to t2 node
Technical Field
The invention relates to the technical field of block chains and data processing, in particular to a block chain information cross-chain interaction method, system and device applied to a t2 node.
Background
With the continuous progress and development of technology, the block chain rolls on the globe with an irreparable trend. The benefits of the blockchain are more extended to various fields, and the benefits of the blockchain are played as much as possible. Compared with the traditional development approach, the block chain technology development approach is more rapid, convenient, safe and reliable, and the development of the technology gains the development of various fields and the acceptance and use of more and more people.
The fast development of the blockchain also faces many problems, and the interoperability between blockchains greatly limits the application space of the blockchain. Each chain is equivalent to an independent account book, the different account books cannot be communicated with each other, and the problem of information isolated island exists among the block chains.
The information island restricts the development of the block chain from the aspects of value and information, and the application space of the block chain is limited due to poor interoperability among the block chains. Such as: when a user wants to transfer the data of the A chain to the B chain, the user or some intelligent contracts of the B chain can only upload the data of the A chain in a manual mode when the data of the A chain needs to be used, and the data can be possibly tampered and the credibility is lost.
No matter for public chain or private chain, the cross-chain technology is the key for realizing value internet, and is a good medicine for saving the block chain from a dispersed island, and is a bridge for outwards expanding and connecting the block chain.
The chain crossing means that information is circulated across the chain and barriers between chains, so that asset circulation, information intercommunication and application cooperation among different block chains are realized, and the transmission cost between the chains is reduced.
There is no general chain-crossing mechanism recognized so far, and the implementation manner of the underlying technology between different block chains is greatly different, which brings obstacles to the realization of chain crossing.
Most of the chain-crossing technologies focus on the transfer of assets on a chain, and the block chain information transfer also has great use value in practical applications, such as block chain information backup, block chain important information collection, extraction, and the like.
The existing blockchain cross-chain technologies are different, and there are various limitations due to different implementation methods, for example, the invention patent application with application number "CN 202010475109.6" discloses a method, system, medium, device and application for interacting cross-chain information between blockchains, so as to solve a cross-chain scheme between different blockchain items. The cross-chain information interaction system comprises a first block chain, a relay block chain and a second block chain, wherein the first block chain comprises a first block chain account and a first cross-chain contract, the second block chain comprises a second block chain account and a second cross-chain contract, collectors are arranged on the first block chain, the relay block chain and the second block chain, the first block chain account sends a cross-chain interaction request to the first cross-chain contract during cross-chain interaction, the collectors in the relay block chain actively collect the cross-chain interaction request in the first cross-chain contract and record the cross-chain interaction request on the relay block chain after signature verification, the collectors in the second block chain actively collect cross-chain interaction records on the relay block chain, send the cross-chain interaction request to the second cross-chain contract, and interaction data mapped by the second cross-chain contract is unlocked and transferred to the second block chain account. However, in the patent scheme, information exchange among public chains can be realized by using the relay block chain, so that the condition that one block chain is a data isolated island is avoided; the method of collecting cross-chain information and signature verification by a plurality of collectors cannot simultaneously support cross-chain information copying of homogeneous chains or heterogeneous chains, and in addition, the patented scheme also needs to perform intrusive operation on the original blockchain, namely, the original blockchain needs to be modified to a certain degree or additional functions are added to realize cross-chain, which is not acceptable in the existing public chain.
For another example, the invention patent with the application number "CN 201911403803.0" provides a method and an apparatus for cross-blockchain communication, a cross-chain service system, and a cross-chain transaction system, which relate to the technical field of blockchain and solve the technical problem that different blockchain networks are difficult to communicate with each other. The method comprises the following steps: acquiring first transaction information of monitored cross-chain transactions from a source blockchain network, wherein the cross-chain transactions are transactions between the source blockchain network and a target blockchain network, and the first transaction information comprises: the cross-chain transaction data; sending second transaction information to the target blockchain network based on the cross-chain transaction data, the second transaction information comprising: the cross-chain transaction data; acquiring an execution result of the monitored execution end of the second transaction information from the target blockchain network; sending indication information to the source blockchain network based on the execution result, wherein the indication information is used for indicating that the cross-chain transaction is ended; however, in the patent scheme, the cross-chain method is simple and easy to implement, but has the problem of centralization or third party dependence, and the characteristic of decentralized distrust of the block chain technology cannot be reserved on the whole system level.
Disclosure of Invention
The invention aims to solve the technical problem that the realization mode difference of bottom layer technologies among different block chains is huge, and the realization of cross-chain is obstructed.
The invention solves the technical problems through the following technical means:
a block chain information cross-chain interaction method is applied to a T2 node of a block chain T and comprises the following steps:
node T2 of blockchain T receives the block and sends the transaction to blockchain B;
a T2 node of the block chain T starts monitoring operation to read block information of the block chain B, whether the block chain B successfully packages the block is judged, if yes, the T2 node reads data of the block chain B, whether the read data of the block chain B meet threshold conditions is verified, and if not, cross-chain information copying fails;
if the verification is unsuccessful, judging that the cross-chain replication value condition is met, judging that the cross-chain replication information is successful, and sending a packaging instruction to a block node by the node t 2; if the threshold condition is not met, cross-chain copy information fails;
the T2 node of blockchain T receiving a block and sending a transaction to blockchain B includes:
the t2 node converts the first data information of the blockchain A into a format which can be identified by the blockchain B to obtain identifiable first data information, and sends a transaction with the identifiable first data information to the target blockchain B;
the judging whether the block chain B successfully packs out the blocks comprises the following steps: t2 the node monitors the block chain B to read the first data information in the latest block packed by the block chain B, and verifies whether the packed block is successful based on the read first data information.
The information on the block chain A is stored on the block chain B through a T1 node, a T2 node and an out-block node on an additional block chain T, so that the information copying of a homogeneous chain can be supported, and the cross-link information copying of a heterogeneous chain can also be supported.
As a further scheme of the invention: the T2 node of blockchain T sends a transaction to blockchain B with data on original blockchain a and data information on blockchain T.
As a further scheme of the invention: the block chain T data information includes: the height of the first data information on the blockchain A on the blockchain T, the transaction serial number, the transaction time and the transaction creator.
As a further scheme of the invention: and the t2 node continuously monitors and acquires the information of the node B of the blockchain or monitors and reads the nodes of the blockchain B.
As a further scheme of the invention: the pack out block operation comprises: the verifying whether the packaging of the block is successful based on the read first data information comprises: when a T2 node of the blockchain T successfully reads first data information of the blockchain T from a latest block packed by the blockchain B, a T2 node reads third data information with the same height from other nodes of the blockchain B again, the T2 node judges whether the heights of the first data information and the third data information are consistent, if so, the block chain B successfully packs out the block, and if not, the block chain B unsuccessfully packs out the block, and the cross-chain copy information fails.
As a further scheme of the invention: the threshold condition is as follows: if the block chain B adopts a strong consistency consensus algorithm, the threshold condition is that the block is successfully generated;
if the block chain B adopts a weak consistency consensus algorithm, the threshold condition is as follows: after the latest block with the first data information in the block chain B is out of the block, a certain number of out-blocks are waited.
A block chain information cross-chain interactive system is applied to a t2 node and comprises:
the transaction module is used for receiving the block and sending a transaction to the block chain B;
the threshold module is used for starting monitoring operation to read the block information of the block chain B, judging whether the block chain B successfully packs out the blocks, if the block chain B successfully packs out the blocks, reading the data of the block chain B by the t2 node, and verifying whether the read data of the block chain B meets the threshold condition;
if the packaging of the block is unsuccessful, cross-chain information copying fails;
the instruction sending module is used for successfully copying the cross-chain information if the verification meets the threshold condition, and the t2 node sends a packaging instruction to the block node;
if the threshold condition is not met, cross-chain information copying fails;
the T2 node of blockchain T receiving a block and sending a transaction to blockchain B includes:
the t2 node converts the first data information of the blockchain A into a format which can be identified by the blockchain B to obtain identifiable first data information, and sends a transaction with the identifiable first data information to the target blockchain B;
the judging whether the block chain B successfully packs out the blocks comprises the following steps: t2 the node monitors the block chain B to read the first data information in the latest block packed by the block chain B, and verifies whether the packed block is successful based on the read first data information.
As a further scheme of the invention: the T2 node of blockchain T sends a transaction to blockchain B with data on original blockchain a and data information on blockchain T.
As a further scheme of the invention: the block chain T data information includes: the height of the first data information on the blockchain A on the blockchain T, the transaction serial number, the transaction time and the transaction creator.
An apparatus comprising a memory and a processor; wherein the memory is configured to store one or more computer instructions, wherein the one or more computer instructions are executed by the processor to implement the method for blockchain information cross-chain interaction.
The invention has the advantages that:
1. the cross-chain technology to be realized by the invention is to store the information on the block chain A to the block chain B through an extra block chain T, can support the information copying of isomorphic chains and cross-chain information copying of heterogeneous chains, and does not have the problem of centralization or third-party dependence.
2. The invention is not limited to use on blockchains with cross-chain functionality, but blockchains a and B can replicate information through this technique even if they do not themselves have cross-chain functionality.
3. The invention uses a non-invasive method, and does not need to modify or add any function to the block chain A and the block chain B, thereby having no influence on the original block chain and the target block chain, keeping the block chain A and the block chain B in normal operation in the whole process of copying information, not sensing the cross chain by the block chain A and the block chain B, and realizing the completion of the cross chain operation under the condition of having no influence on the original block chain and the target block chain in the whole information cross chain process.
4. When the cross-chain information backup method is used, the cross-chain information backup record can be traceable and cannot be tampered.
5. The invention has no single point dependence, centralized trust or third party trust, thereby ensuring that the whole system keeps the characteristics of decentralized, trusted and non-falsification of the block chain.
6. The present invention node t2 effectively avoids the possibility of a single node in the blockchain doing malicious work by conducting both a commit transaction and a confirm transaction to different nodes in blockchain B.
Drawings
Fig. 1 is a schematic diagram illustrating a principle of a block chain information cross-chain interaction method according to embodiment 1 of the present invention.
Fig. 2 is a flowchart illustrating a block chain information cross-chain interaction method according to embodiment 1 of the present invention.
Fig. 3 is a schematic flowchart of another block chain information cross-chain interaction method according to embodiment 1 of the present invention.
Fig. 4 is a flowchart illustrating a method for interacting the blockchain information across the chains applied to the t1 node according to embodiment 2 of the present invention.
Fig. 5 is a schematic flowchart of a method for performing cross-chain interaction on blockchain information applied to a block output node according to embodiment 3 of the present invention.
Fig. 6 is a flowchart illustrating a method for interacting the blockchain information across the chains applied to the t2 node according to embodiment 4 of the present invention.
Fig. 7 shows a block diagram of a device according to an embodiment of the present disclosure.
Fig. 8 is a schematic structural diagram of a computer system suitable for implementing a method for cross-chain interaction of blockchain information according to an embodiment of the present disclosure.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the embodiments of the present invention, and it is obvious that the described embodiments are some embodiments of the present invention, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In some of the flows described in the specification and claims of this disclosure and in the above-described figures, a number of operations are included that occur in a particular order, but it should be clearly understood that these operations may be performed out of order or in parallel as they occur herein, the order of the operations being 101, 102, etc. merely to distinguish between various operations, and the order of the operations by themselves does not represent any order of performance. Additionally, the flows may include more or fewer operations, and the operations may be performed sequentially or in parallel. It should be noted that, the descriptions of "first", "second", etc. in this document are used for distinguishing different messages, devices, modules, etc., and do not represent a sequential order, nor limit the types of "first" and "second" to be different.
According to the technical scheme provided by the embodiment of the disclosure, a T1 node of a block chain T judges whether the block chain A meets a first feedback condition, if so, the block chain T acquires and verifies first data information of the block chain A; if the verification is passed, the first data information is stored in a local chain and a transaction is sent to a block chain B, and if the verification is not passed, the first data information is discarded; the block chain B receives the transaction and executes the packaging block-out operation; the block chain T starts monitoring operation to read block information of the block chain B, whether the block chain B successfully packages the block is judged, if yes, the T2 node reads data of the block chain B, whether threshold conditions are met is verified, and if not, cross-chain information copying fails; if the information is consistent with the main information, the block chain T acquires the main information of the block chain B and packs the main information into blocks again; if not, cross-chain copy information fails.
The block chain T is an additional block chain, and includes a T1 node and a T2 node … out-of-block nodes, and there is no requirement for the consensus algorithm of the block chain T, and the consensus algorithm can be selected according to specific actual situations. Preferably, in the present invention, the block chain T adopts a consensus algorithm of delegation interest certification DPOS, and its features are: the block discharging time is short, and the efficiency is high.
Example 1
Referring to fig. 1 and fig. 2, fig. 1 is a schematic diagram illustrating a principle of a cross-chain interaction method for blockchain information in embodiment 1 of the present invention, and fig. 2 is a schematic flowchart illustrating the cross-chain interaction method for blockchain information in embodiment 1 of the present invention, including the following steps:
s1, the T1 node of the blockchain T judges whether the blockchain A meets a first feedback condition, if yes, the T1 node of the blockchain T acquires and verifies first data information of the blockchain A;
if the verification is passed, the block outlet node of the block chain T receives a verification passing signal of the node T1 and stores the first data information to the local chain to generate a block; node T2 of blockchain T receives the block and sends the transaction to blockchain B;
if the verification is not passed, the out-block node receives a t1 node non-verification passing signal to discard the first data information;
s2, the block chain B receives the transaction and executes the packaging and block outputting operation;
s3, a T2 node of the block chain T starts monitoring operation to read block information of the block chain B, whether the block chain B successfully packs out blocks is judged, if the block chain B successfully packs out the blocks, a T2 node reads B data of the block chain, whether the read data of the block chain B meet a threshold condition is verified, and if the block chain B unsuccessfully packs out the blocks, cross-chain information copying fails;
if the verification meets the threshold condition, the cross-chain information copying is successful, and the t2 node sends a packaging instruction to a block node; if the threshold condition is not met, cross-chain copy information fails;
and S4, the block output node of the block chain T receives the packaging instruction of the T2 node, and the information of the block chain B is obtained to pack and output the block again (generally, the main information is adopted to pack and output the block again).
In step S1, the first feedback condition is preset on the block chain T.
In step S1, the method further includes:
and S11, after the blockchain A meets the first feedback condition, reading the first data information of any node a1 on the blockchain A by the T1 node of the blockchain T, and converting the first data information of the node a1 into tradable data information of the blockchain T.
In addition, the T1 node of blockchain T may also read the transaction of a-chain data from blockchain a.
Illustratively, when data associated with the air index appears in the blockchain a, the T1 node of the blockchain T performs a corresponding read operation to obtain corresponding data from the blockchain a.
It should be emphasized that the data of the node a1 obtained in this step needs to be considered to be the final consistency of the blockchain, and generally, the blockchain consensus algorithm is divided into strong consistency and weak consistency.
That is to say: if the blockchain A adopts a consensus algorithm with strong consistency, reading first data information on the blockchain A after the T1 node of the blockchain T needs to wait for consensus confirmation; if the block chain a adopts a weak consistency consensus algorithm, the weak consistency consensus has a rollback risk, and in order to reduce the risk, the block chain T needs to wait for the generation of the block where the first data information is located, and then wait for the generation of a certain number of subsequent blocks (i.e., when the block chain a generates a plurality of subsequent blocks after the generation of the block where the first data information is located, the T1 node of the block chain T reads the first data information of the block chain a), and then can read the first data information of the block chain a.
The certain number may be set according to specific situations, for example, on the block chain, the target information (i.e. the first data information to be obtained) may be read after 6 block acknowledgements occur after the block where the target information is located.
S12, verifying the first data information by a T1 node of the blockchain T, if the verification is passed, sending a verification passing signal to a block outlet node, storing the first data information on a local chain by the block outlet node of the blockchain T, namely packaging the blockchain A information and generating a block by the block outlet node of the blockchain T, and converting and sending the block output by the block outlet node to a blockchain B by the T2 node; sending a transaction to the block chain B, and if the verification fails, sending a verification failing signal to the block outlet node, and discarding the first data information by the block outlet node;
s121, reading the second data information from the T1 node of the blockchain T to the node other than the a1 node (i.e. other node) of the blockchain a, and determining whether the first data information and the second data information are consistent, if so, passing the verification, and if not, failing the verification, and discarding the first data information.
By comparing the first data information with the second data information, the node a1 can be prevented from doing malicious work to produce false data.
Through the scheme, the T1 node of the blockchain T reads the second data information from the non-a 1 node of the blockchain a, and the specific method is to extract corresponding data information according to the unique identifiers of the blocks where different data information is located and the transaction, then the T1 node compares the first data information and the second data information received twice, and if the first data information and the second data information are consistent, it indicates that the first data information acquired from the blockchain a passes verification.
In addition, the non-a 1 node used for verification in the verification step may be configured or determined according to a consensus mechanism of the blockchain.
The storing the first data information onto the local chain comprises: when the first data information of the blockchain a is verified, the out-block node of the blockchain T writes the first data information into a new block.
And S122, if the verification is passed, the T2 node of the blockchain T converts the first data information of the blockchain A into a format which can be identified by the blockchain B to obtain identifiable first data information, and sends the transaction with the identifiable first data information to the target blockchain B.
The T2 node of blockchain T sends a transaction to blockchain B that includes information about the data on blockchain T in addition to the data on original blockchain a.
The block chain T data information includes: the height of the first data information on blockchain a on blockchain T, transaction sequence number, transaction time, transaction creator, etc.
By sending the data information of the block chain T to the block chain B together, the traceability of the information copying process of the block chain A in the block chain B can be realized.
In step S2, the block chain B receives the transaction with the identifiable first data information, and packs out the block to generate the latest block based on the chain rule preset by itself.
In step S3, the method includes:
s31, after sending the information of the blockchain T to the blockchain B, the T2 node of the blockchain T starts a monitoring operation, and the time interval of the monitoring operation can be set according to the actual situation, for example, the block-out time of the reference blockchain B.
Since the T2 node information of blockchain T is not always sent out immediately after blockchain B is sent, T2 node of blockchain T needs to continuously listen to the information of blockchain B node to determine whether the information has been added to blockchain B. Here, the T2 node of blockchain T can also read from blockchain B multi-nodes, thereby reducing some problems caused by the network.
S32, the node T2 of the blockchain T monitors the blockchain B to read the first data information in the latest block packed by the blockchain B, and verifies whether the packed block is successful or not based on the read first data information;
the verifying whether the packaging of the block is successful based on the read first data information comprises: when the blockchain T successfully reads the first data information of the blockchain T from the newest block packed by the blockchain B, the T2 node of the blockchain T can read the third data information with the same height from other nodes of the blockchain B again, the T2 node of the blockchain T judges whether the heights of the first data information and the third data information are consistent, if so, the blockchain B successfully packs out blocks, and if not, the blockchain B unsuccessfully packs out blocks, and the cross-chain copy information fails.
That is to say, the T2 node of the blockchain T verifies whether the information content is tampered by comparing the information in the same height of different nodes of the blockchain B, so as to prevent the single node from creating malicious problems, and if the information is consistent, the blockchain B is successfully packed out, which indicates that the information is successfully copied across the chains.
It should be noted that the number of different nodes in the read blockchain B is configurable, and can be determined according to the consensus mechanism of the blockchain.
And S33, if the block packaging is successful, reading the data of the blockchain B by the T2 node of the blockchain T, verifying whether the data of the read blockchain B meets the threshold condition, and if the block packaging is not successful, the cross-chain information copying fails.
In step S33, the method includes:
verifying whether the read data of the block chain B meets a threshold condition, namely reading the block height of the block chain B by a T2 node of the block chain T, and then judging whether the block height of the transaction exceeds the threshold value according to the strong or weak consistency of the block chain; the method specifically comprises the following steps:
if the block chain B adopts a strong-consistency consensus algorithm, the threshold condition is that the block chain B successfully packs out blocks, that is, the information is successfully copied across the chain at this time (that is, the successfully packed out blocks are the threshold condition);
if the block chain B adopts a weak consistency consensus algorithm, the block chain B judges whether the block chain B meets the threshold condition: after the latest block with the first data information in the block chain B is output, a certain number of output blocks still exist; if the threshold condition is met, the cross-chain information copying is successful, otherwise, the cross-chain information copying fails.
Wherein, the certain number can be set according to specific situations.
When the information is copied successfully, the block output node of the block chain T extracts the main information of the blocks containing the information of the block chain A in the block chain B and packs the blocks again. The main information may include: the block chain B comprises the block height, transaction serial number, block output time and the like of the information of the block chain A, and the block height, the transaction serial number, the block output time and the like are used as evidence for successfully copying the information at this time.
Referring to fig. 3, fig. 3 is a flowchart illustrating another block chain information cross-chain interaction method according to embodiment 1 of the present invention, which further includes step S5, after the cross-chain copy information fails, the block chain information cross-chain interaction method is re-executed, that is, the T1 node, the T2 node, the out-block node of the block chain T, and the block chain B re-execute steps S1 to S4, or the T2 node of the block chain T sends a closing transaction information to itself to trigger a closing task.
Specifically, in practice, the blockchain T may not be successfully packaged when sending the copy information transaction to the blockchain B for some reasons, such as: the cost is not enough, etc. So this time block chain performs step 1) or step 2):
1) continuing to attempt copying: as long as the repeating blockchain T sends the transaction process to the blockchain B, the repeating blockchain T performs the steps S1, S3 and S4, and the blockchain B performs the process of step S2 until successfully ending.
2) And closing the replication task: the blockchain T will send a close transaction message to itself to trigger the close task.
In addition, the closing transaction information includes the block height of the previous copy block chain a information, the transaction sequence number, the time, etc., and the block chain T returns the cost spent in executing the copy task.
After the whole process is completed, the transaction of the data of the block chain A can be checked on the block chain T and used as a certificate for initiating the copying, and the transaction of the feedback information of the block chain B is used as a certificate for completing the copying, so that the success or failure of the cross-chain copying information is confirmed.
Example 2
Referring to fig. 4, fig. 4 is a flowchart illustrating a method for interacting a blockchain information across chains applied to a T1 node in embodiment 2 of the present invention, which is a method for interacting a blockchain information across chains applied to a T1 node of a blockchain T, where the T1 node is any node (which may be configured in advance) in the blockchain T, and includes the following steps:
s200, judging whether the block chain A meets a first feedback condition by the T1 node, if so, acquiring and verifying first data information of the block chain A by the T1 node of the block chain T;
in step S200, the first feedback condition is preset on the block chain T.
In step S200, the method further includes:
s2001, after the blockchain a meets the first feedback condition, the T1 node of the blockchain T reads the first data information of any node a1 on the blockchain a, and converts the first data information of the node a1 into tradable data information of the blockchain T.
In addition, the T1 node of blockchain T may also read the transaction of a-chain data from blockchain a.
Illustratively, when data associated with the air index appears in the blockchain a, the T1 node of the blockchain T performs a corresponding read operation to obtain corresponding data from the blockchain a.
It should be emphasized that the data of the node a1 obtained in this step needs to be considered to be the final consistency of the blockchain, and generally, the blockchain consensus algorithm is divided into strong consistency and weak consistency.
That is to say: if the blockchain A adopts a consensus algorithm with strong consistency, reading first data information on the blockchain A after the T1 node of the blockchain T needs to wait for consensus confirmation; if the block chain a adopts a weak consistency consensus algorithm, the weak consistency consensus has a rollback risk, and in order to reduce the risk, the block chain T needs to wait for the generation of the block where the first data information is located, and then wait for the generation of a certain number of subsequent blocks (i.e., when the block chain a generates a plurality of subsequent blocks after the generation of the block where the first data information is located, the T1 node of the block chain T reads the first data information of the block chain a), and then can read the first data information of the block chain a.
The certain number may be set according to specific situations, for example, on the block chain, the target information (i.e. the first data information to be acquired) may be read after 6 block acknowledgements occur after the block where the target information is located.
S2002, the T1 node of the block chain T verifies the first data information, and if the verification is passed, a verification passing signal is sent to give a block node;
if the verification fails, sending a verification failure signal to the block node;
s20021, reading the second data information from the T1 node of the blockchain T to the non-a 1 node (i.e. other nodes) of the blockchain A, and judging whether the first data information is consistent with the second data information, if so, passing the verification, and if not, failing to pass the verification, and discarding the first data information.
By comparing the first data information with the second data information, the node a1 can be prevented from doing malicious work to produce false data.
Through the scheme, the T1 node of the blockchain T reads the second data information from the non-a 1 node of the blockchain a, and the specific method is to extract corresponding data information according to the unique identifiers of the blocks where different data information is located and the transaction, then the T1 node compares the first data information and the second data information received twice, and if the first data information and the second data information are consistent, it indicates that the first data information acquired from the blockchain a passes verification.
In addition, the non-a 1 node used for verification in the verification step may be configured or determined according to a consensus mechanism of the blockchain.
The storing the first data information onto the local chain comprises: and when the first data information of the block chain A passes the verification, sending a verification passing signal to the out-block node of the block chain T.
Step S201 is further included, and after the cross-chain copy information fails, step S200 is continuously executed, or the execution is terminated.
Example 3
Referring to fig. 5, fig. 5 is a schematic flowchart of a block chain information cross-chain interaction method applied to a block output node in embodiment 3 of the present invention, where the block chain information cross-chain interaction method is applied to a block output node of a block chain T, and includes the following steps:
s300, if the block outlet node receives a t1 node verification passing signal, storing first data information to a local chain to generate a block;
if the node receiving t1 fails to pass the verification signal, discarding the first data information;
the block exit node stores the first data information in a local chain, namely the block exit node of the block chain T packs the block chain A information and generates a block, and the T2 node converts the block issued by the block exit node and sends the block to the block chain B; and sends the transaction to blockchain B;
and S301, the block output node of the block chain T receives the packaging instruction of the node T2, and the information of the block chain B is acquired to perform packaging and block output again (generally, the main information is adopted to package and output the block again).
Step S302 is also included, and after the cross-chain copy information fails, the steps S300 and S301 are continuously executed, or the execution is terminated.
Example 4
Referring to fig. 6, fig. 6 is a flowchart illustrating a method for interacting cross-chain information of a blockchain applied to a T2 node in embodiment 4 of the present invention, where the method for interacting cross-chain information of a blockchain is applied to a T2 node of a blockchain T, and includes the following steps:
s400, receiving the block by a T2 node of the block chain T and sending a transaction to a block chain B;
s401, a T2 node of the block chain T starts monitoring operation to read the block information of the block chain B, judges whether the block chain B successfully packs out the block, if the block is successfully packed out, the T2 node reads the data of the block chain B, verifies whether the data of the read block chain B meets the threshold condition,
if the packaging of the block is unsuccessful, cross-chain information copying fails;
s402, if the verification is unsuccessful in meeting the threshold, crossing chain copying value conditions are met, crossing chain copying information is successful, and the t2 node sends a packing instruction to give a block node;
if the threshold condition is not met, cross-chain copy information fails.
In step S400, the T2 node of the blockchain T converts the first data information of the blockchain a into a format recognizable by the blockchain B to obtain recognizable first data information, and sends a transaction with the recognizable first data information to the target blockchain B;
the T2 node of blockchain T sends a transaction to blockchain B that includes information about the data on blockchain T in addition to the data on original blockchain a.
The block chain T data information includes: the height of the first data information on blockchain a on blockchain T, transaction sequence number, transaction time, transaction creator, etc.
The traceability of the information copying process of the block chain A can be realized in the block chain B by sending the data information of the block chain T to the block chain B together;
in step S401, the method includes:
s4011, after sending the information of the blockchain T to the blockchain B, the T2 node of the blockchain T starts a monitoring operation, and the time interval of the monitoring may be set according to an actual situation, for example, the block-out time of the reference blockchain B.
Since the information of the T2 node of the blockchain T is not necessarily immediately out of the blockchain B after being sent, the T2 node of the blockchain T needs to continuously monitor the information of the blockchain B node to determine whether the information has been added to the blockchain B. Here, the T2 node of the blockchain T can also perform snoop reading to the blockchain B multi-node, thereby reducing some problems caused by the network.
S4012, the node T2 of the blockchain T monitors and reads the first data information in the latest block packed by the blockchain B, and verifies whether the packed block is successful or not based on the read first data information;
the verifying whether the packaging of the block is successful based on the read first data information comprises: when the blockchain T successfully reads the first data information of the blockchain T from the latest block packed by the blockchain B, the T2 node of the blockchain T can read the third data information with the same height from other nodes of the blockchain B again, the T2 node of the blockchain T judges whether the heights of the first data information and the third data information are consistent, if so, the block chain B successfully packs the block, and if not, the block chain B unsuccessfully packs the block, and the cross-chain copy information fails.
That is, the T2 node of blockchain T verifies whether the information content is tampered by comparing the information in the same height of different nodes of blockchain B, so as to prevent the malicious problem of a single node, and if the information is consistent, it indicates that the block packaging of blockchain B is successful, indicating that the information copying across the chains is successful.
It should be noted that, the number of different nodes in the read blockchain B is configurable, and can be determined according to the consensus mechanism of the blockchain.
And S4013, if the block is successfully packed, reading the data of the block chain B by a T2 node of the block chain T, verifying whether the data of the read block chain B meets a threshold condition, and if the block is not successfully packed, failing to copy the information across the chain.
In step S4103, the method includes:
verifying whether the data of the read block chain B meet a threshold condition, namely reading the block height of the block chain B by a T2 node of the block chain T, and judging whether the height of the block where the transaction is located exceeds the threshold according to the strong or weak consistency of the block chain; the method specifically comprises the following steps:
if the block chain B adopts a strong-consistency consensus algorithm, the threshold condition is that the block chain B successfully packs out blocks, that is, the information is successfully copied across the chain at this time (that is, the successful packing out of blocks is the threshold condition);
if the block chain B adopts a weak consistency consensus algorithm, the block chain B judges whether the block chain B meets the threshold condition: after the latest block with the first data information in the block chain B is output, a certain number of output blocks still exist; if the threshold condition is met, the cross-chain information copying is successful, otherwise, the cross-chain information copying fails.
Wherein, the certain number can be set according to specific situations.
When the information is copied successfully, the block output node of the block chain T extracts the main information of the blocks containing the information of the block chain A in the block chain B and packs the blocks again. The main information may include: the block chain B comprises the block height, transaction serial number, block output time and the like of the information of the block chain A, and the block height, the transaction serial number, the block output time and the like are used as evidence for successfully copying the information.
Step S403, after the cross-chain copy information fails, re-execute the blockchain information cross-chain interaction method, that is, the blockchain a, the blockchain T, and the blockchain B re-execute steps S1-S4, or the T2 node of the blockchain T sends a closing transaction information to itself to trigger the closing task.
Specifically, in practice, the blockchain T may not be successfully packaged when sending the copy information transaction to the blockchain B for some reasons, such as: the cost is not enough, etc. So this time block chain performs step 1) or step 2):
1) continuing to attempt copying: the steps S400, S401, S402 are repeatedly executed until successful termination.
2) And closing the replication task: the T2 node of blockchain T sends itself a close transaction message to trigger the close task.
In addition, the closing transaction information includes the block height of the previous copy blockchain a information, the transaction sequence number, the time, etc., and the T2 node of the blockchain T returns the cost spent in executing the copy task.
After the whole process is completed, the transaction of packaging blockchain a data can be checked at the node T2 of the blockchain T to be used as a certificate for initiating the copying, and the transaction of blockchain B feedback information is used as a certificate for completing the copying, so as to confirm the success or failure of cross-chain copying information.
Example 5
A blockchain information cross-chain interaction system, comprising:
a first obtaining module, configured to enable a T1 node of a blockchain T to determine whether a blockchain a meets a first feedback condition, and if yes, the T1 node obtains and verifies first data information of the blockchain a;
if the verification is passed, the block outlet node of the blockchain T receives a T1 node verification passing signal, first data information is stored on the local chain to generate a block, and a T2 node of the blockchain T receives the block and sends a transaction to a blockchain B;
if the verification is not passed, the out-block node receives a t1 node non-verification passing signal to discard the first data information; and is also used for:
the acquiring and verifying the first data information of the blockchain a comprises: the T1 node of the blockchain T reads the first data information of any node a1 on the blockchain A, and converts the first data information of the node a1 into tradable data information of the blockchain T;
the t1 node verifies the first data information, if the first data information passes the verification, the first data information is stored in a local chain, the transaction is sent to a block chain B, and if the first data information does not pass the verification, the first data information is discarded;
the t1 verifying the first data information includes: the t1 node reads the second data information from the non-a 1 node of the blockchain A, and judges whether the first data information is consistent with the second data information, if so, the verification is passed, and if not, the verification is not passed;
the reading of the first data information of any node a1 on the blockchain a by the t1 node further includes:
if the block chain A adopts a consensus algorithm with strong consistency, the t1 node needs to wait for consensus confirmation to obtain first data information on the block chain A;
if the block chain A adopts a weak consistency consensus algorithm, when the block chain A generates a plurality of subsequent blocks after the block where the first data information is located is generated, the t1 node reads the first data information of the block chain A;
the transaction comprises first data information in a format which can be identified by a block chain B;
the transaction also comprises data on the original blockchain A, the height of first data information on the blockchain A on the blockchain T, a transaction serial number, transaction time and a transaction creator;
the transaction further comprises data on the original blockchain A, the height of the first data information on the blockchain A on the blockchain T, a transaction serial number, transaction time and a transaction creator.
A block output module, configured to enable the blockchain B to receive a transaction and execute a packaging block output operation; and is also used for:
the pack out block operation comprises: and the block chain B packs out blocks based on a preset chain rule.
The monitoring module is used for enabling a T2 node of the block chain T to start monitoring operation to read block information of the block chain B, judging whether the block chain B successfully packs out blocks, if the block chain B successfully packs out the blocks, reading data of the block chain B by a T2 node, verifying whether threshold conditions are met, and if the block chain B unsuccessfully packs out the blocks, failing to copy information across the chain;
if the verification meets the threshold condition, the cross-chain information copying is successful, the t2 node sends a packing instruction to the block node, and if the verification does not meet the threshold condition, the cross-chain information copying fails;
whether the wrapping out of a block is successful comprises: a T2 node of the block chain T reads first data information of the latest block packed by the block chain B, and verifies whether the packed block is successful or not based on the read first data information;
the verifying whether the packaging out of the block is successful based on the read first data information comprises:
when a T2 node of the blockchain T successfully reads first data information of the blockchain T from a latest block packed by the blockchain B, a T2 node reads third data information with the same height from other nodes of the blockchain B again, the T2 node judges whether the heights of the first data information and the third data information are consistent, if so, the block chain B successfully packs out the block, and if not, the block chain B unsuccessfully packs out the block, and the cross-chain copy information fails.
If the verification meets the threshold condition, the cross-chain information copying is successful, and the block outlet node of the block chain T acquires the information of the block chain B and packs the information again to form a block; if the threshold condition is not met, cross-chain copy information fails;
the threshold condition is as follows: if the block chain B adopts a strong consistency consensus algorithm, the threshold condition is that the block is successfully generated;
if the block chain B adopts a weak consistency consensus algorithm, the threshold condition is as follows: after the latest block with the first data information in the block chain B is out of the block, a certain number of out-blocks are waited.
And the second obtaining module is used for enabling the block output node to receive the packing instruction of the t2 node to obtain the information of the block chain B for packing the block.
The embodiment of the present disclosure further includes a block chain information cross-chain interaction system, applied to a t1 node, for implementing step S200 (i.e., embodiment 2), including:
a judging module, configured to judge, by the T1 node, whether the blockchain a meets the first feedback condition, and if so, acquire and verify the first data information of the blockchain a by the T1 node of the blockchain T
The embodiment of the present disclosure further discloses another block chain information inter-chain system, which is applied to a block output node of a block chain T, and is configured to implement steps S300 and S301 (i.e., embodiment 3), and includes:
the storage module is used for enabling the block output node to store the first data information to the local chain to generate a block if the block output node receives the verification passing signal of the t1 node;
if the node out of the block receives the signal that the node t1 fails to be verified, discarding the first data information;
and the block packaging and outputting module is used for receiving the packaging instruction of the T2 node by the block outputting node of the block chain T, and obtaining the information of the block chain B to perform block packaging and outputting again (generally, the main information is adopted to perform block packaging and outputting again).
The embodiment of the present disclosure further discloses another block chain information cross-chain interaction system, which is applied to a t2 node, and is used to implement steps S400, S401, and S402 (i.e., embodiment 4), including the following:
the transaction module is used for receiving the block and sending a transaction to the block chain B;
a threshold module, configured to start a monitoring operation to read block information of the block chain B, determine whether the block chain B successfully packages the block, if so, the t2 node reads data of the block chain B, verifies whether the read data of the block chain B meets a threshold condition,
if the packaging of the block is unsuccessful, cross-chain information copying fails;
the instruction sending module is used for successfully copying the cross-chain information if the verification meets the threshold condition, and the t2 node sends a packaging instruction to the block node;
if the threshold condition is not met, cross-chain copy information fails.
Fig. 7 shows a block diagram of a device according to an embodiment of the present disclosure.
The foregoing embodiments describe the internal functions and structures of the blockchain a, the blockchain T, and the blockchain B, and in one possible design, the structures of the blockchain a, the blockchain T, and the blockchain B may be implemented as a device, specifically, an electronic device, and the electronic device 900 may include a processor 901 and a memory 902.
The memory 902 is used for storing a program for supporting a processor to execute the method for performing the inter-chain interaction of the blockchain information in any of the embodiments, and the processor 901 is configured to execute the program stored in the memory 902.
The memory 902 is used to store one or more computer instructions, wherein the one or more computer instructions are executed by the processor 901 to implement the steps of:
s1, the T1 node of the blockchain T judges whether the blockchain A meets a first feedback condition, if yes, the T1 node of the blockchain T acquires and verifies first data information of the blockchain A;
if the verification is passed, the block outlet node of the block chain T receives a T1 node verification passing signal to store the first data information to the local chain to generate a block; node T2 of blockchain T receives the block and sends the transaction to blockchain B;
if the verification is not passed, the block outlet node receives a t1 node non-verification passing signal and discards the first data information;
s2, the block chain B receives the transaction and executes packaging block-out operation;
s3, a T2 node of the block chain T starts monitoring operation to read the block information of the block chain B, whether the block chain B successfully packs out blocks is judged, if the block chain B successfully packs out the blocks, a T2 node reads the B data of the block chain, whether the read data of the block chain B meets a threshold condition is verified, and if the block chain B unsuccessfully packs out the blocks, cross-chain information copying fails;
if the verification meets the threshold condition, the cross-chain information copying is successful, and the t2 node sends a packaging instruction to a block node; if the threshold condition is not met, cross-chain information copying fails;
s4, the block output node of the block chain T receives the packaging instruction of the T2 node, and the information of the block chain B is obtained to pack and output the block again (generally, the main information is adopted to pack and output the block again);
that is, the program can realize the steps of embodiment 1.
Or the one or more computer instructions are executed by the processor 901 to implement the following steps S200 or S300, S301 or S400, S401, S402.
Fig. 8 is a schematic structural diagram of a computer system suitable for implementing a block chain information cross-chain interaction method according to an embodiment of the present disclosure.
As shown in fig. 8, the computer system 1000 includes a processor (CPU, GPU, FPGA, etc.) 1001 that can perform part or all of the processing in the embodiment shown in the above-described drawings according to a program stored in a Read Only Memory (ROM)1002 or a program loaded from a storage section 1008 into a Random Access Memory (RAM) 1003. In the RAM1003, various programs and data necessary for the operation of the system 1000 are also stored. The processor 1001, ROM1002, and RAM1003 are connected to each other by a bus 1004. An input/output (I/O) interface 1005 is also connected to bus 1004.
The following components are connected to the I/O interface 1005: an input section 1006 including a keyboard, a mouse, and the like; an output section 1007 including a display such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage portion 1008 including a hard disk and the like; and a communication section 1009 including a network interface card such as a LAN card, a modem, or the like. The communication section 1009 performs communication processing via a network such as the internet. A drive 1010 is also connected to the I/O interface 1005 as necessary. A removable medium 1011 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 1010 as necessary, so that a computer program read out therefrom is mounted into the storage section 1008 as necessary.
In particular, according to embodiments of the present disclosure, the methods described above with reference to the figures may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program tangibly embodied on a medium readable thereby, the computer program comprising program code for performing the methods of the figures. In such embodiments, the computer program may be downloaded and installed from a network through the communication section 1009 and/or installed from the removable medium 1011.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowcharts or block diagrams may represent a module, a program segment, or a portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units or modules described in the embodiments of the present disclosure may be implemented by software or hardware. The units or modules described may also be provided in a processor, and the names of the units or modules do not in some cases constitute a limitation of the units or modules themselves.
As another aspect, the present disclosure also provides a computer-readable storage medium, which may be the computer-readable storage medium included in the node in the above embodiment; or it may be a separate computer readable storage medium not incorporated into the device. The computer readable storage medium stores one or more programs for use by one or more processors in performing the methods described in the present disclosure.
The above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (10)

1. A block chain information cross-chain interaction method is applied to a T2 node of a block chain T, and is characterized by comprising the following steps:
judging whether the block chain A meets a first feedback condition or not by a T1 node of the block chain T, if so, acquiring and verifying first data information of the block chain A by a T1 node of the block chain T;
if the verification is passed, the block outlet node of the blockchain T receives a T1 node verification passing signal to store the first data information to the local chain to generate a block, and the T2 node of the blockchain T receives the block and sends a transaction to the blockchain B;
a T2 node of the block chain T starts monitoring operation to read block information of the block chain B, whether the block chain B successfully packages the block is judged, if yes, the T2 node reads data of the block chain B, whether the read data of the block chain B meet threshold conditions is verified, and if not, cross-chain information copying fails;
if the verification meets the threshold condition, the cross-chain information copying is successful, and the t2 node sends a packaging instruction to a block node; if the threshold condition is not met, cross-chain copy information fails;
the T2 node of blockchain T receiving a block and sending a transaction to blockchain B includes:
the t2 node converts the first data information of the blockchain A into a format which can be identified by the blockchain B to obtain identifiable first data information, and sends a transaction with the identifiable first data information to the target blockchain B;
the judging whether the block chain B successfully packs out the blocks comprises the following steps: t2 the node monitors the block chain B to read the first data information in the latest block packed by the block chain B, and verifies whether the packed block is successful based on the read first data information.
2. The method of claim 1, wherein a T2 node of blockchain T sends a transaction to blockchain B with data on original blockchain A and data information on blockchain T.
3. The method of claim 2, wherein the blockchain T data information comprises: the height of the first data information on the blockchain A on the blockchain T, the transaction sequence number, the transaction time and the transaction creator.
4. The method of claim 2, wherein the t2 node continuously listens for information from node B or listens for reads from multiple nodes in the blockchain.
5. The method of claim 1, wherein verifying whether the packed block is successful based on the read first data information comprises:
when the T2 node of the blockchain T successfully reads the first data information of the blockchain T from the newest block packed by the blockchain B, the T2 node reads the third data information with the same height from other nodes of the blockchain B again, the T2 node judges whether the heights of the first data information and the third data information are consistent, if so, the blockchain B successfully packs out the block, and if not, the blockchain B unsuccessfully packs out the block, and the cross-chain copy information fails.
6. The method of claim 1, wherein the threshold condition is:
if the block chain B adopts a strong consistency consensus algorithm, the threshold condition is that the block is successfully generated;
if the block chain B adopts a weak consistency consensus algorithm, the threshold condition is as follows: after the latest block with the first data information in the block chain B is out of the block, a certain number of out-blocks are waited.
7. A blockchain information cross-chain interaction system, comprising:
the transaction module is used for receiving the block and sending a transaction to the block chain B;
the threshold module is used for starting monitoring operation to read the block information of the block chain B, judging whether the block chain B successfully packs out the blocks, if the block chain B successfully packs out the blocks, reading the data of the block chain B by the t2 node, and verifying whether the read data of the block chain B meets the threshold condition;
if the packaging of the block is not successful, cross-chain information copying fails;
the instruction sending module is used for successfully copying the cross-chain information if the verification meets the threshold condition, and the t2 node sends a packaging instruction to the block node;
if the threshold condition is not met, cross-chain copy information fails;
the T2 node of blockchain T receiving a block and sending a transaction to blockchain B includes:
the t2 node converts the first data information of the blockchain A into a format which can be identified by the blockchain B to obtain identifiable first data information, and sends a transaction with the identifiable first data information to the target blockchain B;
the judging whether the block chain B successfully packs out the blocks comprises the following steps: t2 the node monitors the block chain B to read the first data information in the latest block packed by the block chain B, and verifies whether the packed block is successful based on the read first data information.
8. The system of claim 7, wherein a T2 node of blockchain T sends a transaction to blockchain B with data on original blockchain A and data information on blockchain T.
9. The system of claim 8, wherein the blockchain T data information comprises: the height of the first data information on the blockchain A on the blockchain T, the transaction serial number, the transaction time and the transaction creator.
10. An apparatus comprising a memory and a processor; wherein the memory is configured to store one or more computer instructions, wherein the one or more computer instructions are executable by the processor to implement the method of any of claims 1-6.
CN202011601909.4A 2020-12-29 2020-12-29 Block chain information cross-chain interaction method, system and equipment applied to t2 node Active CN112910946B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011601909.4A CN112910946B (en) 2020-12-29 2020-12-29 Block chain information cross-chain interaction method, system and equipment applied to t2 node

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011601909.4A CN112910946B (en) 2020-12-29 2020-12-29 Block chain information cross-chain interaction method, system and equipment applied to t2 node

Publications (2)

Publication Number Publication Date
CN112910946A CN112910946A (en) 2021-06-04
CN112910946B true CN112910946B (en) 2022-06-28

Family

ID=76111913

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011601909.4A Active CN112910946B (en) 2020-12-29 2020-12-29 Block chain information cross-chain interaction method, system and equipment applied to t2 node

Country Status (1)

Country Link
CN (1) CN112910946B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020043046A1 (en) * 2018-08-30 2020-03-05 杭州复杂美科技有限公司 Parallel chain cross-chain transaction method, device and storage medium
WO2020191935A1 (en) * 2019-03-22 2020-10-01 深圳市网心科技有限公司 Method and system for blockchain cross-chain communication, and electronic device and storage medium

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11194837B2 (en) * 2018-05-01 2021-12-07 International Business Machines Corporation Blockchain implementing cross-chain transactions
CN109189853B (en) * 2018-08-08 2021-05-28 众安信息技术服务有限公司 Method and device for synchronizing data between block chains
US11336451B2 (en) * 2019-06-28 2022-05-17 Advanced New Technologies Co., Ltd. Cross-blockchain resource transmission
CN110766408A (en) * 2019-10-24 2020-02-07 杭州趣链科技有限公司 Cross-chain transaction verification method, engine, equipment and storage medium for heterogeneous block chain
CN111464518B (en) * 2020-03-25 2022-08-05 北京新创智链科技有限公司 Method and device for sending and verifying cross-link communication data
CN111800463B (en) * 2020-05-29 2023-04-07 易联众信息技术股份有限公司 Inter-block chain cross-chain information interaction method, system, medium, equipment and application
CN111914021B (en) * 2020-07-02 2022-12-02 众连智能科技有限公司 Cross-block-chain interaction method, system, computer equipment and storage medium
CN112070499B (en) * 2020-09-14 2023-08-11 天津理工大学 Asset and data cross-chain method and system based on blockchain

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020043046A1 (en) * 2018-08-30 2020-03-05 杭州复杂美科技有限公司 Parallel chain cross-chain transaction method, device and storage medium
WO2020191935A1 (en) * 2019-03-22 2020-10-01 深圳市网心科技有限公司 Method and system for blockchain cross-chain communication, and electronic device and storage medium

Also Published As

Publication number Publication date
CN112910946A (en) 2021-06-04

Similar Documents

Publication Publication Date Title
CN109242685B (en) Block chain-based consensus and verification method and device
WO2022141059A1 (en) Method and system for cross-chain exchange of blockchain information, electronic device, and storage medium
CN110582775B (en) Method for managing files based on blockchain by utilizing UTXO (universal time-series oscillator) foundation protocol and file management server using same
CN110046896B (en) Block processing method, node and system
CN109087101B (en) Transaction verification method and device, storage medium and electronic equipment
CN110808838B (en) Alliance chain-oriented fragmentation method
US20220239496A1 (en) Blockchain consensus method, device and system
CN110597907A (en) Cross-block-chain data information synchronization method, device, equipment and medium
CN111274317A (en) Method and device for synchronizing multi-node data and computer equipment
CN108681565A (en) block chain data parallel processing method, device, equipment and storage medium
KR102050007B1 (en) System and method for supporting external interface based on block chain
CN109361740A (en) A kind of block generation method, device, equipment and the medium of block chain
CN113179272B (en) Intelligent contract-based block chain cross-chain interaction method and device and computer-readable storage medium
CN109118230A (en) Information processing method and device based on block chain
CN111275438B (en) Consensus method, device, equipment and storage medium of block chain network
WO2022142781A1 (en) Asynchronous bookkeeping method and apparatus for blockchain, medium, and electronic device
WO2023184881A1 (en) Proposal consensus execution method, blockchain system, device and storage medium
CN109493054A (en) Multichain approaches to IM, device, storage medium and block chain identity resolution device
CN115392920A (en) Predictive machine-based authentication method, computer device, and storage medium
CN111563124A (en) Operation processing method, device and system based on block chain
Zhao A byzantine fault tolerant distributed commit protocol
CN112910946B (en) Block chain information cross-chain interaction method, system and equipment applied to t2 node
CN112416263B (en) Space-time certification blocking storage method and device based on random verification and electronic equipment
CN114640451A (en) Method, system and consensus node for realizing distributed key generation on block chain
CN112953999A (en) Block chain information cross-chain interaction method, system and equipment applied to t1 node

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