A method and system for power data transmission based on quantum Byzantine consensus

Through the quantum digital signature and fixed signature verification mechanism in the quantum Byzantine consensus method, the communication complexity of the power load management system is reduced, the exponential complexity problem caused by the increase in users in the existing technology is solved, and the polynomial complexity and unconditional Security, suitable for power data transmission involving a large number of users.

CN117811746BActive Publication Date: 2024-09-24STATE GRID ANHUI ELECTRIC POWER CO LTD MARKETING SERVICE CENTER +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311846750.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-12-27
Publication Date
2024-09-24
Estimated Expiration
2043-12-27

AI Technical Summary

Technical Problem

As the number of participating users in the power load management system increases, the communication complexity of the existing quantum Byzantine consensus method increases exponentially, and it cannot be practically extended to the situation where a large number of users participate.

Method used

Adopting a power data transmission method based on quantum Byzantine consensus, through master node signature distribution, backup node signature exchange and third-party signature verification agency verification, quantum digital signatures are used to reduce communication complexity, and a signature verification agency that only participates in verification is fixed to relax centralization conditions.

Benefits of technology

It realizes communication with polynomial complexity, can be practically extended to hundreds or thousands of participants, provides unconditional security, breaks the classic 1/3 fault tolerance limit, and maintains security in the face of classical and quantum computing attacks.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117811746B
    Figure CN117811746B
Patent Text Reader

Abstract

The invention discloses a power data transmission method and system based on quantum Byzantine consensus, the method comprising: a master node signs a message to be sent and sends it to a backup node; each backup node receives the message and signature sent by the master node and adds its own signature, and sends the whole message to the next backup node, and data flow is performed in sequence in this manner, and the last backup node hands over all messages and signatures to the first backup node, so that each backup node collects messages and signatures received by other backup nodes; the signature is a quantum digital signature; after each backup node obtains the messages and signatures received by all backup nodes, it sends the whole message to a third-party signature verification agency for verification, and if the verification fails, it returns to execute step 2, and if the verification passes, the backup node outputs the message sent by the master node; the advantages of the invention are: the communication complexity is reduced to a polynomial, and it can be practically expanded to hundreds or thousands of participants.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of quantum security technology, and in particular to a method and system for transmitting power data based on quantum Byzantine consensus. Background Art

[0002] The Byzantine consensus protocol, as the cornerstone of blockchain, is committed to achieving consensus in a distributed network to ensure that even if there are malicious nodes, each independent node can still reach an agreement on network messages. However, the classic Byzantine consensus protocol faces two major challenges. First, the classic Byzantine consensus protocol is strictly constrained by the 1 / 3 fault tolerance limit, which means that the system needs at least 3f+1 nodes to tolerate f malicious nodes. There are rigorous mathematical proofs that show that the 1 / 3 fault tolerance limit cannot be broken for any decentralized system with pairwise communication. Secondly, due to the use of traditional cryptographic methods, such as public-private key cryptography, its security vulnerabilities are particularly serious when facing the threat of quantum computing, such as the quantum Shor algorithm.

[0003] In view of the above two points, the quantum Byzantine consensus protocol uses the construction of a special quantum entangled state to realize the special three generals problem. However, it cannot be extended to multiple parties and cannot prepare and maintain quantum entangled states, making it impractical.

[0004] At present, electricity is an essential energy source for daily life, and the users of the power system involve every household. At the same time, due to the different types of use, the power system also has different levels and types of business systems. The power load management system users monitor and control the load of all high-voltage users in the province. The single transmission data volume is large, and the security requirements are high. At the same time, the requirements for real-time and accuracy in the data transmission process are more stringent. This requires ensuring that the system can reach a consensus on the transmitted data, and the above-mentioned classic Byzantine consensus protocol is no longer applicable.

[0005] In recent years, Chinese patent publication number CN114553423A has disclosed a decentralized quantum Byzantine consensus method and proposed a Byzantine consensus scheme using quantum digital signatures. Although it has achieved unconditional security and exceeded the 1 / 3 fault tolerance limit, it has met the requirements of the power load management system for data transmission consistency to a certain extent. However, as the number of participants increases, the communication complexity increases exponentially, and it is difficult to accommodate hundreds or thousands of participants in real life, which is not practical. Therefore, finding a new quantum Byzantine consensus protocol for secure power data transmission has become an urgent problem to be solved in the power load management system. Summary of the invention

[0006] The technical problem to be solved by the present invention is that the existing quantum Byzantine consensus method, with the increase of users participating in the power load management system, the communication complexity increases exponentially, and it cannot be practically expanded to the situation where a large number of users participate in real life.

[0007] The present invention solves the above technical problems through the following technical means: a method for transmitting power data based on quantum Byzantine consensus, comprising the following steps:

[0008] Step 1: The master node signs the message to be sent and sends it to the backup node;

[0009] Step 2: Each backup node receives the message and signature sent by the master node and adds its own signature, and sends the whole message to the next backup node. The next backup node adds the message and signature sent by the master node it receives, adds its own signature, and sends the whole message to the next backup node. In this way, data flow is carried out in sequence. The last backup node hands all messages and signatures to the first backup node, so that each backup node collects the messages and signatures received by other backup nodes; the signature is a quantum digital signature;

[0010] Step 3: After each backup node receives the messages and signatures received by all backup nodes, it sends the entire message to a third-party signature verification agency for verification. If the verification fails, it returns to step 2. If the verification passes, the backup node outputs the message sent by the master node.

[0011] Furthermore, the step 1 comprises:

[0012] Assume that there are n power subsystems in total, one is randomly selected from these n power subsystems as the master node, and the remaining n-1 power subsystems are used as backup nodes. The master node performs quantum digital signature on the message it sends to each backup node, and sends the message and the quantum digital signature together to the corresponding backup node. The message refers to the power data that the power subsystem needs to transmit.

[0013] Furthermore, the step 1 further comprises:

[0014] The primary node S sends itself to the backup node News Perform quantum digital signature, the signature is , the message and the signature as a whole Send it to the corresponding backup node ,in, The sequence number of the backup node.

[0015] Furthermore, in step 2, each backup node collects the messages and signatures received by other backup nodes in a clockwise order.

[0016] Furthermore, the step 2 comprises:

[0017] The first backup node Send the message received from the master node and quantum digital signatures As a whole , stamped with your own quantum digital signature , and then the whole Send to the second backup node , the second backup node Send the message received from the master node and quantum digital signatures As a whole Add it and put your own quantum digital signature , the whole Hand it over to the third backup node , follow this process until the last backup node The message and quantum digital signature received from the master node Add and stamp your own quantum digital signature Afterwards, the last backup node All messages and quantum digital signatures All are handed over to the first backup node.

[0018] Furthermore, the quantum digital signature method is to use a one-time hash type quantum digital signature for a long message, a BB84 single-bit GC01 type quantum digital signature, or a SARG04 single-bit quantum digital signature.

[0019] Furthermore, the step 3 comprises:

[0020] After each backup node receives the messages and signatures of all backup nodes, it sends them as a whole to a third-party verification agency to verify whether each signature is correct. If each signature is correct, the third-party verification agency will send back "correct". The backup node then inputs all messages into the preset deterministic function and uses the output as the final message it believes to be sent by the master node. If there is an incorrect signature, the third-party verification agency will send back "error" and re-execute step 2 until the third-party verification agency returns "correct".

[0021] Furthermore, the preset decision function is a majority function or a one-to-one mapping choice function.

[0022] The present invention also provides a power data transmission system based on quantum Byzantine consensus, comprising:

[0023] The signature distribution module is used by the master node to sign the message to be sent and send it to the backup node;

[0024] The signature exchange module is used for each backup node to receive the message and signature sent by the master node and add its own signature, and send the whole message to the next backup node. The next backup node adds the message and signature sent by the master node it received, and then adds its own signature, and sends the whole message to the next backup node. In this way, data flow is carried out in sequence. The last backup node hands all messages and signatures to the first backup node, so that each backup node collects the messages and signatures received by other backup nodes; the signature is a quantum digital signature;

[0025] In the result verification module, after each backup node obtains the messages and signatures received by all backup nodes, it sends the entire message to a third-party signature verification agency for verification. If the verification fails, it returns to the signature communication module. If the verification passes, the backup node outputs the message sent by the master node.

[0026] Furthermore, the signature distribution module is also used for:

[0027] Assume that there are n power subsystems in total, one is randomly selected from these n power subsystems as the master node, and the remaining n-1 power subsystems are used as backup nodes. The master node performs quantum digital signature on the message it sends to each backup node, and sends the message and the quantum digital signature together to the corresponding backup node. The message refers to the power data that the power subsystem needs to transmit.

[0028] Furthermore, the signature distribution module is also used for:

[0029] The primary node S sends itself to the backup node News Perform quantum digital signature, the signature is , the message and the signature as a whole Send it to the corresponding backup node ,in, The sequence number of the backup node.

[0030] Furthermore, in the signature exchange module, each backup node collects the messages and signatures received by other backup nodes in a clockwise order.

[0031] Furthermore, the signature communication module is also used for:

[0032] The first backup node Send the message received from the master node and quantum digital signatures As a whole , stamped with your own quantum digital signature , and then the whole Send to the second backup node , the second backup node Send the message received from the master node and quantum digital signatures As a whole Add it and put your own quantum digital signature , the whole Hand it over to the third backup node , follow this process until the last backup node The message and quantum digital signature received from the master node Add and stamp your own quantum digital signature Afterwards, the last backup node All messages and quantum digital signatures All are handed over to the first backup node.

[0033] Furthermore, the quantum digital signature method is to use a one-time hash type quantum digital signature for a long message, a BB84 single-bit GC01 type quantum digital signature, or a SARG04 single-bit quantum digital signature.

[0034] Furthermore, the result verification module is also used for:

[0035] After each backup node receives the messages and signatures of all backup nodes, it sends them as a whole to a third-party verification agency to verify whether each signature is correct. If each signature is correct, the third-party verification agency will send back "correct". The backup node then inputs all messages into the preset decision function and uses the output as the final message it believes to be sent by the master node. If there is an incorrect signature, the third-party verification agency will send back "error" and re-execute the signature exchange module until the third-party verification agency returns "correct".

[0036] Furthermore, the preset decision function is a majority function or a one-to-one mapping choice function.

[0037] The advantages of the present invention are:

[0038] (1) The present invention relaxes some centralization conditions, fixes a signature verification agency that only participates in signature verification but not in actual decision-making, and utilizes the unconditionally secure anti-repudiation and anti-forgery properties of quantum digital signatures, as well as the backup node signature communication method in step 2, to reduce the communication complexity of the Byzantine consensus scheme to a polynomial. The communication complexity of existing quantum Byzantine consensus schemes grows exponentially with the number of participants, while the protocol of the present invention successfully achieves polynomial complexity and can be practically expanded to hundreds or thousands of participants.

[0039] (2) The quantum Byzantine consensus scheme proposed in this invention is a truly unconditionally secure scheme, which is safe from both classical computing attacks and quantum computing attacks. Its security is based on the quantum digital signature protocol used. The security of quantum digital signatures is provided by the basic principles of quantum mechanics and is not based on the computational complexity of mathematical problems. It is truly unconditionally secure, also known as message-theoretic security.

[0040] (3) The quantum Byzantine consensus scheme proposed in the present invention does not require the construction of a special multi-particle quantum entangled state. In actual implementation, it only requires the weak coherent state required by the quantum digital signature, which is more practical and easy to commercialize. This scheme only needs to be able to implement a three-party quantum digital signature. Regardless of the type of quantum digital signature, it can be directly applied to the present invention, making it highly compatible and practical, and can be implemented using a variety of quantum systems; it can not only be implemented in systems at the current technical level, but also can be integrated into the future quantum Internet system, and has a strong scope of application and prospects at this stage and in the future.

[0041] (4) The quantum Byzantine consensus scheme proposed in the present invention uses quantum digital signatures and a trusted third-party signature verification agency. The messages transmitted in the process and their corresponding signatures can ensure non-repudiation and tamper-proof. That is, no one can deny their own signature or tamper with the message or signature. Therefore, in principle, the scheme of the present invention breaks the classic 1 / 3 fault tolerance limit, and based on the verification mechanism of step 3, only two honest users are needed to allow honest users to reach a consensus on the messages in the network. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] Figure 1 A schematic diagram of a master node signature distribution process in a power data transmission method based on quantum Byzantine consensus disclosed in an embodiment of the present invention;

[0043] Figure 2 A schematic diagram of a quantum digital signature process in a power data transmission method based on quantum Byzantine consensus disclosed in an embodiment of the present invention;

[0044] Figure 3A schematic diagram of the backup node signature communication process in a power data transmission method based on quantum Byzantine consensus disclosed in an embodiment of the present invention;

[0045] Figure 4 A schematic diagram of a quantum digital signature of a backup node signature communication process of a power data transmission method based on quantum Byzantine consensus disclosed in an embodiment of the present invention;

[0046] Figure 5 A schematic diagram of a backup node verifying a signature and outputting a result in a power data transmission method based on quantum Byzantine consensus disclosed in an embodiment of the present invention. DETAILED DESCRIPTION

[0047] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in combination with the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0048] Example 1

[0049] The present invention provides a method for power data transmission based on quantum Byzantine consensus, which mainly includes three steps: master node signature distribution, backup node signature exchange, and backup node signature verification and output results. In this embodiment, it is assumed that the system has a total of n power subsystems. The master node S randomly selects one from the n power subsystems, and the other n-1 power subsystems become backup nodes. In the three-party quantum digital signature described in the following process, the verifier is fixed as a third-party signature verification agency, and the signer and receiver are the power subsystem. The specific process is as follows:

[0050] Step 1. Masternode signature distribution:

[0051] The primary node S sends itself to the backup node News Perform quantum digital signature, the signature is , and your message and signature Send it to the corresponding backup node ,like Figure 1 The three-party quantum digital signature process is as follows: the master node S acts as the signer, the backup node As the receiver, a fixed third-party signature verification agency acts as a verifier, such as Figure 2As shown. The quantum digital signature method can be selected to use a one-time hash type quantum digital signature for long messages, a BB84 single-bit GC01 type quantum digital signature, and a SARG04 single-bit quantum digital signature. This embodiment preferably uses a one-time hash type quantum digital signature for multiple bits.

[0052] Step 2: Backup node signature exchange:

[0053] After receiving the messages and signatures sent to them by the master node, the backup nodes need to collect the messages received by other backup nodes. For example, the first backup node Send the message and signature received from the master node As a whole, stamped with its own quantum digital signature , and then the whole Send to the next backup node The second backup node Send the message and signature received from the master node Add it and put your own quantum digital signature , the whole Hand it over to the third backup node Follow this process until the last backup node The message and signature received from the master node Add and sign your own Afterwards, the last backup node All messages and signatures All are handed over to the first backup node The specific process is as follows: Figure 3 As shown, and the quantum digital signature process involved is as follows Figure 4 As shown. Each backup node will perform such a message and signature collection process, and collect the messages and signatures of other backup nodes into its own hands. For each backup node, the order of message and signature collection is in the clockwise direction according to the backup node subscript number, for example .

[0054] Step 3: The backup node verifies the signature and outputs the result:

[0055] like Figure 5 As shown, each backup node After receiving the messages and signatures of all other backup nodes, they are sent as a whole to a third-party verification agency to verify whether each signature is correct. If each signature is correct, the third-party verification agency will return "correct", and the backup node will input all messages into a predetermined deterministic function and use the output as the final message it believes to be sent by the master node. If there is an incorrect signature, the third-party verification agency will return "error", and the backup node will find that someone in other backup nodes has cheated, and will re-execute step 2 until the verification agency returns "correct". For example, in the previous stage, the first backup node The results of the messages and signatures of all backup nodes are: , the first backup node Send it to a third-party signature verification agency, which will verify the signature in turn Is it correct? If they are all correct, the result is returned to the first backup node. The first backup node Then you can trust that each message value , it inputs it into a pre-agreed deterministic one-to-one mapping function, and outputs the final result as the message of the master node. In this embodiment, the deterministic one-to-one mapping function selects the majority function, then the first backup node The final result is The element with the highest number of occurrences in the message list.

[0056] Through the above technical solution, due to the non-repudiation of quantum digital signatures, no one can deny that they have signed. Due to the non-forgeable nature of quantum digital signatures, no one can tamper with the messages and signatures during transmission. Therefore, the message list that each backup node can successfully obtain is the same. , a list of these n-1 messages. Inputting the same list into a deterministic one-to-one mapping function, such as a majority function, the final output obtained will also be consistent. Therefore, in theory, as long as there are at least two honest users in the master node and the backup node, the honest users in the system can reach a consistent output on the message sent by the master node. In this way, even if there are malicious nodes doing evil, each independent node can still reach a consensus on the message sent by the master node, so that the solution of the present invention breaks the classic 1 / 3 fault tolerance limit.

[0057] Example 2

[0058] The difference between Example 2 and Example 1 is that the quantum digital signature specifically adopts a one-time hash quantum digital signature. The one-time hash quantum digital signature method based on N bits is used to demonstrate the four-party quantum Byzantine consensus. The participants are the master node S and the backup node , the power data transmission method based on quantum Byzantine consensus includes the following steps:

[0059] Step 1: Primary node signature distribution: The primary node S sends itself to the backup node News Perform quantum digital signature, the signature is , which takes its message and signature Send it to the corresponding backup node .

[0060] The one-time hash quantum digital signature process is as follows: the master node S acts as the signer, and the backup node As the receiver, a fixed third-party signature verification agency acts as the verifier. Step 1: The signer is the primary node S, and the receiver is the backup node The 6 strings of keys are divided into two groups, denoted as Group A and Group B. The two strings of random key strings held by the signing party, the master node S, are denoted as and , similarly for backup nodes hold and , the verification party is a third-party signature verification agency and , and the two sets of keys between the signer, the receiver and the verifier form a secret sharing relationship respectively; the method for realizing secret sharing is preferably quantum secret sharing; the relationship of secret sharing is: , .in It is N digits, It is 2N bits. Note that the operations mentioned in the present invention are all binary operations.

[0061] The signing party master node S obtains an N-bit random number through its own random number generator. The N-bit random number is used to generate an irreducible polynomial. The specific process is as follows:

[0062] First, use each bit of the N-bit random number to correspond to the coefficient of each term in the polynomial except the highest term, and generate an N-order polynomial in the GF(2) field, where the coefficient of the highest term is 1; for example, the N-bit random number is , then the generated polynomial is Only when , the generated polynomial may be an irreducible polynomial. Therefore, in order to reduce the amount of calculation in the later verification of irreducible polynomials, the N-bit random number can be judged first: if the last bit of the N-bit random number is 0, then the last bit of the random number is set to 1; or if the last bit of the N-bit random number is 0, then regenerate N-bit random numbers until the last bit of the generated n-bit random number is 1; this can reduce the amount of calculation in the later verification of irreducible polynomials, and finally make the generated polynomial be . Then, verify whether the N-order polynomial is an irreducible polynomial. If the verification result is "no", the random number generator of the master node S directly generates another set of N-bit random numbers, which are returned as new N-bit random numbers to regenerate the polynomial and verify it; if the verification result is "yes", stop the verification and obtain an irreducible polynomial; preferably, the verification method here selects two methods for verifying irreducible polynomials in the literature disclosed in patent application number CN202111336020.2.

[0063] After generating the irreducible polynomial, the signing master node uses its first set of N-bit keys As input, a random number is used together with an irreducible polynomial to generate a hash function based on a linear feedback shift register. , and then the message Input the hash function and get the hash value , hash value And the coefficient of each term except the highest term in the irreducible polynomial The string that makes up the summary The form of the summary can be determined according to pre-defined rules, such as hash value + string, string + hash value, etc. The final summary is 2N bits; the signer Alice uses her second set of 2N bits of key Summary Perform unconditional secure encryption, where unconditional secure encryption is preferably one-time-one-pad XOR encryption, and then generate the final signature ;

[0064] The hash function based on the linear feedback shift register is a Toeplitz matrix of dimension N×M, where N is the length of the first set of keys of the signer and M is the message The length of the vector are irreducible polynomial coefficients. The vector The first N-bit key of the signer .make , , , ..., in this embodiment, . T represents the transpose of the matrix. Therefore, the Toeplitz hash function based on LFSR is generated in the following form:

[0065]

[0066] Verify the signature: The signing party's master node S sends the message and signature It is sent as a whole to the recipient Bob. At the same time, the signer S also sends the secret key to the recipient in an unconditionally secure way. , an unconditionally secure method is implemented by using quantum key distribution technology or securely distributing quantum random numbers; the receiver After receiving, the two sets of keys you hold and ,information and signature The verification is sent to a trusted third-party signature verification agency fixed by the verifier. After receiving the verification, the verification agency will send the two sets of keys it holds to the verification agency. and Send to the receiver Backup node, receiver The two keys of the signer S are calculated by the signing authority and the verification authority based on their respective keys. The message exchange with the signature verification agency is a classic channel that requires authentication to prevent tampering;

[0067] (1) Recipient The third-party verification agency uses the second group of keys of the signing party's master node S calculated by each of them Signature Perform decryption operations to obtain their respective reverse summaries and reverse summary , and All by hash value A string consisting of the coefficients of each term except the highest term in the irreducible polynomial Composition; Recipient The verification agency and the signature verification agency each use the hash value in the separate summary according to the previous preset rules and a string of irreducible polynomial coefficients (2)Receiving party The first group of keys of the signer Alice calculated by the third-party verification agency , As the seed of the hash function, use the string consisting of the coefficients of each term except the highest term in the irreducible polynomial separated in the previous step Generate LFSR-Toeplitz hash function and then convert the received message The hash function generated by the input generates the receiver Positive Summary and the forward summary of the verification agency ; If the receiver's forward digest Equal to reverse digest , then the receiver Accept the signature, otherwise do not accept it; if the forward digest of the verifier Equal to reverse digest , the signature verification agency accepts the signature, otherwise it does not accept it; if the recipient The digital signature is completed only when the recipient accepts the verification. The signature is considered successful only when both the verification party and the signature verification agency accept the signature, otherwise it fails.

[0068] Step 2: Backup node signature communication: After receiving the messages and signatures sent to them by the master node, the backup nodes need to collect the messages received by other backup nodes. For example. Send the message and signature received from the master node As a whole, stamped with its own quantum digital signature , and then the whole Send to the next backup node The second backup node Send the message and signature received from the master node Add it and put your own quantum digital signature , the whole Hand it over to the third backup node The last backup node The message and signature received from the master node Add and sign your own Afterwards, by All messages and signatures Give it all to Each backup node will carry out such a message and signature collection process, collecting the messages and signatures of other backup nodes in the clockwise direction of the labels. The final result received is , The final result received is The quantum digital signature process in step 2 is the same as that in step 1, and the verification party is fixed as a third-party verification agency.

[0069] Step 3: The backup node verifies the signature and outputs the result: Each backup node After receiving the messages and signatures of all other backup nodes, they are sent as a whole to a third-party verification agency to verify whether each signature is correct. If each signature is correct, the verification agency will return "correct", and the backup node will input all messages into a predetermined deterministic function and use the output as the final message it believes to be sent by the master node. If there is an incorrect signature, the verification agency will return "error", and the backup node will find that someone in other backup nodes has cheated, and will re-execute step 2 until the verification agency returns "correct". In the previous stage, The final list obtained is as follows , The final total received is , The final total received is The result is sent to the signature verification agency, which verifies the signature in turn. Is it correct? If they are all correct, return the result to . Then you can trust that each message value ; The entire received signature is sent to a third-party signature verification agency, which verifies the signature in turn. Is it correct? If they are all correct, return the result to . Then you can trust that each message value ; The entire received signature is sent to a third-party signature verification agency, which verifies the signature in turn. Is it correct? If they are all correct, return the result to . Then you can trust that each message value All three backup nodes have received the same trusted message list. , input it into a deterministic one-to-one mapping function that has been agreed upon in advance, and output the final result as the message of the master node. Preferably, we choose the majority function here, then The final results are The output is the element with the most occurrences in the message list.

[0070] Example 3

[0071] Based on Example 1, Example 3 of the present invention further provides a power data transmission system based on quantum Byzantine consensus, including:

[0072] The signature distribution module is used by the master node to sign the message to be sent and send it to the backup node;

[0073] The signature exchange module is used for each backup node to receive the message and signature sent by the master node and add its own signature, and send the whole message to the next backup node. The next backup node adds the message and signature sent by the master node it received, and then adds its own signature, and sends the whole message to the next backup node. In this way, data flow is carried out in sequence. The last backup node hands all messages and signatures to the first backup node, so that each backup node collects the messages and signatures received by other backup nodes; the signature is a quantum digital signature;

[0074] In the result verification module, after each backup node obtains the messages and signatures received by all backup nodes, it sends the entire message to a third-party signature verification agency for verification. If the verification fails, it returns to the signature communication module. If the verification passes, the backup node outputs the message sent by the master node.

[0075] Specifically, the signature distribution module is also used for:

[0076] Assume that there are n power subsystems in total, one is randomly selected from these n power subsystems as the master node, and the remaining n-1 power subsystems are used as backup nodes. The master node performs quantum digital signature on the message it sends to each backup node, and sends the message and the quantum digital signature together to the corresponding backup node. The message refers to the power data that the power subsystem needs to transmit.

[0077] More specifically, the signature distribution module is also used to:

[0078] The primary node S sends itself to the backup node News Perform quantum digital signature, the signature is , the message and the signature as a whole Send it to the corresponding backup node ,in, The sequence number of the backup node.

[0079] Specifically, in the signature exchange module, each backup node collects the messages and signatures received by other backup nodes in a clockwise order.

[0080] Specifically, the signature communication module is also used for:

[0081] The first backup node Send the message received from the master node and quantum digital signatures As a whole , stamped with your own quantum digital signature , and then the whole Send to the second backup node , the second backup node Send the message received from the master node and quantum digital signatures As a whole Add it and put your own quantum digital signature , the whole Hand it over to the third backup node , follow this process until the last backup node The message and quantum digital signature received from the master node Add and stamp your own quantum digital signature Afterwards, the last backup node All messages and quantum digital signatures All are handed over to the first backup node.

[0082] Specifically, the quantum digital signature method is to use a one-time hash type quantum digital signature for a long message, a BB84 single-bit GC01 type quantum digital signature, or a SARG04 single-bit quantum digital signature.

[0083] Specifically, the result verification module is also used for:

[0084] After each backup node receives the messages and signatures of all backup nodes, it sends them as a whole to a third-party verification agency to verify whether each signature is correct. If each signature is correct, the third-party verification agency will send back "correct". The backup node then inputs all messages into the preset decision function and uses the output as the final message it believes to be sent by the master node. If there is an incorrect signature, the third-party verification agency will send back "error" and re-execute the signature exchange module until the third-party verification agency returns "correct".

[0085] More specifically, the preset decision function is a majority function or a one-to-one mapping choice function.

[0086] The above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for power data transmission based on quantum Byzantine consensus, characterized in that: The following steps are involved: Step 1: The master node signs the message to be sent and sends it to the backup node. The master node performs quantum digital signature on the message it sends to each backup node, and sends the message and quantum digital signature together to the corresponding backup node; Step 2: Each backup node receives the message and signature sent by the master node and adds its own signature, and sends the whole message to the next backup node. The next backup node adds the message and signature sent by the master node it received, adds its own signature, and sends the whole message to the next backup node. In this way, data flow is carried out in sequence. The last backup node hands all messages and signatures to the first backup node, so that each backup node collects the messages and signatures received by other backup nodes. The signature is a quantum digital signature; Step 3: After each backup node receives the messages and signatures received by all backup nodes, it sends the entire message to a third-party signature verification agency for verification. If the verification fails, it returns to step 2. If the verification passes, the backup node outputs the message sent by the master node.

2. According to the method of power data transmission based on quantum Byzantine consensus in claim 1, it is characterized in that: The step 1 comprises: Assuming that there are n power subsystems in total, one is randomly selected from the n power subsystems as the master node, and the remaining n-1 power subsystems are used as backup nodes. The message refers to the power data that the power subsystem needs to transmit.

3. According to the method of power data transmission based on quantum Byzantine consensus in claim 2, it is characterized in that: The step 1 also includes: The primary node S sends itself to the backup node News Perform quantum digital signature, the signature is , the message and the signature as a whole Send it to the corresponding backup node ,in, The sequence number of the backup node.

4. According to the method of power data transmission based on quantum Byzantine consensus in claim 1, it is characterized in that: In step 2, each backup node collects the messages and signatures received by other backup nodes in a clockwise order.

5. According to the method of power data transmission based on quantum Byzantine consensus in claim 1, it is characterized in that: The step 2 comprises: The first backup node Send the message received from the master node and quantum digital signatures As a whole , stamped with your own quantum digital signature , and then the whole Send to the second backup node , the second backup node Send the message received from the master node and quantum digital signatures As a whole Add it and put your own quantum digital signature , the whole Hand it over to the third backup node , follow this process until the last backup node The message and quantum digital signature received from the master node Add and stamp your own quantum digital signature Afterwards, the last backup node All messages and quantum digital signatures All are handed over to the first backup node.

6. According to the method of power data transmission based on quantum Byzantine consensus in claim 1, it is characterized in that: The quantum digital signature method is to use a one-time hash type quantum digital signature for a long message, a BB84 single-bit GC01 type quantum digital signature or a SARG04 single-bit quantum digital signature.

7. The method for power data transmission based on quantum Byzantine consensus according to claim 1 is characterized in that: The step 3 comprises: After each backup node receives the messages and signatures of all backup nodes, it sends them as a whole to a third-party verification agency to verify whether each signature is correct. If each signature is correct, the third-party verification agency will send back "correct". The backup node then inputs all messages into the preset deterministic function and uses the output as the final message it believes to be sent by the master node. If there is an incorrect signature, the third-party verification agency will send back "error" and re-execute step 2 until the third-party verification agency returns "correct".

8. The method for power data transmission based on quantum Byzantine consensus according to claim 7 is characterized in that: The preset decision function is a majority function or a one-to-one mapping choice function.

9. A power data transmission system based on quantum Byzantine consensus, characterized in that: include: The signature distribution module is used for the master node to sign the message to be sent and send it to the backup node. The master node performs quantum digital signature on the message it sends to each backup node, and sends the message and quantum digital signature together to the corresponding backup node; The signature exchange module is used for each backup node to receive the message and signature sent by the master node and add its own signature, and then send the whole message to the next backup node. The next backup node adds the message and signature sent by the master node it received, and then adds its own signature, and sends the whole message to the next backup node. In this way, data flow is carried out in sequence. The last backup node hands all messages and signatures to the first backup node, so that each backup node collects the messages and signatures received by other backup nodes. The signature is a quantum digital signature; In the result verification module, after each backup node obtains the messages and signatures received by all backup nodes, it sends the entire message to a third-party signature verification agency for verification. If the verification fails, it returns to the signature communication module. If the verification passes, the backup node outputs the message sent by the master node.

10. The power data transmission system based on quantum Byzantine consensus according to claim 9 is characterized in that: The signature distribution module is also used for: Assume that there are n power subsystems in total, one is randomly selected from these n power subsystems as the master node, and the remaining n-1 power subsystems are used as backup nodes. The master node performs quantum digital signature on the message it sends to each backup node, and sends the message and the quantum digital signature together to the corresponding backup node. The message refers to the power data that the power subsystem needs to transmit.