Blockchain-based secondary equipment fixed value threshold command issuing method, system and medium
By using the multi-signature and (k-1,k) threshold verification mechanism of blockchain technology in the issuance of protection fixed value orders, the problems of fixed value order errors and low audit efficiency in multi-level system scheduling are solved, achieving Ensure the correct transmission and efficient audit of fixed value orders.
Patent Information
- Application Number
- CN202211515169.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-11-30
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2042-11-30
AI Technical Summary
Under multi-level system scheduling, the issuance process of protection fixed value orders lacks a multi-level joint verification mechanism, which is prone to missing items, order reversal and data errors, affecting the correctness of the order, and the efficiency of the fixed value order audit process is low. .
Adopt a blockchain-based secondary equipment value threshold issuing method, design a (k-1,k) threshold verification mechanism, and utilize the distributed storage, anti-tampering, and traceability features of the blockchain to realize multi-level nodes Signature verification and data auditing ensure the correctness and audit efficiency of the fixed value order in the multi-level transmission process.
Through multi-signature and blockchain technology, the correctness of the fixed value order in the multi-level transmission process is ensured, which increases the efficiency of the fixed value order audit process. The lower-level nodes can themselves confirm whether the superior node has issued the correct fixed value order. Avoid errors of lower-level nodes caused by errors or tampering of upper-level nodes.
Smart Images

Figure CN115913573B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of protection set value configuration, and in particular to a method, system and medium for issuing set value threshold commands for secondary equipment based on blockchain. Background Art
[0002] With the rapid development of the power industry, power system relay protection, as an important part of the power system, plays a very critical role in ensuring the safety, stability and economic operation of the power system. The effective and timely management of relay protection is a strong guarantee for the safe and stable operation of the power grid. The protection setting system plays an important role in power dispatching. From the calculation, review, approval of the protection setting sheet to the issuance and execution of the protection setting sheet, the accuracy of the protection setting sheet and the correct execution of the relay protection equipment must be guaranteed.
[0003] Traditionally, the issuance of fixed value orders is done by the security master station after verification and then issued separately. However, the fixed values of some equipment are actually generated by the superior dispatching system or even the higher-level dispatching system after calculation. Therefore, in the process of multi-level system dispatching and issuing, the fixed value orders issued to the relay protection equipment lack a multi-level joint verification mechanism, which is prone to single-point errors such as missing items, reversed order and data errors, affecting the correctness of the order. At the same time, there is a risk that errors in the upper node will cause errors in the lower node; on the other hand, even if errors in the fixed value orders are found, they can often only be traced back through the issuance process step by step, making the audit process of fixed value orders less efficient. Summary of the invention
[0004] In view of this, the first purpose of the present invention is to provide a method for issuing set value threshold commands for secondary equipment based on blockchain, which utilizes the distributed storage, tamper-proof, traceability and other characteristics of blockchain to apply to the business of issuing protection set value orders, and solves the problems of missing items and data errors in the set value information of upper nodes that are not directly connected during multi-level set value calculations by designing a (k-1, k) threshold verification mechanism. At the same time, this method has good auditability and can audit data from any node.
[0005] Based on the same inventive concept, the second object of the present invention is to provide a secondary equipment fixed threshold command issuing system based on blockchain.
[0006] Based on the same inventive concept, the third object of the present invention is to provide a storage medium.
[0007] The first object of the present invention can be achieved by the following technical solutions:
[0008] A method for issuing a command for a secondary device fixed value threshold based on blockchain comprises the following steps:
[0009] Deploy a blockchain network system, including a fixed value setting system and a blockchain platform, wherein the blockchain platform generates system public parameters required for the encryption algorithm, and the fixed value setting system includes multiple fixed value setting system nodes, each node generates a node key pair using a random number and system public parameters, and writes the public key into the blockchain platform;
[0010] According to the process of issuing fixed value orders, a multi-level node network topology is constructed and public keys are distributed, specifically:
[0011] The i-th level node reads the public key of the previous i-1 level node in its own distribution process from the blockchain system and saves it locally;
[0012] The command issuance process of the first-level node includes the following steps:
[0013] The first-level node in the fixed value setting system calculates the signature information of the fixed value order to be issued according to the node key pair, calls the blockchain platform interface, and writes the fixed value order and the signature information of the first-level node into the blockchain platform;
[0014] The command issuing process of the k-th level node includes the following steps:
[0015] Any node of the setting system reads the setting list and the signature information of the k-1th level node from the blockchain platform, and verifies the signature information of the k-1th level node according to the node public key;
[0016] After the verification is passed, the k-th node calculates the signature information of the k-th node according to the node key pair and the signature information of the k-1-th node connected to itself in the network topology, and writes the fixed value order and the k-th node signature information into the blockchain platform; if the k-th node is the target node for the fixed value order, the fixed value order issuance process ends, otherwise the order issuance process of the k+1-th node is executed;
[0017] After verification fails, the failure information is reported and the process of issuing the fixed value order ends;
[0018] Wherein, k is a positive integer greater than 1 and less than or equal to the maximum node level of the node network topology structure. When entering the command process of the k-th level node for the first time, k is 2.
[0019] Furthermore, the blockchain platform generates the system public parameters required for the encryption algorithm, specifically:
[0020] Select (G1, G2, GT) to be a multiplicative cyclic group of order p, the generators of (G1, G2) are (g1, g2) respectively, and e is a bilinear mapping from G1×G2→GT; define a secure hash function: H: {0, 1} * →G1; then the system common parameters are (G1, G2, GT, e, g1, g2, p, H).
[0021] Furthermore, the blockchain platform selects the BLS-381 elliptic curve to generate the system public parameters required for the encryption algorithm.
[0022] Furthermore, each node generates a node key pair using a random number and system public parameters, specifically:
[0023] For the i-th node, choose a random number x i ∈{1, 2, ..., p-1} as the private key, calculate As the public key, get the node public and private key pair (v i , x i ).
[0024] Furthermore, the level 1 node in the fixed value setting system node calculates the signature information of the fixed value order to be issued according to the node key pair, and the expression for calculating the signature information is:
[0025]
[0026] Among them, s1 is the signature information of the first-level node, H is the secure hash function, m is the fixed-value single information, and x1 is the private key of the first-level node.
[0027] Furthermore, the k-th level node calculates the signature information of the k-th level node according to the node key pair and the signature information of the k-1-th level node connected to itself in the network topology structure. The expression for signature information calculation is:
[0028]
[0029] s k =s k ′·s k-1
[0030] Among them, s k-1 is the signature information of the k-1th level node in the distribution process, H is the secure hash function, m is the fixed value single information, x k is the private key of the k-th level node.
[0031] Furthermore, any node of the setting system reads the setting list and the signature information of the k-1th level node from the blockchain platform, and verifies the signature information of the k-1th level node according to the node public key, specifically:
[0032] Verify whether the discriminant is established. The expression of the discriminant is:
[0033]
[0034] Among them, s k-1 is the signature information of the k-1th level node in the distribution process, v jis the public key of the j-th node in the distribution process, j is a positive integer and 1≤j≤k;
[0035] If the discriminant holds, the verification passes; if the discriminant does not hold, the verification fails.
[0036] Furthermore, in the command issuance process of the k-th level node, all the j-th level nodes in the setting setting system issuance process read the setting list and the signature information of the k-1-th level node from the blockchain platform, and verify the signature information of the k-1-th level node according to the node public key. After all the j-th level nodes are verified, it is considered that the signature information of the k-1-th level node has been verified; wherein j is a positive integer and 1≤j≤k.
[0037] Furthermore, after the set value order issuance process is completed, any set value setting system node in the blockchain network system obtains the signature information of the set value setting system node through the blockchain platform, and verifies the signature information of the node according to the node key pair, and audits the set value order issuance process.
[0038] The second object of the present invention can be achieved by the following technical solutions:
[0039] A secondary equipment fixed value threshold command issuing system based on blockchain, comprising:
[0040] The blockchain platform includes a computing module, a communication module and a storage module, wherein the computing module is used to generate system public parameters required by the encryption algorithm, the communication module is used to communicate with the fixed value setting system node, and the storage module is used to store the fixed value setting order information and signature information uploaded by the fixed value setting system node;
[0041] A fixed value setting system includes multiple fixed value setting system nodes, and the fixed value setting system nodes include a communication module and a calculation module, wherein the communication module is used to communicate with other fixed value setting system nodes and a blockchain platform, and the calculation module is used to implement the above-mentioned blockchain-based secondary equipment fixed value threshold command issuing method.
[0042] The third object of the present invention can be achieved by the following technical solutions:
[0043] A storage medium stores a program, which, when executed by a computer, implements the above-mentioned blockchain-based secondary device fixed value threshold command issuance method.
[0044] The present invention has the following beneficial effects compared with the prior art:
[0045] (1) The present invention uses multi-signature and blockchain technology to design a (N-1, N) threshold verification mechanism to ensure that the value order issued by the lower-level node is jointly verified by all its upper-level nodes, thereby ensuring the correctness of the value order in the multi-level transmission process.
[0046] (2) The method for issuing a value order of the present invention, through a multi-level node multi-signature mechanism, enables any value order issuing process to be audited, thereby increasing the efficiency of the value order audit process.
[0047] (3) In the method for issuing set value orders of the present invention, the lower-level node can confirm by itself whether the upper-level node has issued the correct set value order, thereby avoiding the risk of errors in the upper-level node or errors in the lower-level node caused by human tampering with the upper-level node. BRIEF DESCRIPTION OF THE DRAWINGS
[0048] Figure 1 It is a flowchart of the blockchain-based secondary device fixed threshold command issuing method according to Example 1 of the present invention.
[0049] Figure 2 This is a schematic diagram of a blockchain-based secondary device fixed threshold command issuing system according to Example 2 of the present invention. DETAILED DESCRIPTION
[0050] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments in the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.
[0051] Embodiment 1:
[0052] like Figure 1 As shown, this embodiment provides a method for issuing a fixed value threshold command for a secondary device based on blockchain, comprising the following steps:
[0053] S10. Deploy the blockchain network system, including the fixed value setting system and the blockchain platform, including:
[0054] S11. The blockchain platform generates the system public parameters required for the encryption algorithm, specifically:
[0055] Select (G1, G2, GT) to be a multiplicative cyclic group of order p, the generators of (G1, G2) are (g1, g2) respectively, and e is a bilinear mapping from G1×G2→GT; define a secure hash function: H: {0, 1} * →G1; then the system common parameters are (G1, G2, GT, e, g1, g2, p, H).
[0056] In this embodiment, the blockchain platform selects the BLS-381 elliptic curve to generate the system public parameters required for the encryption algorithm.
[0057] S12. Construct a fixed value setting system, including multiple fixed value setting system nodes. Each node generates a node key pair using a random number and a system public parameter, specifically:
[0058] For the i-th node, choose a random number x i ∈{1, 2, ..., p-1} as the private key, calculate As the public key, get the node public and private key pair (v i , x i ).
[0059] S13. According to the process of issuing the fixed value order, a multi-level node network topology structure is constructed;
[0060] In this embodiment, the multi-level node network topology structure can be a tree network topology structure, a chain network topology structure, a star network topology structure, a bus structure, or a combination of a tree network topology structure, a chain network topology structure, a star network topology structure, and a bus structure.
[0061] In this embodiment, the first-level node sends a command, which is received by the second-level node, ..., the k-th-level node sends a command, which is received by the k+1-th-level node; wherein k is a positive integer greater than 1 and less than or equal to the maximum node level of the node network topology structure.
[0062] In this embodiment, the first-level node is the trust-guaranteeing master station.
[0063] In this embodiment, the command issuance process of the first-level node includes step S20; the command issuance process of the k-th level node includes steps S30-S50. When step S30 is executed for the first time, k is 2.
[0064] In this embodiment, step S13 also includes distributing the public key, specifically:
[0065] The i-th node reads the public keys of all upper-level nodes in its own distribution process from the blockchain system and saves them locally;
[0066] S20, the first-level node in the fixed value setting system node calculates the signature information of the fixed value order to be issued according to the node key pair, calls the blockchain platform interface, and writes the fixed value order and the signature information of the first-level node into the blockchain platform;
[0067] In this embodiment, the first-level node in the fixed value setting system node calculates the signature information of the fixed value order to be issued according to the node key pair, and the expression for calculating the signature information is:
[0068]
[0069] Among them, s1 is the signature information of the first-level node, H is the secure hash function, m is the fixed-value single information, and x1 is the private key of the first-level node.
[0070] After the signature calculation is completed, (m, s1) is written to the blockchain platform.
[0071] S30. Any node of the setting value setting system reads the setting value list and the signature information of the k-1th level node from the blockchain platform, and verifies the signature information of the k-1th level node according to the node public key;
[0072] In this embodiment, the k-th level node in the fixed value setting system node reads the fixed value list and the signature information of the k-1-th level node from the blockchain platform, and verifies the signature information of the k-1-th level node according to the node key pair, specifically:
[0073] Verify whether the discriminant is established. The expression of the discriminant is:
[0074]
[0075] Among them, s k-1 is the signature information of the k-1th level node in the distribution process, v j is the public key of the j-th node in the distribution process, j is a positive integer and 1≤j≤k;
[0076] If the discriminant holds, the verification passes; if the discriminant does not hold, the verification fails.
[0077] In a preferred embodiment of the present invention, the multiple set value setting system nodes in the set value setting system have a total of 3 nodes, forming a 3-level chain network topology structure, wherein the 2nd level node needs to verify the signature information of the 1st level node, that is, verify whether the following formula is established:
[0078] e(s1, g2) = e(H(m), v1)
[0079] Level 3 nodes need to verify the signature information of level 2 nodes, that is, verify whether the following formula is true:
[0080] e(s2, g2) = e(H(m), v1·v2)
[0081] If the discriminant holds, the verification passes; if the discriminant does not hold, the verification fails.
[0082] In a preferred embodiment of the present invention, all j-th level nodes in the process of issuing the set value setting system read the signature information of the set value list and the k-1-th level node from the blockchain platform, and verify the signature information of the k-1-th level node according to the node public key. After all j-th level nodes are verified, it is considered that the signature information of the k-1-th level node has been verified; wherein j is a positive integer and 1≤j≤k.
[0083] In a preferred embodiment of the present invention, the k j-th level nodes in the set value setting system issuance process all read the set value list and the signature information of the k-1-th level node from the blockchain platform, and verify the signature information of the k-1-th level node according to the node public key. After the k nodes are verified, it is considered that the signature information of the k-1-th level node has been verified; wherein j is a positive integer and 1≤j≤k, and k is a positive integer and 1<k<k.
[0084] In a preferred embodiment of the present invention, the fixed value setting system includes a supervisory node, which is used to read the fixed value list and the signature information of the k-1th level node from the blockchain platform, and verify the signature information of the k-1th level node according to the node public key. After the supervisory node verification is passed, it is considered that the signature information of the k-1th level node has been verified.
[0085] S40. After verification, the k-th level node calculates the signature information of the k-th level node according to the node key pair and the signature information of the k-1-th level node connected to itself in the network topology, and writes the fixed value order and the signature information of the k-th level node into the blockchain platform;
[0086] In this embodiment, the k-level node in the fixed value setting system node calculates the signature information of the k-level node according to the node key pair and the signature information of the k-1-level node. The expression for calculating the signature information is:
[0087]
[0088] s k =s k ′·s k-1
[0089] Among them, s k-1 is the signature information of the k-1th level node in the distribution process, H is the secure hash function, m is the fixed value single information, x k is the private key of the k-level node.
[0090] That is to say, for all j-th level nodes with 2≤j≤k in the distribution process, the signature information s of each node j are calculated independently by each node, and the following expressions are all valid:
[0091]
[0092] s j =s j ′·s j-1
[0093] Among them, s′0=1, s j-1 is the signature information of the j-1th level node, H is the secure hash function, m is the fixed value single information, x j is the private key of the j-th level node.
[0094] Therefore, the combination of the verification algorithm of step S30 and the signature algorithm of step S40 can ensure that the value order issued by the subordinate node is jointly verified by all its superior nodes, and the subordinate node can confirm whether the superior node has issued the correct value order.
[0095] In a preferred embodiment of the present invention, the multiple set value setting system nodes in the set value setting system have a total of 3 nodes, forming a 3-level chain network topology structure, wherein the expression for calculating the signature information of the 2nd level node is:
[0096]
[0097] s2=s2′·s1
[0098] After the level 2 node passes the verification, (m, s2) is written into the blockchain platform.
[0099] The expression for calculating the signature information of level 3 nodes is:
[0100]
[0101] s3=s3′·s2 After the 3rd-level node verification is passed, (m, s3) is written into the blockchain platform.
[0102] S41. If the k-th level node is the target node for the fixed value order to be issued, the fixed value order issuance process is terminated; otherwise, steps S30-S40 are continued at the k+1-th level node.
[0103] S50, after the k-level node verification fails, the failure information is reported, and the fixed value order issuance process ends;
[0104] S60. After the process of issuing the fixed value order is completed, any fixed value setting system node in the blockchain network system obtains the signature information of the fixed value setting system node through the blockchain platform, and verifies the signature information of the node according to the node key pair, and audits the process of issuing the fixed value order. For any fixed value setting system node, the verification method of the signature information is:
[0105] Verify whether the discriminant is established. The expression of the discriminant is:
[0106]
[0107] Among them, s k-1 is the signature information of the k-1 level node, v j is the public key of the j-level node.
[0108] In summary, this embodiment uses multi-signature and blockchain technology to design a (k-1, k) threshold verification mechanism to ensure that the value order issued by the subordinate node is jointly verified by all its superior nodes, thereby ensuring the correctness of the value order in the multi-level transmission process; the value order issuance method of this embodiment, through the multi-level node multi-signature mechanism, makes any value order issuance process auditable, thereby increasing the efficiency of the value order audit process; in the value order issuance method of this embodiment, the subordinate node can confirm by itself whether the superior node has issued the correct value order, thereby avoiding the risk of errors in the superior node or errors in multiple subordinate nodes caused by human tampering of the superior node.
[0109] Embodiment 2:
[0110] This embodiment provides a secondary device fixed value threshold command issuing system based on blockchain, including:
[0111] The blockchain platform includes a computing module, a communication module and a storage module, wherein the computing module is used to generate system public parameters required by the encryption algorithm, the communication module is used to communicate with the fixed value setting system node, and the storage module is used to store the fixed value setting order information and signature information uploaded by the fixed value setting system node;
[0112] The fixed value setting system includes a plurality of fixed value setting system nodes, and the fixed value setting system nodes include a communication module and a calculation module, wherein the communication module is used to communicate with other fixed value setting system nodes and a blockchain platform, and the calculation module is used to implement the blockchain-based secondary device fixed value threshold command issuing method of embodiment 1 of the present invention, specifically:
[0113] The fixed value setting system includes multiple fixed value setting system nodes. Each node generates a node key pair using random numbers and system public parameters, and writes the public key into the blockchain platform. According to the fixed value order issuance process, a multi-level node network topology structure is constructed.
[0114] The command issuance process of the first-level node includes the following steps:
[0115] The first-level node in the fixed value setting system calculates the signature information of the fixed value order to be issued according to the node key pair, calls the blockchain platform interface, and writes the fixed value order and the signature information of the first-level node into the blockchain platform;
[0116] The command issuing process of the k-th level node includes the following steps:
[0117] Any node of the setting system reads the setting list and the signature information of the k-1th level node from the blockchain platform, and verifies the signature information of the k-1th level node according to the node public key;
[0118] After the verification is passed, the k-th node calculates the signature information of the k-th node according to the node key pair and the signature information of the k-1-th node connected to itself in the network topology, and writes the fixed value order and the k-th node signature information into the blockchain platform; if the k-th node is the target node for the fixed value order, the fixed value order issuance process ends, otherwise the order issuance process of the k+1-th node is executed;
[0119] After verification fails, the failure information is reported and the process of issuing the fixed value order ends;
[0120] Wherein, k is a positive integer greater than 1 and less than or equal to the maximum node level.
[0121] After the set value order issuance process is completed, any set value setting system node in the blockchain network system obtains the signature information of the set value setting system node through the blockchain platform, verifies the signature information of the node based on the node key pair, and audits the set value order issuance process.
[0122] Embodiment 3:
[0123] This embodiment provides a storage medium storing a program. When the program is executed by a computer, the method for issuing a command for a secondary device fixed value threshold based on blockchain according to Embodiment 1 of the present invention is implemented, specifically:
[0124] Deploy the blockchain network system, including the fixed value setting system and the blockchain platform, where:
[0125] The blockchain platform generates system public parameters required for encryption algorithms;
[0126] The fixed value setting system includes multiple fixed value setting system nodes. Each node generates a node key pair using random numbers and system public parameters, and writes the public key into the blockchain platform. According to the fixed value order issuance process, a multi-level node network topology structure is constructed;
[0127] The command issuance process of the first-level node includes the following steps:
[0128] The first-level node in the fixed value setting system calculates the signature information of the fixed value order to be issued according to the node key pair, calls the blockchain platform interface, and writes the fixed value order and the signature information of the first-level node into the blockchain platform;
[0129] The command issuing process of the k-th level node includes the following steps:
[0130] Any node of the setting system reads the setting list and the signature information of the k-1th level node from the blockchain platform, and verifies the signature information of the k-1th level node according to the node public key;
[0131] After the verification is passed, the k-th node calculates the signature information of the k-th node according to the node key pair and the signature information of the k-1-th node connected to itself in the network topology, and writes the fixed value order and the k-th node signature information into the blockchain platform; if the k-th node is the target node for the fixed value order, the fixed value order issuance process ends, otherwise the order issuance process of the k+1-th node is executed;
[0132] After verification fails, the failure information is reported and the process of issuing the fixed value order ends;
[0133] Wherein, k is a positive integer greater than 1 and less than or equal to the maximum node level.
[0134] After the set value order issuance process is completed, any set value setting system node in the blockchain network system obtains the signature information of the set value setting system node through the blockchain platform, verifies the signature information of the node based on the node key pair, and audits the set value order issuance process.
[0135] It should be noted that the computer-readable storage medium of the present embodiment may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.
[0136] In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device, or device. In this embodiment, the computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. The computer-readable signal medium may also be any computer-readable storage medium other than a computer-readable storage medium, which may send, propagate, or transmit a program used by or in combination with an instruction execution system, device, or device. The computer program contained on the computer-readable storage medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.
[0137] The computer readable storage medium can be written in one or more programming languages or a combination thereof to execute the computer program of the present embodiment, and the programming language includes an object-oriented programming language such as Java, Pythoj, C++, and also includes a conventional procedural programming language such as C language or a similar programming language. The program can be executed entirely on the user's computer, partially on the user's computer, as an independent software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer can be connected to the user's computer through any type of network, including a local area network (LAk) or a wide area network (WAk), or can be connected to an external computer (for example, using an Internet service provider to connect through the Internet).
[0138] Obviously, the embodiments described above are only part of the embodiments of the present invention, rather than all of the embodiments. The present invention is not limited to the details of the above embodiments, and any appropriate changes or modifications made by ordinary technicians in the relevant technical field are deemed to be within the patent scope of the present invention.
Claims
1. A method for issuing commands based on a fixed value threshold of a secondary device based on blockchain, characterized in that: The following steps are involved: Deploy the blockchain network system, including the fixed value setting system and the blockchain platform, where: The blockchain platform generates system public parameters required for encryption algorithms; The fixed value setting system includes multiple fixed value setting system nodes. Each node generates a node key pair using random numbers and system public parameters, and writes the public key into the blockchain platform. According to the fixed value order issuance process, a multi-level node network topology structure is constructed; The command issuance process of the first-level node includes the following steps: The first-level node in the fixed value setting system calculates the signature information of the fixed value order to be issued according to the node key pair, calls the blockchain platform interface, and writes the fixed value order and the signature information of the first-level node into the blockchain platform; The order issuing process of the k-th level node includes the following steps: Any node of the setting value setting system reads the setting value sheet and the signature information of the k-1th level node from the blockchain platform, and verifies the signature information of the k-1th level node according to the node public key; After the verification is passed, the k-th node calculates the signature information of the k-th node according to the node key pair and the signature information of the k-1-th node connected to itself in the network topology, and writes the fixed value order and the k-th node signature information into the blockchain platform; if the k-th node is the target node for the fixed value order, the fixed value order issuance process ends, otherwise the order issuance process of the k+1-th node is executed; After verification fails, the failure information is reported and the process of issuing the fixed value order ends; Wherein, k is a positive integer less than or equal to the maximum number of node levels in the node network topology structure. When entering the command process of the k-th level node for the first time, k is 2.
2. The method for issuing commands based on the fixed value threshold of secondary equipment based on blockchain according to claim 1 is characterized in that: The blockchain platform generates the system public parameters required for the encryption algorithm, specifically: Select (G1, G2, GT) to be a multiplicative cyclic group of order p, the generators of (G1, G2) are (g1, g2) respectively, and e is a bilinear mapping from G1×G2→GT; define a secure hash function: H: {0, 1} * →G1; then the system common parameters are (G1, G2, GT, e, g1, g2, p, H).
3. The method for issuing commands based on the fixed value threshold of secondary equipment based on blockchain according to claim 2 is characterized in that: Each node generates a node key pair using a random number and system public parameters, specifically: For the i-th node, choose a random number x i ∈{1, 2, ..., p-1} as the private key, calculate As the public key, get the node public and private key pair (v i , x i ).
4. The method for issuing commands based on the fixed value threshold of secondary equipment based on blockchain according to claim 3 is characterized in that: The level 1 node in the set value setting system node calculates the signature information of the set value order to be issued according to the node key pair. The expression for signature information calculation is: Among them, s1 is the signature information of the first-level node, H is the secure hash function, m is the fixed-value single information, and x1 is the private key of the first-level node.
5. The method for issuing commands based on the fixed value threshold of secondary equipment based on blockchain according to claim 4 is characterized in that: The k-th level node calculates the signature information of the k-th level node based on the node key pair and the signature information of the k-1-th level node connected to itself in the network topology. The expression for signature information calculation is: s k =s k ′·s k-1 Among them, s k-1 is the signature information of the k-1th level node in the distribution process, H is the secure hash function, m is the fixed value single information, x k is the private key of the k-th level node.
6. The method for issuing commands based on the fixed value threshold of secondary equipment based on blockchain according to claim 5 is characterized in that: Any node of the setting system reads the setting list and the signature information of the k-1th level node from the blockchain platform, and verifies the signature information of the k-1th level node according to the node public key, specifically: Verify whether the discriminant is established. The expression of the discriminant is: Among them, s k-1 is the signature information of the k-1th level node in the distribution process, v j is the public key of the j-th node in the distribution process, j is a positive integer and 1≤j≤k; If the discriminant holds, the verification passes; if the discriminant does not hold, the verification fails.
7. The method for issuing commands for secondary equipment fixed value thresholds based on blockchain according to claim 1 is characterized in that: In the command issuance process of the k-th level node, all the j-th level nodes in the setting value setting system issuance process read the setting value list and the signature information of the k-1-th level node from the blockchain platform, and verify the signature information of the k-1-th level node according to the node public key. After all the j-th level nodes are verified, it is considered that the signature information of the k-1-th level node has been verified; where j is a positive integer and 1≤j≤k.
8. The method for issuing commands for secondary device fixed value thresholds based on blockchain according to claim 1 is characterized in that: After the set value order issuance process is completed, any set value setting system node in the blockchain network system obtains the signature information of the set value setting system node through the blockchain platform, verifies the signature information of the node based on the node key pair, and audits the set value order issuance process.
9. A secondary equipment fixed value threshold command issuing system based on blockchain, characterized in that: include: The blockchain platform includes a computing module, a communication module and a storage module, wherein the computing module is used to generate system public parameters required by the encryption algorithm, the communication module is used to communicate with the fixed value setting system node, and the storage module is used to store the fixed value setting order information and signature information uploaded by the fixed value setting system node; A fixed value setting system includes multiple fixed value setting system nodes, and the fixed value setting system nodes include a communication module and a calculation module, wherein the communication module is used to communicate with other fixed value setting system nodes and a blockchain platform, and the calculation module is used to implement the blockchain-based secondary equipment fixed value threshold command method according to any one of claims 1-8.
10. A storage medium storing a program, characterized in that: When the program is executed by a computer, the blockchain-based secondary device fixed threshold command issuing method according to any one of claims 1-8 is implemented.
Citation Information
Patent Citations
Digital signature-based data verification method, intelligent device and storage medium
CN111224782A
Lightweight node supervision method and device, equipment and medium
CN111343177A
Anti-counterfeiting traceability method based on blockchain and multi-signature technology
CN112733204A
Consensus disaster recovery method and device based on blockchain network, equipment and storage medium
CN113612614A
Group service implementation method and device, equipment and storage medium
EP3934168A2
