A blockchain construction method, device and equipment for private information
By building sub-blockchains and management nodes of the blockchain system, we can achieve full-process traceable recording of user privacy information, solve the transparency problem in the collection, transmission and storage of user privacy information, and enhance users' sense of privacy security.
Patent Information
- Application Number
- CN202111572490.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-21
- Publication Date
- 2025-09-16
- Estimated Expiration
- 2041-12-21
AI Technical Summary
User privacy information lacks traceability and transparency during collection, transmission and storage, resulting in insufficient sense of privacy security among users. Existing technologies find it difficult to provide technical solutions outside the constraints of laws and regulations.
Build a blockchain system, obtain the location information of blockchain nodes, divide it into sub-blockchains and build management nodes to achieve data synchronization and full-process traceable records, including user privacy information collection, desensitization and storage processes.
Enhance users' ability to control privacy information throughout the entire process, improve their sense of privacy and security, solve the problem of limited storage capacity of blockchain nodes, and achieve traceable records from collection to desensitization, transmission and storage.
Smart Images

Figure CN114239068B_ABST
Abstract
Description
Technical Field
[0001] This document relates to the field of computer technology, and in particular to a method, device, and apparatus for constructing a blockchain for private information. Background Art
[0002] In recent years, biometric systems (such as facial recognition) have become integrated into all aspects of life and production, and their applications are becoming increasingly widespread as the technology continues to advance. However, the widespread use of biometric technology is posing threats to user privacy. For example, many user analysis systems currently collect, identify, and store facial data without the user's knowledge. Merchants in some shopping systems can even view users' facial images and store visit information through the system's backend.
[0003] To better address user privacy and security, we need not only legal and regulatory constraints but also technical solutions. After collecting user privacy information, users often have little awareness of the entire process, which significantly limits their perceived security. Therefore, a privacy protection solution is needed that addresses the security of user privacy information while providing a traceable record of the entire process, from collection to desensitization / encryption, transmission, and storage. Summary of the Invention
[0004] The purpose of the embodiments of this specification is to provide a privacy protection solution that can solve the security issues of user privacy information and at the same time provide a traceable record of the entire process of user privacy information from collection to desensitization / encryption, transmission and storage.
[0005] In order to implement the above technical solution, the embodiments of this specification are implemented as follows:
[0006] Embodiments of this specification provide a method for constructing a blockchain for private information. The method comprises: obtaining location information of different blockchain nodes in a blockchain system to be constructed, wherein the blockchain system is configured to process user private information, and the blockchain nodes include a user private information collection and desensitization node, a user private information processing node, and a user private information storage node. Based on the location information of the different blockchain nodes, the region information corresponding to each sub-blockchain in the blockchain system is determined; and based on the determined region information and the blockchain nodes, and generated ledger information of the blockchain system, a corresponding sub-blockchain is constructed. Furthermore, a management node of the blockchain system is constructed, wherein the management node maintains data consistency with the blockchain nodes in each sub-blockchain through data synchronization, wherein the ledger information is generated based on data obtained by the blockchain nodes during the processing of preset user private information. The blockchain system is constructed based on the constructed sub-blockchains and the management node.
[0007] Embodiments of this specification provide a blockchain construction device for private information. The device includes: a location acquisition module for acquiring location information of different blockchain nodes in a blockchain system to be constructed. The blockchain system is used to process user private information, and the blockchain nodes include user private information collection and desensitization nodes, user private information processing nodes, and user private information storage nodes. A sub-blockchain construction module determines the region information corresponding to each sub-blockchain in the blockchain system based on the location information of the different blockchain nodes, constructs the corresponding sub-blockchain based on the determined region information, the blockchain nodes, and the generated ledger information of the blockchain system, and constructs a management node for the blockchain system. The management node maintains data consistency with the blockchain nodes in each sub-blockchain through data synchronization. The ledger information is generated based on data acquired by the blockchain nodes during the processing of preset user private information. A blockchain construction module constructs the blockchain system based on the constructed sub-blockchains and the management node.
[0008] Embodiments of this specification provide a device for constructing a blockchain for private information, comprising: a processor; and a memory configured to store computer-executable instructions, wherein the executable instructions, when executed, cause the processor to: obtain location information of different blockchain nodes in a blockchain system to be constructed, wherein the blockchain system is configured to process user private information, and the blockchain nodes include user private information collection and desensitization nodes, user private information processing nodes, and user private information storage nodes; determine region information corresponding to each sub-blockchain in the blockchain system based on the location information of the different blockchain nodes; construct a corresponding sub-blockchain based on the determined region information, the blockchain nodes, and generated ledger information of the blockchain system; and construct a management node for the blockchain system, wherein the management node maintains data consistency with the blockchain nodes in each sub-blockchain through data synchronization, wherein the ledger information is generated based on data obtained by the blockchain nodes during the processing of preset user private information; and construct the blockchain system based on the constructed sub-blockchains and the management node.
[0009] Embodiments of this specification also provide a storage medium for storing computer-executable instructions that, when executed, implement the following process: obtaining location information of different blockchain nodes in a blockchain system to be constructed, wherein the blockchain system is configured to process user privacy information, the blockchain nodes including a user privacy information collection and desensitization node, a user privacy information processing node, and a user privacy information storage node. Based on the location information of the different blockchain nodes, determining the region information corresponding to each sub-blockchain in the blockchain system, constructing a corresponding sub-blockchain based on the determined region information and the blockchain nodes, and generated ledger information of the blockchain system, and constructing a management node for the blockchain system, wherein the management node maintains data consistency with the blockchain nodes in each sub-blockchain through data synchronization, wherein the ledger information is generated based on data obtained by the blockchain nodes during the processing of preset user privacy information. The blockchain system is constructed based on the constructed sub-blockchains and the management node. BRIEF DESCRIPTION OF THE DRAWINGS
[0010] In order to more clearly illustrate the embodiments of this specification or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are only some embodiments recorded in this specification. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0011] Figure 1 This is an embodiment of a blockchain construction method for private information in this specification;
[0012] Figure 2 This is a schematic diagram of the structure of a blockchain construction system for private information in this specification;
[0013] Figure 3 This is another embodiment of a blockchain construction method for private information in this specification;
[0014] Figure 4 This is a schematic diagram of the structure of the relevant interface for building a blockchain for privacy information in this specification;
[0015] Figure 5 This is another embodiment of a blockchain construction method for private information in this specification;
[0016] Figure 6 This is an embodiment of a blockchain construction device for private information in this specification;
[0017] Figure 7 This is an embodiment of a blockchain construction device for private information in this specification. DETAILED DESCRIPTION
[0018] The embodiments of this specification provide a method, apparatus, and device for constructing a blockchain for private information.
[0019] To help those skilled in the art better understand the technical solutions in this specification, the following will provide a clear and complete description of the technical solutions in the embodiments of this specification, in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of this specification, not all of them. All other embodiments derived by those skilled in the art based on the embodiments in this specification without creative effort shall fall within the scope of protection of this specification.
[0020] Example 1
[0021] like Figure 1 As shown, the embodiment of this specification provides a method for constructing a blockchain for private information. The execution subject of this method can be a terminal device or a server, wherein the terminal device can be a mobile terminal device such as a mobile phone, a tablet computer, or a device such as a personal computer. The server can be an independent server or a server cluster composed of multiple servers. The server can be a management server for constructing a blockchain system. This method can be applied to related scenarios such as the construction of a blockchain for private information. In this embodiment, the server is used as the execution subject for detailed description. For the case of terminal devices, please refer to the following related content, which will not be repeated here. The method can specifically include the following steps:
[0022] In step S102, the location information of different blockchain nodes in the blockchain system to be constructed is obtained. The blockchain system is used to process user privacy information. The blockchain nodes include user privacy information collection and desensitization nodes, user privacy information processing nodes, and user privacy information storage nodes.
[0023] Among them, the blockchain is composed of multiple blocks. A block is a storage unit that records the communication information between each blockchain node within a certain period of time. The blocks are linked through random hashing (i.e., hash algorithm). The latter block contains the hash value of the previous block. As the information exchange expands, blocks are continuously generated, and the blocks are connected in succession to form a blockchain. The system composed of a blockchain can be called a blockchain system. The blockchain system can include blockchain nodes. Different blockchain nodes may have different functions and uses. For example, some blockchain nodes are used to collect business data of a certain business, and some blockchain nodes are used to process business data, etc. The specific settings can be based on actual conditions, and the embodiments of this specification do not limit this. The blockchain system in this embodiment can be a blockchain system for processing user privacy information. User privacy information processing can include user privacy information collection, user privacy information desensitization, and user privacy information identification. Accordingly, the blockchain system can also include blockchain nodes that perform the above-mentioned processes, such as user privacy information collection nodes, user privacy information desensitization nodes, user privacy information processing nodes, and user privacy information storage nodes. The user privacy information collection nodes can include user privacy information collection components, such as camera components and fingerprint collection components. After obtaining user consent, the user privacy information collection nodes can collect private information such as facial images and fingerprint data from different users through the user privacy information collection components. The user privacy information desensitization nodes can be used to desensitize the collected private information, thereby removing sensitive information contained in the user privacy information and obtaining data that does not contain sensitive information. The user privacy information processing nodes can be used to identify user privacy information, perform vectorization processing on user privacy information, and the user privacy information storage nodes can be used to store user privacy information that needs to be stored. The blockchain system can record relevant information such as the operations, behaviors, time, and operation paths performed by different blockchain nodes. In actual applications, the above-mentioned blockchain system may not only include the above-mentioned types of blockchain nodes, but may also include other types of blockchain nodes, which can be specifically set according to actual conditions.
[0024] In recent years, biometric systems (such as facial recognition) have become integrated into all aspects of daily life and production, and their applications are becoming increasingly widespread as the technology continues to advance. However, the widespread use of biometric technology is posing threats to user privacy. For example, many user analysis systems currently collect, identify, and store facial data without the user's knowledge. Merchants in certain shopping systems can even view users' facial images and store visit information through the system's backend.
[0025] In order to better solve the privacy and security issues of users, it is necessary not only to impose constraints from the legal and regulatory aspects, but also to seek solutions from the technical aspects. After collecting the user's privacy information, the user's privacy information can be desensitized / encrypted so that the user's privacy information is visually desensitized. Then, the desensitized user privacy information is calculated, transmitted, stored, etc. The above processing method can solve the privacy leakage problem to a certain extent. However, from the user's perspective, the user does not know where his user privacy information is collected, where it is transmitted, where it is stored, and whether it will be used again in the future. Therefore, no matter how high the security of the above method is, for the user, the user is almost unaware of the entire process, which makes the user's sense of security very limited. To this end, it is necessary to provide a privacy protection solution that can solve the user's sense of security problem and at the same time record the entire process of user privacy information from collection to desensitization / encryption, transmission and storage in a traceable manner. The embodiment of this specification provides a feasible technical solution, which may specifically include the following contents:
[0026] Based on the process or procedure of user privacy information processing, multiple processing devices can be pre-set, such as devices for collecting user privacy information, desensitizing devices, storage devices, etc. The above-set processing devices can be used as blockchain nodes. Based on the above content, Figure 2 As shown, blockchain nodes may include user privacy information collection nodes, user privacy information desensitization nodes, user privacy information processing nodes, user privacy information storage nodes, etc. In addition, considering that a blockchain system often includes a large number of blockchain nodes (such as 100 million blockchain nodes or 50 million blockchain nodes, etc.), and each blockchain node needs to store the full amount of data of the blockchain system, it is difficult for mobile devices or simple processing devices. For this reason, the blockchain system can be divided into multiple maintainable sub-blockchains. Specifically, the location information of each blockchain node can be obtained. This location information can be determined based on the geographical location or based on the relative position relative to a certain set reference position. The specific setting can be based on actual conditions. Then, the blockchain can be divided according to the location information of different blockchain nodes.
[0027] In step S104, based on the location information of different blockchain nodes, the area information corresponding to each sub-blockchain in the blockchain system is determined, and based on the determined area information and blockchain nodes, as well as the generated ledger information of the blockchain system, the corresponding sub-blockchain is constructed, and the management node of the blockchain system is constructed. The management node maintains data consistency with the blockchain nodes in each sub-blockchain through data synchronization. The ledger information is generated based on data obtained by the blockchain node during the processing of preset user privacy information.
[0028] The regional information may be information related to the regional scope. The regions corresponding to the regional information may include various types, specifically regions with regular shapes (such as rectangular or circular regions) or irregular shapes. The management node may be a node used to manage each sub-blockchain. The management node may be a virtual node or a blockchain node with physical equipment in the blockchain (i.e., a physical node). The specific setting can be based on actual conditions.
[0029] In implementation, after determining the location information of the locations of different blockchain nodes in the above manner, the total area corresponding to the blockchain system can be determined based on the locations of the different blockchain nodes. The total area includes the locations of the blockchain nodes in the blockchain system. The total area can be divided into multiple different sub-areas according to the aggregation of different blockchain nodes in the total area. Each sub-area can be used as the area corresponding to the sub-blockchain, and the blockchain nodes located in the sub-area can be used as nodes in the corresponding sub-blockchain. The area information corresponding to each sub-blockchain in the blockchain system can be determined in the above manner. Then, the information of the blockchain nodes in each sub-area (such as identification, etc.) can be obtained. In addition, the ledger information of the blockchain system can be generated based on the data obtained by the blockchain nodes during the processing of preset user privacy information. The corresponding sub-blockchain can be constructed based on the determined area information and the information of the blockchain nodes in each sub-area, as well as the generated ledger information of the blockchain system. In addition, in order to better manage each sub-blockchain, the generation mechanism of the management node can be set according to actual conditions, and the management node of the blockchain system can be constructed based on the generation mechanism. In order to enable different sub-blockchains to communicate with each other, the communication rules between the sub-blockchains can be pre-set. Through the communication rules, the management node and the blockchain nodes in each sub-blockchain can maintain data consistency through data synchronization. The specific settings can be based on actual conditions.
[0030] In step S106, a blockchain system is constructed based on the constructed sub-blockchain and management node.
[0031] In practice, the aforementioned method was used to construct multiple sub-blockchains and a management node to construct a blockchain system. This blockchain system can include multiple sub-blockchains and management nodes. The management node and nodes in each sub-blockchain can modify and update data through data sharing. Furthermore, each sub-blockchain includes a corresponding blockchain node and ledger information generated by data obtained by the blockchain node during the processing of preset user privacy information. A blockchain system can be constructed based on this ledger information, the sub-blockchains, and the management node.
[0032] Embodiments of this specification provide a method for constructing a blockchain for private information. The method obtains location information of different blockchain nodes in a blockchain system to be constructed. The blockchain system is used to process user privacy information. The blockchain nodes include user privacy information collection and desensitization nodes, user privacy information processing nodes, and user privacy information storage nodes. Based on the location information of the different blockchain nodes, the method determines the region information corresponding to each sub-blockchain in the blockchain system. Based on the determined region information and blockchain nodes, and the generated blockchain system ledger information, the method constructs a corresponding sub-blockchain. The method also constructs a management node for the blockchain system. The management node maintains data consistency with the blockchain nodes in each sub-blockchain through data synchronization. The method constructs a blockchain system based on the constructed sub-blockchains and management nodes. In this way, using joint blockchain technology, the processing flow of user privacy information is recorded at each node in the user privacy information link, thereby enabling users to control their own user privacy information throughout the entire process and comprehensively enhance their sense of privacy security. At the same time, the blockchain system records the entire process of user privacy information from collection to desensitization / encryption, transmission, and storage in a traceable manner. This can also resolve the contradiction between the limited storage capacity of each blockchain node and the requirements of the blockchain system itself. That is, the sub-blockchain is constructed by splitting the blockchain, thereby realizing the corresponding functions of the blockchain system.
[0033] Example 2
[0034] like Figure 3 As shown, the embodiment of this specification provides a method for constructing a blockchain for private information. The execution subject of this method can be a terminal device or a server, wherein the terminal device can be a mobile terminal device such as a mobile phone, a tablet computer, or a device such as a personal computer. The server can be an independent server or a server cluster composed of multiple servers. The server can be a management server for constructing a blockchain system. This method can be applied to related scenarios such as the construction of a blockchain for private information. In this embodiment, the server is used as the execution subject for detailed description. For the case of terminal devices, please refer to the following related content, which will not be repeated here. The method can specifically include the following steps:
[0035] In step S302, the location information of different blockchain nodes in the blockchain system to be constructed is obtained. The blockchain system is used to process user privacy information. The blockchain nodes include user privacy information collection and desensitization nodes, user privacy information processing nodes, and user privacy information storage nodes.
[0036] The user's private information includes one or more of fingerprint information, facial data, palm print information, and iris information. The blockchain system in this embodiment can be a joint (industry) blockchain.
[0037] In practice, the user privacy information collection and desensitization node can collect the user's biometric data and create a new user privacy blockchain. The starting node is the device that collects the user's privacy information. The user's privacy information is desensitized and transmitted using a preset desensitization algorithm and transmission protocol on the user privacy information collection device, and is recorded as a node in the blockchain system's ledger. The user's privacy information can be processed and identified by a user privacy information processing node (such as a server, etc.), and related information such as the server identifier (such as a number, etc.), the algorithm version involved, and the processing time can be recorded in the blockchain system. The user's privacy information can be stored by a user privacy information storage node (such as a storage server), and the storage server identifier (such as a number, etc.), storage time, etc. can be recorded in the blockchain system.
[0038] In addition, in the application, the above-mentioned blockchain system may include, in addition to the above-mentioned blockchain nodes, a user privacy information access node. The user privacy information access node is used to record relevant information of the blockchain nodes in the blockchain system accessing user privacy information, such as the time when a blockchain node accesses user privacy information, operation behavior information on user privacy information (such as reading, modifying, deleting, etc.), and other relevant information that can reflect the access traces of the blockchain node.
[0039] In step S304, based on the location information of different blockchain nodes, the center position of the area corresponding to each sub-blockchain is determined.
[0040] In implementation, the clustering of blockchain nodes can be determined based on the location information of different blockchain nodes. The center position of the area corresponding to each sub-blockchain can be determined based on the clustering of blockchain nodes. For example, through analysis, it is determined that the blockchain nodes form two clusters. The center of each cluster can be used as the center of a circle, and the position of the center is the center position of the circle.
[0041] In step S306, the area with the center position of the circle and the preset distance threshold as the radius is determined as the area information corresponding to each sub-blockchain in the blockchain system.
[0042] The distance threshold may be set according to actual conditions, such as 5 kilometers or 8 kilometers.
[0043] It should be noted that the above-mentioned distance threshold can be pre-set. In actual applications, it can also be determined according to the clustering of blockchain nodes. For example, according to the clustering of blockchain nodes, it is determined that the blockchain nodes form two clusters, one of which is exactly located in the center area of a circle with a radius of 5 kilometers, and the other cluster is exactly located in the center area of a circle with a radius of 3 kilometers. In this case, 5 kilometers can be used as the distance threshold (i.e., the radius), etc. The specific setting can also be based on actual conditions, and the embodiments of this specification do not limit this.
[0044] In step S308, a corresponding sub-blockchain is constructed based on the determined regional information and blockchain nodes, as well as the generated ledger information of the blockchain system, and a management node of the blockchain system is constructed. The management node and the blockchain nodes in each sub-blockchain are synchronized to maintain data consistency. The ledger information is generated based on data obtained by the blockchain node during the processing of preset user privacy information.
[0045] In step S310, a blockchain system is constructed based on the constructed sub-blockchain and management node.
[0046] In actual applications, the above-mentioned sub-blockchains are all homogeneous blockchains. In essence, the communication of the blockchain system can rely on the CCCP protocol. However, the CCCP protocol requires each blockchain to maintain all nodes. Therefore, the communication between the sub-blockchains in the above-constructed blockchain system is obviously not applicable to the above method. To this end, the above-mentioned CCCP protocol can be modified, and the communication of the blockchain system can be achieved by building a management node (Master node) while ensuring the security of the overall communication. The management node can include one or more. Based on the management node, a management chain (i.e., Master chain) can be built, and the remaining sub-blockchains can serve as subordinate chains (i.e., Slave chain). The Master chain maintains all nodes and keeps them synchronized with the Slave chain. The Slave chain only maintains the blockchain nodes in its own region or sub-blockchain. Since some blockchain nodes may exist in multiple regions at the same time (for example, due to the movement of devices or the cross-regional movement of users), the Slave node needs to communicate with the Master node to ensure the timeliness of the information. When the information of a blockchain node needs to be updated, it can be achieved through the processing of the following steps S312 and S314.
[0047] In step S312, an information update request of the target blockchain node in the child blockchain is obtained, and the information update request includes the information to be updated of the target blockchain node.
[0048] In implementation, Figure 4 As shown, when the information of a blockchain node (i.e., the target blockchain node) in a sub-blockchain needs to be updated, the information to be updated can be entered. After the input is completed, the corresponding device can obtain the information to be updated and generate an information update request for the target blockchain node. The information update request can be sent to the server, and the server can receive the information update request. At this time, the target blockchain node can be locked and the information to be updated can be locked.
[0049] In step S314, the information to be updated is provided to the management node to trigger the management node to update the target blockchain node based on the information to be updated, and send the information to be updated of the target blockchain node to the sub-blockchain where the target blockchain node is located.
[0050] In practice, the updated information is provided to the management node through a pre-set trusted channel. The management node searches for the corresponding blockchain node and modifies the information. The management node can also maintain a list of blockchain nodes and slave chains, and send the latest node information to the slave chain corresponding to the node being updated. The slave node accepts the updated information and updates the target blockchain node.
[0051] In actual applications, when a new node joins the blockchain system, the following steps S316 to S320 may be processed.
[0052] In step S316, a node joining request for the first terminal to access the blockchain system is received, and the node joining request includes information of the first terminal.
[0053] The first terminal may be any terminal and may be set according to actual conditions, and the embodiments of this specification do not limit this.
[0054] In implementation, if the first terminal needs to join the blockchain system, the information of the first terminal can be obtained to generate a node joining request, and the node joining request can be sent to the server. The server can receive the node joining request for the first terminal to access the blockchain system.
[0055] In step S318, based on the information of the first terminal, the node type of the first terminal in the blockchain system is determined. The node type includes a primary node and a secondary node. The primary node has the authority to modify and query the ledger information in the blockchain system, and the secondary node has the authority to query the ledger information in the blockchain system.
[0056] In practice, only pre-defined blockchain nodes of a specific type can modify blockchain information (i.e., ledger information). Other types of blockchain nodes can participate in the blockchain system but cannot modify the ledger information. A primary node is a node that can modify the ledger information. This includes device nodes in a biometric system, such as devices that collect user privacy information, servers that process user privacy information, servers that store user privacy information, and user terminals. Secondary nodes, such as third-party query nodes, can participate in the blockchain system but cannot modify the blockchain ledger information.
[0057] Based on the information of the first terminal, the node type of the first terminal in the blockchain system can be determined. If it is determined that the first terminal has the authority to modify and query the ledger information in the blockchain system, the first terminal can be determined to be a primary node. Alternatively, based on the functions that the first terminal can implement, it can be determined whether the first terminal is a primary node. If the first terminal is a primary node, the first terminal can be granted the authority to modify and query the ledger information in the blockchain system. If it is determined that the first terminal only has the authority to query the ledger information in the blockchain system, the first terminal can be determined to be a secondary node. Alternatively, based on the functions that the first terminal can implement, it can be determined that the first terminal is a secondary node, and the first terminal can be granted only the authority to query the ledger information in the blockchain system.
[0058] In step S320, based on the determined node type, the first terminal is connected to the blockchain system as a blockchain node.
[0059] In implementation, if the first terminal is determined to be a primary node, the first terminal can be connected to the blockchain system as a primary node. If the first terminal is determined to be a secondary node, the first terminal can be connected to the blockchain system as a secondary node. When the first terminal is added to the blockchain, the information of the first terminal needs to be made available to the blockchain, and users or other blockchain nodes are allowed to query it. For example, when the first terminal is connected to the blockchain, biometric information (such as the algorithm version) and information related to the first terminal, as well as the identifier of the first terminal, need to be made available to other blockchain nodes.
[0060] In addition, the user can query or view the relevant information of the user's facial data, which can be achieved through the processing of the following steps S322 and S324.
[0061] In step S322, based on the preset processing information of the user privacy information, the various blockchain nodes of the blockchain system are connected to obtain a connection relationship diagram of the blockchain nodes in the blockchain system.
[0062] In step S324, when a query request for the user's private information is received from the user, the connection relationship diagram is sent to the user to display the connection relationship diagram to the user.
[0063] In addition, the user has the right to delete his or her user privacy information and can delete his or her user privacy information at any time, which can be achieved through the processing of the following steps S326 and S328.
[0064] In step S326, a request for deleting the user's private information sent by the user is received, where the request includes the user's identifier.
[0065] In step S328, based on the identifier, the user's private information is searched and deleted from the blockchain system.
[0066] In addition, the user has the right to query his or her own user privacy information and can query the relevant information and usage of his or her user privacy information at any time. For details, please refer to the processing of steps S330 and S332 below.
[0067] In step S330, a query request for user privacy information sent by the user is received, where the query request includes the identifier of the user.
[0068] In step S332, based on the identifier, information corresponding to the query request is searched and displayed from the blockchain system. The information corresponding to the query request includes one or more of the relevant information of the blockchain node and the number of times the user's private information has been accessed.
[0069] Embodiments of this specification provide a method for constructing a blockchain for private information. The method obtains location information of different blockchain nodes in a blockchain system to be constructed. The blockchain system is used to process user privacy information. The blockchain nodes include user privacy information collection and desensitization nodes, user privacy information processing nodes, and user privacy information storage nodes. Based on the location information of the different blockchain nodes, the method determines the region information corresponding to each sub-blockchain in the blockchain system. Based on the determined region information and blockchain nodes, and the generated blockchain system ledger information, the method constructs a corresponding sub-blockchain. The method also constructs a management node for the blockchain system. The management node maintains data consistency with the blockchain nodes in each sub-blockchain through data synchronization. The method constructs a blockchain system based on the constructed sub-blockchains and management nodes. In this way, using joint blockchain technology, the processing flow of user privacy information is recorded at each node in the user privacy information link, thereby enabling users to control their own user privacy information throughout the entire process and comprehensively enhance their sense of privacy security. At the same time, the blockchain system records the entire process of user privacy information from collection to desensitization / encryption, transmission, and storage in a traceable manner. This can also resolve the contradiction between the limited storage capacity of each blockchain node and the requirements of the blockchain system itself. That is, the sub-blockchain is constructed by splitting the blockchain, thereby realizing the corresponding functions of the blockchain system.
[0070] Example 3
[0071] This embodiment will combine specific application scenarios to elaborate on a blockchain construction method for privacy information provided in the embodiments of this specification. The corresponding application scenario is the application scenario of facial recognition or facial data processing, where the user's privacy information can be the user's facial data. Figure 5 As shown, the execution subject of the method can be a terminal device or a server, wherein the terminal device can be a mobile terminal device such as a mobile phone, a tablet computer, or a personal computer. The server can be an independent server or a server cluster composed of multiple servers. The server can be a management server for building a blockchain system. The method can be applied to related scenarios such as the construction of a blockchain for private information. In this embodiment, the server is used as the execution subject for detailed description. For the case of terminal devices, please refer to the following relevant content, which will not be repeated here. The method can specifically include the following steps:
[0072] In step S502, the location information of different blockchain nodes in the blockchain system to be constructed is obtained. The blockchain system is used to process facial data. The blockchain nodes include facial data collection and desensitization nodes, facial data processing nodes, and facial data storage nodes.
[0073] In step S504, based on the location information of different blockchain nodes, the center position of the area corresponding to each sub-blockchain is determined.
[0074] In step S506, the area with the center position of the circle and the preset distance threshold as the radius is determined as the area information corresponding to each sub-blockchain in the blockchain system.
[0075] In step S508, a corresponding sub-blockchain is constructed based on the determined regional information and blockchain nodes, as well as the generated ledger information of the blockchain system, and a management node of the blockchain system is constructed. The management node and the blockchain nodes in each sub-blockchain are synchronized to maintain data consistency. The ledger information is generated based on data obtained by the blockchain node during the processing of preset facial data.
[0076] In step S510, a blockchain system is constructed based on the constructed sub-blockchain and management node.
[0077] In practical applications, the communication of the blockchain system can be achieved by building a management node (Master node) while ensuring the security of the overall communication. The management node can include one or more. A management chain (i.e., Master chain) can be built based on the management node, and the remaining sub-blockchains can serve as subordinate chains (i.e., Slave chains). The Master chain maintains all nodes and keeps them synchronized with the Slave chain. The Slave chain only maintains the blockchain nodes in this area or this sub-blockchain. Since some blockchain nodes may exist in multiple areas at the same time (for example, due to the movement of devices or the cross-regional movement of users), the Slave node needs to communicate with the Master node to ensure the timeliness of the information. When the information of a blockchain node needs to be updated, it can be achieved through the processing of the following steps S512 and S514.
[0078] In step S512, an information update request of the target blockchain node in the child blockchain is obtained, and the information update request includes the information to be updated of the target blockchain node.
[0079] In step S514, the information to be updated is provided to the management node to trigger the management node to update the target blockchain node based on the information to be updated, and send the information to be updated of the target blockchain node to the sub-blockchain where the target blockchain node is located.
[0080] In addition, for a newly added node, this can be achieved through the processing of the following steps S516 to S520.
[0081] In step S516, a node joining request for the first terminal to access the blockchain system is received, and the node joining request includes information of the first terminal.
[0082] In step S518, based on the information of the first terminal, the node type of the first terminal in the blockchain system is determined. The node type includes a primary node and a secondary node. The primary node has the authority to modify and query the ledger information in the blockchain system, and the secondary node has the authority to query the ledger information in the blockchain system.
[0083] In step S520, based on the determined node type, the first terminal is connected to the blockchain system as a blockchain node.
[0084] The user can query or view the relevant information of the user's facial data, which can be achieved through the processing of the following steps S522 and S524.
[0085] In step S522, based on the preset processing process information of the facial data, the various blockchain nodes of the blockchain system are connected to obtain a connection relationship diagram of the blockchain nodes in the blockchain system.
[0086] In step S524, when a query request for the user's private information is received from the user, the connection relationship diagram is sent to the user to display the connection relationship diagram to the user.
[0087] In addition, the user has the right to delete his or her facial data and can delete his or her facial data at any time. This can be achieved through the processing of the following steps S526 and S528.
[0088] In step S526, a deletion request for the user's facial data sent by the user is received, and the deletion request includes the user's identifier.
[0089] In step S528, based on the identifier, the user's facial data is searched and deleted from the blockchain system.
[0090] In addition, the user has the right to query his or her facial data and can query the relevant information and usage of his or her facial data at any time. For details, please refer to the processing of steps S530 and S532 below.
[0091] In step S530, a query request for facial data of the user sent by the user is received, where the query request includes an identifier of the user.
[0092] In step S532, based on the identifier, information corresponding to the query request is searched and displayed from the blockchain system. The information corresponding to the query request includes one or more of the relevant information of the blockchain node and the number of times the user's facial data has been accessed.
[0093] Embodiments of this specification provide a method for constructing a blockchain for private information. The method obtains location information of different blockchain nodes in a blockchain system to be constructed. The blockchain system is used to process user privacy information. The blockchain nodes include user privacy information collection and desensitization nodes, user privacy information processing nodes, and user privacy information storage nodes. Based on the location information of the different blockchain nodes, the method determines the region information corresponding to each sub-blockchain in the blockchain system. Based on the determined region information and blockchain nodes, and the generated blockchain system ledger information, the method constructs a corresponding sub-blockchain. The method also constructs a management node for the blockchain system. The management node maintains data consistency with the blockchain nodes in each sub-blockchain through data synchronization. The method constructs a blockchain system based on the constructed sub-blockchains and management nodes. In this way, using joint blockchain technology, the processing flow of user privacy information is recorded at each node in the user privacy information link, thereby enabling users to control their own user privacy information throughout the entire process and comprehensively enhance their sense of privacy security. At the same time, the blockchain system records the entire process of user privacy information from collection to desensitization / encryption, transmission, and storage in a traceable manner. This can also resolve the contradiction between the limited storage capacity of each blockchain node and the requirements of the blockchain system itself. That is, the sub-blockchain is constructed by splitting the blockchain, thereby realizing the corresponding functions of the blockchain system.
[0094] Example 4
[0095] The above is a blockchain construction method for private information provided in the embodiment of this specification. Based on the same idea, the embodiment of this specification also provides a blockchain construction device for private information, such as Figure 6 shown.
[0096] The blockchain construction device for private information includes: a location acquisition module 601, a sub-blockchain construction module 602, and a blockchain construction module 603, wherein:
[0097] A location acquisition module 601 acquires location information of different blockchain nodes in a blockchain system to be constructed, wherein the blockchain system is used to process user privacy information. The blockchain nodes include user privacy information collection and desensitization nodes, user privacy information processing nodes, and user privacy information storage nodes.
[0098] The sub-blockchain construction module 602 determines the region information corresponding to each sub-blockchain in the blockchain system based on the location information of different blockchain nodes, and constructs the corresponding sub-blockchain based on the determined region information and the blockchain nodes, as well as the generated ledger information of the blockchain system, and constructs a management node of the blockchain system. The management node maintains data consistency with the blockchain nodes in each sub-blockchain through data synchronization. The ledger information is generated based on data obtained by the blockchain nodes during the processing of preset user privacy information;
[0099] The blockchain construction module 603 constructs the blockchain system based on the constructed sub-blockchain and the management node.
[0100] In the embodiment of this specification, the device further includes:
[0101] An update request module is configured to obtain an information update request of a target blockchain node in the sub-blockchain, wherein the information update request includes information to be updated of the target blockchain node;
[0102] The update module provides the information to be updated to the management node to trigger the management node to update the target blockchain node based on the information to be updated, and sends the information to be updated of the target blockchain node to the sub-blockchain where the target blockchain node is located.
[0103] In the embodiment of this specification, the sub-blockchain construction module 602 includes:
[0104] A circle center determination unit, which determines the center position of the area corresponding to each sub-blockchain based on the position information of different blockchain nodes;
[0105] The area determination unit determines an area with a radius of the center position of the circle and a preset distance threshold as area information corresponding to each sub-blockchain in the blockchain system.
[0106] In an embodiment of this specification, the blockchain node also includes a user privacy information access node, which is used to record relevant information about the blockchain node in the blockchain system accessing user privacy information.
[0107] In the embodiment of this specification, the device further includes:
[0108] a node joining request module, receiving a node joining request for a first terminal to access the blockchain system, the node joining request including information of the first terminal;
[0109] a type determination module, which determines, based on the information of the first terminal, a node type of the first terminal in the blockchain system, wherein the node types include a primary node and a secondary node, wherein the primary node has permission to modify and query ledger information in the blockchain system, and the secondary node has permission to query ledger information in the blockchain system;
[0110] The node joining module connects the first terminal as the blockchain node to the blockchain system based on the determined node type.
[0111] In the embodiment of this specification, the device further includes:
[0112] A node connection module, which connects the various blockchain nodes of the blockchain system based on the preset processing process information of the user privacy information to obtain a connection relationship diagram of the blockchain nodes in the blockchain system;
[0113] The display module, when receiving a query request for the user's user privacy information sent by the user, sends the connection relationship diagram to the user to display the connection relationship diagram to the user.
[0114] In the embodiment of this specification, the device further includes:
[0115] A deletion request module receives a deletion request from a user for the user's private information, wherein the deletion request includes an identifier of the user;
[0116] A deletion module searches for and deletes the user's private information from the blockchain system based on the identifier.
[0117] In the embodiment of this specification, the device further includes:
[0118] An information query module receives a query request for user privacy information sent by a user, wherein the query request includes an identifier of the user;
[0119] An information display module searches and displays information corresponding to the query request from the blockchain system based on the identifier, where the information corresponding to the query request includes one or more of the following: relevant information of the blockchain node and the number of times the user's private information has been accessed.
[0120] In the embodiments of this specification, the user privacy information includes one or more of fingerprint information, facial data, palm print information, and iris information.
[0121] Embodiments of this specification provide a blockchain construction device for private information. The device obtains location information of different blockchain nodes in a blockchain system to be constructed. The blockchain system is used to process user private information. The blockchain nodes include user private information collection and desensitization nodes, user private information processing nodes, and user private information storage nodes. Based on the location information of the different blockchain nodes, the device determines the region information corresponding to each sub-blockchain in the blockchain system. Based on the determined region information and blockchain nodes, and the generated blockchain system ledger information, the device constructs a corresponding sub-blockchain. The management node maintains data consistency with the blockchain nodes in each sub-blockchain through data synchronization. The blockchain system is constructed based on the constructed sub-blockchains and management nodes. In this way, using joint blockchain technology, the processing flow of user private information is recorded at each node in the user private information link, thereby enabling users to control their own user private information throughout the entire process, comprehensively enhancing their sense of privacy and security. At the same time, the blockchain system records the entire process of user private information from collection to desensitization / encryption, transmission, and storage in a traceable manner. This can also resolve the contradiction between the limited storage capacity of each blockchain node and the requirements of the blockchain system itself. That is, the sub-blockchain is constructed by splitting the blockchain, thereby realizing the corresponding functions of the blockchain system.
[0122] Example 5
[0123] The above is a blockchain construction device for private information provided by the embodiment of this specification. Based on the same idea, the embodiment of this specification also provides a blockchain construction device for private information, such as Figure 7 shown.
[0124] The blockchain construction device for private information can provide a terminal device or a server, etc. for the above embodiment.
[0125] Blockchain construction devices for private information may vary significantly depending on their configuration or performance. They may include one or more processors 701 and memory 702. Memory 702 may store one or more applications or data. Memory 702 may be either ephemeral or persistent. The applications stored in memory 702 may include one or more modules (not shown), each of which may include a series of computer-executable instructions for the blockchain construction device for private information. Furthermore, processor 701 may be configured to communicate with memory 702 to execute the series of computer-executable instructions in memory 702 on the blockchain construction device for private information. The blockchain construction device for private information may also include one or more power supplies 703, one or more wired or wireless network interfaces 704, one or more input / output interfaces 705, and one or more keyboards 706.
[0126] Specifically, in this embodiment, the blockchain construction device for private information includes a memory and one or more programs, wherein the one or more programs are stored in the memory, and the one or more programs may include one or more modules, and each module may include a series of computer-executable instructions in the blockchain construction device for private information, and the one or more programs are configured to be executed by one or more processors, including computer-executable instructions for performing the following:
[0127] Obtaining location information of different blockchain nodes in a blockchain system to be constructed, wherein the blockchain system is used to process user privacy information, and the blockchain nodes include user privacy information collection and desensitization nodes, user privacy information processing nodes, and user privacy information storage nodes;
[0128] Based on the location information of different blockchain nodes, determining the region information corresponding to each sub-blockchain in the blockchain system, and constructing a corresponding sub-blockchain based on the determined region information and the blockchain node, as well as the generated ledger information of the blockchain system, and constructing a management node of the blockchain system, wherein the management node maintains data consistency with the blockchain nodes in each sub-blockchain through data synchronization, and the ledger information is generated based on data obtained by the blockchain node during the processing of preset user privacy information;
[0129] The blockchain system is constructed based on the constructed sub-blockchain and the management node.
[0130] In the embodiments of this specification, further comprising:
[0131] Obtaining an information update request for a target blockchain node in the child blockchain, wherein the information update request includes information to be updated for the target blockchain node;
[0132] The information to be updated is provided to the management node to trigger the management node to update the target blockchain node based on the information to be updated, and send the information to be updated of the target blockchain node to the sub-blockchain where the target blockchain node is located.
[0133] In the embodiments of this specification, determining the region information corresponding to each sub-blockchain in the blockchain system based on the location information of different blockchain nodes includes:
[0134] Based on the location information of different blockchain nodes, determine the center position of the area corresponding to each sub-blockchain;
[0135] The area with the center position of the circle and a preset distance threshold as the radius is determined as the area information corresponding to each sub-blockchain in the blockchain system.
[0136] In an embodiment of this specification, the blockchain node also includes a user privacy information access node, which is used to record relevant information about the blockchain node in the blockchain system accessing user privacy information.
[0137] In the embodiments of this specification, further comprising:
[0138] receiving a node joining request for a first terminal to access the blockchain system, the node joining request including information of the first terminal;
[0139] Determining, based on the information of the first terminal, a node type of the first terminal in the blockchain system, where the node types include a primary node and a secondary node, the primary node having permission to modify and query ledger information in the blockchain system, and the secondary node having permission to query ledger information in the blockchain system;
[0140] Based on the determined node type, the first terminal is connected to the blockchain system as the blockchain node.
[0141] In the embodiments of this specification, further comprising:
[0142] Based on the preset processing information of the user privacy information, the various blockchain nodes of the blockchain system are connected to obtain a connection relationship diagram of the blockchain nodes in the blockchain system;
[0143] When a query request for user privacy information of a user is received from a user, the connection relationship diagram is sent to the user to display the connection relationship diagram to the user.
[0144] In the embodiments of this specification, further comprising:
[0145] receiving a request from a user to delete the user's private information, wherein the request includes an identifier of the user;
[0146] Based on the identifier, the user's private information is searched and deleted from the blockchain system.
[0147] In the embodiments of this specification, further comprising:
[0148] receiving a query request for user privacy information of the user sent by the user, wherein the query request includes an identifier of the user;
[0149] Based on the identifier, information corresponding to the query request is searched and displayed from the blockchain system, where the information corresponding to the query request includes one or more of the relevant information of the blockchain node and the number of times the user's private information has been accessed.
[0150] In the embodiments of this specification, the user privacy information includes one or more of fingerprint information, facial data, palm print information, and iris information.
[0151] Embodiments of this specification provide a blockchain construction device for private information, which obtains location information of different blockchain nodes in a blockchain system to be constructed. The blockchain system is used to process user privacy information. The blockchain nodes include user privacy information collection and desensitization nodes, user privacy information processing nodes, and user privacy information storage nodes. Based on the location information of the different blockchain nodes, the device determines the region information corresponding to each sub-blockchain in the blockchain system, and constructs a corresponding sub-blockchain based on the determined region information and blockchain nodes, as well as the generated blockchain system ledger information. The device also constructs a management node for the blockchain system, and maintains data consistency through data synchronization between the management node and the blockchain nodes in each sub-blockchain. The blockchain system is constructed based on the constructed sub-blockchains and management nodes. In this way, using joint blockchain technology, the processing flow of user privacy information is recorded at each node in the user privacy information link, thereby enabling users to control their own user privacy information throughout the entire process, comprehensively enhancing their sense of privacy and security. At the same time, the blockchain system records the entire process of user privacy information from collection to desensitization / encryption, transmission, and storage in a traceable manner. This can also resolve the contradiction between the limited storage capacity of each blockchain node and the requirements of the blockchain system itself. That is, the sub-blockchain is constructed by splitting the blockchain, thereby realizing the corresponding functions of the blockchain system.
[0152] Example 6
[0153] Furthermore, based on the above Figures 1 to 5 In one or more embodiments of the present specification, a storage medium is provided for storing computer-executable instruction information. In a specific embodiment, the storage medium may be a USB flash drive, an optical disk, a hard disk, etc. When the computer-executable instruction information stored in the storage medium is executed by a processor, the following process can be implemented:
[0154] Obtaining location information of different blockchain nodes in a blockchain system to be constructed, wherein the blockchain system is used to process user privacy information, and the blockchain nodes include user privacy information collection and desensitization nodes, user privacy information processing nodes, and user privacy information storage nodes;
[0155] Based on the location information of different blockchain nodes, determining the region information corresponding to each sub-blockchain in the blockchain system, and constructing a corresponding sub-blockchain based on the determined region information and the blockchain node, as well as the generated ledger information of the blockchain system, and constructing a management node of the blockchain system, wherein the management node maintains data consistency with the blockchain nodes in each sub-blockchain through data synchronization, and the ledger information is generated based on data obtained by the blockchain node during the processing of preset user privacy information;
[0156] The blockchain system is constructed based on the constructed sub-blockchain and the management node.
[0157] In the embodiments of this specification, further comprising:
[0158] Obtaining an information update request for a target blockchain node in the child blockchain, wherein the information update request includes information to be updated for the target blockchain node;
[0159] The information to be updated is provided to the management node to trigger the management node to update the target blockchain node based on the information to be updated, and send the information to be updated of the target blockchain node to the sub-blockchain where the target blockchain node is located.
[0160] In the embodiments of this specification, determining the region information corresponding to each sub-blockchain in the blockchain system based on the location information of different blockchain nodes includes:
[0161] Based on the location information of different blockchain nodes, determine the center position of the area corresponding to each sub-blockchain;
[0162] The area with the center position of the circle and a preset distance threshold as the radius is determined as the area information corresponding to each sub-blockchain in the blockchain system.
[0163] In an embodiment of this specification, the blockchain node also includes a user privacy information access node, which is used to record relevant information about the blockchain node in the blockchain system accessing user privacy information.
[0164] In the embodiments of this specification, further comprising:
[0165] receiving a node joining request for a first terminal to access the blockchain system, the node joining request including information of the first terminal;
[0166] Determining, based on the information of the first terminal, a node type of the first terminal in the blockchain system, where the node types include a primary node and a secondary node, the primary node having permission to modify and query ledger information in the blockchain system, and the secondary node having permission to query ledger information in the blockchain system;
[0167] Based on the determined node type, the first terminal is connected to the blockchain system as the blockchain node.
[0168] In the embodiments of this specification, further comprising:
[0169] Based on the preset processing information of the user privacy information, the various blockchain nodes of the blockchain system are connected to obtain a connection relationship diagram of the blockchain nodes in the blockchain system;
[0170] When a query request for user privacy information of a user is received from a user, the connection relationship diagram is sent to the user to display the connection relationship diagram to the user.
[0171] In the embodiments of this specification, further comprising:
[0172] receiving a request from a user to delete the user's private information, wherein the request includes an identifier of the user;
[0173] Based on the identifier, the user's private information is searched and deleted from the blockchain system.
[0174] In the embodiments of this specification, further comprising:
[0175] receiving a query request for user privacy information of the user sent by the user, wherein the query request includes an identifier of the user;
[0176] Based on the identifier, information corresponding to the query request is searched and displayed from the blockchain system, where the information corresponding to the query request includes one or more of the relevant information of the blockchain node and the number of times the user's private information has been accessed.
[0177] In the embodiments of this specification, the user privacy information includes one or more of fingerprint information, facial data, palm print information, and iris information.
[0178] Embodiments of this specification provide a storage medium for obtaining location information of different blockchain nodes in a blockchain system to be constructed. The blockchain system is used to process user privacy information. The blockchain nodes include user privacy information collection and desensitization nodes, user privacy information processing nodes, and user privacy information storage nodes. Based on the location information of the different blockchain nodes, the region information corresponding to each sub-blockchain in the blockchain system is determined. The corresponding sub-blockchain is constructed based on the determined region information and blockchain nodes, as well as the generated blockchain system ledger information. A management node of the blockchain system is also constructed. The management node maintains data consistency with the blockchain nodes in each sub-blockchain through data synchronization. The blockchain system is constructed based on the constructed sub-blockchains and management nodes. In this way, using joint blockchain technology, the processing flow of user privacy information is recorded at each node in the user privacy information link, thereby enabling users to control their own user privacy information throughout the entire process, comprehensively enhancing their sense of privacy and security. At the same time, the entire process of user privacy information, from collection to desensitization / encryption, transmission, and storage, is recorded retroactively through the blockchain system. This can also resolve the contradiction between the limited storage capacity of each blockchain node and the requirements of the blockchain system itself. That is, the sub-blockchain is constructed by splitting the blockchain, thereby realizing the corresponding functions of the blockchain system.
[0179] The foregoing description of this specification describes specific embodiments. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recited in the claims can be performed in an order different from that described in the embodiments and still achieve the desired results. Furthermore, the processes depicted in the accompanying drawings do not necessarily require the specific order shown or the sequential order to achieve the desired results. In certain embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0180] In the 1990s, technological improvements could be clearly distinguished as either hardware improvements (for example, improvements to circuit structures such as diodes, transistors, and switches) or software improvements (improvements to process flows). However, with the advancement of technology, many process flow improvements today can now be considered direct improvements to hardware circuit structures. Designers almost always create the corresponding hardware circuit structure by programming the improved process flow into the hardware circuit. Therefore, it cannot be said that a process flow improvement cannot be implemented using hardware modules. For example, a programmable logic device (PLD), such as a field programmable gate array (FPGA), is an integrated circuit whose logical function is determined by user programming. Designers can "integrate" a digital system on a PLD by programming it themselves, without having to hire a chip manufacturer to design and produce a dedicated integrated circuit chip. Moreover, nowadays, instead of manually fabricating integrated circuit chips, this programming is mostly done using "logic compiler" software. This is similar to the software compiler used when developing programs. Before compilation, the original code must also be written in a specific programming language, called a hardware description language (HDL). There is not just one HDL, but many, such as ABEL (Advanced Boolean Expression Language), AHDL (Altera Hardware Description Language), Confluence, CUPL (Cornell University Programming Language), HDCal, JHDL (Java Hardware Description Language), Lava, Lola, MyHDL, PALASM, RHDL (Ruby Hardware Description Language), etc. The most commonly used ones are VHDL (Very-High-Speed Integrated Circuit Hardware Description Language) and Verilog. Those skilled in the art will also understand that by simply programming the method flow in one of these hardware description languages and then programming it into an integrated circuit, a hardware circuit that implements the logic method flow can be easily obtained.
[0181] The controller can be implemented in any suitable manner. For example, the controller can take the form of a microprocessor or processor and a computer-readable medium storing computer-readable program code (e.g., software or firmware) executable by the (micro)processor, logic gates, switches, an application-specific integrated circuit (ASIC), a programmable logic controller, and an embedded microcontroller. Examples of controllers include, but are not limited to, the following microcontrollers: ARC625D, Atmel AT91SAM, Microchip PIC18F26K20, and Silicone Labs C8051F320. The memory controller can also be implemented as part of the control logic of the memory. Those skilled in the art will also know that in addition to implementing the controller in a purely computer-readable program code format, the controller can be implemented in the form of logic gates, switches, an application-specific integrated circuit, a programmable logic controller, and an embedded microcontroller by logically programming the method steps. Therefore, such a controller can be considered a hardware component, and the means for implementing various functions included therein can also be considered as structures within the hardware component. Or even, the means for implementing various functions can be considered as both a software module implementing the method and a structure within the hardware component.
[0182] The systems, devices, modules, or units described in the above embodiments may be implemented by computer chips or entities, or by products having certain functions. A typical implementation device is a computer. Specifically, the computer may be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smartphone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
[0183] For the convenience of description, the above devices are described as being divided into various units according to their functions. Of course, when implementing one or more embodiments of this specification, the functions of each unit can be implemented in the same or multiple software and / or hardware.
[0184] Those skilled in the art will appreciate that the embodiments of this specification may be provided as methods, systems, or computer program products. Therefore, one or more embodiments of this specification may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Furthermore, one or more embodiments of this specification may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to magnetic disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0185] The embodiments of this specification are described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of this specification. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable fraud case serial and parallel device to produce a machine, so that the instructions executed by the processor of the computer or other programmable fraud case serial and parallel device generate instructions for implementing the process in the process. Figure 1 a process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0186] These computer program instructions may also be stored in a computer readable memory capable of directing a computer or other programmable fraud case serial and parallel device to operate in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture comprising an instruction device, the instruction device being implemented in the process Figure 1 a process or multiple processes and / or boxes Figure 1 The function specified in one or more boxes.
[0187] These computer program instructions may also be loaded onto a computer or other programmable device so that a series of operational steps are executed on the computer or other programmable device to produce a computer-implemented process, whereby the instructions executed on the computer or other programmable device provide for implementing the process. Figure 1 a process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.
[0188] In a typical configuration, a computing device includes one or more processors (CPUs), input / output interfaces, network interfaces, and memory.
[0189] Memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. Memory is an example of a computer-readable medium.
[0190] Computer-readable media includes permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. The information can be computer-readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer-readable media does not include transitory computer-readable media (transitory media), such as modulated data signals and carrier waves.
[0191] It should also be noted that the terms "comprises," "includes," or any other variations thereof are intended to encompass non-exclusive inclusion, such that a process, method, commodity, or apparatus that includes a series of elements includes not only those elements but also other elements not explicitly listed, or includes elements inherent to such process, method, commodity, or apparatus. In the absence of further limitations, an element defined by the phrase "comprises a ..." does not exclude the presence of other identical elements in the process, method, commodity, or apparatus that includes the element.
[0192] Those skilled in the art will appreciate that the embodiments of this specification may be provided as methods, systems, or computer program products. Thus, one or more embodiments of this specification may take the form of a fully hardware embodiment, a fully software embodiment, or an embodiment combining software and hardware. Furthermore, one or more embodiments of this specification may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to magnetic disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0193] One or more embodiments of this specification may be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, and the like that perform specific tasks or implement specific abstract data types. One or more embodiments of this specification may also be practiced in distributed computing environments where tasks are performed by remote processing devices connected via a communications network. In a distributed computing environment, program modules may be located in local and remote computer storage media, including storage devices.
[0194] The various embodiments in this specification are described in a progressive manner. Similar parts between the various embodiments can be referred to in conjunction with each other. Each embodiment focuses on the differences between the other embodiments. In particular, the system embodiments are generally similar to the method embodiments, so the description is relatively simple. For relevant parts, refer to the description of the method embodiments.
[0195] The foregoing is merely an example of the present invention and is not intended to limit the present invention. Various modifications and variations are possible for those skilled in the art. Any modifications, equivalent substitutions, or improvements made within the spirit and principles of the present invention are intended to be included within the scope of the claims of the present invention.
Claims
1. A method for constructing a blockchain for private information, the method comprising: Obtaining location information of different blockchain nodes in a blockchain system to be constructed, wherein the blockchain system is used to process user privacy information, and the blockchain nodes include user privacy information collection and desensitization nodes, user privacy information processing nodes, and user privacy information storage nodes; Based on the location information of different blockchain nodes, determine the region information corresponding to each sub-blockchain in the blockchain system, and construct a corresponding sub-blockchain based on the determined region information and the blockchain nodes in each sub-region, as well as the generated ledger information of the blockchain system, and construct a management node of the blockchain system. The management node maintains data consistency with the blockchain nodes in each sub-blockchain through data synchronization. The ledger information is generated based on data obtained by the blockchain node during the processing of preset user privacy information. The sub-regions are obtained by dividing the total region according to the aggregation of the blockchain nodes in the total region. The total region is determined according to the locations of the different blockchain nodes and corresponds to the blockchain system. The blockchain system is constructed based on the constructed sub-blockchain and the management node.
2. The method according to claim 1, further comprising: Obtaining an information update request for a target blockchain node in the child blockchain, wherein the information update request includes information to be updated for the target blockchain node; The information to be updated is provided to the management node to trigger the management node to update the target blockchain node based on the information to be updated, and send the information to be updated of the target blockchain node to the sub-blockchain where the target blockchain node is located.
3. The method according to claim 1, wherein determining the region information corresponding to each sub-blockchain in the blockchain system based on the location information of different blockchain nodes comprises: Based on the location information of different blockchain nodes, determine the center position of the area corresponding to each sub-blockchain; The area with the center position of the circle and a preset distance threshold as the radius is determined as the area information corresponding to each sub-blockchain in the blockchain system.
4. According to the method according to claim 1, the blockchain node also includes a user privacy information access node, and the user privacy information access node is used to record relevant information of the blockchain node in the blockchain system accessing user privacy information.
5. The method according to claim 1, further comprising: receiving a node joining request for a first terminal to access the blockchain system, the node joining request including information of the first terminal; Determining, based on the information of the first terminal, a node type of the first terminal in the blockchain system, where the node types include a primary node and a secondary node, the primary node having permission to modify and query ledger information in the blockchain system, and the secondary node having permission to query ledger information in the blockchain system; Based on the determined node type, the first terminal is connected to the blockchain system as the blockchain node.
6. The method according to claim 1, further comprising: Based on the preset processing information of the user privacy information, the various blockchain nodes of the blockchain system are connected to obtain a connection relationship diagram of the blockchain nodes in the blockchain system; When a query request for user privacy information of a user is received from a user, the connection relationship diagram is sent to the user to display the connection relationship diagram to the user.
7. The method according to claim 1, further comprising: receiving a request from a user to delete the user's private information, wherein the request includes an identifier of the user; Based on the identifier, the user's private information is searched and deleted from the blockchain system.
8. The method according to claim 1, further comprising: receiving a query request for user privacy information of the user sent by the user, wherein the query request includes an identifier of the user; Based on the identifier, information corresponding to the query request is searched and displayed from the blockchain system, where the information corresponding to the query request includes one or more of the relevant information of the blockchain node and the number of times the user's private information has been accessed.
9. The method according to any one of claims 1 to 8, wherein the user privacy information comprises one or more of fingerprint information, facial data, palm print information, and iris information.
10. A blockchain construction device for private information, the device comprising: A location acquisition module, which acquires the location information of different blockchain nodes in the blockchain system to be constructed. The blockchain system is used to process user privacy information. The blockchain nodes include user privacy information collection and desensitization nodes, user privacy information processing nodes, and user privacy information storage nodes. A sub-blockchain construction module determines the region information corresponding to each sub-blockchain in the blockchain system based on the location information of different blockchain nodes, and constructs a corresponding sub-blockchain based on the determined region information and the blockchain nodes in each sub-region, as well as the generated ledger information of the blockchain system, and constructs a management node of the blockchain system. The management node maintains data consistency with the blockchain nodes in each sub-blockchain through data synchronization. The ledger information is generated based on data obtained by the blockchain node during the processing of preset user privacy information. The sub-regions are obtained by dividing the total region according to the aggregation of the blockchain nodes in the total region. The total region is determined according to the locations of different blockchain nodes and corresponds to the blockchain system. A blockchain construction module constructs the blockchain system based on the constructed sub-blockchain and the management node.
11. A blockchain construction device for private information, the blockchain construction device for private information comprising: processor; as well as a memory arranged to store computer-executable instructions which, when executed, cause the processor to: Obtaining location information of different blockchain nodes in a blockchain system to be constructed, wherein the blockchain system is used to process user privacy information, and the blockchain nodes include user privacy information collection and desensitization nodes, user privacy information processing nodes, and user privacy information storage nodes; Based on the location information of different blockchain nodes, determine the region information corresponding to each sub-blockchain in the blockchain system, and construct a corresponding sub-blockchain based on the determined region information and the blockchain nodes in each sub-region, as well as the generated ledger information of the blockchain system, and construct a management node of the blockchain system. The management node maintains data consistency with the blockchain nodes in each sub-blockchain through data synchronization. The ledger information is generated based on data obtained by the blockchain node during the processing of preset user privacy information. The sub-regions are obtained by dividing the total region according to the aggregation of the blockchain nodes in the total region. The total region is determined according to the locations of the different blockchain nodes and corresponds to the blockchain system. The blockchain system is constructed based on the constructed sub-blockchain and the management node.
12. A storage medium for storing computer-executable instructions, wherein the computer-executable instructions, when executed by a processor, implement the following process: Obtaining location information of different blockchain nodes in a blockchain system to be constructed, wherein the blockchain system is used to process user privacy information, and the blockchain nodes include user privacy information collection and desensitization nodes, user privacy information processing nodes, and user privacy information storage nodes; Based on the location information of different blockchain nodes, determine the region information corresponding to each sub-blockchain in the blockchain system, and construct a corresponding sub-blockchain based on the determined region information and the blockchain nodes in each sub-region, as well as the generated ledger information of the blockchain system, and construct a management node of the blockchain system. The management node maintains data consistency with the blockchain nodes in each sub-blockchain through data synchronization. The ledger information is generated based on data obtained by the blockchain node during the processing of preset user privacy information. The sub-regions are obtained by dividing the total region according to the aggregation of the blockchain nodes in the total region. The total region is determined according to the locations of the different blockchain nodes and corresponds to the blockchain system. The blockchain system is constructed based on the constructed sub-blockchain and the management node.
Citation Information
Patent Citations
Intelligent medical data storage method based on multi-level blockchain system architecture
CN110727737A
Block chain-based transaction query and transaction data processing method, device and equipment
CN113205339A