Cross-chain data transmission system based on block chain

By establishing data links, verifying digital signatures, deploying smart contracts and hidden transmission channels in cross-chain data transmission systems, the security and speed problems in cross-chain data transmission are solved, and more efficient and secure data transmission is achieved.

CN119211267AInactive Publication Date: 2024-12-27XUZHOU BAIJUAN CULTURE TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411159494.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-22
Publication Date
2024-12-27
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

The existing cross-chain data transmission technology has problems such as insufficient data security and unstable transmission speed.

Method used

By establishing a data link to a parallel blockchain, using consensus mechanism to verify digital signatures and store data, deploying smart contracts, hiding user data transactions and transmission records, selecting appropriate nodes to process data transmission, and improving data transmission security through hiding transmission channels and speed.

Benefits of technology

It significantly improves the security and speed of data transmission, ensures that user data is not stolen during transmission, and optimizes network efficiency during data transmission.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119211267A_ABST
    Figure CN119211267A_ABST
Patent Text Reader

Abstract

The invention discloses a cross-chain data transmission method based on a block chain, and the method comprises the following steps: 1, building a data chain, segmenting the block chain into blocks, and connecting parallel block chains through the data chain; 2, verifying the digital signature, spreading the data on the block chain by using a consensus mechanism, and storing the data; step 3, the master node distributes nodes to process the transmission data, and deploys an intelligent contract on the block chain after the block chain completes data synchronization; and 4, hiding user data transactions and data transmission records, and querying hidden user transactions. The cross-chain data transmission system based on the block chain comprises a cross-chain management module, a data management module and a security management module. The method has the advantages of being high in safety and improving the data transmission speed.
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 cross-chain data transmission system based on blockchain. Background Art

[0002] Cross-chain technology refers to connecting two or more different blockchains so that the assets or transaction information on these chains can be transferred to each other. It can integrate data on a wide variety of blockchains into the same infrastructure and support various forms of data flow to achieve the development of blockchain technology.

[0003] With the rapid development of blockchain technology, cross-chain data transmission technology has also developed, helping people realize data transmission between blockchains. However, the existing technology may cause data theft during cross-chain data transmission, security cannot be guaranteed, and the data transmission processing speed is unstable. Therefore, it is necessary to design a cross-chain data transmission system based on blockchain that has high security and improves data transmission speed. Summary of the invention

[0004] The purpose of the present invention is to provide a cross-chain data transmission system based on blockchain to solve the problems raised in the above background technology.

[0005] In order to solve the above technical problems, the present invention provides the following technical solutions: a cross-chain data transmission method based on blockchain, comprising the following steps:

[0006] Step 1: Establish a data chain, divide the blockchain into blocks, and use the data chain to connect parallel blockchains;

[0007] Step 2: Verify the digital signature, use the consensus mechanism to propagate the data on the blockchain, and store the data;

[0008] Step 3: The master node assigns nodes to process the transmitted data and deploys the smart contract on the blockchain after the blockchain completes data synchronization;

[0009] Step 4: Hide user data transactions and data transmission records, and query hidden user transactions.

[0010] According to the above technical solution, the steps of establishing a data chain, dividing the blockchain into blocks, and connecting parallel blockchains using the data chain include:

[0011] The data link establishment module establishes a cross-chain data link and connects to the target blockchain. The data link connection module detects the network status of the data transmission party and identifies the network signal strength and stability of the data transmission party. The cross-chain data link accesses the data transmission party's terminal device interface through the optimal network line. The cross-chain data link establishes a connection with the target blockchain. The target blockchain sends each other's genesis block and block ID through the cross-chain data link. The data link connection module obtains the genesis block for analysis, identifies the verification information and block header information on the genesis block, and compares the verification information, block ID and block header information with the information data provided by the target blockchain. If the data comparison is exactly the same, the data transmission node is registered on the target blockchain respectively. If there is a difference in the data comparison, the connection is rejected. The blockchain segmentation module divides the target blockchain into multiple independent blocks.

[0012] According to the above technical solution, the steps of verifying the digital signature, propagating the data on the blockchain using the consensus mechanism, and storing the data include:

[0013] The consensus module identifies the consensus algorithms of the target blockchains respectively. The consensus module selects the corresponding algorithms from the database for the consensus algorithms of each target blockchain to perform data transmission at the consensus layer. The data storage module obtains the transmitted data and stores it in the blocks on the blockchain. The synchronous consensus module obtains the blocks packaged by the consensus module and transmits them to the target blockchain through the cross-chain data chain. In the target blockchain, the consensus mechanism of the target blockchain is used to broadcast the data to the blockchain. The digital signature module obtains the data transmitted by the user and analyzes it, identifies the digital signature and user data in the data sent by the user, and compares the two to determine whether it is a legitimate user.

[0014] According to the above technical solution, the step of transmitting data by the consensus module using the consensus mechanism includes:

[0015] The consensus module detects and identifies the consensus algorithm on the target blockchain, selects the corresponding confession algorithm in the database, and broadcasts the data to the blockchain according to the consensus algorithm of the blockchain. The consensus module injects data transaction records into the block. The data is arranged in time in the block. The consensus node regularly packages the block and sends it to the target blockchain through the cross-chain data chain.

[0016] According to the above technical solution, the master node allocates nodes to process the transmission data, and the steps of deploying the smart contract on the blockchain after the blockchain completes data synchronization include:

[0017] The node allocation module calls the backup data transmission node according to the amount of data. The blockchain elects the master node through node election. The master node obtains all the data to be transmitted and counts the size T of the data to be transmitted, whose unit is M. When the data size T is less than the first threshold, the resident nodes including the master node transmit the data. When the data size T is greater than the first threshold and less than the second threshold, the master node calls the first batch of backup nodes preset in the system to jointly transmit the data. When the data size is greater than the second threshold, the master node calls all the backup nodes preset in the system for data transmission.

[0018] Users generate digital identities from identity information data through smart contracts, obtain the data transmitted by users to identify the user authentication information carried therein, and the smart contract module automatically identifies the user's digital identity; the smart contract management method for cross-chain data chains is specifically as follows: obtain user transmitted data, scan and identify the data summary and encrypted text therein, use the authorized public key in the smart contract to decrypt the encrypted text, and compare the decrypted text with the data summary. If they are exactly the same, the user data is legal and can be transmitted through the cross-chain data chain.

[0019] According to the above technical solution, the step of concealing user data transaction and data transmission records includes:

[0020] The user obtains a random number of the data transmission address for hidden transmission, uses the user's private key to decrypt the random number to obtain the data transmission address, encrypts the data through the user's private key, and packages the data and sends it to the data transmission address. A temporary data transmission tunnel node is built at the data transmission address, and the main node detection is shielded. The system obtains the data packet that needs to be secretly transmitted and compresses the data packet into a data block through a compression device, and transmits the data block through a temporary data transmission channel.

[0021] According to the above technical solution, the cross-chain data transmission system based on blockchain includes:

[0022] Cross-chain management module, used to manage cross-chain data chains and blockchains;

[0023] Data management module, used to synchronize data between parallel chains and manage data processing nodes;

[0024] Security management module, used to deploy smart contracts, verify digital signatures and hide user transaction records.

[0025] According to the above technical solution, the cross-chain management module includes:

[0026] Data chain establishment module, used to establish cross-chain data chains;

[0027] Data chain connection module, used to connect parallel blockchains;

[0028] Blockchain splitting module, used to split the blockchain.

[0029] According to the above technical solution, the data management module includes:

[0030] Node allocation module, used to elect the master node and control the data processing nodes through the master node;

[0031] Consensus module, used to synchronize data according to different parallel chains;

[0032] A data storage module, used to store data in blocks;

[0033] Synchronous consensus module, used to synchronize data in the target blockchain.

[0034] According to the above technical solution, the security management module includes:

[0035] A hidden transfer generation module, used to conceal transactions conducted by users;

[0036] The hidden query module is used to find the hidden transactions of users;

[0037] Smart contract module, used to deploy smart contracts on the blockchain;

[0038] The digital signature module is used to verify the digital signature and determine the user's identity.

[0039] Compared with the prior art, the beneficial effects achieved by the present invention are as follows: the present invention, by providing a consensus module, utilizes the consensus mechanism of the blockchain to broadcast data on the blockchain, and the consensus module can identify the consensus algorithm on the blockchain, the consensus module selects the corresponding consensus algorithm, and can quickly transmit data to the target blockchain, the digital signature module and the smart contract module verify the user identity information, ensure that the user is a legitimate user and has the data transmission authority, protect the user data from being stolen during the data transmission process, and greatly improve the security of data transmission. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] The accompanying drawings are used to provide a further understanding of the present invention and constitute a part of the specification. Together with the embodiments of the present invention, they are used to explain the present invention and do not constitute a limitation of the present invention. In the accompanying drawings:

[0041] Figure 1 This is a flowchart of a cross-chain data transmission method based on blockchain provided in Embodiment 1 of the present invention;

[0042] Figure 2 This is a schematic diagram of the module composition of a cross-chain data transmission system based on blockchain provided in Example 2 of the present invention. DETAILED DESCRIPTION

[0043] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0044] Embodiment 1: Figure 1 This is a flowchart of a cross-chain data transmission system based on blockchain provided in Example 1 of the present invention. This embodiment can be applied to the scenario of cross-chain data transmission. The method can be executed by a cross-chain data transmission system based on blockchain provided in this embodiment, such as Figure 1 As shown, the method specifically comprises the following steps:

[0045] Step 1: Establish a data chain, divide the blockchain into blocks, and use the data chain to connect parallel blockchains;

[0046] In an embodiment of the present invention, a data link establishment module establishes a cross-chain data link and connects to a target blockchain. The data link connection module detects the network status of the data transmission party and identifies the network signal strength and stability of the data transmission party. The cross-chain data link accesses the data transmission party terminal device interface through the optimal network line. The cross-chain data link establishes a connection with the target blockchain. The target blockchain sends each other its own genesis block and block ID through the cross-chain data link. The data link connection module obtains the genesis block for analysis, identifies the verification information and block header information on the genesis block, and compares the verification information, block ID and block header information with the information data provided by the target blockchain. If the data comparison is exactly the same, the data transmission nodes are registered on the target blockchain respectively. If there is a difference in the data comparison, the connection is rejected. The blockchain segmentation module divides the target blockchain into multiple independent blocks, performs data transmission in the blocks, and judges whether the target blockchain information is true by comparing the verification information, block ID and block header information. This can effectively avoid arbitrary connection of blockchains, resulting in the theft of user data, protect user data security, and improve the security of data transmission.

[0047] Step 2: Verify the digital signature, use the consensus mechanism to propagate the data on the blockchain, and store the data;

[0048] In the embodiment of the present invention, during the data transmission process, the consensus algorithm of the target blockchain is respectively identified through the consensus module. The consensus module selects the corresponding algorithm from the database for the consensus algorithm of each target blockchain to perform data transmission at the consensus layer. The data storage module obtains the transmission data and stores it in the block on the blockchain. The synchronous consensus module is used to obtain the block packaged by the consensus module and transmit it to the target blockchain through the cross-chain data chain. In the target blockchain, the consensus mechanism of the target blockchain is used to broadcast the data to the blockchain. The digital signature module obtains the data transmitted by the user and analyzes it, identifies the digital signature and user data in the data sent by the user, and compares the two to determine whether it is a legitimate user. The consensus module can quickly transmit data from one parallel blockchain to another parallel blockchain, which greatly improves the speed of data transmission, and uses the data signature verification mechanism to eliminate the data transmission request of illegal users, protect data security, and further improve the security of data transmission;

[0049] Exemplarily, the method of using the consensus mechanism to transmit data by the consensus module is as follows: the consensus module detects and identifies the consensus algorithm on the target blockchain, selects the corresponding declaration algorithm in the database, and broadcasts the data to the blockchain according to the consensus algorithm of the blockchain. The consensus module injects the data transaction record into the block, and the data is arranged in time in the block. The consensus node periodically packages the block and sends it to the target blockchain through the cross-chain data chain.

[0050] Step 3: The master node assigns nodes to process the transmitted data and deploys the smart contract on the blockchain after the blockchain completes data synchronization;

[0051] In an embodiment of the present invention, the node allocation module calls the backup data transmission node according to the amount of data, the blockchain selects the master node through node election, the master node obtains all the data to be transmitted, and counts the size T of the data to be transmitted, the unit of which is M. When the data size T is less than the first threshold, the resident nodes including the master node transmit the data, when the data size T is greater than the first threshold and less than the second threshold, the master node calls the first batch of backup nodes preset in the system to jointly transmit the data, when the data size is greater than the second threshold, the master node calls all the backup nodes preset in the system for data transmission, the smart contract module is responsible for the management of the cross-chain data chain, including the identity verification contract and the cross-chain data chain automation management contract, and the number of nodes for transmitting data is increased by calling the backup node through the master node, so as to speed up the data transmission, and further speed up the data transmission. The smart contract module ensures the data transmission party's confirmation of the recipient's identity by verifying the user's identity and managing the cross-chain data chain, reduces human interference in the cross-chain data chain, and greatly improves the security of data transmission;

[0052] Exemplarily, the specific management method of smart contracts is as follows: users generate digital identities from identity information data through smart contracts, obtain data transmitted by users to identify the user identity authentication information carried therein, and the smart contract module automatically identifies the user's digital identity; the management method of smart contracts for cross-chain data chains is specifically as follows: obtain user transmitted data, scan and identify the data summary and encrypted text therein, use the authorized public key in the smart contract to decrypt the encrypted text, and compare the decrypted text with the data summary. If they are exactly the same, the user data is legal and can be transmitted through the cross-chain data chain. The user identity is verified through the smart contract, and the user authority is reviewed to ensure that the user identity is correct and qualified for data transmission, which greatly improves the security of data transmission, and the conversion of user identity information into a digital identity can better protect user privacy.

[0053] Step 4: Hide user data transactions and data transmission records, and query hidden user transactions.

[0054] In the embodiment of the present invention, when a user transmits an important file, the user needs to transmit the data in secret, and a secret transmission generation module generates a secret data transmission channel, and uses the secret data transmission channel to transmit data. The secret query module queries the secret data transmitted by the user, and by transmitting the data in secret, it is ensured that the user data will not be hijacked during the transmission process, which greatly improves the security of data transmission. In addition, the secret data transmission channel is an exclusive channel, and one data transmission occupies one channel, so the data transmission speed is greatly improved.

[0055] Exemplarily, the specific method of hidden data transmission is: the user obtains a random number of the hidden transmission data transmission address, uses the user's private key to decrypt the random number to obtain the data transmission address, encrypts the data through the user's private key, and packages the data to send to the data transmission address, builds a temporary data transmission tunnel node at the data transmission address, and shields the main node detection, the system obtains the data packet that needs to be hidden transmission and compresses the data packet into a data block through a compression device, and transmits the data block through a temporary data transmission channel; the specific method of hidden query is: obtain the random number of the hidden transmission address obtained by the user, and the user's data transmission record can be decrypted by the public key paired with the user's private key. By hiding the user's data transmission record, the data transmission record cannot be traced, ensuring that the user's data transmission process is not susceptible to intrusion. Even if the data is hijacked, the intruder cannot obtain the data information in the data block without obtaining the private key, protecting the user's data from being stolen, and greatly improving the security of data transmission.

[0056] Embodiment 2: Embodiment 2 of the present invention provides a cross-chain data transmission system based on blockchain. Figure 2A schematic diagram of the module composition of a cross-chain data transmission system based on blockchain provided in Embodiment 2 of the present invention is shown in FIG. Figure 2 As shown, the system includes:

[0057] Cross-chain management module, used to manage cross-chain data chains and blockchains;

[0058] Data management module, used to synchronize data between parallel chains and manage data processing nodes;

[0059] Security management module, used to deploy smart contracts, verify digital signatures and hide user transaction records.

[0060] In some embodiments of the present invention, the cross-chain management module includes:

[0061] Data chain establishment module, used to establish cross-chain data chains;

[0062] Data chain connection module, used to connect parallel blockchains;

[0063] Blockchain splitting module, used to split the blockchain.

[0064] In some embodiments of the present invention, the data management module includes:

[0065] Node allocation module, used to elect the master node and control the data processing nodes through the master node;

[0066] Consensus module, used to synchronize data according to different parallel chains;

[0067] A data storage module, used to store data in blocks;

[0068] Synchronous consensus module, used to synchronize data in the target blockchain.

[0069] In some embodiments of the present invention, the security management module includes:

[0070] A hidden transfer generation module, used to conceal transactions conducted by users;

[0071] The hidden query module is used to find the hidden transactions of users;

[0072] Smart contract module, used to deploy smart contracts on the blockchain;

[0073] The digital signature module is used to verify the digital signature and determine the user's identity.

[0074] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device.

[0075] Finally, it should be noted that the above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art can still modify the technical solutions described in the aforementioned embodiments or replace some of the technical features therein by equivalents. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A cross-chain data transmission method based on blockchain, characterized in that: The method comprises the following steps: Step 1: Establish a data chain, divide the blockchain into blocks, and use the data chain to connect parallel blockchains; Step 2: Verify the digital signature, use the consensus mechanism to propagate the data on the blockchain, and store the data; Step 3: The master node assigns nodes to process the transmitted data and deploys the smart contract on the blockchain after the blockchain completes data synchronization; Step 4: Hide user data transactions and data transmission records, and query hidden user transactions.

2. A cross-chain data transmission method based on blockchain according to claim 1, characterized in that: The steps of establishing a data chain, dividing the blockchain into blocks, and connecting parallel blockchains using the data chain include: The data link establishment module establishes a cross-chain data link and connects to the target blockchain. The data link connection module detects the network status of the data transmission party and identifies the network signal strength and stability of the data transmission party. The cross-chain data link accesses the data transmission party's terminal device interface through the optimal network line. The cross-chain data link establishes a connection with the target blockchain. The target blockchain sends each other's genesis block and block ID through the cross-chain data link. The data link connection module obtains the genesis block for analysis, identifies the verification information and block header information on the genesis block, and compares the verification information, block ID and block header information with the information data provided by the target blockchain. If the data comparison is exactly the same, the data transmission node is registered on the target blockchain respectively. If there is a difference in the data comparison, the connection is rejected. The blockchain segmentation module divides the target blockchain into multiple independent blocks.

3. A cross-chain data transmission method based on blockchain according to claim 2, characterized in that: The steps of verifying the digital signature, propagating the data on the blockchain using the consensus mechanism, and storing the data include: The consensus module identifies the consensus algorithms of the target blockchains respectively. The consensus module selects the corresponding algorithms from the database for the consensus algorithms of each target blockchain to perform data transmission at the consensus layer. The data storage module obtains the transmitted data and stores it in the blocks on the blockchain. The synchronous consensus module obtains the blocks packaged by the consensus module and transmits them to the target blockchain through the cross-chain data chain. In the target blockchain, the consensus mechanism of the target blockchain is used to broadcast the data to the blockchain. The digital signature module obtains the data transmitted by the user and analyzes it, identifies the digital signature and user data in the data sent by the user, and compares the two to determine whether it is a legitimate user.

4. A cross-chain data transmission method based on blockchain according to claim 3, characterized in that: The steps of transmitting data by the consensus module using the consensus mechanism include: The consensus module detects and identifies the consensus algorithm on the target blockchain, selects the corresponding confession algorithm in the database, and broadcasts the data to the blockchain according to the consensus algorithm of the blockchain. The consensus module injects data transaction records into the block. The data is arranged in time in the block. The consensus node regularly packages the block and sends it to the target blockchain through the cross-chain data chain.

5. A cross-chain data transmission method based on blockchain according to claim 4, characterized in that: The master node allocates nodes to process the transmission data, and deploys the smart contract on the blockchain after the blockchain completes data synchronization, including: The node allocation module calls the backup data transmission node according to the amount of data. The blockchain elects the master node through node election. The master node obtains all the data to be transmitted and counts the size T of the data to be transmitted, whose unit is M. When the data size T is less than the first threshold, the resident nodes including the master node transmit the data. When the data size T is greater than the first threshold and less than the second threshold, the master node calls the first batch of backup nodes preset in the system to jointly transmit the data. When the data size is greater than the second threshold, the master node calls all the backup nodes preset in the system for data transmission. Users generate digital identities from identity information data through smart contracts, obtain the data transmitted by users to identify the user authentication information carried therein, and the smart contract module automatically identifies the user's digital identity; the smart contract management method for cross-chain data chains is specifically as follows: obtain user transmitted data, scan and identify the data summary and encrypted text therein, use the authorized public key in the smart contract to decrypt the encrypted text, and compare the decrypted text with the data summary. If they are exactly the same, the user data is legal and can be transmitted through the cross-chain data chain.

6. A cross-chain data transmission method based on blockchain according to claim 5, characterized in that: The step of concealing user data transaction and data transmission records includes: The user obtains a random number of the data transmission address for hidden transmission, uses the user's private key to decrypt the random number to obtain the data transmission address, encrypts the data through the user's private key, and packages the data and sends it to the data transmission address. A temporary data transmission tunnel node is built at the data transmission address, and the main node detection is shielded. The system obtains the data packet that needs to be secretly transmitted and compresses the data packet into a data block through a compression device, and transmits the data block through a temporary data transmission channel.

7. A cross-chain data transmission system based on blockchain, characterized by: The system comprises: Cross-chain management module, used to manage cross-chain data chains and blockchains; Data management module, used to synchronize data between parallel chains and manage data processing nodes; Security management module, used to deploy smart contracts, verify digital signatures and hide user transaction records.

8. A cross-chain data transmission system based on blockchain according to claim 7, characterized in that: The cross-chain management module includes: Data chain establishment module, used to establish cross-chain data chains; Data chain connection module, used to connect parallel blockchains; Blockchain splitting module, used to split the blockchain.

9. A cross-chain data transmission system based on blockchain according to claim 8, characterized in that: The data management module comprises: Node allocation module, used to elect the master node and control the data processing nodes through the master node; Consensus module, used to synchronize data according to different parallel chains; A data storage module, used to store data in blocks; Synchronous consensus module, used to synchronize data in the target blockchain.

10. A cross-chain data transmission system based on blockchain according to claim 9, characterized in that: The security management module includes: A hidden transfer generation module, used to conceal transactions conducted by users; The hidden query module is used to find the hidden transactions of users; Smart contract module, used to deploy smart contracts on the blockchain; The digital signature module is used to verify the digital signature and determine the user's identity.