The invention relates to the field of
quantum key distribution, and discloses a
key distribution anti-
attack method and
system based on
decoy state coding and an irrelevant protocol, and the method comprises the steps: Alice generates a
signal state
quantum pulse and a three-intensity
decoy state
quantum pulse in a mixed manner, and transmits and monitors channel parameters in real time through a
quantum channel; bob randomly selects a measurement base for measurement, records
original data and delays to obtain a state type identifier; the Charlie transmits a random test state, collects Bell inequality
verification parameters, and implements equipment-independent security
verification; the two parties screen matched data through base comparison, evaluate channel security and correct a
signal state
bit error rate by using a
decoy state
bit error rate; and based on the screened keys, a
Toeplitz matrix negotiation protocol is adopted for compression to generate a final key, 10% of the keys are randomly extracted for
cross validation, and after the
cross validation is passed, the keys are stored, and the
decoy state strength and the measurement base group parameters are updated. According to the method, an Alice, Bob and Charlie three-party
system is constructed to form an iterative security
closed loop,
attack is comprehensively resisted, and a security key is generated.