CN114567643B - Cross-blockchain data transfer method, device and related equipment - Google Patents
Cross-blockchain data transfer method, device and related equipment Download PDFInfo
- Publication number
- CN114567643B CN114567643B CN202011367758.0A CN202011367758A CN114567643B CN 114567643 B CN114567643 B CN 114567643B CN 202011367758 A CN202011367758 A CN 202011367758A CN 114567643 B CN114567643 B CN 114567643B
- Authority
- CN
- China
- Prior art keywords
- block
- target
- chain
- blockchain
- cross
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- 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/1095—Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
-
- 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/08—Network architectures or network communication protocols for network security for authentication of entities
- H04L63/0876—Network architectures or network communication protocols for network security for authentication of entities based on the identity of the terminal or configuration, e.g. MAC address, hardware or software configuration or device fingerprint
-
- 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/104—Peer-to-peer [P2P] networks
-
- 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]
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Power Engineering (AREA)
- Computer Hardware Design (AREA)
- Computer Security & Cryptography (AREA)
- Computing Systems (AREA)
- General Engineering & Computer Science (AREA)
- Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)
Abstract
The present disclosure provides a data streaming method and apparatus for a cross-block chain, and an electronic device and a computer readable storage medium, where the method includes: obtaining block header information of a first block in the first blockchain, wherein the first block is used for recording target cross-chain transactions between the first blockchain and the second blockchain; verifying block header information of the first block through an intelligent contract deployed on the core blockchain; after the block head information of the first block passes the verification, acquiring target cross-chain transaction data of the target cross-chain transaction from the first block based on the block head information of the first block; recording the target cross-chain transaction data in a target block of the core blockchain; and sending the block header information of the target block to the second blockchain so that the second blockchain carries out the target cross-chain transaction according to the block header information of the target block.
Description
Technical Field
The present disclosure relates to the field of computer and internet technologies, and in particular, to a method, an apparatus, an electronic device, and a computer readable storage medium for data streaming of a block chain.
Background
The blockchain technology is a brand new distributed infrastructure and computing mode which uses a blockchain data structure to verify and store data, uses a consensus algorithm of distributed nodes to generate and update data, uses a cryptography mode to ensure the safety of data transmission and access and uses an intelligent contract consisting of automatic script codes to program and operate the data.
With the development of computer technology, blockchain technology is favored in more and more technical fields.
However, with the evolution of data sharing requirements, the existing blockchain can achieve synchronization of data information between different node devices of the same blockchain, and the synchronization or the circulation of data information between different blockchains, that is, across blockchains, is still in the blank of the technology, so that an effective solution is needed to be proposed.
It should be noted that the information disclosed in the foregoing background section is only for enhancing understanding of the background of the present disclosure.
Disclosure of Invention
The embodiment of the disclosure provides a data transfer method and device of a cross-block chain, electronic equipment and a computer readable storage medium, which realize the transfer of data across the block chain and simultaneously ensure the safety and traceability of the data in the transfer process.
Other features and advantages of the present disclosure will be apparent from the following detailed description, or may be learned in part by the practice of the disclosure.
The embodiment of the disclosure provides a data streaming method of a cross-region block chain, which is applied to a core block chain; wherein the method comprises the following steps: obtaining block header information of a first block in the first blockchain, wherein the first block is used for recording target cross-chain transactions between the first blockchain and the second blockchain; verifying block header information of the first block through an intelligent contract deployed on the core blockchain; after the block head information of the first block passes the verification, acquiring target cross-chain transaction data of the target cross-chain transaction from the first block based on the block head information of the first block; recording the target cross-chain transaction data in a target block of the core blockchain; and sending the block header information of the target block to the second blockchain so that the second blockchain carries out the target cross-chain transaction according to the block header information of the target block.
The embodiment of the disclosure provides a data streaming method of a cross-region block chain, which is applied to a first block chain; wherein the method comprises the following steps: in response to a target address being directed to a request for a target data, the first blockchain obtaining the target data, the target data relating to a target cross-chain transaction of the first blockchain and a second blockchain; processing the target data through an intelligent contract deployed on the first blockchain to generate target cross-chain transaction data according to the target data; storing the target cross-chain transaction data in a first chunk, the first chunk comprising chunk header information; the block header information of the first block is sent to a core blockchain to send the target cross-chain transaction data to the second blockchain through the core blockchain to conduct the target cross-chain transaction, the core blockchain not belonging to the first blockchain and the second blockchain.
The embodiment of the disclosure provides a data streaming method of a cross-region block chain, which is applied to a second block chain; wherein the method comprises the following steps: the second blockchain receives blockhead information of a target block sent by a core blockchain, wherein the target block is used for recording a target cross-chain transaction between a first blockchain and the second blockchain, and the target cross-chain transaction is initiated by the first blockchain; verifying the block header information of the target block through an intelligent contract deployed on the second blockchain; after the block head information of the target block passes the verification, acquiring target cross-chain transaction data of the target cross-chain transaction from the target block based on the block head information of the target block; executing second operation content corresponding to the second blockchain in the target cross-chain transaction data to obtain a second operation result; storing the target cross-chain transaction data and the second operation result in a second block of the second blockchain to complete the target cross-chain transaction.
The embodiment of the disclosure provides a data streaming device of a cross-region block chain, which is applied to a core block chain; wherein the device comprises: the system comprises a first block information acquisition module, a first block information verification module, a target cross-link transaction data acquisition first module, a target block generation module and a target block information transmission module.
The first block information obtaining module may be configured to obtain block header information of a first block in the first blockchain, where the first block is used to record a target cross-chain transaction between the first blockchain and the second blockchain; the first block information verification module may be configured to verify block header information of the first block through an intelligent contract deployed on the core blockchain; the target cross-link transaction data acquiring first module may be configured to acquire target cross-link transaction data of the target cross-link transaction from the first block based on the block header information of the first block after the block header information of the first block passes verification; the target block generation module may be configured to record the target cross-chain transaction data in a target block of the core blockchain; the target block information sending module may be configured to send the block header information of the target block to the second blockchain, so that the second blockchain performs the target cross-chain transaction according to the block header information of the target block.
In some embodiments, the block header information of the first block includes block address information of the first block, and the smart contracts deployed on the core blockchain include a core synchronization contract and a core cross-chain governance contract. Wherein, the first block information checking module may include: the system comprises a first block address checking unit, a first merck tree evidence obtaining unit, a first merck tree evidence checking unit and a cross-chain transaction parameter checking unit.
The first block address verification unit may be configured to verify the block address information of the first block through the core synchronization contract to determine validity of the block address information of the first block; the first merck tree evidence obtaining unit may be configured to obtain a cross-chain transaction parameter of the target cross-chain transaction and a first merck tree evidence for the target cross-chain transaction data based on the block header information of the first block; the first merck tree proof verification unit may be configured to verify the first merck tree proof by the core cross-link administration contract to determine security of the target cross-link transaction data; the cross-chain transaction parameter verification unit may be configured to verify the cross-chain transaction parameter by the core cross-chain governance contract to determine the legitimacy of the cross-chain transaction parameter.
In some embodiments, the core blockchain is in data transmission with the first blockchain through a first relay device, the first blockchain and the core blockchain have different data storage specifications, and the smart contracts deployed on the core blockchain include a core synchronization contract. The target cross-chain transaction data acquisition first module may include: the target cross-chain transaction comprises a first acquisition unit and a conversion unit.
The target cross-chain transaction first obtaining unit may be configured to obtain target cross-chain transaction data that accords with a first blockchain storage specification from the first blockchain based on the blockhead information of the first block; the conversion unit may be configured to convert the target cross-chain transaction data compliant with the first blockchain storage specification into target cross-chain transaction data compliant with a core blockchain storage specification by the core blockchain through the core synchronization contract so as to store the target cross-chain transaction data compliant with the core blockchain storage specification in the target block.
In some embodiments, the core blockchain is in data transmission with the first blockchain through a first relay device. The first block information obtaining module may include: the first detection unit and the first block information acquisition unit.
Wherein the first detection unit may be configured to detect the first blockchain by the core blockchain through the first relay device; the first block information obtaining unit may be configured to obtain, when the first relay device detects that a newly added first block exists in the first block chain and the target cross-chain transaction data is stored in the first block, block header information of the first block from the first block chain through the first relay device.
In some embodiments, the destination cross-chain transaction parameters include a source chain address and a destination chain address of the destination cross-chain transaction, the source chain address corresponding to the first blockchain and the destination chain address corresponding to the second blockchain. Wherein the first merck tree proof verification unit may include: registering the verification subunit and the parameter validity verification subunit.
Wherein the registration check subunit may be configured to detect, by the core cross-chain governance contract, whether the source chain address and the target chain address are registered at the core blockchain; the parameter validity checking subunit may be configured to determine validity of the cross-chain transaction parameter if the source chain address and the target chain address are registered with the core blockchain.
The target block information sending module may include: and the target block information sending unit is configured to send the block header information of the target block to the second block chain according to the target chain address so that the second block chain carries out the target cross-chain transaction according to the block header information of the target block.
The embodiment of the disclosure provides a data streaming device of a cross-region block chain, which is applied to a first block chain; wherein the device comprises: the system comprises a target data acquisition module, a target cross-link transaction data generation module, a first block generation module and a first block information transmission module.
Wherein the target data acquisition module may be configured to acquire target data relating to a target cross-chain transaction of the first and second blockchains in response to a request for a target address for the target data; the target cross-chain transaction data generation module is configured to process the target data through intelligent contracts deployed on the first blockchain to generate target cross-chain transaction data according to the target data; a first block generation module configured to store the target cross-chain transaction data in a first block, the first block comprising block header information; the first block information sending module is configured to send block header information of the first block to a core block chain so as to send the target cross-chain transaction data to the second block chain through the core block chain to conduct the target cross-chain transaction, and the core block chain does not belong to the first block chain and the second block chain.
In some embodiments, a first transaction log of the target cross-chain transaction is also generated when the target cross-chain transaction data is generated, the first transaction log including cross-chain transaction parameters of the target cross-chain transaction. The first block information sending module may include: the system comprises a first block information sending unit, a first transaction log sending unit, a first merck tree evidence generating unit and a first merck tree evidence sending unit.
The first block information sending unit may be configured to send the block header information of the first block to a core block chain, so that the core block chain checks the block header information of the first block; the first transaction log sending unit may be configured to send the first transaction log to the core blockchain in response to a transaction parameter acquisition request of the core blockchain so that the core blockchain acquires the cross-chain transaction parameter; the first merck tree credential generating unit may be configured to generate a first merck tree credential from a first merck tree of the target cross-chain transaction data in the first chunk in response to the data credential acquisition request of the core blockchain; the first merck tree credential sending unit may be configured to send the first merck tree credential to the core blockchain to send the target cross-chain transaction data to the second blockchain for the target cross-chain transaction through the core blockchain.
In some embodiments, the intelligent contracts deployed on the first blockchain include a first business contract and a first cross-chain governance contract. Wherein, the target cross-chain transaction data generation module may include: a first operation unit and a target cross-chain transaction data generation unit.
Wherein the first operation unit may be configured to execute, by the first service contract, a first operation content corresponding to the first blockchain in the target data to obtain a first operation result; the target cross-chain transaction data generation unit may be configured to process the first operation result and the target data through the first cross-chain governance contract, and build a target cross-chain transaction in the first blockchain to generate the target cross-chain transaction data.
The embodiment of the disclosure provides a data streaming device of a cross-region block chain, which is applied to a second block chain; wherein the device comprises: the system comprises a target block information acquisition module, a target block information verification module, a target cross-link transaction data acquisition second module, a second result acquisition module and a second block generation module.
The target block information obtaining module may be configured to receive, by a second blockchain, block header information of a target block sent by a core blockchain, the target block being used to record a target cross-chain transaction between a first blockchain and the second blockchain, the target cross-chain transaction being initiated by the first blockchain; the target block information verification module may be configured to verify block header information of the target block through an intelligent contract deployed on the second blockchain; the target cross-link transaction data acquiring second module may be configured to acquire target cross-link transaction data of the target cross-link transaction from the target block based on the block header information of the target block after the block header information of the target block passes verification; the second result acquisition module may be configured to execute second operation content corresponding to the second blockchain in the target cross-chain transaction data to obtain a second operation result; the second chunk generation module may be configured to store the target cross-chain transaction data and the second operation result in a second chunk of the second blockchain to complete the target cross-chain transaction.
In some embodiments, the block header information of the target block includes block address information of the target block, and the smart contracts deployed on the second blockchain include a second synchronization contract and a second cross-chain governance contract; the target block information verification module may include: the system comprises a target block information verification unit, a second merck tree evidence acquisition unit, a second merck tree evidence verification unit and a cross-chain transaction parameter validity verification unit.
The target block information verification unit may be configured to verify the block header information of the target block through the second synchronization contract to determine validity of the block address information of the target block; the second merck tree evidence obtaining unit may be configured to obtain a cross-chain transaction parameter of the target cross-chain transaction data and a second merck tree evidence for the target cross-chain transaction data based on the block header information of the target block; the second merck tree proof verification unit may be configured to verify the second merck tree proof by the second cross-link administration contract to determine security of the target cross-link transaction data; the cross-chain transaction parameter legitimacy verification unit may be configured to verify the cross-chain transaction parameter by the second cross-chain governance contract to determine legitimacy of the cross-chain transaction parameter.
In some embodiments, the second blockchain communicates data with the core blockchain through a second relay device; the target block information obtaining module may include: a second detection unit and a target block information acquisition unit.
Wherein the second detection unit may be configured to detect the core blockchain through the second relay device by the second blockchain; the target block information obtaining unit may be configured to obtain, when the second relay device detects that there is a newly added target block in the core block chain and target cross-chain transaction data is stored in the target block, block header information of the target block from the core block chain by the second relay device.
The embodiment of the disclosure provides an electronic device, which comprises: one or more processors; and a storage device for storing one or more programs, which when executed by the one or more processors, cause the one or more processors to implement the target block information acquisition module method of any one of the above.
The embodiments of the present disclosure propose a computer-readable storage medium, on which a computer program is stored, which when being executed by a processor implements the target block information acquisition module method as described in any one of the above.
Embodiments of the present disclosure propose a computer program product or a computer program comprising computer instructions stored in a computer-readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the target block information acquisition module method described above.
The method, the device, the electronic equipment and the computer readable storage medium for obtaining the target block information provided by the embodiment of the disclosure complete the data circulation between the first block chain and the second block chain through the core block chain. On one hand, the data transfer process is recorded and witnessed through the core block chain, so that the whole data transfer process is traceable, and the specific transfer process of the whole cross-chain transaction data can be conveniently known; on the other hand, the data in the circulation process is verified through the core block chain, so that the data in the circulation process is not tampered, and the safety of data circulation is ensured; in addition, the data cross-chain process is greatly simplified through the core block chain, and the possibility is provided for the data cross-chain. According to the cross-blockchain data transfer method, under the condition that the authenticity, reliability and incapability of being tampered of target cross-chain transaction data are guaranteed, the transfer process of the target cross-chain transaction data is recorded through the core blockchain, so that the whole data transfer process is traceable, and the examination and the traceability of the target cross-chain transaction are facilitated.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description, serve to explain the principles of the disclosure. The drawings described below are merely examples of the present disclosure and other drawings may be obtained from these drawings without inventive effort for a person of ordinary skill in the art.
Fig. 1 is a schematic diagram illustrating a block chain system according to the related art.
Fig. 2 is a schematic diagram showing a block structure according to the related art.
Fig. 3 is a schematic diagram showing a block memory content according to the related art.
Fig. 4 is a schematic diagram of a merck tree according to the related art.
FIG. 5 is a flowchart illustrating a method of data streaming across a chain of blocks, according to an example embodiment.
Fig. 6 is a flowchart of step S11 of fig. 5 in an exemplary embodiment.
Fig. 7 is a flow chart of step S12 of fig. 5 in an exemplary embodiment.
Fig. 8 is a schematic diagram of a merck tree according to the related art.
FIG. 9 is a flowchart illustrating a method of data streaming across a chain of blocks, according to an example embodiment.
Fig. 10 is a flowchart of step S24 of fig. 9 in an exemplary embodiment.
FIG. 11 is a flowchart illustrating a method of cross-blockchain data streaming in accordance with an exemplary embodiment.
Fig. 12 is a flowchart of step S32 of fig. 11 in an exemplary embodiment.
FIG. 13 is a diagram illustrating a data streaming structure of a cross-block chain, according to an example embodiment.
FIG. 14 is a block diagram illustrating a data streaming apparatus for a cross-block chain in accordance with an exemplary embodiment.
FIG. 15 is a block diagram illustrating a data streaming apparatus for a cross-block chain, according to an example embodiment.
FIG. 16 is a block diagram illustrating a data streaming apparatus for a cross-block chain in accordance with an exemplary embodiment.
FIG. 17 is a schematic diagram illustrating a computer system for use in a cross-blockchain data streaming device in accordance with an exemplary embodiment.
Detailed Description
Example embodiments will now be described more fully with reference to the accompanying drawings. However, the exemplary embodiments can be embodied in many forms and should not be construed as limited to the embodiments set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of the example embodiments to those skilled in the art. The same reference numerals in the drawings denote the same or similar parts, and thus a repetitive description thereof will be omitted.
The described features, structures, or characteristics of the disclosure may be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided to give a thorough understanding of embodiments of the present disclosure. However, those skilled in the art will recognize that the aspects of the present disclosure may be practiced with one or more of the specific details, or with other methods, components, devices, steps, etc. In other instances, well-known methods, devices, implementations, or operations are not shown or described in detail to avoid obscuring aspects of the disclosure.
The drawings are merely schematic illustrations of the present disclosure, in which like reference numerals denote like or similar parts, and thus a repetitive description thereof will be omitted. Some of the block diagrams shown in the figures do not necessarily correspond to physically or logically separate entities. These functional entities may be implemented in software or in one or more hardware modules or integrated circuits or in different networks and/or processor devices and/or microcontroller devices.
The flow diagrams depicted in the figures are exemplary only, and not necessarily all of the elements or steps are included or performed in the order described. For example, some steps may be decomposed, and some steps may be combined or partially combined, so that the order of actual execution may be changed according to actual situations.
In the present specification, the terms "a," "an," "the," "said" and "at least one" are used to indicate the presence of one or more elements/components/etc.; the terms "comprising," "including," and "having" are intended to be inclusive and mean that there may be additional elements/components/etc., in addition to the listed elements/components/etc.; the terms "first," "second," and "third," etc. are used merely as labels, and do not limit the number of their objects.
First, description is made with respect to a blockchain network, blockchain, block, etc., involved in the embodiments of the present disclosure.
Embodiments of the present disclosure relate to a method of data streaming across blockchains, each blockchain may correspond to a blockchain system, which may be a blockchain system formed by a client, a plurality of nodes, connected by a network communication. Wherein, the client and the node can be any form of computing device, such as a server and a terminal.
The server may be an independent physical server, or may be a cloud server that provides cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDNs, and basic cloud computing services such as big data and artificial intelligence platforms, which are not limited in this disclosure.
The terminal may be a variety of electronic devices having a display screen and supporting web browsing, including but not limited to smartphones, tablets, laptop portable computers, desktop computers, wearable devices, virtual reality devices, smart homes, and the like.
The user can interact with the blockchain through the client, and the blockchain system can realize consensus and record of data uploaded by the user through the nodes.
Fig. 1 is a schematic diagram of an alternative architecture of a blockchain system 101 provided by an embodiment of the disclosure, formed by a plurality of nodes 102 (any form of computing device in an access network, such as servers, terminals) and clients 103, where a Peer-To-Peer (P2P, peer To Peer) network is formed between the nodes 102, and the P2P protocol is an application layer protocol running on top of a transmission control protocol (TCP, transmission Control Protocol) protocol. In a blockchain system, any machine, such as a server, terminal, may be added to become node 102, node 102 including a hardware layer, an intermediate layer, an operating system layer, and an application layer.
Referring to the functionality of each node 102 in the blockchain system 101 shown in fig. 1, the functionality involved includes:
1) The node 102 has basic functions for supporting communication between the nodes 102.
For example, when the core blockchain receives target cross-chain transaction data, the target cross-chain transaction data is firstly required to be sent to the consensus nodes through the route for consensus, after the consensus is completed, each consensus node sends a consensus result to an accounting node in the core blockchain through the route, so that each accounting node accounts for the target cross-chain transaction data in the first block.
Besides the routing function, the node can also have the following functions:
2) The application is used for being deployed in a block chain to realize specific service according to actual service requirements, recording data related to the realization function to form recorded data, carrying a digital signature in the recorded data to represent the source of task data, sending the recorded data to other nodes in the block chain system, and adding the recorded data into a temporary block when the source and the integrity of the recorded data are verified by the other nodes.
For example, the services implemented by the application include:
2.1 A wallet for providing the functionality to conduct transactions, including initiating transactions. For example, in the present disclosure, target cross-chain transaction data is sent to a consensus node in a blockchain system, and after the consensus node verifies successfully, record data of the transaction is stored in a temporary block of the blockchain as a response to acknowledging that the transaction is valid; for another example, current cross-chain transaction data is sent across the chain to other blockchains, and when the other blockchains complete the transaction, record data for the transaction is stored in a temporary block of the blockchain in response to acknowledging that the transaction is valid.
2.2 The shared account book is used for providing the functions of storing, inquiring, modifying and the like of account data, transmitting record data of the operation of the account data to a consensus node in the blockchain system, and after the consensus node verifies validity, storing the record data into a temporary block as a response of acknowledging that the account data is valid, and also transmitting confirmation to the node initiating the operation.
In the disclosed embodiments, the core blockchain may store the target cross-chain transaction data in a shared ledger of the core blockchain, and the second blockchain may store the target cross-chain transaction data in a shared ledger of the second blockchain.
2.3 A computerized agreement that can execute the terms of a certain contract, implemented by code deployed on the shared ledger for execution when certain conditions are met, for completing automated transactions according to actual business needs code. In this embodiment, the intelligent contracts deployed on the core blockchain may be represented as core synchronization contracts for synchronizing cross-chain data, or as core cross-chain governance contracts for targeted cross-chain transactions, which is not limited by the present disclosure. The core synchronization contract deployed in the core block chain can be used for checking the block header information of the first block to determine the validity of the block address information of the first block; a core cross-link governance contract deployed in the core blockchain may verify a first merck tree proof of the target cross-link transaction data to determine security of the target cross-link transaction data, and the like.
Of course, the smart contract may be not only a processing contract that processes the received information, but also a transaction contract for a transaction, for example, a cross-chain transaction business contract, that is, a business contract that triggers the cross-chain transaction based on the cross-chain transaction data to execute a specific cross-chain transaction. For example, taking bank transfer as an example, when a transfer transaction to bank B is performed in bank a, if bank a and bank B respectively belong to different blockchains, the transaction may be processed based on a transaction processing manner agreed between blockchains, and a specific transaction processing manner may be stored on the blockchains of bank a and bank B respectively by means of a cross-chain business contract, so as to complete a cross-chain transaction.
3) The blockchain comprises a series of blocks (blocks) which are connected with each other according to the generated sequence time, the new blocks are not removed once being added into the blockchain, and record data submitted by nodes in the blockchain system are recorded in the blocks.
Referring to fig. 2, fig. 2 is an optional Block Structure (Block Structure) provided in an embodiment of the present disclosure, where each Block includes a hash value of a transaction record stored in the Block (i.e., a hash value of the Block) and a hash value of a previous Block, and the blocks are connected by the hash values to form a blockchain. In addition, the block may include information such as a time stamp at the time of block generation. The Blockchain (Blockchain), which is essentially a de-centralized database, is a string of data blocks that are generated in association using cryptographic methods, each of which contains associated information that is used to verify the validity (anti-counterfeiting) of its information and to generate the next block.
FIG. 3 is a block architecture diagram illustrating a block chain technique.
As shown in fig. 3, a block may be divided into a block header and a block body. The block header can be used for storing a previous block hash (the block hash can be address information of a block), a current block hash, a next block hash, a time stamp and the like, so that the data can be traced conveniently; a chunk may generally be used to store uplink data, e.g., a chunk of a first chunk of the present disclosure may be used to store targeted cross-chain transaction data.
In some blockchains, data is often stored in a Tree structure in the blockvolume, for example, data is stored in the blockvolume in the form of a Merkle Tree (Merkle Tree) as shown in fig. 4, and the Merkle Tree root is stored in the blockhead (as shown in fig. 3).
The merck tree often appears in the form of a binary tree (or a tree structure of a plurality of branches such as a trigeminal tree, a quadtree and the like), and is composed of leaf nodes, intermediate nodes and root nodes. The merck tree shown in fig. 4, D0, D1, D2, and D3 are data included in the leaf nodes, that is, values of the leaf nodes, and N0, N1, N2, and N3 are leaf nodes, which are Hash values obtained by performing Hash operations (Hash) on the data (that is, D0, D1, D2, and D3); continuing to look up, N4 and N5 are intermediate nodes, which are hash values obtained by hashing N0 and N1 and hash values obtained by hashing N2 and N3, note that they are obtained by merging two adjacent leaf nodes into a string, and then computing the hash of the string; then, up, root node is hash value obtained by hashing N4 and N5, which is Root hash of the merck tree.
As can be seen from the structure of the Merker tree, when any one leaf node transaction is modified, the leaf node hash value changes, and finally the root node hash value changes. The determined hash value of the root node may be accurately taken as the unique digest of a set of transactions.
In the embodiment of the disclosure, the target cross-chain transaction data can be stored in the core block in the form of the merck tree, so that the storage and the acquisition of the data are convenient, and whether the target cross-chain transaction data are tampered or not is conveniently verified.
According to the method and the device for realizing the cross-chain transaction of the target cross-chain transaction data, the core block chain is used for circulation of the target cross-chain transaction data, so that any block chain can realize the cross-chain transaction through the core block chain, the transparent traceability of the transaction process of the target cross-chain transaction data in each block chain is guaranteed, the target cross-chain transaction data can be prevented from being tampered in the storage and circulation processes, and the credibility of the data is guaranteed.
FIG. 5 is a flowchart illustrating a method of data streaming across a chain of blocks, according to an example embodiment. The method provided in the embodiments of the present disclosure may be applied to a core blockchain that does not belong to the first blockchain and the second blockchain, and the specific method may be performed by any electronic device having a computing processing capability in a core blockchain network corresponding to the core blockchain, for example, a server or a terminal device.
The embodiment of the disclosure provides a cross-link data flow method. It should be noted that, in this embodiment, the cross-chain transaction data method will be explained by taking the case of the data flowing from the first blockchain to the second blockchain as an example, but the practical application scenario of the present disclosure is not limited to the flowing between two blockchains, and the data cross-chain flowing between any blockchains can be implemented by the core blockchain. For example, the methods provided by the present disclosure may be applied to sequential flow between multiple blockchains (i.e., cross-chain transaction data flows from blockchain 1 through the core blockchain to blockchain 2, and then from blockchain 2 through the core blockchain to blockchain 3); the method provided by the disclosure can also be applied to data transfer between two of a plurality of blockchains (for example, the blockchain 1 transfers data to the blockchain 3 through a core blockchain, the blockchain 2 transfers data to the blockchain 4 through the core blockchain, and the blockchain 5 transfers data to the blockchain 6 through the core blockchain), and any application scenario requiring cross-chain data transfer is within the protection scope of the disclosure.
Referring to fig. 5, a method of cross-chain transaction data provided by an embodiment of the present disclosure may include the following steps.
In step S11, block header information of a first block in the first blockchain is obtained, where the first block is used to record a target cross-chain transaction between the first blockchain and the second blockchain.
In some embodiments, the first blockchain and the second blockchain may be the same type of blockchain; the first blockchain and the second blockchain may also be different types of blockchains.
In some embodiments, the core blockchain may obtain, from the first blockchain prior to performing the data flow, blockhead information of a first block storing the target cross-chain transaction data, where the blockhead information of the first block may include blockaddress information of the first block (i.e., a hash address of the first block), an execution log of the target cross-chain transaction on the first blockchain, and the like, where the execution log may include cross-chain transaction parameters of the target cross-chain transaction, such as a source chain address of the cross-chain transaction (i.e., an address of a blockchain initiating the target cross-chain transaction), a target chain address (i.e., a blockchain receiving the target cross-chain transaction initiated by the source chain), a transaction value of the target cross-chain transaction, and the like, where the disclosure does not limit the cross-chain transaction parameters.
In step S12, the block header information of the first block is verified by a smart contract deployed on the core blockchain.
In some embodiments, a smart contract may be deployed in the core blockchain, through which operations such as verification, uplink, and forwarding of target cross-chain transaction data may be completed.
For example, a smart contract deployed on the core blockchain may verify the blockhead information of the first block to verify from which blockchain the first block came, whether the blockchain has completed registration in the core blockchain, and so on; the cross-chain transaction parameters corresponding to the target cross-chain transaction data may be verified, such as validity, authenticity, etc. of the verification parameters. In actual operation, a technician may perform various checks on the first block header according to his own needs to determine the validity of the first block, the authenticity and security of the data stored in the first block, and the disclosure is not limited thereto.
For another example, an intelligent contract deployed on the core blockchain may accomplish synchronization and logging of target cross-chain transaction data on the core blockchain, such as converting the target cross-chain transaction data into data that meets the core blockchain storage criteria, and so forth.
For another example, an intelligent contract deployed on a core blockchain may send target cross-chain transaction data that is successful in an uplink in the core blockchain to a second blockchain, and so on.
In step S13, after the block header information of the first block passes the verification, the target cross-link transaction data of the target cross-link transaction is obtained from the first block based on the block header information of the first block.
In some embodiments, after the block header information of the first block is verified, target cross-chain transaction data for the target cross-chain transaction may be obtained from the first block based on the first block header information (e.g., hash address information of the first block).
In step S14, the target cross-chain transaction data is recorded in a target block of the core blockchain.
In some embodiments, the core blockchain may directly acquire data from the first blockchain, or may perform data transmission with the first blockchain through the first relay device, which is not limited in this disclosure.
In some embodiments, the first blockchain and the core blockchain may be different types of blockchains, so the data storage specifications of the first blockchain and the second blockchain may be different. Thus, the target cross-chain transaction data obtained from the first blockchain may not match the format of the core blockchain.
In this embodiment, a core synchronization contract may be deployed on the core blockchain to convert the uplink data of the core blockchain into data that conforms to the core blockchain storage format. The specific process is as follows:
acquiring target cross-chain transaction data conforming to a first blockchain storage specification from a first blockchain based on the blockhead information of the first block; the core blockchain converts the target cross-chain transaction data conforming to the first blockchain storage specification into target cross-chain transaction data conforming to the core blockchain storage specification through a core synchronization contract.
In some embodiments, target cross-chain transaction data meeting the core blockchain storage specification can be stored in a target block of the core blockchain, so that subsequent tracing is facilitated for the target cross-chain transaction and the target cross-chain transaction data, and the safety and the public confidence of the target cross-chain transaction are improved.
In step S15, the block header information of the target block is sent to the second blockchain, so that the second blockchain performs the target cross-chain transaction according to the block header information of the target block.
In some embodiments, after the core blockchain completes the checksum uplink operation on the target cross-chain transaction data, the blockhead information of the target block is further required to be sent to the second blockchain, so that the second blockchain obtains the target cross-chain transaction data according to the blockhead information of the target block to complete the target cross-chain transaction.
According to the target block information acquisition module method provided by the embodiment of the disclosure, data flow between the first block chain and the second block chain is completed through the core block chain. According to the method, on one hand, the data transfer process is recorded and witnessed through the core block chain, so that the whole data transfer process is traceable, and the specific transfer process of the whole cross-chain transaction data can be traced conveniently; on the other hand, as the verification is carried out on the target cross-link transaction data in the process of realizing the circulation through the core block chain, the target cross-link transaction data is ensured not to be tampered in the process of circulation, and the security of data circulation is ensured; in addition, any blockchain can realize data circulation through the core blockchain provided by the disclosure, so that the flow of data circulation is simplified.
According to the cross-blockchain data transfer method, under the condition that the authenticity, reliability and incapability of being tampered of target cross-chain transaction data are guaranteed, the transfer process of the target cross-chain transaction data is recorded through the core blockchain, so that the whole data transfer process is traceable, and the examination and the traceability of the target cross-chain transaction are facilitated.
Fig. 6 is a flowchart of step S11 of fig. 5 in an exemplary embodiment.
In some embodiments, the core blockchain and the first blockchain may communicate directly or through the first relay device, which is not limiting in this disclosure.
The first relay device may be any server or terminal device with a computing function, and may be a device provided by an institution trusted by each blockchain, for example, a device provided by each blockchain service provider, a bank, a financial institution, a credit institution, a consumer institution, or the like.
In some embodiments, the first relay device may serve multiple blockchains, but the first relay device does not participate in the blockchain consensus, that is, the first relay device is an out-of-chain device.
It should be noted that the number of the first relay devices in the embodiment may be one or more, and the number of the first relay devices is not limited in the embodiment of the present disclosure. If there are multiple first relay devices, then the core blockchain or the first blockchain may accept the first arriving information from the information sent by the multiple first devices.
The first relay equipment is used for communication between the core block chain and the first block chain, a series of operations such as signal conversion, copying, adjustment, amplification and the like can be completed, and the transmission flow of signals between the first block chain and the core block chain is simplified.
In some embodiments, the block header information of the first block acquired by the core blockchain in step S11 may be actively sent by the first blockchain or may be actively acquired by the core blockchain, which is not limited in this disclosure.
In a mode that the first blockchain actively transmits the blockhead information of the first block, the first blockchain monitors uplink data in real time, and if the first blockchain finds that the uplink data has transaction (such as business data, which requires tax deduction operation of the first blockchain and purchase and exchange operation of the second blockchain, etc.), the first blockchain constructs target cross-chain transaction according to the uplink data and generates target cross-chain transaction data; then storing the target cross-chain transaction data in a first block; and finally, actively transmitting the block head information of the first block to a core block chain (the block head information of the first block can also be transmitted to first relay equipment, and the first relay equipment transmits the block head information to the core block chain), so that the core block chain records and forwards data.
In the mode that the core blockchain actively obtains the block header information of the first block, the core blockchain can complete monitoring of the first blockchain through the core blockchain itself, and can also complete monitoring of the first blockchain through the first relay device.
In this embodiment, taking the core blockchain as an example, the first relay device monitors the first blockchain, how the core blockchain actively acquires the blockhead information of the first block.
Referring to fig. 6, the above-described acquiring the block header information of the first block from the first block chain by the first relay device may include the following steps.
In step S111, the core blockchain detects the first blockchain through the first relay device.
In step S112, when the first relay device detects that there is a newly added first block in the first blockchain and the target cross-chain transaction data is stored in the first block, the core blockchain acquires the blockhead information of the first block from the first blockchain through the first relay device.
In some embodiments, the core blockchain may detect the first blockchain through the first relay device when the first relay device discovers that a newly added first block is generated in the first blockchain; the first relay device further determines whether the newly added first block includes target cross-link transaction data; and if the first relay equipment finds that the target cross-chain transaction data exists in the newly added first block, the block header information of the newly added first block is sent to the core block chain.
For clarity of explanation, the present disclosure defines a newly added chunk as a first chunk, and the cross-chain transaction data stored in the newly added chunk as target cross-chain transaction data between the first and second blockchains. It can be appreciated that in practical application, when the first relay device detects the first blockchain, it is not required to determine whether the newly added block is the first block storing the target cross-chain transaction data, and only it is required to determine whether the cross-chain transaction data exists in the newly added block. If the cross-link transaction exists in the newly-added block, the block head information of the newly-added block is sent to a core block chain, the core block chain determines a target chain address of the cross-link transaction data according to the cross-link transaction data in the block head information of the newly-added block, and the cross-link transaction data is forwarded according to the target chain address.
It will be appreciated that the above method enables monitoring of the first blockchain to automatically complete the transfer of blockhead information of the first block between the first blockchain and the core blockchain when a cross-chain transaction is generated in the first blockchain, whether the blockhead information of the first block is actively transmitted by the first blockchain or is acquired after detection by the core blockchain. The method not only realizes the automatic circulation of the block head information of the first block, but also simplifies the circulation flow.
Fig. 7 is a flow chart of step S12 of fig. 5 in an exemplary embodiment.
In some embodiments, the block header information of the first block may include block address information of the first block, and the smart contracts deployed on the core blockchain may include core synchronization contracts and core cross-chain governance contracts.
Referring to fig. 7, the above step S12 may include the following steps.
In step S121, the block address information of the first block is checked by the core synchronization contract to determine validity of the block address information of the first block.
In some embodiments, the public keys of the first block, the second block, and the core block may be synchronized in each blockchain in advance. When the core blockchain obtains the blockhead information of the first block, the public key of the first blockchain can be used for verifying the blockaddress information in the blockhead information through the core synchronization contract to determine the source blockchain of the first block (namely, the blockchain transmitting the first block), the validity of the first block in the source blockchain (namely, whether the first block is subjected to consensus verification in the source block), and the like.
In step S122, cross-chain transaction parameters of the target cross-chain transaction and a first merck tree proof for the target cross-chain transaction data are obtained based on the chunk header information of the first chunk.
In some embodiments, if the block address information of the first block passes verification, the cross-chain parameter of the target cross-chain transaction and the first merck tree proof for the target cross-chain transaction data may be further obtained.
The target cross-chain transaction may include a cross-chain parameter of the target cross-chain transaction, where the first log may be generated when the target cross-chain transaction is constructed by the first blockchain and stored in the blockhead information of the first block, or stored in the form of a transaction tree in the blockvolumes of the first block, which is not limited by the present disclosure.
If the first log is directly stored in the block header of the first block, the first log can be directly obtained from the block header information of the first block, and the cross-link transaction parameter of the target cross-link transaction is obtained from the first log; if the first log is stored in the block body of the first block in the form of a transaction tree, a transaction tree root can be obtained from the block head of the first block, the first log can be obtained from the first block according to the transaction tree root, and further, the cross-link transaction parameters of the target cross-link transaction are obtained from the first log.
In some embodiments, the target cross-chain transaction data may be stored in the block of the first chunk in the form of a merck tree (as shown in fig. 4 or fig. 8) and the root of the merck tree is stored in the block header of the first chunk (as shown in fig. 3). It will be appreciated that when the target cross-chain transaction data changes, the root of the merck tree changes. Thus, the hash value of the leaf node corresponding to the target cross-chain transaction (e.g., 9dog:64 in FIG. 8), the sibling adjacent to the leaf (e.g., 1FXq:18 in FIG. 8), the sibling adjacent to the parent of the leaf (e.g., ec20 in FIG. 8), and the sibling adjacent to the grandparent of the leaf (e.g., 8f74 in FIG. 8) may be obtained, and so on …, and then the root of the merck tree in the block of the first block may be calculated from the above nodes. If the merck tree root calculated and processed by the node is consistent with the merck tree root stored in the block head of the first block, the target cross-chain transaction is indicated to be actually present in the first block, and no tampering occurs.
In some embodiments, 9dog:64 (the hash value corresponding to the target cross-chain trade data), 1FXq:18, ec20, and 8f74 in FIG. 8 may be used as the first Merker tree proof of the target cross-chain trade in the first chunk.
In step S123, the first merck tree proof is verified by the core cross-link administration contract to determine the security of the target cross-link transaction data.
In some embodiments, the first merck tree evidence may be compared to the merck tree root in the first block header by the core cross-link administration contract, and if the tree root obtained by the first merck tree evidence is consistent with the merck tree root in the first block header, it is indicated that the target cross-link transaction data is actually stored in the first block and is unchanged.
In step S124, the cross-link transaction parameters are checked by the core cross-link governance contract to determine the validity of the cross-link transaction parameters.
In some embodiments, the cross-chain transaction parameters may include a source chain address (i.e., an address of a blockchain that initiated the target cross-chain transaction) and a target chain address (an address of a blockchain that received the target cross-chain transaction) of the target cross-chain transaction. In this embodiment, the source chain address corresponds to a first blockchain, and the target chain address corresponds to a second blockchain.
In some embodiments, it may be detected by the core cross-link governance contract whether the source chain address and the destination chain address are registered in the core blockchain; if the source chain address and the target chain address are registered in the core blockchain, determining that the cross-chain transaction parameter is legal, and determining that the target cross-chain transaction is legal.
In some embodiments, when forwarding target cross-chain transaction data, the core blockchain may forward data according to a target chain address in the cross-chain transaction parameters, for example, the blockhead information of the target block may be sent to the second blockchain according to the target chain address, so that the second blockchain performs the target cross-chain transaction according to the blockhead information of the target block.
According to the technical scheme provided by the embodiment, the target cross-link transaction data is verified from multiple dimensions through the core synchronous contract and the core cross-link management contract, so that the safety and the public trust of the target cross-link transaction data in cross-link circulation are ensured. In addition, through the core synchronization contracts and the core blockchain management contracts which are arranged on the core blockchain, any blockchain can carry out data circulation through the core blockchain, and the flow of data circulation among a plurality of blockchains is greatly simplified.
FIG. 9 is a flowchart illustrating a method of data streaming across a chain of blocks, according to an example embodiment. The method provided in the embodiments of the present disclosure may be applied to the first blockchain, and the specific method may be executed by any electronic device having a computing processing capability in the first blockchain network corresponding to the first blockchain, for example, a server or a terminal device.
Referring to fig. 9, a method of cross-chain transaction data provided by an embodiment of the present disclosure may include the following steps.
In step S21, the first blockchain obtains target data relating to a target cross-chain transaction of the first blockchain and a second blockchain in response to a request for a target address for the target data.
In some embodiments, the target address may refer to an address of a target client registered in the first blockchain through which the user may request that target data be uplinked in the first blockchain.
In some embodiments, when a user requests a data uplink from a first blockchain through a target client, the first blockchain obtains the target data requesting the uplink according to the uplink request.
In step S22, the target data is processed by a smart contract deployed on the first blockchain to generate target cross-chain transaction data from the target data.
In some embodiments, if the target data includes cross-chain transaction content, the target data is processed through an intelligent contract deployed on the first blockchain to generate target cross-chain transaction data from the target data.
Wherein the intelligent contracts deployed on the first blockchain may include a first business contract and a first cross-link governance contract.
Then, processing the target data by the smart contract deployed on the first blockchain to generate target cross-chain transaction data from the target data may include:
executing, by the first service contract, first operation content corresponding to the first blockchain in the target data to obtain a first operation result (e.g., deducting 100 yuan from an account of a certain node of the first blockchain); processing the first operation result and the target data through a first cross-link management contract, and constructing a target cross-link transaction in a first blockchain to generate the target cross-link transaction data.
In step S23, the target cross-chain transaction data is stored in a first chunk, the first chunk including chunk header information.
In step S24, the block header information of the first block is sent to a core blockchain to send the target cross-chain transaction data to the second blockchain for the target cross-chain transaction through the core blockchain, the core blockchain not belonging to the first blockchain and the second blockchain.
According to the technical scheme provided by the embodiment, when the upper chain of the first blockchain contains the target cross-chain transaction data, the target cross-chain transaction data is automatically constructed and stored according to the data, and the block head information of the first block stored with the target cross-chain transaction data is automatically forwarded to the core blockchain, so that the core blockchain can acquire and record the target cross-chain transaction data according to the block head information of the first block, and the target cross-chain transaction data is forwarded to the second blockchain to finish the target cross-chain transaction.
Fig. 10 is a flowchart of step S24 of fig. 9 in an exemplary embodiment.
In some embodiments, the target data is processed through the smart contract to generate target cross-chain transaction data while also generating a first transaction log for the target cross-chain transaction, the first transaction log including cross-chain transaction parameters for the target cross-chain transaction.
Referring to fig. 10, the above step S24 may include the following steps.
In step S241, the block header information of the first block is sent to a core blockchain, so that the core blockchain verifies the block header information of the first block.
In step S242, in response to the transaction parameter acquisition request of the core blockchain, the first transaction log is sent to the core blockchain so that the core blockchain acquires the cross-chain transaction parameters.
In some embodiments, after the block header information of the first block passes the verification in the core blockchain, the core blockchain initiates a transaction parameter acquisition request to the first blockchain to acquire the target cross-chain transaction parameter from the first blockchain.
In response to a transaction parameter acquisition request from the core blockchain, the first blockchain transmits the first transaction log to the core blockchain so that the core blockchain acquires the target cross-chain transaction parameters.
In step S243, in response to the data attestation acquisition request of the core blockchain, a first merck tree attestation is generated from a first merck tree of the target cross-chain transaction data in the first block.
In some embodiments, after the block header information of the first block passes the check in the core blockchain, the core blockchain initiates a data attestation acquisition request to the first blockchain to acquire a first merck tree attestation of the target cross-chain transaction data from the first blockchain.
In response to a data attestation retrieval request by a core blockchain, the first blockchain dynamically generates a first merck tree attestation from a merck tree of target cross-chain transaction parameters.
In step S244, the first merck tree proof is sent to the core blockchain to send the target cross-chain transaction data to the second blockchain for the target cross-chain transaction through the core blockchain.
According to the technical scheme provided by the embodiment, the block header information of the first block, the cross-chain transaction data, the first merck tree evidence and the like are sent to the core block chain, so that verification of the core block chain on target cross-chain transaction is facilitated, and the security and the creditability of the target cross-chain transaction data in the circulation process are ensured.
FIG. 11 is a flowchart illustrating a method of cross-blockchain data streaming in accordance with an exemplary embodiment.
The method provided in the embodiments of the present disclosure may be applied to the second blockchain, and the specific method may be executed by any electronic device having a computing processing capability in the second blockchain network corresponding to the second blockchain, for example, a server or a terminal device, and in the following embodiments, the server is taken as an example for executing the main body, but the disclosure is not limited thereto.
Referring to fig. 11, the above-described cross-blockchain data streaming method may include the following steps.
In step S31, a second blockchain receives blockhead information of a target block sent by a core blockchain, the target block being used to record a target cross-chain transaction between a first blockchain and the second blockchain, the target cross-chain transaction being initiated by the first blockchain.
In some embodiments, target blockwise transaction data for a target cross-chain transaction initiated by the first blockwise chain may be stored in the target blockwise block, and blockwise header information for the target blockwise block may include blockwise address information for the target blockwise block, a merck root for the target cross-chain transaction, an execution log for the target cross-chain transaction, and the like.
In some embodiments, the block header information of the target block received by the core blockchain may be actively sent by the core blockchain or may be actively acquired by the second blockchain, which is not limited in this disclosure.
The process of actively transmitting the block header information of the target block by the core blockchain is similar to the manner in which the first blockchain actively transmits the block header information of the first block, which is not described in detail in this disclosure.
In the mode that the second blockchain actively obtains the block header information of the target block, the second blockchain can monitor the target blockchain by itself or can monitor the target block by the second relay device.
The method for the second blockchain to monitor the target block through the second relay device to actively acquire the block header information of the target block may include: the second blockchain detects the core blockchain through second relay equipment; when the second relay equipment detects that a new target block exists in the core block chain and target cross-chain transaction data is stored in the target block, the second block chain acquires block header information of the target block from the core block chain through the second relay equipment.
In step S32, the block header information of the target block is verified by a smart contract deployed on the second blockchain.
In some embodiments, a smart contract may be deployed in the second blockchain through which verification, execution, etc. of the target cross-chain transaction data on the second blockchain may be completed.
For example, verification of the cross-chain transaction data parameters may be accomplished through an intelligent contract deployed on the second blockchain, which is similar to the verification of the cross-chain transaction parameters by the core blockchain and is not described in detail herein.
In step S33, after the block header information of the target block passes the verification, the target cross-link transaction data of the target cross-link transaction is obtained from the target block based on the block header information of the target block.
In some embodiments, the second blockchain may interact directly with the target blockchain to obtain target cross-chain transaction data from the target block according to the blockhead information of the target block; the target block chain can also be interacted with through the second relay equipment so as to acquire target cross-chain transaction data from the target block according to the block head information of the target block, and the target cross-chain transaction data can be returned in the form of a log.
It should be noted that the number of the second relay devices in the embodiment may be one or more, and the number of the second relay devices is not limited in the embodiment of the present disclosure. If the second relay device is multiple, the core blockchain or the second blockchain may accept the first arriving information from the information sent by the multiple second devices.
In step S34, a second operation content corresponding to the second blockchain in the target cross-chain transaction data is executed to obtain a second operation result.
In some embodiments, transaction content corresponding to the second blockchain in the target cross-chain transaction data (e.g., 100-tuple turned into an account of a node in the second blockchain) may be completed by a smart contract deployed on the second blockchain to obtain a second operation result.
In step S35, the target cross-chain transaction data and the second operation result are stored in a second block of the second blockchain to complete the target cross-chain transaction.
In some embodiments, after the target cross-chain transaction data and the second operation result are completed in the uplink operation in the second blockchain, the processing result for the target cross-chain transaction may be fed back to the core blockchain, so that the core blockchain returns the transaction result to the first blockchain to complete the cross-chain transaction.
According to the technical scheme provided by the embodiment, the target cross-link transaction data sent by the first blockchain is safely and effectively obtained through the blockhead information of the target block sent by the core blockchain, and the target cross-link transaction is completed according to the target cross-link transaction data, so that the whole process is simple and convenient.
Fig. 12 is a flowchart of step S32 of fig. 11 in an exemplary embodiment.
In some embodiments, the block header information of the target block may include block address information of the target block, and the smart contracts deployed on the second blockchain may include a second synchronization contract and a second cross-chain governance contract.
Referring to fig. 12, the above step S32 may include the following steps.
In step S321, the block header information of the target block is checked by the second synchronization contract to determine validity of the block address information of the target block.
In some embodiments, the second blockchain may store a public key of the core blockchain, and after receiving the block header information of the target block, the second blockchain may verify the block address of the target block through the public key of the core blockchain to determine that the target block is actually constructed by the core blockchain.
In step S322, cross-chain transaction parameters of the target cross-chain transaction data and a second merck tree proof for the target cross-chain transaction data are obtained based on the chunk header information of the target chunk.
In some embodiments, if the block address information of the target block is verified, the second blockchain may further obtain the cross-chain parameters of the target cross-chain transaction and the second merck tree proof for the target cross-chain transaction data from the core blockchain.
The target cross-chain transaction may include a cross-chain parameter of the target cross-chain transaction in a second log of the core blockchain, where the second log may be generated when the core blockchain performs a uplink operation on target cross-chain transaction data, and is stored in block header information of the target block, or in a block body of the target block in a transaction tree form, which is not limited by the present disclosure.
If the second log is directly stored in the block header of the target block, the second log can be directly obtained from the block header information of the target block, and the cross-link transaction parameters of the target cross-link transaction are obtained from the second log; if the second log is stored in the block body of the target block in the form of a transaction tree, a transaction tree root can be obtained from the block head of the second block, the second log can be obtained from the target block according to the transaction tree root, and further the cross-link transaction parameters of the target cross-link transaction can be obtained from the second log.
In some embodiments, the target cross-chain transaction data may be stored in the block of the first chunk in the form of a merck tree (as shown in fig. 4 or fig. 8) and the root of the merck tree is stored in the block header of the first chunk (as shown in fig. 3). When the second blockchain requests to obtain the second merck tree evidence, the core blockchain dynamically generates the second merck tree evidence according to the merck tree of the target cross-chain transaction data and sends the second merck tree evidence to the second blockchain.
In step S323, the second merck tree proof is verified by the second cross-link governance contract to determine the security of the target cross-link transaction data.
In some embodiments, the second merck tree evidence may be compared with the merck tree root in the target block header by the second cross-link administration contract, and if the tree root obtained by the second merck tree evidence is consistent with the merck tree root in the target block header, it is indicated that the target cross-link transaction data is actually stored in the target block, and the target cross-link transaction data is unchanged.
In step S324, the cross-link transaction parameters are checked by the second cross-link governance contract to determine the validity of the cross-link transaction parameters.
In some embodiments, the cross-chain transaction parameters may include a source chain address (i.e., an address of a blockchain that initiated the target cross-chain transaction) and a target chain address (an address of a blockchain that received the target cross-chain transaction) of the target cross-chain transaction. In this embodiment, the source chain address corresponds to a first blockchain, and the target chain address corresponds to a second blockchain.
In some embodiments, whether the source chain address can be legal for a chain transaction with the second blockchain may be detected by the second cross-chain governance contract, and if the source chain address and the second blockchain are legal for the cross-chain transaction, the cross-chain transaction parameter is determined to be legal, and the target cross-chain transaction is legal.
In the embodiment of the disclosure, when the second blockchain carries out target cross-chain transaction, the cross-chain transaction data of the target cross-chain transaction is subjected to multi-dimensional verification through the intelligent contract, so that the security and the creditability of the target cross-chain transaction data in the circulation process are ensured.
FIG. 13 is a diagram illustrating a data streaming structure of a cross-block chain, according to an example embodiment. The data flow diagram of the cross-block chain shown with reference to fig. 13 may include the following process.
In response to a user's uplink request for target data, the first blockchain obtaining target data, the target data relating to target cross-chain transactions of the first blockchain and the second blockchain; executing first operation content corresponding to a first block chain in target data through a first business contract deployed on the first block chain to obtain a first operation result; invoking a first cross-link governance contract interface to process a first operation result and target data through the first cross-link governance contract, and constructing a target cross-link transaction in the first blockchain to generate target cross-link transaction data; storing the target cross-chain transaction data in a first chunk in the form of a merck tree, the first chunk including chunk header information; the core block chain detects a first block chain through first relay equipment; when the first relay equipment detects that a newly added first block exists in the first block chain and target cross-chain transaction data is stored in the first block, the core block chain acquires block header information of the first block from the first block chain through the first relay equipment; the core block chain checks the block address information of the first block through a core synchronization contract to determine the validity of the block address information of the first block; the core blockchain acquires a cross-chain transaction parameter of a target cross-chain transaction and a first merck tree proof aiming at the target cross-chain transaction data through the first relay equipment based on the blockhead information of the first block; the core blockchain checks the first merck tree evidence through a core cross-chain management contract to determine the security of target cross-chain transaction data; the core blockchain checks the cross-chain transaction parameters through a core cross-chain management contract to determine the legality of the cross-chain transaction parameters; after the block head information of the core block chain aiming at the first block passes the verification, acquiring target cross-link transaction data of target cross-link transaction from the first block based on the block head information of the first block, and recording the target cross-link transaction data in a target block of the core block chain; the second blockchain detects the core blockchain through second relay equipment; when the second relay equipment detects that a newly added target block exists in the core block chain and target cross-chain transaction data is stored in the target block, the second block chain acquires block header information of the target block from the core block chain through the second relay equipment; the second blockchain verifies the block header information of the target block through a second synchronization contract deployed on the second blockchain to determine the validity of the block address information of the target block; the second blockchain acquires the cross-chain transaction parameters of the target cross-chain transaction data from the core blockchain through the second relay equipment based on the blockhead information of the target block and the second merck tree evidence aiming at the target cross-chain transaction data; the second blockchain verifies the second merck tree evidence through a second cross-chain governance contract to determine the security of the target cross-chain transaction data; the second blockchain checks the cross-chain transaction parameters through a second cross-chain management contract to determine the legality of the cross-chain transaction parameters; after the second blockchain passes the block header information verification of the target block, acquiring target cross-chain transaction data of target cross-chain transaction from the target block based on the block header information of the target block; executing a second operation content corresponding to the second blockchain in the target cross-chain transaction data through a second business contract by the second blockchain to obtain a second operation result; storing the target cross-chain transaction data and the second operation result in a second block of the second block chain, and returning cross-chain transaction completion prompt information to the core block chain, so that the core block chain can record the cross-chain transaction completion prompt and return the record to the first block chain, and the first block chain can determine that the current target cross-chain transaction is completed, and the closed loop of the target cross-chain transaction is realized.
It should be noted that, in the process of synchronously executing the target cross-chain transaction data, the target cross-chain transaction initiator, that is, the first blockchain in the present disclosure, may give a certain stimulus to the core blockchain, for example, transfer a certain electronic asset to the core blockchain, etc.
According to the target block information acquisition module method provided by the embodiment of the disclosure, data flow between the first block chain and the second block chain is completed through the core block chain. According to the method, on one hand, the data transfer process is recorded and witnessed through the core block chain, so that the whole data transfer process is traceable, and the specific transfer process of the whole cross-chain transaction data can be traced conveniently; on the other hand, as the verification is carried out on the target cross-link transaction data in the process of realizing the circulation through the core block chain, the target cross-link transaction data is ensured not to be tampered in the process of circulation, and the security of data circulation is ensured; in addition, any blockchain can realize data circulation through the core blockchain provided by the disclosure, so that the flow of data circulation is simplified.
FIG. 14 is a block diagram illustrating a data streaming apparatus for a cross-block chain in accordance with an exemplary embodiment. Referring to fig. 14, the data flow device 1400 of the present disclosure may be applied to a core blockchain that does not belong to a first blockchain and a second blockchain, the data flow device 1400 includes: a first block information acquisition module 1401, a first block information verification module 1402, a target cross-chain transaction data acquisition first module 1403, a target block generation module 1404, and a target block information transmission module 1405.
The first block information obtaining module 1401 may be configured to obtain block header information of a first block in the first blockchain, where the first block is used to record a target cross-chain transaction between the first blockchain and the second blockchain. The first chunk information checking module 1402 may be configured to check chunk header information of the first chunk by a smart contract deployed on the core blockchain. The target cross-chain transaction data obtaining first module 1403 may be configured to obtain target cross-chain transaction data of the target cross-chain transaction from the first block based on the block header information of the first block after the block header information of the first block passes verification. The target block generation module 1404 may be configured to record the target cross-chain transaction data in a target block of the core blockchain. The target block information sending module 1405 may be configured to send the block header information of the target block to the second blockchain, so that the second blockchain performs the target cross-chain transaction according to the block header information of the target block.
In some embodiments, the block header information of the first block includes block address information of the first block, and the smart contracts deployed on the core blockchain include a core synchronization contract and a core cross-chain governance contract. Wherein, the first block information checking module 1402 may include: the system comprises a first block address checking unit, a first merck tree evidence obtaining unit, a first merck tree evidence checking unit and a cross-chain transaction parameter checking unit.
The first block address verification unit may be configured to verify the block address information of the first block through the core synchronization contract to determine validity of the block address information of the first block; the first merck tree evidence obtaining unit may be configured to obtain a cross-chain transaction parameter of the target cross-chain transaction and a first merck tree evidence for the target cross-chain transaction data based on the block header information of the first block; the first merck tree proof verification unit may be configured to verify the first merck tree proof by the core cross-link administration contract to determine security of the target cross-link transaction data; the cross-chain transaction parameter verification unit may be configured to verify the cross-chain transaction parameter by the core cross-chain governance contract to determine the legitimacy of the cross-chain transaction parameter.
In some embodiments, the core blockchain is in data transmission with the first blockchain through a first relay device, the first blockchain and the core blockchain have different data storage specifications, and the smart contracts deployed on the core blockchain include a core synchronization contract. Wherein the target cross-chain transaction data acquisition first module 1403 may include: the target cross-chain transaction comprises a first acquisition unit and a conversion unit.
The target cross-chain transaction first obtaining unit may be configured to obtain target cross-chain transaction data that accords with a first blockchain storage specification from the first blockchain based on the blockhead information of the first block; the conversion unit may be configured to convert the target cross-chain transaction data compliant with the first blockchain storage specification into target cross-chain transaction data compliant with a core blockchain storage specification by the core blockchain through the core synchronization contract so as to store the target cross-chain transaction data compliant with the core blockchain storage specification in the target block.
In some embodiments, the core blockchain is in data transmission with the first blockchain through a first relay device. The first block information acquiring module 1401 may include: the first detection unit and the first block information acquisition unit.
Wherein the first detection unit may be configured to detect the first blockchain by the core blockchain through the first relay device; the first block information obtaining unit may be configured to obtain, when the first relay device detects that a newly added first block exists in the first block chain and the target cross-chain transaction data is stored in the first block, block header information of the first block from the first block chain through the first relay device.
In some embodiments, the cross-chain transaction parameters include a source chain address and a target chain address of the target cross-chain transaction, the source chain address corresponding to the first blockchain and the target chain address corresponding to the second blockchain. Wherein the first merck tree proof verification unit may include: registering the verification subunit and the parameter validity verification subunit.
Wherein the registration check subunit may be configured to detect, by the core cross-chain governance contract, whether the source chain address and the target chain address are registered at the core blockchain; the parameter validity checking subunit may be configured to determine validity of the cross-chain transaction parameter if the source chain address and the target chain address are registered with the core blockchain.
The target block information sending module 1405 may include: and the target block information sending unit is configured to send the block header information of the target block to the second block chain according to the target chain address so that the second block chain carries out the target cross-chain transaction according to the block header information of the target block.
Since each functional module of the inter-blockchain data streaming device 1400 of the exemplary embodiment of the present disclosure corresponds to the steps of the above-described inter-blockchain data streaming method, the description thereof will not be repeated herein.
FIG. 15 is a block diagram illustrating a data streaming apparatus for a cross-block chain, according to an example embodiment.
In some embodiments, the data streaming device of the cross-block chain is applied to the first block chain.
Referring to fig. 15, the above-mentioned data flow device across blockchains may include: a target data acquisition module 1501, a target cross-chain transaction data generation module 1502, a first block generation module 1503, and a first block information transmission module.
Wherein the target data acquisition module 1501 may be configured to acquire target data relating to a target cross-chain transaction of the first and second blockchains by the first blockchain in response to a request for a target address for the target data; the target cross-chain transaction data generation module 1502 may be configured to process the target data via an intelligent contract deployed on the first blockchain to generate target cross-chain transaction data from the target data; the first chunk generation module 1503 may be configured to store the target cross-chain transaction data in a first chunk, the first chunk including chunk header information; the first block information sending module 1504 may be configured to send block header information of the first block to a core blockchain to send the target cross-chain transaction data to the second blockchain for the target cross-chain transaction through the core blockchain, the core blockchain not belonging to the first and second blockchains.
In some embodiments, a first transaction log of the target cross-chain transaction is also generated when the target cross-chain transaction data is generated, the first transaction log including cross-chain transaction parameters of the target cross-chain transaction. The first block information sending module 1504 may include: the system comprises a first block information sending unit, a first transaction log sending unit, a first merck tree evidence generating unit and a first merck tree evidence sending unit.
The first block information sending unit may be configured to send the block header information of the first block to a core block chain, so that the core block chain checks the block header information of the first block; the first transaction log sending unit may be configured to send the first transaction log to the core blockchain in response to a transaction parameter acquisition request of the core blockchain so that the core blockchain acquires the cross-chain transaction parameter; the first merck tree credential generating unit may be configured to generate a first merck tree credential from a first merck tree of the target cross-chain transaction data in the first chunk in response to the data credential acquisition request of the core blockchain; the first merck tree credential sending unit may be configured to send the first merck tree credential to the core blockchain to send the target cross-chain transaction data to the second blockchain for the target cross-chain transaction through the core blockchain.
In some embodiments, the intelligent contracts deployed on the first blockchain include a first business contract and a first cross-chain governance contract. Wherein the target cross-chain transaction data generation module 1502 may include: a first operation unit and a target cross-chain transaction data generation unit.
Wherein the first operation unit may be configured to execute, by the first service contract, a first operation content corresponding to the first blockchain in the target data to obtain a first operation result; the target cross-chain transaction data generation unit may be configured to process the first operation result and the target data through the first cross-chain governance contract, and build a target cross-chain transaction in the first blockchain to generate the target cross-chain transaction data.
Since each functional module of the inter-blockchain data streaming device 1500 of the exemplary embodiment of the present disclosure corresponds to the steps of the above-described exemplary embodiment of the inter-blockchain data streaming method, the description thereof will not be repeated here.
FIG. 16 is a block diagram illustrating a data streaming apparatus for a cross-block chain in accordance with an exemplary embodiment.
In some embodiments, the data streaming device of the cross-block chain is applied to a second block chain.
Referring to fig. 16, the above-mentioned data flow device across blockchains may include: a target block information acquisition module 1601, a target block information verification module 1602, a target cross-chain transaction data acquisition second module 1603, a second result acquisition module 1604, and a second block generation module 1605.
The target block information obtaining module 1601 may be configured to receive, by the second blockchain, block header information of a target block sent by the core blockchain, where the target block is used to record a target cross-chain transaction between a first blockchain and the second blockchain, and the target cross-chain transaction is initiated by the first blockchain; the target block information verification module 1602 may be configured to verify block header information of the target block by an intelligent contract deployed on the second blockchain; the second target cross-link transaction data obtaining module 1603 may be configured to obtain target cross-link transaction data of the target cross-link transaction from the target block based on the block header information of the target block after the block header information of the target block passes verification; the second result obtaining module 1604 may be configured to execute a second operation content corresponding to the second blockchain in the target cross-chain transaction data to obtain a second operation result; the second chunk generation module 1605 may be configured to store the target cross-chain transaction data and the second operation result in a second chunk of the second blockchain to complete the target cross-chain transaction.
In some embodiments, the block header information of the target block includes block address information of the target block, and the smart contracts deployed on the second blockchain include a second synchronization contract and a second cross-chain governance contract; wherein, the target block information verification module 1602 may include: the system comprises a target block information verification unit, a second merck tree evidence acquisition unit, a second merck tree evidence verification unit and a cross-chain transaction parameter validity verification unit.
The target block information verification unit may be configured to verify the block header information of the target block through the second synchronization contract to determine validity of the block address information of the target block; the second merck tree evidence obtaining unit may be configured to obtain a cross-chain transaction parameter of the target cross-chain transaction data and a second merck tree evidence for the target cross-chain transaction data based on the block header information of the target block; the second merck tree proof verification unit may be configured to verify the second merck tree proof by the second cross-link administration contract to determine security of the target cross-link transaction data; the cross-chain transaction parameter legitimacy verification unit may be configured to verify the cross-chain transaction parameter by the second cross-chain governance contract to determine legitimacy of the cross-chain transaction parameter.
In some embodiments, the second blockchain communicates data with the core blockchain through a second relay device; the target block information acquisition module 1601 may include: a second detection unit and a target block information acquisition unit.
Wherein the second detection unit may be configured to detect the core blockchain through the second relay device by the second blockchain; the target block information obtaining unit may be configured to obtain, when the second relay device detects that there is a newly added target block in the core block chain and target cross-chain transaction data is stored in the target block, block header information of the target block from the core block chain by the second relay device.
Since each functional module of the inter-blockchain data streaming device 1600 of the exemplary embodiment of the present disclosure corresponds to the steps of the above-described inter-blockchain data streaming method, the description thereof will not be repeated herein.
The flowcharts 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 application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or 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 or flowchart illustration, and combinations of blocks in the block diagrams 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 modules and/or units and/or sub-units referred to in the embodiments of the present application may be implemented in software or in hardware. The described modules and/or units and/or sub-units may also be provided in a processor, e.g. may be described as: a processor includes a transmitting unit, an acquiring unit, a determining unit, and a first processing unit. Wherein the names of the modules and/or units and/or sub-units do not in some cases constitute a limitation of the modules and/or units and/or sub-units themselves.
Referring now to FIG. 17, there is illustrated a schematic diagram of a computing device (e.g., terminal device or server, etc.) computer system 1700 suitable for use in implementing embodiments of the present application. The computer system illustrated in fig. 17 is merely an example, and should not be construed as limiting the functionality and scope of use of the embodiments herein.
As shown in fig. 17, the computer system 1700 includes a Central Processing Unit (CPU) 1701, which can execute various appropriate actions and processes according to a program stored in a Read Only Memory (ROM) 1702 or a program loaded from a storage portion 1708 into a Random Access Memory (RAM) 1703. In the RAM1703, various programs and data required for the operation of the system 1700 are also stored. The CPU 1701, ROM 1702, and RAM1703 are connected to each other through a bus 1704. An input/output (I/O) interface 1705 is also connected to the bus 1704.
The following components are connected to the I/O interface 1705: an input section 1706 including a keyboard, a mouse, and the like; an output portion 1707 including a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker, and the like; a storage portion 1708 including a hard disk or the like; and a communication section 1709 including a network interface card such as a LAN card, a modem, or the like. The communication section 1709 performs communication processing via a network such as the internet. The driver 1710 is also connected to the I/O interface 1705 as needed. A removable medium 1711 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is installed as needed on the drive 1710 so that a computer program read therefrom is installed into the storage portion 1708 as needed.
In particular, according to embodiments of the present disclosure, the processes described above with reference to flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable storage medium, the computer program comprising program code for performing the method shown in the flowcharts. In such an embodiment, the computer program can be downloaded and installed from a network via the communication portion 1709, and/or installed from the removable media 1711. The above-described functions defined in the system of the present application are performed when the computer program is executed by a Central Processing Unit (CPU) 1701.
It should be noted that the computer readable storage medium shown in the present application may be a computer readable signal medium or a computer readable storage medium, or any combination of the two. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples of the computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present application, however, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, with computer-readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable storage medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable storage medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
As another aspect, the present application also provides a computer-readable storage medium that may be contained in the apparatus described in the above embodiments; or may be present alone without being fitted into the device. The computer-readable storage medium carries one or more programs which, when executed by a device, cause the device to perform functions including: obtaining block header information of a first block in the first blockchain, wherein the first block is used for recording target cross-chain transactions between the first blockchain and the second blockchain; verifying block header information of the first block through an intelligent contract deployed on the core blockchain; after the block head information of the first block passes the verification, acquiring target cross-chain transaction data of the target cross-chain transaction from the first block based on the block head information of the first block; recording the target cross-chain transaction data in a target block of the core blockchain; and sending the block header information of the target block to the second blockchain so that the second blockchain carries out the target cross-chain transaction according to the block header information of the target block.
From the above description of embodiments, those skilled in the art will readily appreciate that the example embodiments described herein may be implemented in software, or may be implemented in software in combination with the necessary hardware. Thus, aspects of embodiments of the present disclosure may be embodied in a software product, which may be stored on a non-volatile storage medium (which may be a CD-ROM, a U-disk, a mobile hard disk, etc.), comprising instructions for causing a computing device (which may be a personal computer, a server, a mobile terminal, or a smart device, etc.) to perform a method in accordance with embodiments of the present disclosure, such as one or more of the steps shown in fig. 5.
Furthermore, the above-described figures are only schematic illustrations of processes included in the method according to the exemplary embodiments of the present disclosure, and are not intended to be limiting. It will be readily appreciated that the processes shown in the above figures do not indicate or limit the temporal order of these processes. In addition, it is also readily understood that these processes may be performed synchronously or asynchronously, for example, among a plurality of modules.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This disclosure is intended to cover any adaptations, uses, or adaptations of the disclosure following the general principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It is to be understood that the disclosure is not to be limited to the details of construction, the manner of drawing, or the manner of implementation, which has been set forth herein, but, on the contrary, is intended to cover various modifications and equivalent arrangements included within the spirit and scope of the appended claims.
Claims (22)
1. A data streaming method of a cross-region block chain, which is characterized by being applied to a core block chain; wherein the method comprises the following steps:
when it is determined that a newly added first block is generated in a first blockchain and the newly added first block includes cross-chain transaction data, the core blockchain acquires blockhead information of a first block in the first blockchain, the first block is used for recording target cross-chain transaction data between the first blockchain and a second blockchain, the target cross-chain transaction data is generated by processing target data and a first operation result of the target data through a first cross-chain management contract in the first blockchain, the first operation result is obtained by executing a first operation content corresponding to the first blockchain in the target data through a first business contract in the first blockchain, and the target data relates to target cross-chain transactions of the first blockchain and the second blockchain;
Verifying block header information of the first block through an intelligent contract deployed on the core blockchain;
after the block head information of the first block passes the verification, acquiring target cross-chain transaction data of target cross-chain transaction from the first block based on the block head information of the first block;
recording the target cross-chain transaction data in a target block of the core blockchain;
and sending the block header information of the target block to the second blockchain so that the intelligent contract in the second blockchain verifies the block header information of the target block, acquiring the target cross-link transaction data from the target block of the core blockchain based on the block header information of the target block after the block header of the target block passes the verification, and executing second operation content corresponding to the second blockchain in the target cross-link transaction data to acquire a second operation result.
2. The method of claim 1, wherein the block header information of the first block includes block address information of the first block, and the intelligent contracts deployed on the core blockchain include a core synchronization contract and a core cross-chain governance contract; wherein verifying the block header information of the first block through an intelligent contract deployed on the core blockchain includes:
Verifying the block address information of the first block through the core synchronization contract to determine the validity of the block address information of the first block;
acquiring cross-chain transaction parameters of the target cross-chain transaction based on the block header information of the first block and a first merck tree proof for the target cross-chain transaction data;
verifying the first merck tree evidence by the core cross-link governance contract to determine security of the target cross-link transaction data;
and verifying the cross-link transaction parameters through the core cross-link management contract to determine the legality of the cross-link transaction parameters.
3. The method of claim 1, wherein the first blockchain and the core blockchain have different data storage specifications, and the smart contracts deployed on the core blockchain include a core synchronization contract; the method for acquiring the target cross-link transaction data of the target cross-link transaction from the first block based on the block header information of the first block comprises the following steps:
acquiring target cross-chain transaction data conforming to a first blockchain storage specification from the first blockchain based on the blockhead information of the first block;
The core blockchain converts the target cross-chain transaction data conforming to the first blockchain storage specification into target cross-chain transaction data conforming to the core blockchain storage specification through the core synchronization contract so as to store the target cross-chain transaction data conforming to the core blockchain storage specification in the target block.
4. The method of claim 1, wherein the core blockchain is in data transmission with the first blockchain through a first relay device; wherein obtaining the block header information of the first block in the first blockchain includes:
the core blockchain detects the first blockchain through the first relay device;
when the first relay device detects that a newly added first block exists in the first block chain and the target cross-chain transaction data is stored in the first block, the core block chain acquires block header information of the first block from the first block chain through the first relay device.
5. The method of claim 2, wherein the target cross-chain transaction data includes a source chain address and a target chain address of the cross-chain transaction parameter, the source chain address corresponding to the first blockchain and the target chain address corresponding to the second blockchain; wherein verifying the cross-link transaction parameters by the core cross-link governance contract to determine the legitimacy of the cross-link transaction parameters comprises:
Detecting, by the core cross-chain governance contract, whether the source chain address and the target chain address are registered at the core blockchain;
if the source chain address and the target chain address are registered in the core blockchain, determining the legitimacy of the cross-chain transaction parameter;
the block header information of the target block is sent to the second blockchain, so that the second blockchain performs the target cross-chain transaction according to the block header information of the target block, including:
and sending the block header information of the target block to the second block chain according to the target chain address so that the second block chain carries out the target cross-chain transaction according to the block header information of the target block.
6. A data streaming method of a cross-region block chain, which is characterized by being applied to a first block chain; wherein the method comprises the following steps:
responding to an uplink request of a target address for target data, wherein the first blockchain acquires the target data, an intelligent contract is deployed on the first blockchain, and the intelligent contract on the first blockchain comprises a first business contract and a first cross-chain governance contract;
Determining that the target data relates to a target cross-chain transaction of the first blockchain and a second blockchain;
executing first operation content corresponding to the first blockchain in the target data through the first service contract to obtain a first operation result;
processing the first operation result and the target data through the first cross-link management contract, and constructing a target cross-link transaction in the first blockchain to generate target cross-link transaction data;
storing the target cross-chain transaction data in a first chunk, the first chunk comprising chunk header information;
and sending the block header information of the first block to a core block chain, so that the target cross-chain transaction data is sent to a second block chain through the core block chain, the intelligent contract in the second block chain is used for verifying the block header information of a target block, after the block header of the target block passes the verification, the target cross-chain transaction data is obtained from the target block of the core block chain based on the block header information of the target block, and second operation content corresponding to the second block chain in the target cross-chain transaction data is executed to obtain a second operation result, wherein the core block chain does not belong to the first block chain and the second block chain.
7. The method of claim 6, wherein the target cross-link transaction data is generated by further generating a first transaction log of the target cross-link transaction, the first transaction log including cross-link transaction parameters of the target cross-link transaction; wherein sending the block header information of the first block to a core blockchain to send the target cross-chain transaction data to the second blockchain through the core blockchain includes:
transmitting the block header information of the first block to a core block chain so that the core block chain checks the block header information of the first block;
responding to a transaction parameter acquisition request of the core blockchain, and sending the first transaction log to the core blockchain so that the core blockchain acquires the cross-chain transaction parameters;
responding to a data evidence acquisition request of the core block chain, and generating a first merck tree evidence according to a first merck tree of the target cross-chain transaction data in the first block;
the first merck tree proof is sent to the core blockchain to send the target cross-chain transaction data to the second blockchain through the core blockchain to conduct the target cross-chain transaction.
8. A data streaming method of a cross-region block chain, which is characterized by being applied to a second block chain; wherein the method comprises the following steps:
the second blockchain receives blockhead information of a target block sent by a core blockchain, wherein the target block is used for recording target cross-chain transaction data between a first blockchain and the second blockchain, the target cross-chain transaction data is sent to the core blockchain by the first blockchain, the target cross-chain transaction data is generated by processing target data and a first operation result of the target data through a first cross-chain management contract in the first blockchain, the first operation result is obtained by executing a first operation content corresponding to the first blockchain in the target data through a first business contract in the first blockchain, and the target data relates to target cross-chain transactions of the first blockchain and the second blockchain;
verifying the block header information of the target block through an intelligent contract deployed on the second blockchain;
after the block head information of the target block passes the verification, acquiring target cross-chain transaction data of target cross-chain transaction from the target block based on the block head information of the target block;
Executing second operation content corresponding to the second blockchain in the target cross-chain transaction data to obtain a second operation result;
storing the target cross-chain transaction data and the second operation result in a second block of the second blockchain to complete the target cross-chain transaction.
9. The method of claim 8, wherein the block header information of the target block includes block address information of the target block, and the smart contracts deployed on the second blockchain include a second synchronization contract and a second cross-chain governance contract; wherein verifying the block header information of the target block by an intelligent contract deployed on the second blockchain includes:
verifying the block header information of the target block through the second synchronization contract to determine the validity of the block address information of the target block;
acquiring cross-chain transaction parameters of the target cross-chain transaction data based on the block header information of the target block, and a second merck tree proof for the target cross-chain transaction data;
verifying the second merck tree evidence by the second cross-link governance contract to determine security of the target cross-link transaction data;
And verifying the cross-link transaction parameters through the second cross-link management contract to determine the legality of the cross-link transaction parameters.
10. The method of claim 8, wherein the second blockchain communicates data with the core blockchain through a second relay device; wherein the second blockchain receives the blockhead information of the target block sent by the core blockchain, including:
the second blockchain detects the core blockchain through the second relay device;
when the second relay equipment detects that a new target block exists in the core block chain and target cross-chain transaction data is stored in the target block, the second block chain acquires block header information of the target block from the core block chain through the second relay equipment.
11. A data streaming device of a cross-region block chain, which is characterized by being applied to a core block chain; wherein the device comprises:
a first blockinformation obtaining module configured to, when it is determined that a newly added first block is generated in a first blockchain and the newly added first block includes cross-chain transaction data, obtain blockhead information of the first block in the first blockchain by the core blockchain, where the first block is used to record target cross-chain transaction data between the first blockchain and a second blockchain, where the target cross-chain transaction data is generated after processing target data and a first operation result of the target data by a first cross-chain management contract in the first blockchain, and the first operation result is obtained after executing a first operation content corresponding to the first blockchain in the target data by a first business contract in the first blockchain, where the target data relates to a target cross-chain transaction of the first blockchain and the second blockchain; a first block information verification module configured to verify block header information of the first block through an intelligent contract deployed on the core blockchain;
The target cross-chain transaction data acquisition first module is configured to acquire target cross-chain transaction data of target cross-chain transaction from the first block based on the block header information of the first block after the block header information of the first block passes verification;
a target block generation module configured to record the target cross-chain transaction data in a target block of the core blockchain;
and the target block information sending module is configured to send the block header information of the target block to the second block chain so that the intelligent contract in the second block chain verifies the block header information of the target block, acquire the target cross-chain transaction data from the target block of the core block chain based on the block header information of the target block after the block header of the target block passes the verification, and execute second operation content corresponding to the second block chain in the target cross-chain transaction data to acquire a second operation result.
12. The apparatus of claim 11, wherein the block header information of the first block comprises block address information of the first block, and the intelligent contracts deployed on the core blockchain comprise a core synchronization contract and a core cross-chain governance contract; wherein, the first block information checking module includes:
A first block address verification unit configured to verify block address information of the first block through the core synchronization contract to determine validity of the block address information of the first block;
a first merck tree evidence obtaining unit configured to obtain a cross-chain transaction parameter of the target cross-chain transaction and a first merck tree evidence for the target cross-chain transaction data based on the block header information of the first block;
a first merck tree proof verification unit configured to verify the first merck tree proof by the core cross-link administration contract to determine security of the target cross-link transaction data;
and the cross-link transaction parameter verification unit is configured to verify the cross-link transaction parameters through the core cross-link management contract so as to determine the legality of the cross-link transaction parameters.
13. The apparatus of claim 11, wherein the first blockchain and the core blockchain have different data storage specifications, and the smart contracts deployed on the core blockchain include a core synchronization contract; the target cross-chain transaction data acquisition first module comprises:
A target cross-chain transaction first acquisition unit configured to acquire target cross-chain transaction data conforming to a first blockchain storage specification from the first blockchain based on blockhead information of the first block;
the conversion unit is configured to convert the target cross-chain transaction data conforming to the first blockchain storage specification into target cross-chain transaction data conforming to the core blockchain storage specification through the core synchronization contract so as to store the target cross-chain transaction data conforming to the core blockchain storage specification in the target block.
14. The apparatus of claim 11, wherein the core blockchain is to communicate data with the first blockchain through a first relay device; wherein, the first block information obtaining module includes:
a first detection unit configured to detect the first blockchain through the first relay device by the core blockchain;
and the first block information acquisition unit is configured to acquire block header information of the first block from the first block chain through the first relay equipment when the first relay equipment detects that the first block newly added in the first block chain exists and the target cross-chain transaction data is stored in the first block.
15. The apparatus of claim 12, wherein the target cross-chain transaction data includes a source chain address and a target chain address of the cross-chain transaction parameter, the source chain address corresponding to the first blockchain and the target chain address corresponding to the second blockchain; wherein the first merck tree proof verification unit includes:
a registration checking subunit configured to detect, by the core cross-chain governance contract, whether the source chain address and the target chain address are registered at the core blockchain;
a parameter validity checking subunit configured to determine validity of the cross-chain transaction parameter if the source chain address and the target chain address are registered in the core blockchain;
wherein, the target block information sending module includes:
and the target block information sending unit is configured to send the block header information of the target block to the second block chain according to the target chain address so that the second block chain carries out the target cross-chain transaction according to the block header information of the target block.
16. A data streaming device of a cross-region block chain, which is characterized by being applied to a first block chain; wherein the device comprises:
The target data acquisition module is configured to respond to a target address uplink request for target data, and the first blockchain acquires the target data, wherein an intelligent contract is deployed on the first blockchain, and the intelligent contract on the first blockchain comprises a first business contract and a first cross-chain governance contract; determining that the target data relates to a target cross-chain transaction of the first blockchain and a second blockchain;
the target cross-chain transaction data generation module is configured to execute first operation content corresponding to the first blockchain in the target data through the first business contract so as to obtain a first operation result; processing the first operation result and the target data through the first cross-link management contract, and constructing a target cross-link transaction in the first blockchain to generate target cross-link transaction data;
a first block generation module configured to store the target cross-chain transaction data in a first block, the first block comprising block header information;
the first block information sending module is configured to send the block header information of the first block to a core block chain, so that the target cross-chain transaction data is sent to a second block chain through the core block chain, the intelligent contract in the second block chain is used for verifying the block header information of a target block, after the block header of the target block passes verification, the target cross-chain transaction data is obtained from the target block of the core block chain based on the block header information of the target block, and second operation content corresponding to the second block chain in the target cross-chain transaction data is executed to obtain a second operation result, wherein the core block chain does not belong to the first block chain and the second block chain.
17. The apparatus of claim 16, wherein the target cross-link transaction data, when generated, further generates a first transaction log for the target cross-link transaction, the first transaction log comprising cross-link transaction parameters for the target cross-link transaction; wherein, the first block information sending module includes:
the first block information sending unit is configured to send the block header information of the first block to a core block chain so that the core block chain can verify the block header information of the first block;
a first transaction log sending unit configured to send the first transaction log to the core blockchain in response to a transaction parameter acquisition request of the core blockchain so that the core blockchain acquires the cross-chain transaction parameter;
a first merck tree evidence generation unit configured to generate a first merck tree evidence from a first merck tree of the target cross-chain transaction data in the first block in response to a data evidence acquisition request of the core blockchain;
a first merck tree evidence sending unit configured to send the first merck tree evidence to the core blockchain to send the target cross-chain transaction data to the second blockchain through the core blockchain to conduct the target cross-chain transaction.
18. A data streaming device of a cross-region block chain, which is characterized by being applied to a second block chain; wherein the device comprises:
the target block information acquisition module is configured to receive block header information of a target block sent by a core block chain, wherein the target block is used for recording target cross-chain transaction data between a first block chain and the second block chain, the target cross-chain transaction data is sent to the core block chain by the first block chain, the target cross-chain transaction data is generated after processing target data and a first operation result of the target data through a first cross-chain management contract in the first block chain, the first operation result is obtained after executing a first operation content corresponding to the first block chain in the target data through a first business contract in the first block chain, and the target data relates to target cross-chain transactions of the first block chain and the second block chain;
the target block information verification module is configured to verify the block header information of the target block through an intelligent contract deployed on the second block chain;
The target cross-chain transaction data acquisition second module is configured to acquire target cross-chain transaction data of target cross-chain transaction from the target block based on the block head information of the target block after the block head information of the target block passes verification;
the second result acquisition module is configured to execute second operation content corresponding to the second blockchain in the target cross-chain transaction data so as to acquire a second operation result;
and a second block generation module configured to store the target cross-chain transaction data and the second operation result in a second block of the second blockchain to complete the target cross-chain transaction.
19. The apparatus of claim 18, wherein the block header information of the target block comprises block address information of the target block, and the smart contracts deployed on the second blockchain comprise a second synchronization contract and a second cross-chain governance contract; wherein, the target block information verification module includes:
a target block information verification unit configured to verify the block header information of the target block by the second synchronization contract to determine validity of the block address information of the target block;
A second merck tree evidence obtaining unit configured to obtain cross-chain transaction parameters of the target cross-chain transaction data and a second merck tree evidence for the target cross-chain transaction data based on the block header information of the target block;
a second merck tree proof verification unit configured to verify the second merck tree proof by the second cross-link governance contract to determine security of the target cross-link transaction data;
and the cross-link transaction parameter validity checking unit is configured to check the cross-link transaction parameter through the second cross-link management contract so as to determine the validity of the cross-link transaction parameter.
20. The apparatus of claim 18, wherein the second blockchain communicates data with the core blockchain through a second relay device; the target block information acquisition module includes:
a second detection unit configured to detect the core blockchain through the second relay device by the second blockchain;
and the target block information acquisition unit is configured to acquire block header information of the target block from the core block chain through the second relay equipment when the second relay equipment detects that the newly added target block exists in the core block chain and target cross-chain transaction data is stored in the target block.
21. An electronic device, comprising:
one or more processors;
storage means for storing one or more programs,
the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the method of any of claims 1-10.
22. A computer readable storage medium, on which a computer program is stored, characterized in that the program, when being executed by a processor, implements the method according to any of claims 1-10.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011367758.0A CN114567643B (en) | 2020-11-27 | 2020-11-27 | Cross-blockchain data transfer method, device and related equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011367758.0A CN114567643B (en) | 2020-11-27 | 2020-11-27 | Cross-blockchain data transfer method, device and related equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114567643A CN114567643A (en) | 2022-05-31 |
CN114567643B true CN114567643B (en) | 2023-05-23 |
Family
ID=81711619
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011367758.0A Active CN114567643B (en) | 2020-11-27 | 2020-11-27 | Cross-blockchain data transfer method, device and related equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114567643B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115118528B (en) * | 2022-08-26 | 2022-10-28 | 人民法院信息技术服务中心 | Block chain security evaluation method, device, equipment and storage medium |
CN118297594A (en) * | 2023-01-05 | 2024-07-05 | 腾讯科技(深圳)有限公司 | Resource processing method, device, computer equipment and blockchain system |
CN116308368B (en) * | 2023-05-24 | 2023-07-18 | 国网区块链科技(北京)有限公司 | Relay block chain cross-chain data secure storage method and device and related equipment |
CN116827957B (en) * | 2023-08-30 | 2023-11-07 | 腾讯科技(深圳)有限公司 | Information processing method, device, equipment and medium based on multi-block chain |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2019141984A1 (en) * | 2018-01-17 | 2019-07-25 | SETL Development Limited | Interaction between blockchains |
CN111107136A (en) * | 2019-12-05 | 2020-05-05 | 上海中信信息发展股份有限公司 | Block chain cross-chain relay method based on IPFS |
CN111914021A (en) * | 2020-07-02 | 2020-11-10 | 连连智能科技有限公司 | Cross-block-chain interaction method and system, computer equipment and storage medium |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109919615B (en) * | 2019-03-01 | 2021-04-02 | 上海分布信息科技有限公司 | Cross-chain data interaction method and system based on block chain |
CN110597925B (en) * | 2019-08-15 | 2021-09-14 | 腾讯科技(深圳)有限公司 | Cross-chain data processing method and device based on block chain |
CN110597907B (en) * | 2019-09-10 | 2021-10-29 | 腾讯科技(深圳)有限公司 | Cross-block-chain data information synchronization method, device, equipment and medium |
CN110650189B (en) * | 2019-09-20 | 2022-01-18 | 深圳供电局有限公司 | Relay-based block chain interaction system and method |
-
2020
- 2020-11-27 CN CN202011367758.0A patent/CN114567643B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2019141984A1 (en) * | 2018-01-17 | 2019-07-25 | SETL Development Limited | Interaction between blockchains |
CN111107136A (en) * | 2019-12-05 | 2020-05-05 | 上海中信信息发展股份有限公司 | Block chain cross-chain relay method based on IPFS |
CN111914021A (en) * | 2020-07-02 | 2020-11-10 | 连连智能科技有限公司 | Cross-block-chain interaction method and system, computer equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN114567643A (en) | 2022-05-31 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN114567643B (en) | Cross-blockchain data transfer method, device and related equipment | |
CN112214780B (en) | Data processing method and device, intelligent equipment and storage medium | |
CN108665372B (en) | Information processing, inquiring and storing method and device based on block chain | |
US11501533B2 (en) | Media authentication using distributed ledger | |
CN101465848B (en) | Secure digital signature system | |
CN112000976B (en) | Authentication management method, device, medium and electronic equipment for block chain system | |
CN112101942B (en) | Transaction request processing method, system, device and equipment based on block chain | |
WO2022166637A1 (en) | Blockchain network-based method and apparatus for data processing, and computer device | |
CN113328997B (en) | Alliance chain crossing system and method | |
AU2019380381A1 (en) | Smart logistics management using blockchain | |
CN112613877B (en) | Intelligent contract triggering method and device applied to block chain network and related equipment | |
CN110149323B (en) | Processing device with ten-million-level TPS (platform secure protocol) contract processing capacity | |
CN112311779B (en) | Data access control method and device applied to block chain system | |
CN113706313A (en) | Financing method, system and computer readable storage medium based on block chain | |
US20240232381A1 (en) | Systems and methods for conducting blockchain actions based on network mappings of self-executing program characteristics | |
CN115967508A (en) | Data access control method and device, equipment, storage medium and program product | |
CN116975901A (en) | Identity verification method, device, equipment, medium and product based on block chain | |
CN113129008B (en) | Data processing method, device, computer readable medium and electronic equipment | |
CN110276693B (en) | Insurance claim settlement method and system | |
CN114172655A (en) | Secure multi-party computing data system, method, equipment and data processing terminal | |
CN115705601A (en) | Data processing method and device, computer equipment and storage medium | |
CN113792301A (en) | Block chain-based Internet of things data access method and device | |
CN114641967A (en) | Callback mechanism for blockchain transactions | |
CN110827034B (en) | Method and apparatus for initiating a blockchain transaction | |
CN115378605B (en) | Data processing method and device based on block chain |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
REG | Reference to a national code |
Ref country code: HK Ref legal event code: DE Ref document number: 40071423 Country of ref document: HK |
|
GR01 | Patent grant | ||
GR01 | Patent grant |