Multi-level block chain child-mother chain cross-chain data processing method

Through the multi-level blockchain sub-chain cross-chain data processing method, the centralization risk and data island problem of the notary mechanism in blockchain technology are solved, efficient data interoperability and security between blockchains are achieved, and the Scalability and flexibility of blockchain systems.

CN118573348APending Publication Date: 2024-08-30GANSU WANWEI INFORMATION TECH CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410457865.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-04-17
Publication Date
2024-08-30

AI Technical Summary

Technical Problem

The notary mechanism in blockchain technology has the risk of centralization and single point of failure. It is difficult to achieve efficient interoperability and data exchange between different blockchains, leading to the problem of data islands and affecting the scalability and performance of the blockchain. flexibility.

Method used

Adopting a multi-level cross-chain data processing method of blockchain, child and parent chains, through parent chain data push, child chain transaction writing, child chain consensus and other blockchain data synchronization, the IBTP protocol and P2P transmission are used to achieve cross-chain data interoperability. Ensure data security and transparency and avoid the involvement of intermediaries.

Benefits of technology

It improves the data interoperability and security between blockchains, reduces access costs, enhances the scalability and flexibility of the system, avoids 51% computing power attacks, and achieves security without third-party participation. Automated execution and data synchronization.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118573348A
    Figure CN118573348A
Patent Text Reader

Abstract

The invention relates to the technical field of data transmission, in particular to a multi-level block chain child-mother chain cross-chain data processing method. Through the design of the sub-chain and the mother chain, cross-chain data intercommunication among various heterogeneous chains is realized. Therefore, different block chain networks can share and exchange data more conveniently, so that the interoperability and collaboration efficiency of the whole block chain ecological system are improved. The subchain consensus mechanism needs to depend on mother chain consensus nodes to participate in consensus, and the node consensus number is not less than half of all consensus nodes of the mother chain. In this way, the fifty-first-percent computing power attack in the block chain can be avoided, and meanwhile it can be guaranteed that the data are real and cannot be tampered.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of data transmission technology, and in particular to a multi-level blockchain parent-child chain cross-chain data processing method. Background Art

[0002] Blockchain technology: Blockchain technology is a distributed, tamper-proof, decentralized data storage and transaction technology that can achieve data security, transparency and trust. Cross-chain technology: Cross-chain technology is a technology that realizes information exchange and interoperability between different blockchains, which can solve the island problem of blockchain and improve the efficiency and value of blockchain. Parent-child chain structure: The parent-child chain structure is a multi-level blockchain architecture, in which the parent chain is responsible for its own business logic, and the child chain is responsible for synchronizing the parent chain data and interacting with other blockchains, which can improve the scalability and flexibility of the blockchain.

[0003] Since its birth, blockchain technology has been widely used in many fields, such as finance, supply chain, and the Internet of Things. However, the core of blockchain technology is decentralization. Each node stores a complete transaction history, which ensures the transparency and immutability of data. However, with the growth of business and the widespread application of blockchain, the data of a single blockchain has become an information island, and data interoperability between multiple blockchains cannot be achieved. How to achieve interoperability between different blockchains? Interoperability refers to the ability to share and use information between different systems, devices, and applications.

[0004] In the blockchain field, this means that different blockchain networks can understand and interact with each other. In actual use, the notary mechanism is to select one or a group of relatively independent nodes that are mutually trusted by both parties to act as a notary as an intermediary to verify and ensure the legitimacy of the transaction when the two parties cannot trust each other. As a connector between the two parties, the notary needs to track the data status of the two chains at the same time and inform the two parties of the transaction when exchanging or transferring assets between chains. The two parties rely entirely on the information transmitted by the notary to make judgments and realize transactions.

[0005] The problem with the notary mechanism is that there is a centralization risk. Once the notary is attacked and cannot be trusted, the entire notarization system will stagnate or be at a greater security risk, and there is a serious single point failure risk. Although the industry has proposed multi-signature and distributed signature notary mechanisms to weaken the centralization risk, there is still a potential risk of malicious behavior, which is only a trade-off at present. Summary of the invention

[0006] The present invention aims to achieve interoperability between different business logics, solve the problem of blockchain data islands, and improve the scalability and flexibility of blockchain to meet the growing business needs.

[0007] A multi-level blockchain parent-child cross-chain data processing method, characterized by comprising the following steps: S1. Parent chain data push The parent chain data is pushed to the child chain through the cross-chain data protocol. The data on the parent chain is encapsulated into a cross-chain message and then sent to the child chain through the cross-chain protocol. The transaction or contract execution data of the parent chain data provider on the blockchain, that is, the data written to the blockchain contained in the parent chain blockchain transaction or the business data that needs to be shared written in the parent chain contract; Cross-chain communication requires authorization from the other blockchain to start communication. Authorization includes ledger data authorization and contract message authorization. Ledger data includes blockchain transactions, blocks and block headers. If other blockchains are authorized to obtain the ledger data of the current blockchain, specify which type of ledger data and contract messages are authorized. Based on the IBTP protocol, the cross-chain gateway converts the event data format thrown by different application chains into a unified format, including: message transmission, call content encryption, and application chain perception. Message transmission is that IBTP messages are transmitted in a P2P manner, and the main content of the message is encrypted with the other party's public key. Application chain perception is that at the IBTP protocol level, the minimum granularity that the protocol can perceive is the application chain. The protocol can only forward cross-chain transactions to the cross-chain gateway corresponding to the destination chain ID in the IBTP package. For more fine-grained on-chain contracts and user account addresses, the business structure is automatically parsed and defined in the payload field of IBTP in the application layer. S2. Subchain transaction writing Subchain transaction writing means that the subchain writes the received data into the transaction. The subchain needs to parse the received cross-chain message into the subchain blockchain data format, and then write the parsed data into the next block of the subchain. The transaction technology is that the default user of the subchain initiates a blockchain transaction to the subchain network. The default user signs the transaction. The signature rule follows the asymmetric encryption rule of the subchain block transaction. The rule is selected when the subchain is initialized. The consensus node in the network obtains the consensus node transaction pool, and the legitimacy of the transaction is also verified according to the selected encryption algorithm. The legal transaction will be included in the next block of the subchain. The data format of the subchain blockchain is block, transaction, entity, contract, account, configuration, and block is the basic unit of the blockchain. Each block Each contains a set of transactions and the hash value of the previous block to ensure the integrity and immutability of the blockchain; transactions are the basic operations in the blockchain, which describe one or more blockchain data writes. Each transaction contains a set of inputs and outputs, as well as signatures and other information; entities are participants in the blockchain, such as people, organizations, or devices; each entity has one or more public keys to verify its identity; contracts are programs executed on the blockchain, which define a set of preset rules and conditions. When these conditions are met, the contract automatically performs the corresponding operations; accounts are asset owners in the blockchain, and each account has an address for receiving and sending assets; configurations are the setting parameters of the blockchain system, including network parameters, consensus algorithm parameters, etc. S3. Subchain consensus The adoption of the sub-chain consensus mechanism requires the parent chain and its nodes to participate in the consensus, and the number of nodes that agree must not be less than half of all the consensus nodes of the parent chain. The technical requirements for nodes and consensus participation are: For the alliance chain, one or more consensus nodes will be defaulted when the blockchain is initialized. New nodes that are added later need to be added to the consensus list through the blockchain voting mechanism. The voting mechanism is generally effective when more than half or two-thirds of the nodes agree; S4. Data synchronization with other blockchains Other blockchains that need to synchronize data from the parent chain need to join the child chain through the cross-chain protocol and monitor the child chain block events. When a transaction that requires data synchronization occurs, the transaction involved in the event is parsed and written into its own block to complete data synchronization; the blockchain that synchronizes data supports smart contracts, data transparency, data security, automatic execution, no third-party involvement, and avoids intermediaries processing transactions; smart contracts are blockchains that should support smart contracts, which are programs stored on the blockchain that run when predetermined conditions are met; smart contracts are often used to automatically execute protocols so that all participants can determine the results immediately without the involvement of any middlemen and without wasting time; data transparency: the blockchain is visible to all parties, so all signatures and contract status will be recorded in the ledger in a completely transparent manner.

[0008] 2. A multi-level blockchain parent-child cross-chain data processing method according to claim 1, characterized in that it also includes S5, transaction monitoring and data synchronization When a blockchain needs to join a sub-chain, it first needs to follow the sub-chain access protocol, which is determined when the sub-chain is initialized. The first step is to establish a handshake mechanism: the blockchain first establishes a connection with the sub-chain, and the sub-chain will notify the blockchain of its current status; the second step is to initiate a transaction: when the sub-chain generates a new block, it will initiate a transaction according to the data format of the connected blockchain; the third step is to broadcast the transaction: the sub-chain broadcasts the transaction to the network of the connected blockchain; the fourth step is to verify the transaction and write it: the connected blockchain will verify the legitimacy of the transaction according to its own consensus rules and write it into the next block.

[0009] Data security: Blockchain transaction records are asymmetrically encrypted, which makes them very difficult to hack. In addition, because each record is linked to the previous and next records on the distributed ledger, a hacker must change the entire chain to change a single record. Automatic execution: Once the conditions are met, the contract is executed immediately1. Because smart contracts are digital and automated, there is no need to deal with paperwork or spend time reconciling errors that are usually caused by manually filling out documents. No third party involvement: Because there is no third party involved and encrypted transaction records are shared between participants, there is no need to question whether information has been changed for personal gain. Avoid intermediaries to process transactions: Smart contracts avoid the need to process transactions through intermediaries, thereby eliminating the associated time delays and fees. Permission control: In this system, only the parent chain can push data to the child chain, and only the parent chain validator node consensus verifies the node data. Other blockchain nodes that need to synchronize data only need to connect to the child chain to monitor transactions and synchronize data.

[0010] The beneficial effects of the present invention are: 1. Improve data interoperability. Through the design of sub-chains and parent chains, cross-chain data interoperability between multiple heterogeneous chains is achieved. This makes it easier for different blockchain networks to share and exchange data, thereby improving the interoperability and collaborative efficiency of the entire blockchain ecosystem.

[0011] 2. To enhance security, the sub-chain consensus mechanism needs to rely on the parent chain consensus nodes to participate in the consensus, and the number of node consensus must not be less than half of all the parent chain consensus nodes. This can avoid 51% computing power attacks in the blockchain, and at the same time ensure that the data is authentic and cannot be tampered with.

[0012] 3. Reduce access costs. Other blockchains that need to synchronize data only need to access the sub-chain to monitor transactions and synchronize data, without the need to interact directly with the parent chain. This greatly reduces the cost and complexity of other blockchains accessing and using cross-chain services.

[0013] 4. Improve scalability. Through the design of sub-chains and parent chains, more blockchain networks can be easily added to the system. This makes the entire system highly scalable and can adapt to the ever-changing and developing blockchain ecosystem. BRIEF DESCRIPTION OF THE DRAWINGS

[0014] Figure 1 It is a schematic diagram of the process of the present invention. DETAILED DESCRIPTION

[0015] The core of this invention is to introduce sub-chains, and the main problem to be solved is the cross-chain data intercommunication between multiple heterogeneous chains.

[0016] The technical solution of this system is as follows: 1. Parent chain data push: The parent chain data is pushed to the child chain through the cross-chain data protocol. In this process, the data on the parent chain is encapsulated into a cross-chain message and then sent to the child chain through the cross-chain protocol.

[0017] Parent chain data: refers to the transaction or contract execution data of the data provider on the blockchain, that is, the data written to the blockchain contained in the parent chain blockchain transaction or the business data that needs to be shared written in the contract on the parent chain.

[0018] Cross-chain data requirements: Cross-chain communication requires authorization from the other blockchain before communication can begin. Authorization includes ledger data authorization and contract message authorization. Ledger data includes blockchain transactions, blocks, and block headers. If you authorize other blockchains to obtain the ledger data of the current blockchain, you can specify which type of ledger data and contract messages to authorize.

[0019] Cross-chain protocol: IBTP (InterBlockchain Transfer Protocol) supports cross-chain transaction routing and trusted verification between heterogeneous blockchains. Based on the IBTP protocol, the cross-chain gateway can convert the event data format thrown by different application chains into a unified structure. The main contents include: message transmission, call content encryption, and application chain perception. Message transmission: IBTP messages are transmitted in a P2P manner, and the main content of the message is encrypted with the other party's public key to ensure that the message content is not stolen by a third party. Call content encryption: The call content is encrypted with the symmetric key negotiated between the cross-chain gateways and then sent to the sub-chain to ensure the security and reliability of the transmission call. Application chain perception: At the IBTP protocol level, the minimum granularity that the protocol can perceive is the application chain. The protocol can only forward cross-chain transactions to the cross-chain gateway corresponding to the destination chain ID in the IBTP package. For more fine-grained on-chain contracts and user account addresses, the business structure is automatically parsed and defined in the payload field of IBTP in the application layer.

[0020] 2. Subchain transaction writing: The subchain writes the received data into the transaction. In this process, the subchain needs to parse the received cross-chain message into the subchain blockchain data format, and then write the parsed data into the next block of the subchain.

[0021] Technical requirements for transactions: The default user of the subchain initiates a blockchain transaction to the subchain network, and the default user signs the transaction. The signature rule follows the asymmetric encryption rule of the subchain block transaction, which is selected when the subchain is initialized (it can be a general encryption algorithm such as RSA, ECDSA, etc.). The consensus node in the network obtains the consensus node transaction pool, and the legitimacy of the transaction is also verified according to the selected encryption algorithm. The legal transaction will be included in the next block of the subchain.

[0022] The data format of the subchain blockchain: mainly specifies six data objects: block, transaction, entity, contract, account, and configuration. Block: Block is the basic unit of the blockchain. Each block contains a set of transactions and the hash value of the previous block to ensure the integrity and immutability of the blockchain. Transaction: Transaction is the basic operation in the blockchain, which describes one or more blockchain data writes. Each transaction contains a set of inputs and outputs, as well as information such as signatures. Entity: Entity is a participant in the blockchain, which can be a person, organization, or device. Each entity has one or more public keys to verify its identity. Contract: A contract is a program executed on the blockchain, which defines a set of preset rules and conditions. When these conditions are met, the contract automatically performs the corresponding operations. Account: An account is an asset owner in the blockchain. Each account has an address for receiving and sending assets. Configuration: Configuration is the setting parameters of the blockchain system, including network parameters, consensus algorithm parameters, etc.

[0023] 3. Consensus mechanism: The sub-chain consensus mechanism requires the participation of the parent chain and its nodes, and the number of nodes that agree must not be less than half of all the consensus nodes of the parent chain. This can avoid a 51% computing power attack in the blockchain and also ensure the authenticity of the data.

[0024] Technical requirements for nodes and consensus participation: For consortium chains, one or more consensus nodes will be defaulted when the blockchain is initialized. New nodes added later need to be added to the consensus list through the blockchain voting mechanism (voted by existing consensus nodes). The voting mechanism is generally effective when more than half or two-thirds of the nodes agree (determined by the parameters of the initialized subchain).

[0025] 4. Data synchronization of other blockchains: Other blockchains that need to synchronize parent chain data need to join the subchain through the cross-chain protocol and monitor the subchain block events. When a transaction that requires data synchronization occurs, the transaction involved in the event is parsed and written into its own block to complete data synchronization.

[0026] Specific requirements for blockchains that synchronize data: support for smart contracts, data transparency, data security, automatic execution, no third-party involvement, and avoidance of intermediaries to handle transactions. Smart contracts: The blockchain should support smart contracts, which are programs stored on the blockchain that run when predetermined conditions are met. Smart contracts are often used to automatically execute agreements so that all participants can determine the results immediately without any middlemen or time wasted. Data transparency: The blockchain is visible to all parties, so all signatures (and contract status) will be recorded in the ledger in a completely transparent manner.

[0027] Data security: Blockchain transaction records are asymmetrically encrypted, which makes them very difficult to hack. In addition, because each record is linked to the previous and next records on the distributed ledger, a hacker would have to change the entire chain to change a single record. Automatic execution: Once the conditions are met, the contract is executed immediately1. Because smart contracts are digital and automated, there is no need to deal with paperwork or spend time reconciling errors that are usually caused by manually filling out documents. No third party involvement: Because there is no third party involved and encrypted transaction records are shared between participants, there is no need to question whether information has been changed for personal gain. Avoid intermediaries to process transactions: Smart contracts avoid the need to process transactions through intermediaries, thereby eliminating the associated time delays and fees.

[0028] 5. Permission control: In this system, only the parent chain can push data to the child chain, and only the parent chain validator node consensus verifies the node data. Other blockchain nodes that need to synchronize data only need to connect to the child chain to monitor transactions and synchronize data.

[0029] Specific steps for transaction monitoring and data synchronization: When a blockchain needs to join a subchain, it first needs to follow the subchain's access protocol, which is defined when the subchain is initialized. The first step is to establish a handshake mechanism: The blockchain first establishes a connection with the subchain, and the subchain will notify the blockchain of its current status. The second step is to initiate a transaction: When the subchain generates a new block, it will initiate a transaction according to the data format of the access blockchain. The third step is to broadcast the transaction: The subchain broadcasts the transaction to the network of the access blockchain. The fourth step is to verify the transaction and write it: The access blockchain will verify the legitimacy of the transaction according to its own consensus rules and write it into the next block. The specific implementation may vary depending on the access blockchain technology.

[0030] Example: During the specific implementation, we assume that we have three blockchain networks: parent chain A, child chain B, and another blockchain C that needs to synchronize data.

[0031] 1. Initialization: First, initialize subchain B, specify the consensus mechanism in the genesis block (currently the alliance chain is used as the premise for discussion, and the main optional consensus mechanisms are POS, DPOS, and PBFT) and set the network protocol of parent chain A. This process requires the consensus node of parent chain A to participate in the consensus, which can be understood as: the blockchain node client of subchain B depends on the blockchain node client of parent chain A, or at least the consensus node client of subchain B can communicate and verify with the consensus node of parent chain A.

[0032] 2. Data push: The parent chain A and the child chain B establish a connection through the cross-chain protocol. If the parent chain A is an existing chain, considering that the parent chain A cannot interact with the child chain B through the network, the parent chain A implements the smart contract for data storage. When the parent chain A packages the transaction and broadcasts the data storage transaction to the entire network, the child chain B can also obtain the transaction details (all transaction information of the blockchain is completely open to all nodes participating in the entire blockchain). When the child chain B receives the data storage transaction, it packages the transaction and its data into a block and then broadcasts it to the entire child chain B network.

[0033] 3. Transaction writing: When the validator node of subchain B receives the block, it verifies the legitimacy of the block by obtaining the corresponding transaction of parent chain A. If the consensus of the entire network of subchain B is legal, the block is written into the chain of subchain B.

[0034] Legitimacy standard: The block data has been written to chain A and has been confirmed by the consensus of parent chain A.

[0035] 4. Consensus mechanism: When writing a new block, the consensus mechanism of subchain B requires the subchain B consensus node client to participate in the consensus. It needs to verify whether the original transaction of the block is legal on the parent chain A, and verify whether the block complies with the block generation protocol of subchain B and whether the signature of the packaged block is legal. Only when the number of consensus nodes participating in the consensus is not less than half of all consensus nodes of the parent chain, the block will be added to the subchain B.

[0036] 6. Data synchronization: Blockchain C first needs to listen to block events on subchain B. This is usually achieved by registering an event listener on subchain B. The event listener is triggered when each new block is added to subchain B. When the event listener is triggered, blockchain C needs to screen all transactions in the new block to find the transactions that need to be synchronized. This process is usually achieved by checking the metadata of the transaction. For example, if the metadata of a transaction contains the "need to be synchronized" mark, then the transaction needs to be synchronized to blockchain C. After finding the transactions that need to be synchronized, blockchain C needs to parse these transactions into a format that it can understand and process. This process may involve some data conversion and formatting operations (the subchain B data format M is determined when the subchain is initialized, and the synchronized blockchain C data format is blockchain C transaction format N. The blockchain C transaction format will be different for different types of blockchains, and the event listener will complete the conversion between format M and format N). Blockchain C writes the parsed transaction data to its new block. This process is usually achieved by submitting a new transaction. The new transaction will contain the parsed data and be added to the next block of blockchain C.

[0037] Event Listeners: Event listeners play an important role in blockchains, connecting smart contract events with other blockchain networks (or backend microservices). When specific events occur in the Ethereum network, event listeners (such as Ethereum Eventeum) listen to these events and broadcast them to the blockchain network (or middleware layer) that synchronizes data. This technology provides separation of concerns, meaning that blockchain C that synchronizes data does not have to subscribe directly to events in subchain A.

[0038] Timing control: In the blockchain system, each new block is timestamped when it is generated. Eventually, the blocks are connected to form a blockchain in the order of their generation time, and each independent node is connected through the P2P network, thus forming a decentralized distributed timestamp service system for recording information data. Since the blocks are timestamped as soon as they are generated, the next block can be determined by sorting them by time. Therefore, all parsing data and data synchronization must be carried out strictly in the order of block generation.

[0039] Improve data interoperability: Introduce subchains to convert cross-chain data interoperability between multiple heterogeneous chains into unified subchains and multiple chains. In this way, no matter what operations occur on the parent chain, it will not affect the subchain, and vice versa. This design allows the subchain to be optimized according to its specific application needs without being restricted by the constraints of the parent chain. During the cross-chain interaction process, both parties of the cross-chain can verify the source, authenticity, legitimacy and validity of each other's transactions. For example, the SPV mode automatically creates an SPV certificate on the sidechain by sending the transaction to a special address of the parent chain and initiating a transaction to unlock the corresponding assets on the sidechain. Subchain technology provides an effective solution for achieving interoperability between blockchains. By introducing subchains, we can achieve data interoperability between blockchains of various structures, thereby greatly improving the flexibility and high scalability of blockchain technology in various application scenarios.

[0040] Enhanced security: The subchain consensus mechanism needs to rely on the parent chain consensus nodes to participate in the consensus, and the number of node consensus must not be less than half of all the parent chain consensus nodes. This can avoid 51% computing power attacks in the blockchain, and at the same time ensure that the data is authentic and cannot be tampered with. In addition, technically, event listeners are introduced. Although event listening may be a backend service, the data source comes from the subchain, and data source reverse query and verification can also be provided to ensure data security.

[0041] For the existing parent chain, the node consensus and data synchronization are completed through its own consensus algorithm, and other parent nodes are discovered and connected through the p2p network. For the parent node data that needs to be shared, after the parent node consensus produces a block, the data is pushed to the inter-chain protocol (IBTP). The inter-chain protocol service packages and pushes the data to the child node network. Each child node verifies whether the data is legal, including the parent chain data and data signature. If the verification is passed, it is written into the child chain block, and if it fails, the data is discarded. The network of the parent chain node and the child chain node is interconnected, but the child chain can only discover the parent chain node through the parent chain p2p network and download the data after the parent chain consensus. The child chain does not affect the parent chain consensus and data. The free nodes of the parent chain or child chain can only download block data through the parent-child chain p2p network, and all free nodes do not participate in the consensus. For other blockchains that need to share the parent chain data, they only need to listen to the child chain block event and obtain data on demand, which will not affect the entire parent-child chain system. Note: Although the child nodes and parent nodes are interconnected, the actual data communication is through the cross-chain protocol. Deployment process description: For an existing parent chain, only the child chain nodes need to be deployed on the parent chain server, and the number of deployments must exceed more than half of the parent chain consensus nodes. The cross-chain protocol is implemented by the child chain node service program.

[0042] Glossary Blockchain: A concatenated text record that connects and protects content through cryptography; Consortium chain: a blockchain that is only open to members of a specific group and has limited third-party bookkeeping permissions, and usually has a complete permission mechanism; Bookkeeping: writing text records into the blockchain; Node: An independent server that runs the blockchain main program. It can be divided into multiple roles according to the different functions performed, such as accounting node, observation node, etc. Consensus: After the accounting node completes the accounting, other nodes reach a consensus on the accounting results and record the results on the local blockchain; Hash function: a function that converts variable-length string records into fixed-length ones; Block: A cryptographically protected written record (transaction) that can be verified to prove that the record has not been modified; Block header: includes other data besides the text record itself, such as hash, random number, etc. Block generation / packaging: record the text into the block; Fork: In a blockchain system, a block is followed by multiple legitimate blocks; Validator node: A node that verifies blocks in the blockchain. The validation node is also a candidate node for the consensus node. Consensus node: a node responsible for consensus and block generation; Interoperability: refers to the ability of different systems, devices, and applications to share and utilize information. In the blockchain field, this means that different blockchain networks can understand and interact with each other.

Claims

1. A multi-level blockchain parent-child cross-chain data processing method, Features The steps include: S1. Parent chain data push The parent chain data is pushed to the child chain through the cross-chain data protocol. The data on the parent chain is encapsulated into a cross-chain message and then sent to the child chain through the cross-chain protocol. The transaction or contract execution data of the parent chain data provider on the blockchain, that is, the data written to the blockchain contained in the parent chain blockchain transaction or the business data that needs to be shared written in the parent chain contract; Cross-chain communication requires authorization from the other blockchain to start communication. Authorization includes ledger data authorization and contract message authorization. Ledger data includes blockchain transactions, blocks, and block headers. If other blockchains are authorized to obtain the ledger data of the current blockchain, specify which type of ledger data and contract messages are authorized. Based on the IBTP protocol, the cross-chain gateway converts the event data formats thrown by different application chains into a unified format, including: message transmission, call content encryption, and application chain perception; message transmission is that IBTP messages are transmitted in a P2P manner, and the main content of the message is encrypted using the other party's public key. Application chain perception is that at the IBTP protocol level, the smallest granularity that the protocol can perceive is the application chain; the protocol can only forward cross-chain transactions to the cross-chain gateway corresponding to the destination chain ID in the IBTP package; for finer-grained on-chain contracts and user account addresses, the business structure is parsed and defined in the payload field of IBTP in the application layer; S2. Subchain transaction writing Subchain transaction writing means that the subchain writes the received data into the transaction. The subchain needs to parse the received cross-chain message into the subchain blockchain data format, and then write the parsed data into the next block of the subchain. The transaction technology is that the default user of the subchain initiates a blockchain transaction to the subchain network. The default user signs the transaction. The signature rule follows the asymmetric encryption rule of the subchain block transaction. The rule is selected when the subchain is initialized. The consensus node in the network obtains the consensus node transaction pool, and the legitimacy of the transaction is also verified according to the selected encryption algorithm. The legal transaction will be included in the next block of the subchain. The data format of the subchain blockchain is block, transaction, entity, contract, account, configuration, and block is the basic unit of the blockchain. Each block Each contains a set of transactions and the hash value of the previous block to ensure the integrity and immutability of the blockchain; transactions are the basic operations in the blockchain, which describe one or more blockchain data writes. Each transaction contains a set of inputs and outputs, as well as signatures and other information; entities are participants in the blockchain, such as people, organizations, or devices; each entity has one or more public keys to verify its identity; contracts are programs executed on the blockchain, which define a set of preset rules and conditions. When these conditions are met, the contract automatically performs the corresponding operations; accounts are asset owners in the blockchain, and each account has an address for receiving and sending assets; configurations are the setting parameters of the blockchain system, including network parameters, consensus algorithm parameters, etc. S3. Subchain consensus The adoption of the sub-chain consensus mechanism requires the parent chain and its nodes to participate in the consensus, and the number of nodes that agree must not be less than half of all the consensus nodes of the parent chain. The technical requirements for nodes and consensus participation are: For the alliance chain, one or more consensus nodes will be defaulted when the blockchain is initialized. New nodes that are added later need to be added to the consensus list through the blockchain voting mechanism. The voting mechanism is generally effective when more than half or two-thirds of the nodes agree; S4. Data synchronization with other blockchains Other blockchains that need to synchronize data from the parent chain need to join the child chain through the cross-chain protocol and monitor the child chain block events. When a transaction that requires data synchronization occurs, the transaction involved in the event is parsed and written into its own block to complete data synchronization; the blockchain that synchronizes data supports smart contracts, data transparency, data security, automatic execution, no third-party involvement, and avoids intermediaries processing transactions; smart contracts are blockchains that should support smart contracts, which are programs stored on the blockchain that run when predetermined conditions are met; smart contracts are often used to automatically execute protocols so that all participants can determine the results immediately without the involvement of any middlemen and without wasting time; data transparency: the blockchain is visible to all parties, so all signatures and contract status will be recorded in the ledger in a completely transparent manner.

2. According to the multi-level blockchain parent-child chain cross-chain data processing method described in claim 1, Features Also includes S5, transaction monitoring and data synchronization When a blockchain needs to join a sub-chain, it first needs to follow the sub-chain access protocol, which is determined when the sub-chain is initialized. The first step is to establish a handshake mechanism: the blockchain first establishes a connection with the sub-chain, and the sub-chain will notify the blockchain of its current status; the second step is to initiate a transaction: when the sub-chain generates a new block, it will initiate a transaction according to the data format of the connected blockchain; the third step is to broadcast the transaction: the sub-chain broadcasts the transaction to the network of the connected blockchain; the fourth step is to verify the transaction and write it: the connected blockchain will verify the legitimacy of the transaction according to its own consensus rules and write it into the next block.

Citation Information

Cited By

  • Blockchain control device, blockchain control method, and blockchain control program

    WO2026110263A1