Power wireless private network security method, system and device based on block chain algorithm, and storage medium
Through the blockchain algorithm-based power wireless private network security method, the scalability and adaptability of traditional security mechanisms in the big data environment is solved, efficient data security management and access control are realized, and the power wireless private network is ensured. safety and stability.
Patent Information
- Application Number
- CN202411047745.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-01
- Publication Date
- 2024-11-01
AI Technical Summary
Traditional power wireless private network security mechanisms cannot effectively deal with the problems of rapid data explosion, scalability, interoperability and adaptability, and the existing access control models have risks of management complexity and security vulnerabilities in big data environments.
Adopt the power wireless private network security method based on blockchain algorithm, and by establishing real and simulated data sets for distributed storage, defining private key policies, and combining path compression algorithms, a security mechanism based on blockchain is formed to realize the data object. Key management and access control.
Improves data confidentiality and integrity, ensures security and scalability in a fast data environment, reduces management complexity and security vulnerability risks, and provides flexible access control and adaptability.
Smart Images

Figure CN118890141A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of power wireless private network security mechanism, and specifically to a power wireless private network security method, system, device and storage medium based on a blockchain algorithm. Background Art
[0002] In power wireless private networks, security mechanisms are usually used to protect the security of network communications and data transmission and prevent unauthorized access and attacks. Since power wireless private networks generate a large amount of data, these data may include the operating status of the power system, sensor data, user information, etc., which can be regarded as big data. Big data may contain user privacy information or sensitive data. If these data are leaked or unauthorized access is made, it will pose a threat to user privacy and system security. Therefore, it is necessary to study efficient security mechanisms for power wireless private networks.
[0003] Traditional methods of power wireless private network security mechanisms mainly include encryption technology, identity authentication, access control, security protocols, firewalls, and intrusion detection systems. Specifically, encryption technology is used to encrypt data to ensure that the data is not stolen or tampered with during transmission. Common encryption algorithms include AES, DES, etc.; user identity is verified through identity authentication mechanisms to ensure that only authorized users can access the system. Common identity authentication methods include username and password, digital certificates, etc.; strict access control policies are implemented to limit user access rights to system resources and prevent unauthorized users from accessing the system; secure communication protocols such as SSL / TLS protocols are used to ensure data transmission security during communication; firewalls and intrusion detection systems are deployed to monitor network traffic and detect potential intrusion behaviors to protect the system from network attacks. Among them, access control, as one of the most commonly used methods in the power wireless private network security mechanism, has the advantages of limiting access rights, protecting key resources, reducing security vulnerabilities, meeting regulatory requirements and flexibility, and can effectively improve the security of the system and protect the system from unauthorized access and attacks.
[0004] The main models of traditional access control are mandatory access control (MAC), discretionary access control (DAC), and role-based access control (RBAC). MAC is a hierarchical model in which access rights are managed by a central authority through security levels. All users and user groups are assigned a security level, and all information is assigned a security label. Users can access or be denied access to resources corresponding to security levels equal to or lower than their security level in the hierarchy. Since the administrator must assign all authorizations, the management of this system can be quite cumbersome; DAC is a method of assigning access rights, which is determined by the users who have access to their objects. This model is implemented by users using access control lists, and users can grant access rights to other users within the limits assigned to other users. However, this model increases the risk that data will be accessed by users who are not necessarily allowed to access it; RBAC provides access rights based on the user's role and permissions, which requires users to be assigned to different roles to obtain associated permissions. However, the problem of role explosion limits its use to enterprise systems only. Therefore, the traditional security access control model cannot cope with the rapid data explosion problem in existing power wireless private networks. Furthermore, these models fail to cope with the scalability, interoperability, and adaptability issues of big data. Summary of the invention
[0005] Purpose of the invention: The purpose of the present invention is to provide a power wireless private network security method, system, device and storage medium based on blockchain algorithm to solve the problem of rapid data explosion in existing power wireless private networks and the scalability, interoperability and adaptability of big data.
[0006] Technical solution: The present invention discloses a power wireless private network security method based on a blockchain algorithm, comprising the following steps: establishing a real power data set and a simulated power data set, and performing distributed storage to obtain a first data set and a second data set; extracting a first user based on the first data set, and constructing a second data user based on the second data set; constructing a data object based on the first data set and the second data set and defining a private key policy; if there is access revocation, redefine the private key policy and revoke the granted access rights; combine the private key policy with a path compression algorithm to form a power wireless private network security mechanism based on a blockchain algorithm.
[0007] Furthermore, a real power data set and a simulated power data set are established, and distributed storage is performed as follows: the real data set obtained from actual measurements is the first data set, which is used to generate the key policy; the generated simulated power data set is the second data set, which is used to evaluate the accuracy of the key policy; the two data sets are not shared; the distributed storage protocol Swarm is used to store the data on different nodes, and the hash value is used to locate and retrieve the data.
[0008] Furthermore, the first user is extracted according to the first data set, the second data user is constructed according to the second data set, and the data object is constructed according to the first data set and the second data set as follows: the actual user, i.e. the first user, is extracted according to the first data set, and the virtual user, i.e. the second user, is constructed according to the second data set; the power data corresponding to the business is extracted according to the first data set and the second data set to form a data object.
[0009] Furthermore, the private key policy formula is defined as follows:
[0010] U1:U2(for T1),U3(for T8),U6(for T5)……p1
[0011] U2:U5(for T3),U1(for T3),U6(for T2)……p2
[0012] …
[0013] U n :U1(for T4),U7(for T3),U1(for T7)……p n
[0014] Among them, U1,U2,…,U n is the owner of the power data; U2 (for T1), U3 (for T8), U6 (for T5)… are the data owners p1, p2,…, p n Users who authorize power data for specific business; among them,
[0015] S={U1:U2,U4;U2:U3,U4;U3:U4,U5;U4:U5;U5}
[0016] S is a key, including five policies: {U1:U2,U4}, {U2:U3,U4}, {U3:U4,U5}, {U4:U5} and {U5:}. U1, U2, U3 and U4 represent the owners of the data object to which the S tag belongs, and U2, U3, U4 and U5 represent the participants authorized by the data owner for various object services; various services include: read, write, update and delete.
[0017] Furthermore, if there is access revocation, the private key policy will be redefined and the granted access rights will be revoked as follows: a group is created based on the user hierarchy of the first data set and all users in the group are members of the group; the user allows customer service to read the data and reauthorizes the operations of 4 different private keys based on the user hierarchy of the first data set, including: card reader access right revocation, cancellation of update access right, revocation of add access right, and self-authorization.
[0018] Furthermore, the path compression algorithm is as follows: suppose an object oid1 is transferred to storage nodes A1, A2, A3, A4, and A5 respectively; when the object is transferred, only the address information is retained on the previous node, and the object is transferred to the new node. When the object is moved from the A4 storage node, it is transferred to the node A5, and the new address is saved as oid1(4) of the node A4; in the other nodes where the object is transferred, the address of the object remains unchanged oid1(1)–oid1(2)–oid1(3)–oid1(4)); the object displayed with oid1(5) is actually located in the node A5; oid1(5) in A5 represents the new oid value of the object.
[0019] The present invention provides a power wireless private network security system based on a blockchain algorithm, comprising:
[0020] Data set module: used to establish a real power data set and a simulated power data set, and perform distributed storage to obtain a first data set and a second data set;
[0021] User module: used to extract the first user according to the first data set and construct the second data user according to the second data set;
[0022] Private key module: used to construct a data object according to the first data set and the second data set and define a private key strategy;
[0023] Access revocation module: used to redefine the private key policy and revoke the granted access rights if there is access revocation;
[0024] Compression module: used to combine the private key strategy with the path compression algorithm to form a power wireless private network security mechanism based on the blockchain algorithm.
[0025] Furthermore, in the data set module, a real power data set and a simulated power data set are established, and distributed storage is performed as follows: the real data set obtained from actual measurements is the first data set, which is used to generate the key policy; the generated simulated power data set is the second data set, which is used to evaluate the accuracy of the key policy; the two data sets are not shared; the distributed storage protocol Swarm is used to store the data on different nodes, and the hash value is used to locate and retrieve the data.
[0026] Furthermore, in the user module, the first user is extracted according to the first data set, the second data user is constructed according to the second data set, and the data object is constructed according to the first data set and the second data set as follows: the actual user, i.e. the first user, is extracted according to the first data set, and the virtual user, i.e. the second user, is constructed according to the second data set; the power data corresponding to the business is extracted according to the first data set and the second data set to form a data object.
[0027] Furthermore, in the private key module, the private key policy formula is defined as follows:
[0028] U1:U2(for T1),U3(for T8),U6(for T5)……p1
[0029] U2:U5(for T3),U1(for T3),U6(for T2)……p2
[0030] …
[0031] U n :U1(for T4),U7(for T3),U1(for T7)……p n
[0032] Among them, U1,U2,…,U n is the owner of the power data; U2 (for T1), U3 (for T8), U6 (for T5)… are the data owners p1, p2,…, p n Users who authorize power data for specific business; among them,
[0033] S={U1:U2,U4;U2:U3,U4;U3:U4,U5;U4:U5;U5}
[0034] S is a key, including five policies: {U1:U2,U4}, {U2:U3,U4}, {U3:U4,U5}, {U4:U5} and {U5:}. U1, U2, U3 and U4 represent the owners of the data object to which the S tag belongs, and U2, U3, U4 and U5 represent the participants authorized by the data owner for various object services; various services include: read, write, update and delete.
[0035] Furthermore, in the access revocation module, if there is an access revocation, the private key policy will be redefined and the granted access rights will be revoked as follows: a group is created according to the user hierarchy of the first data set and all users in the group are members of the group; the user allows the customer service to read the data and reauthorizes the operations of 4 different private keys according to the user hierarchy of the first data set, including: card reader access right revocation, cancellation of update access right, revocation of add access right, and self-authorization.
[0036] Furthermore, in the compression module, the path compression algorithm is as follows: suppose an object oid1 is transferred to storage nodes A1, A2, A3, A4, and A5 respectively; when the object is transferred, only the address information is retained on the previous node, and the object is transferred to the new node. When the object is moved from the A4 storage node, it is transferred to the node A5, and the new address is saved as oid1(4) of the node A4; in the other nodes where the object is transferred, the address of the object remains unchanged oid1(1)–oid1(2)–oid1(3)–oid1(4)); the object displayed with oid1(5) is actually located in the node A5; oid1(5) in A5 represents the new oid value of the object.
[0037] An electronic device described in the present invention includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the computer program is loaded into the processor, any one of the power wireless private network security methods based on a blockchain algorithm is implemented.
[0038] A storage medium described in the present invention stores a computer program, characterized in that when the computer program is executed by a processor, it implements any one of the power wireless private network security methods based on blockchain algorithm.
[0039] Beneficial effects: Compared with the prior art, the present invention has the following significant advantages: using special keys to execute, all individual blockchain services are used for reading, writing, updating and deleting operations; ensuring confidentiality and integrity, which has great practical significance in practical applications. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] Figure 1 It is a schematic diagram of the process of the present invention;
[0041] Figure 2 A blockchain business structure diagram of a bidirectional linked list structure of the present invention;
[0042] Figure 3 It is a schematic diagram of forming a node chain of the path compression algorithm in the present invention and a schematic diagram of new path compression conditions;
[0043] Figure 4 It is a schematic diagram of comparing the accuracy of the traditional security model and the BSKM proposed in the present invention on data set 1;
[0044] Figure 5 It is a schematic diagram for comparing the accuracy of the traditional security model and the BSKM proposed in the present invention on data set 2. DETAILED DESCRIPTION
[0045] The technical solution of the present invention is further described below in conjunction with the accompanying drawings.
[0046] like Figure 1 As shown, a power wireless private network security method based on blockchain algorithm includes the following steps:
[0047] Step 1: Create a real power data set and a simulated power data set and perform distributed storage:
[0048] The data sets used in the present invention are marked as power data set 1 and power data set 2; power data set 1 is a real data set obtained from actual measurements, which consists of approximately 10 million users and nearly 100 million transactions. Since the data set contains confidential and sensitive information, information about the data content of data set 1 is not provided. Data set 2 is a generated simulated power data set, which contains 100 million different transactions and contains confidential and sensitive information, so there is no sharing between different environments. Data set 1 is used to generate key policies, and data set 2 is used to evaluate the accuracy of key policies.
[0049] Based on the above data set, the distributed storage protocol Swarm is used to store the data on different nodes, and the data is located and retrieved through hash values to achieve distributed storage of data.
[0050] Step 2: Construct the user of dataset 2 and objects of two types of datasets, and define the private key for the business of the dataset:
[0051] Step 2-1, construct users of dataset 2:
[0052] The services involved in the two types of data sets in the present invention refer to users sending, adding, deleting or updating power data. Users are people who participate in the above services, including data owners or data participants who perform operations such as data granting and receiving data authorization. Data set 2 does not contain users who participate in the service, so a virtual user is constructed for it for the final key strategy accuracy evaluation.
[0053] Step 2-2, construct objects of two types of data sets:
[0054] The object is the electricity data corresponding to the business. The electricity data constructed in this study is virtual and does not affect the definition of the key strategy and the final accuracy evaluation.
[0055] Step 2-3, define the key for the business of the data set:
[0056] Special keys are a set of policies created to protect power data, that is, to determine the key paired with the object. Special keys are encrypted versions of each transaction, and user participation in the transaction is encrypted by creating policies. In addition, each data owner has the right to change these security policies individually and securely. The content of a defined special key is as follows:
[0057] U1:U2(for T1),U3(for T8),U6(for T5)……p1
[0058] U2:U5(for T3),U1(for T3),U6(for T2)……p2
[0059] …
[0060] U n :U1(for T4),U7(for T3),U1(for T7)……p n
[0061] Among them, U1,U2,…,U n is the owner of the power data; U2 (for T1), U3 (for T8), U6 (for T5)... refers to the data owners p1, p2,..., p n The user who authorizes the power data for a specific business, that is, each content definition on the key S shows the security policy of the relevant participants regarding these power data. The data owner determines his own policy for the key, and then sends the power data he owns together with the key to other users participating in the business.
[0062] like Figure 2 As shown, the present invention proposes a blockchain business structure diagram with a bidirectional linked list structure. In the bidirectional linked list structure, the business is determined according to the type of arrow. Each arrow represents the business performed by users U1, U2, U3 and U4. The key S consists of five parts, namely the owner, reader, writer, updater and deleter. Figure 2 The arrows are drawn in a way that shows the type of permissions required to access the data. Here, "owner" refers to the data owner who owns the object; "reader" refers to the user who is authorized to read the owner's data; "writer" refers to the user who is authorized to write the owner's data; "updater" refers to the user who is authorized to update the owner's data; "deleter" refers to the user who is authorized to delete the owner's data. The example special key represented with the doubly linked list can be represented in the S-keyed format as follows:
[0063] S={U1:U2,U4;U2:U3,U4;U3:U4,U5;U4:U5;U5}
[0064] The semicolon used when creating a tag separates the policies from each other. Therefore, the S tag has five policies: {U1:U2,U4}, {U2:U3,U4}, {U3:U4,U5}, {U4:U5}, and {U5:}. U1, U2, U3, and U4 represent the owners of the data object to which the S tag belongs, and U2, U3, U4, and U5 represent the participants authorized by the data owner for various object services (read, write, update, and delete).
[0065] Assume that the first policy shows a read operation on an object:
[0066] The first policy can be expressed as: U1→U1, U1→U2, and U1→U4. This means that user U1 allows users U1, U2, and U4 to read data.
[0067] The second policy shows the write operation of the object:
[0068] The second policy can be expressed as: U2→U2, U2→U3, and U2→U4. This means that the U2 user allows the U2, U3, and U4 users to write data.
[0069] Assume that the third strategy shows an update operation on an object:
[0070] The third policy can be expressed as: U3→U3, U3→U4 and U3→U5. This means that user U3 allows users U3, U4 and U5 to update data.
[0071] Assume that the fourth policy shows the deletion of an object:
[0072] The fourth policy can be expressed as: U4→U4, U4→U5. This means that the U4 user allows the U4 and U5 users to delete data.
[0073] The last policy can be expressed as: U5→U5. This means that the U5 user does not allow any user other than itself to perform any operations on its data.
[0074] Step 3: If access rights are revoked based on step 2:
[0075] When a user performs a blockchain operation (read, write, update, delete), they may want to revoke this access. In this case, the private key is determined for the object again and the granted access is revoked. With the reissued private key, the data is more restrictive and strict.
[0076] A group {Customer Service X, Customer Service Y, Customer Service Z} is created based on the user hierarchy of Dataset 1, and all users in this group are members of this group. Users allow customer service to read their data. Considering the user hierarchy of Dataset 1, the following are the operations for reusing 4 different private keys that are related to the revocation of access rights:
[0077] S1, Reader access revocation: By removing the reader from the private key, the data can be made more restrictive. In order to allow customer service X and customer service Y in the group to view and evaluate the data related to user X in the user hierarchy, the data {userX: customer service X, customer service Y} and the private key are specified. In addition, customer service Y can be removed from the reader list, and only customer service X is required to provide services to user X. The private key {userX: customer service X} provides this status. In short, users can set their own policies and ensure the privacy of their own data through private keys.
[0078] S2 Cancel update access rights: It may be necessary to change the user to whom the data owner grants data authorization. For example, the owner of data labeled {UserX:UserX} can be changed to Customer Service X, because UserX represents Customer Service X. With the new label {Customer Service X:UserX}, the data can be updated with a different private key.
[0079] S3 revokes adding access rights: Set a private key for user X's power wireless private network data as follows:
[0080] {User X: Customer Service X; Customer Service X: Customer Service Z}
[0081] With this private key, the power wireless private network data of user X is provided to customer service Z through customer service X. However, when it is necessary to cancel the addition of customer service X: customer service Z, customer service X can use the private key to re-determine the private key of the power wireless private network data {user X: customer service X}. By removing the new policy from the private key, the data will be more strictly protected.
[0082] S4 Self-authorization. Let the key S be {X:Y}. X is the data owner and Y is the reader of this tag. In addition, let user X give the data object authorization letter to users Z and T. The user who is granted the data object authorization letter will be added to the data as a reader with the private key {X:Y}. Therefore, the data is more restricted by the newly created private key {X:Y, Z,T}. In the power wireless private network, the customer service authorized by the user can represent the user by adding them as readers to the new tag. With the {UserX:Customer ServiceX} tag, user X authorizes customer service X to handle his own business. By adding customer service Y and customer service Z as readers of the old private key, the newly created private key {UserX:Customer ServiceX, Customer ServiceY, Customer ServiceZ} has greater restrictions on the data.
[0083] Any transaction can be cancelled by re-keying the rules given above, because these rules are re-created without destroying the security level. For example, in a multi-level security model, each user includes his own data in one of the security classes, including non-confidential, confidential, confidential and top secret, to protect his own data and determine the private key again. Each user in each security class has the right to act on behalf of his own class, and these users can view all transactions in their class.
[0084] Step 4: Use a path compression algorithm to increase data speed and obtain the final power wireless private network security mechanism:
[0085] A path is a doubly linked list data structure that shows the transfer of data objects from one user to another. The nodes are connected to each other in a chain. As objects move between users, the object identifier (oid) that shows the object's identity is updated to include the object's next address. Figure 3 As shown in (a), an object (oid1) is transferred to storage nodes A1, A2, A3, A4, and A5 respectively. When an object is transferred, only the address information remains on the previous node and the object is transferred to the new node. When the object is moved from the A4 storage node, it is transferred to the node A5, and the new address is saved as oid1(4) of node A4. In the other nodes where the object is transferred, the address of the object remains unchanged (oid1(1)–oid1(2)–oid1(3)–oid1(4)). The object shown as oid1(5) is actually located in node A5. oid1(5) in A5 represents the new oid value of the object. Because object movement creates long chains between nodes in this format, the cost of accessing the object increases. To prevent long chains, a path compression method is used, and the result is shown in Figure 1. Figure 3 (b) shows that the blockchain data object key strategy of steps 1, 2, and 3 is combined with the path compression algorithm of step 4 to form a power wireless private network security mechanism BSKM based on the blockchain algorithm to optimize the data explosion problem existing in the power wireless private network and provide a feasible power wireless private network security mechanism application solution.
[0086] The embodiment of the present invention provides a power wireless private network security system based on a blockchain algorithm, including:
[0087] Dataset module: used to establish a real power dataset and a simulated power dataset, and perform distributed storage to obtain a first dataset and a second dataset; establish a real power dataset and a simulated power dataset, and perform distributed storage as follows: the real dataset obtained from actual measurement is the first dataset, which is used to generate the key strategy; the generated simulated power dataset is the second dataset, which is used to evaluate the accuracy of the key strategy; the two datasets are not shared; the distributed storage protocol Swarm is used to store the data on different nodes, and the hash value is used to locate and retrieve the data.
[0088] User module: used to extract the first user according to the first data set, and construct the second data user according to the second data set; extract the first user according to the first data set, and construct the second data user according to the second data set, and construct the data object according to the first data set and the second data set as follows: extract the actual user, i.e. the first user, according to the first data set, and construct the virtual user, i.e. the second user, according to the second data set; extract the power data corresponding to the business according to the first data set and the second data set to form a data object
[0089] Private key module: used to construct a data object based on the first data set and the second data set and define a private key policy; the formula for defining the private key policy is as follows:
[0090] U1:U2(for T1),U3(for T8),U6(for T5)……p1
[0091] U2:U5(for T3),U1(for T3),U6(for T2)……p2
[0092] …
[0093] U n :U1(for T4),U7(for T3),U1(for T7)……p n
[0094] Among them, U1,U2,…,U n is the owner of the power data; U2 (for T1), U3 (for T8), U6 (for T5)… are the data owners p1, p2,…, p n Users who authorize power data for specific business; among them,
[0095] S={U1:U2,U4;U2:U3,U4;U3:U4,U5;U4:U5;U5}
[0096] S is a key, including five policies: {U1:U2,U4}, {U2:U3,U4}, {U3:U4,U5}, {U4:U5} and {U5:}. U1, U2, U3 and U4 represent the owners of the data object to which the S tag belongs, and U2, U3, U4 and U5 represent the participants authorized by the data owner for various object services; various services include: read, write, update and delete.
[0097] Access revocation module: used to redefine the private key policy and revoke the granted access rights if there is access revocation; specifically: create a group based on the user hierarchy of the first data set and all users in the group are members of the group; the user allows the customer service to read the data, and reauthorizes the operations of 4 different private keys based on the user hierarchy of the first data set, including: card reader access right revocation, cancel update access right, revoke add access right, and self-authorization.
[0098] Compression module: It is used to combine the private key strategy with the path compression algorithm to form a power wireless private network security mechanism based on the blockchain algorithm. The path compression algorithm is as follows: suppose an object oid1 is transmitted to storage nodes A1, A2, A3, A4 and A5 respectively; when the object is transmitted, only the address information is retained on the previous node, and the object is transmitted to the new node. When the object is moved from the A4 storage node, it is transferred to the node A5, and the new address is saved as oid1(4) of the node A4; in the other nodes where the object is transferred, the address of the object remains unchanged oid1(1)–oid1(2)–oid1(3)–oid1(4)); the object displayed by oid1(5) is actually located in the node A5; oid1(5) in A5 represents the new oid value of the object.
[0099] An embodiment of the present invention provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program, when loaded into the processor, implements any one of the methods for securing a power wireless private network based on a blockchain algorithm.
[0100] An embodiment of the present invention provides a storage medium storing a computer program, wherein the computer program, when executed by a processor, implements any one of the methods for securing a power wireless private network based on a blockchain algorithm.
Claims
1. A power wireless private network security method based on blockchain algorithm, characterized in that: The following steps are involved: Establishing a real power data set and a simulated power data set, and performing distributed storage to obtain a first data set and a second data set; Extracting a first user according to the first data set, and constructing a second data user according to the second data set; constructing a data object based on the first data set and the second data set and defining a private key policy; If there is a revocation of access rights; The private key policy will be redefined and the granted access rights will be revoked; The private key strategy is combined with the path compression algorithm to form a power wireless private network security mechanism based on the blockchain algorithm.
2. According to the blockchain algorithm-based power wireless private network security method of claim 1, it is characterized in that: Establishing a real power data set and a simulated power data set, and performing distributed storage as follows: the real data set obtained from actual measurement is the first data set, which is used to generate the key strategy; the generated simulated power data set is the second data set, which is used to evaluate the accuracy of the key strategy; There is no sharing between the two datasets; The distributed storage protocol Swarm is used to store data on different nodes, and the data is located and retrieved by hash value.
3. According to the blockchain algorithm-based power wireless private network security method of claim 1, it is characterized in that: The first user is extracted according to the first data set, the second data user is constructed according to the second data set, and the data object is constructed according to the first data set and the second data set as follows: the actual user, i.e. the first user, is extracted according to the first data set, and the virtual user, i.e. the second user, is constructed according to the second data set; the power data corresponding to the business is extracted according to the first data set and the second data set to form a data object.
4. According to the blockchain algorithm-based power wireless private network security method of claim 1, it is characterized in that: The private key policy formula is defined as follows: U1:U2(for T1),U3(for T8),U6(for T5)……p1 U2:U5(for T3),U1(for T3),U6(for T2)……p2 …… U n :U1(for T4),U7(for T3),U1(for T7)……p n Among them, U1,U2,…,U n is the owner of the power data; U2 (for T1), U3 (for T8), U6 (for T5)… are the data owners p1, p2,…, p n Users who authorize power data for specific business; among them, S={U1:U2,U4;U2:U3,U4;U3:U4,U5;U4:U5;U5} S is a key, including five policies: {U1:U2,U4}, {U2:U3,U4}, {U3:U4,U5}, {U4:U5} and {U5:}. U1, U2, U3 and U4 represent the owners of the data object to which the S tag belongs, and U2, U3, U4 and U5 represent the participants authorized by the data owner for various object services; various services include: read, write, update and delete.
5. According to the blockchain algorithm-based power wireless private network security method of claim 1, it is characterized in that: If there is access right revocation; the private key policy will be redefined and the granted access rights will be revoked as follows: a group is created based on the user hierarchy of the first data set and all users in the group are members of the group; The user allows the customer service to read the data and reauthorizes the operations of 4 different private keys according to the user hierarchy of the first data set, including: card reader access permission revocation, cancellation of update access permission, revocation of add access permission, and self-authorization.
6. According to a blockchain algorithm-based power wireless private network security method according to claim 1, it is characterized in that: The path compression algorithm is as follows: suppose an object oid1 is transferred to storage nodes A1, A2, A3, A4, and A5 respectively; when the object is transferred, only the address information is retained on the previous node, and the object is transferred to the new node. When the object is moved from the A4 storage node, it is transferred to the node A5, and the new address is saved as oid1(4) of node A4; in the other nodes where the object is transferred, the address of the object remains unchanged oid1(1)–oid1(2)–oid1(3)–oid1(4)); the object displayed with oid1(5) is actually located in node A5; oid1(5) in A5 represents the new oid value of the object.
7. A power wireless private network security system based on blockchain algorithm, characterized in that: include: Data set module: used to establish a real power data set and a simulated power data set, and perform distributed storage to obtain a first data set and a second data set; User module: used to extract the first user according to the first data set and construct the second data user according to the second data set; Private key module: used to construct a data object according to the first data set and the second data set and define a private key strategy; Access revocation module: used to revoke access rights if there is any; The private key policy will be redefined and the granted access rights will be revoked; Compression module: used to combine the private key strategy with the path compression algorithm to form a power wireless private network security mechanism based on the blockchain algorithm.
8. According to the blockchain algorithm-based power wireless private network security system of claim 7, it is characterized in that: In the data set module, a real power data set and a simulated power data set are established, and distributed storage is performed as follows: the real data set obtained from actual measurement is the first data set, which is used to generate the key strategy; the generated simulated power data set is the second data set, which is used to evaluate the accuracy of the key strategy; There is no sharing between the two datasets; The distributed storage protocol Swarm is used to store data on different nodes, and the data is located and retrieved by hash value.
9. According to the blockchain algorithm-based power wireless private network security system of claim 7, it is characterized in that: In the user module, the first user is extracted according to the first data set, the second data user is constructed according to the second data set, and the data object is constructed according to the first data set and the second data set as follows: the actual user, i.e. the first user, is extracted according to the first data set, and the virtual user, i.e. the second user, is constructed according to the second data set; the power data corresponding to the business is extracted according to the first data set and the second data set to form a data object.
10. According to the blockchain algorithm-based power wireless private network security system of claim 7, it is characterized in that: In the private key module, the private key policy formula is defined as follows: U1:U2(for T1),U3(for T8),U6(for T5)……p1 U2:U5(for T3),U1(for T3),U6(for T2)……p2 …… U n :U1(for T4),U7(for T3),U1(for T7)……p n Among them, U1,U2,…,U n is the owner of the power data; U2 (for T1), U3 (for T8), U6 (for T5)… are the data owners p1, p2,…, p n Users who authorize power data for specific business; among them, S={U1:U2,U4;U2:U3,U4;U3:U4,U5;U4:U5;U5} S is a key, including five policies: {U1:U2,U4}, {U2:U3,U4}, {U3:U4,U5}, {U4:U5} and {U5:}. U1, U2, U3 and U4 represent the owners of the data object to which the S tag belongs, and U2, U3, U4 and U5 represent the participants authorized by the data owner for various object services; various services include: read, write, update and delete.
11. According to claim 7, a power wireless private network security system based on blockchain algorithm is characterized in that: In the access revocation module, if there is an access revocation, the private key policy will be redefined and the granted access rights will be revoked as follows: a group is created according to the user hierarchy of the first data set and all users in the group are members of the group; The user allows the customer service to read the data and reauthorizes the operations of 4 different private keys according to the user hierarchy of the first data set, including: card reader access permission revocation, cancellation of update access permission, revocation of add access permission, and self-authorization.
12. According to claim 7, a power wireless private network security system based on blockchain algorithm is characterized in that: In the compression module, the path compression algorithm is as follows: suppose an object oid1 is transferred to storage nodes A1, A2, A3, A4, and A5 respectively; when the object is transferred, only the address information is retained on the previous node, and the object is transferred to the new node. When the object is moved from the A4 storage node, it is transferred to the node A5, and the new address is saved as oid1(4) of the node A4; in the other nodes where the object is transferred, the address of the object remains unchanged oid1(1)–oid1(2)–oid1(3)–oid1(4)); the object displayed with oid1(5) is actually located in the node A5; oid1(5) in A5 represents the new oid value of the object.
13. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the computer program is loaded into the processor, a power wireless private network security method based on a blockchain algorithm is implemented according to any one of claims 1 to 6.
14. A storage medium storing a computer program, characterized in that: When the computer program is executed by the processor, a power wireless private network security method based on a blockchain algorithm according to any one of claims 1 to 6 is implemented.
