A blockchain system that prevents the main chain and side chain from affecting each other
By introducing detection modules, encryption modules, authentication modules and storage modules into the blockchain system, the problem of lack of access restrictions on data transmission between the side chain and the main chain is solved, and the security of data transmission and the independence of the side chain and the main chain are achieved.
Patent Information
- Application Number
- CN202410324907.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-04-04
- Publication Date
- 2025-04-15
- Estimated Expiration
- 2043-04-04
AI Technical Summary
In the existing blockchain system, there is a lack of access restrictions on data transmission between the side chain and the main chain, resulting in data leakage and illegal access, which in turn affects the security of the main chain.
A blockchain system is designed, including detection module, encryption module, identity verification module and storage module. Through the use of these modules, the mutual independence of the side chain and the main chain and the security of data transmission are ensured.
It effectively solves the problems of low security of side chains and lack of access restrictions on data transmission, avoids data leakage and main chain failure caused by illegal access, and ensures independent work between the side chain and the main chain.
Smart Images

Figure CN118449713B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of blockchain technology, and in particular to a blockchain system that prevents a main chain and a side chain from influencing each other. Background Art
[0002] Blockchain is a term in the field of information technology. In essence, it is a shared database. The data or information stored in it has the characteristics of "unforgeable", "full traceability", "traceable", "open and transparent", and "collective maintenance". Blockchain, as an important concept of Bitcoin, is essentially a decentralized database. At the same time, as the underlying technology of Bitcoin, it is a string of data blocks generated by cryptographic methods. Each data block contains a batch of Bitcoin network transaction information, which is used to verify the validity of its information (anti-counterfeiting) and generate the next block. The main chain can be understood as a formally launched, independent blockchain network. Strictly speaking, the "side chain" itself is not a blockchain, but can be understood as an extension protocol of the blockchain. The early "side chain" was designed to solve the limitations of Bitcoin blockchain technology. Side chains are like pathways that connect different blockchains to each other. In order to realize the expansion of blockchain, the main chain and side chain can be used in combination according to the needs of the local situation. After searching, it is found that the typical blockchain system in the prior art is a blockchain node authority control method and blockchain system based on big data with publication number CN112087521A. In the present invention, first, when it is necessary to update the device management authority, a management device update notification message is generated; then, based on the management device update indication information generated by each second blockchain node device, a management device identification notification message is generated, wherein the management device identification notification message is used to indicate that a second blockchain node device is used as a new first blockchain node device; finally, the management device identification notification message is broadcast to each second blockchain node device. Based on the above method, the present invention can improve the unreasonable problems in the prior art when controlling the authority of blockchain nodes.
[0003] The data transmission between the side chain and the main chain in the existing blockchain system lacks corresponding access restrictions, resulting in data leakage problems. At the same time, when the side chain is illegally accessed, the data on the corresponding main chain will also be infringed. In view of the above problems, the existing blockchain system needs to be improved. Summary of the invention
[0004] The purpose of the present invention is to provide a blockchain system that prevents the main chain and the side chain from influencing each other, so as to solve the problem that the data transmission between the side chain and the main chain in the existing blockchain system proposed in the above background technology lacks corresponding access restrictions, thereby causing data leakage. At the same time, when the side chain is illegally accessed, the data on the corresponding main chain will also be infringed.
[0005] To achieve the above-mentioned purpose, the present invention provides the following technical solution: A blockchain system for preventing the main chain and the side chain from affecting each other, comprising a main chain and a main chain node:
[0006] Main chain nodes provide a platform for creating side chains, and creating a side chain requires at least two main chain nodes;
[0007] The detection module is used to detect the creation conditions of the side chain and terminate the creation request when the creation conditions do not meet the requirements;
[0008] Encryption module, used for data transfer and transmission encryption, ensuring the independent operation of the main chain and the side chain, and improving the security of data transmission;
[0009] The identity verification module is used to verify the identity of the person entering the side chain to avoid illegal access;
[0010] The storage module is used to store data and ensure the safe preservation of data.
[0011] Furthermore, there are multiple groups of main chain nodes, and the main chain nodes on different main chains can be connected through side chains.
[0012] Furthermore, the detection results of the detection module are input into the creation module and the initiation module respectively, that is, there is a corresponding opposition relationship between the input information of the creation module and the initiation module.
[0013] Furthermore, the closure status of the other end of the side chain is analyzed by the analysis module. When it meets the closure requirements, a complete side chain will be formed. When it does not meet the closure requirements, it will return to the creation module to recreate and generate the side chain again until it meets the closure requirements.
[0014] Furthermore, the encryption module includes digital encryption and text encryption, and digital encryption and text encryption are two independent encryption methods.
[0015] Furthermore, the encryption module is connected to the processing module, and the processing module is composed of a display module and a reset module. The reset module is convenient for resetting and overwriting the last erroneous key, and the reset module is connected to the early warning module.
[0016] Furthermore, when the early warning module is triggered, the above operations will be edited into text and sent to a set mobile terminal through a sending module to provide a safety reminder to the data owner, and the sending module and the mobile terminal are electrically connected.
[0017] Furthermore, the triggering conditions of the storage module and the recording module are based on the verification of the access identity by the identity authentication module, and the recording module will record the access identity that does not meet the verification adjustment requirements.
[0018] Furthermore, the data in the storage module is classified by a classification module, and the classification method includes but is not limited to time, size and type.
[0019] Furthermore, by entering the corresponding main chain node, the creation of the side chain is initiated by the initiation module. The detection module will detect the creation conditions of the side chain. If the creation conditions do not meet the requirements, it will return to the initiation module to re-initiate the creation request. If the creation conditions meet the requirements, the side chain will be generated through the creation module and the generation module. The analysis module will analyze the closure status of the other end of the side chain. If it meets the closure requirements, a complete side chain will be formed. If it does not meet the closure requirements, it will return to the creation module to re-create and regenerate the side chain until it meets the closure requirements. If the side chain needs to transfer data to the main chain, first click on the side chain. The identity authentication module will verify the identity entering the side chain. If the identity meets the verification conditions, the data in the storage module, i.e. the side chain, can be viewed. The class module facilitates the classification of data in the storage module, thereby facilitating its search. If the identity does not meet the verification conditions, the recording module will record the verification result, and then ignore the verification result through the ignoring module to make it re-verified. The access module will initiate access when the storage module transfers data. At this time, the visitor needs to enter the key through the encryption module. The processing module will process and verify the input key. If the key is correct, the data in the side chain will be displayed through the display module, so that the required data can be transferred to the main chain through the transfer module via the main chain node according to demand. If the key is incorrect, the reset module will reset the wrong key and return it to the side chain. At the same time, the early warning module in the reset module will edit the above operations into text and send it to the set mobile terminal through the sending module to remind the data owner of security.
[0020] Compared with the prior art, the beneficial effects of the present invention are: the blockchain system that prevents the main chain and the side chain from affecting each other,
[0021] (1) The present invention can effectively solve the problem that the side chain in the existing blockchain system has low security and is easily illegally accessed through the coordinated use of the identity authentication module and the recording module. The identity authentication module can verify the identity of the person entering the side chain based on the original confidentiality structure. When the identity does not meet the verification conditions, the data in the storage module cannot be viewed. At the same time, the recording module will record the verification results, thereby preventing the side chain from being illegally accessed to a certain extent and optimizing the system structure.
[0022] (2) The present invention can effectively solve the problem of lack of corresponding access restrictions in the data transmission between the side chain and the main chain in the existing blockchain system through the coordinated use of the access module, the encryption module and the processing module. That is, when the side chain is invaded, the main chain will be affected, resulting in data leakage. The access module will initiate access when the storage module transfers data, that is, the data transferor needs to input the key through the encryption module, and the processing module will process and verify the input key. When the key verification result is correct, the data in the side chain can be transferred, thereby avoiding the main chain failure and data loss caused by illegal access to the side chain to a certain extent, thereby ensuring the independence of the two operations;
[0023] (3) The present invention can effectively solve the problem that the existing blockchain is not convenient for recording and viewing the time of illegal access after the illegal access fails in the side chain through the coordinated use of the recording module and the ignoring module. When the identity authentication module detects that the visitor's identity does not meet the verification conditions, the recording module will record the verification result, that is, the time of illegal access, so as to facilitate the accountability of the relevant personnel based on the record. At the same time, the verification result is ignored by the ignoring module, so that it can be re-verified;
[0024] (4) The present invention can effectively solve the problem of lack of corresponding warning function after the illegal transfer of data in the blockchain side chain fails, that is, it is impossible to let the data owner know in time, thus posing certain security risks, through the coordinated use of the reset module, the early warning module and the sending module. When the key is incorrect, the reset module will reset the wrong key and return the program to the side chain. In addition, the early warning module in the reset module will edit the above operations into text and send it to the set mobile terminal through the sending module to warn the data owner, thereby avoiding data damage and loss to a certain extent. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] Figure 1 A schematic diagram of the control relationship between the side chain and the main chain nodes of the present invention;
[0026] Figure 2 It is a schematic diagram of the control relationship between the reset module and the side chain, the early warning module, the sending module, and the mobile terminal of the present invention;
[0027] Figure 3 This is a schematic diagram of the control relationship between the main chain, main chain nodes, and side chains of the present invention;
[0028] Figure 4 A schematic diagram of the control relationship between the main chain and the main chain nodes of the present invention;
[0029] Figure 5 For the present invention Figure 3 The enlarged schematic diagram of the work process at B in the middle;
[0030] Figure 6 The figure is a schematic diagram of the workflow of the side chain creation process of the present invention;
[0031] Figure 7 Schematic diagram of the side chain linking process of the present invention.
[0032] In the figure: 1. Main chain; 2. Main chain node; 3. Initiation module; 4. Detection module; 5. Creation module; 6. Generation module; 7. Analysis module; 8. Side chain; 9. Access module; 10. Encryption module; 11. Processing module; 12. Display module; 13. Reset module; 14. Warning module; 15. Sending module; 16. Mobile terminal; 17. Identity authentication module; 18. Storage module; 19. Recording module; 20. Classification module; 21. Ignore module; 22. Blockchain. DETAILED DESCRIPTION
[0033] 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.
[0034] See also Figure 1-7 The present invention provides a technical solution: a blockchain system for preventing a main chain and a side chain from influencing each other, comprising a main chain 1 and a main chain node 2:
[0035] Main chain node 2 provides a platform for creating side chain 8, and at least two main chain nodes 2 are required to create a side chain;
[0036] The detection module 4 is used to detect the creation conditions of the side chain 8 and terminate the creation request when the creation conditions do not meet the requirements;
[0037] The encryption module 10 is used for data transfer and transmission encryption, ensuring that the main chain 1 and the side chain 8 work independently from each other and improving the security of data transmission;
[0038] The identity verification module 17 is used to verify the identity of the user entering the side chain 8 to avoid illegal access;
[0039] The storage module 18 is used for storing data to ensure the safe preservation of data.
[0040] There are multiple groups of main chain nodes 2, and the main chain nodes 2 on different main chains 1 can be connected through side chains 8.
[0041] The detection results of the detection module 4 are input into the creation module 5 and the initiation module 3 respectively, that is, there is a corresponding opposition relationship between the input information of the creation module 5 and the initiation module 3.
[0042] The closure status of the other end of the side chain 8 is analyzed by the analysis module 7. When it meets the closure requirements, a complete side chain 8 will be formed. When it does not meet the closure requirements, it will return to the creation module 5 to recreate and generate the side chain 8 again until it meets the closure requirements.
[0043] The encryption module 10 includes digital encryption and text encryption, and the digital encryption and text encryption are two independent encryption methods.
[0044] The encryption module 10 is connected to the processing module 11 , and the processing module 11 is composed of a display module 12 and a reset module 13 . The reset module 13 is convenient for resetting and overwriting the last erroneous key, and the reset module 13 is connected to the early warning module 14 .
[0045] When the early warning module 14 is triggered, the above operations will be edited into text and sent to the set mobile terminal 16 through the sending module 15 to provide a safety reminder to the data owner, and the sending module 15 and the mobile terminal 16 are electrically connected.
[0046] The triggering conditions of the storage module 18 and the recording module 19 are based on the verification of the access identity by the identity authentication module 17, and the recording module 19 will record the access identity that does not meet the verification adjustment band.
[0047] The classification module 20 is used to classify the data in the storage module 18, and its classification method includes but is not limited to time, size and type.
[0048] In the actual working process, choose to enter the appropriate main chain node 2, so that the creation of the side chain 8 can be initiated by using the initiation module 3. Then the detection module 4 will detect the creation conditions of the side chain 8. When the creation conditions do not meet the requirements, it will return to the initiation module 3 to re-initiate the creation request. When the creation conditions meet the requirements, the side chain 8 will be generated through the creation module 5 and the generation module 6. Then the analysis module 7 will analyze the closure of the other end of the side chain 8, also known as the chain connection situation. When its situation meets the chain connection requirements, the side chain 8 will be formed complete and linked with another main chain node 2. When it does not meet the chain connection requirements, it will return to the creation module 5 of the previous program and use the creation module 5 to recreate the side chain 8 until it meets the closure requirements. When it is necessary to transfer the data in the side chain 8 to the main chain 1, first choose to enter the side chain 8. Then the identity authentication module 17 will verify the identity of the visitor entering the side chain 8. When the identity of the visitor meets the verification conditions, the side chain 8 can be verified through the classification module 20. The data in the storage module 18 can be viewed and searched. When the identity of the visitor does not meet the verification conditions, the recording module 19 will record the verification result and time, and then ignore the current verification result through the ignoring module 21, so that it can re-verify the link. The access module 9 will initiate access when the storage module 18 transfers data. At this time, the visitor needs to input the key through the encryption module 10, and the processing module 11 will process and verify the input key. When the key is correct, the data in the side chain 8 will be displayed through the display module 12, so that the data to be transferred can be transferred to the main chain 1 through the transfer module through the main chain node 2 according to the needs. When the processing module 11 detects a key error, the reset module 13 will reset the wrong key and return it to the side chain 8. At the same time, the early warning module 14 in the reset module 13 will edit the time of the key error into text, and the edited text will be sent to the set mobile terminal 16 through the sending module 15, so that the data owner can be reminded of security.
[0049] Although the present invention has been described in detail with reference to the aforementioned embodiments, it is still possible for those skilled in the art to modify the technical solutions described in the aforementioned embodiments, or to make equivalent substitutions for some of the technical features therein. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the protection scope of the present invention.
Claims
1. A blockchain system that prevents the main chain and the side chain from affecting each other, characterized by: It includes a main chain (1), a side chain (8), a main chain node (2), an initiation module (3), a detection module (4), a creation module (5), a generation module (6), an analysis module (7), an access module (9), an encryption module (10), a processing module (11), a display module (12), a reset module (13), an early warning module (14), a sending module (15), a mobile terminal (16), an identity authentication module (17), a storage module (18), a recording module (19), a classification module (20) and an ignore module (21); wherein the main chain node (2) provides a platform for creating a side chain (8), and at least two main chain nodes (2) are required to create a side chain; A detection module (4) is used to detect the creation conditions of the side chain (8) and terminate the creation request when the creation conditions do not meet the requirements; An encryption module (10) is used for data transfer and transmission encryption, ensuring that the main chain (1) and the side chain (8) work independently of each other and improving the security of data transmission; The identity verification module (17) is used to verify the identity of the visitor entering the side chain (8) to avoid illegal access; The storage module (18) is used for storing data to ensure the safe preservation of data; the detection results of the detection module (4) are respectively input into the creation module (5) and the initiation module (3), that is, there is a corresponding opposition relationship between the input information of the creation module (5) and the initiation module (3); the closure status of the other end of the side chain (8) is analyzed by the analysis module (7); when it meets the closure requirement, a complete side chain (8) will be formed; when it does not meet the closure requirement, it will return to the creation module (5) to recreate and regenerate the side chain (8) until it meets the closure requirement; the encryption module (10) includes digital encryption and text encryption, and the digital encryption and text encryption are two independent encryption methods; the encryption module (10) is connected to the processing module (11), and the processing module (11) is composed of a display module (12) and a reset module (13), the reset module (13) resets and overwrites the last erroneous key, and the reset module (13) is connected to the early warning module (14);When the main chain (1) creates a side chain (8), it needs to enter the corresponding main chain node (2) and use the initiation module (3) to initiate the creation of the side chain (8). The detection module (4) will detect the creation conditions of the side chain (8). If the creation conditions do not meet the requirements, it will return to the initiation module (3) to re-initiate the creation request. If the creation conditions meet the requirements, the side chain (8) will be generated through the creation module (5) and the generation module (6). The analysis module (7) will analyze the closure status of the other end of the side chain (8). If it meets the closure requirements, a complete side chain (8) will be formed. If it does not meet the closure requirements, it will return to the creation module (5) to re-create and regenerate the side chain (8) until it meets the closure requirements. If it is necessary to transfer the side chain (8) data to the main chain (1), first select and click on the side chain (8). The identity authentication module (17) will verify the identity of the visitor entering the side chain (8). If the identity meets the verification conditions, the data in the storage module (18), i.e. the side chain (8), can be stored in the storage module (18). The classification module (20) classifies the data in the storage module (18) to facilitate its search. If the identity does not meet the verification conditions, the recording module (19) will record the verification result, and then ignore the verification result through the ignoring module (21) to make it re-verified. The access module (9) will initiate access when the encryption module (10) transfers data. At this time, the visitor needs to input the key through the encryption module (10). The processing module (11) will process and verify the input key. If the key is correct, the data in the side chain (8) will be displayed through the display module (12), so that the required data can be transferred to the main chain (1) through the transfer module via the main chain node (2) according to the needs. If the key is incorrect, the reset module (13) will reset the wrong key and return it to the side chain (8). At the same time, the early warning module (14) in the reset module (13) will edit the above operation into text and send it to the set mobile terminal (16) through the sending module (15) to remind the data owner of security. The main chain nodes (2) are provided in multiple groups, and the main chain nodes (2) on different main chains (1) can be connected via side chains (8); The triggering conditions of the storage module (18) and the recording module (19) are based on the verification of the identity of the visitor by the identity verification module (17), and the recording module (19) will record the identity of the visitor who does not meet the verification conditions.
2. A blockchain system for preventing the main chain and the side chain from influencing each other according to claim 1, characterized in that: The sending module (15) and the mobile terminal (16) are electrically connected.
3. A blockchain system for preventing the main chain and the side chain from influencing each other according to claim 2, characterized in that: The data in the storage module (18) is classified by a classification module (20), and the classification method includes time, size and type.
Citation Information
Patent Citations
Blockchain node permission control method based on big data and blockchain system
CN112087521A
Block-chain processing method, device and apparatus, and storage medium
CN108984645A
Method for constructing one-main-chain multi-side-chain block chain architecture
CN110233802A