Blockchain Approach Based on Quantum Key Distribution and Quantum Key Privacy Enhancement

By using quantum key distribution and quantum key privacy enhancement methods, quantum keys are generated and distributed. Transaction data is then encrypted using quantum keys to generate a shared blockchain ledger, solving the problem of poor information security in blockchain systems and achieving security and privacy protection for transaction data.

CN116208332BActive Publication Date: 2026-03-06NORTHKING INFORMATION TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310211766.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-02-28
Publication Date
2026-03-06
Estimated Expiration
2043-02-28

AI Technical Summary

Technical Problem

In existing blockchain systems, the network transmission keys are easily eavesdropped by third parties, resulting in poor information security and an inability to effectively protect the privacy and security of transaction data.

Method used

The method employs quantum key distribution and quantum key privacy enhancement. Nodes generate quantum keys and encrypt transaction data. Quantum keys are generated using quantum key generation parameters such as photon polarization angles, transmitted through a quantum channel, and eavesdropping risks are detected in the quantum channel. A blockchain shared ledger is generated, and the transaction data is decrypted and obtained after consensus is reached among nodes.

Benefits of technology

It enhances the privacy of the blockchain system, prevents third-party eavesdropping, and ensures the security and privacy of transaction data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116208332B_ABST
    Figure CN116208332B_ABST
Patent Text Reader

Abstract

This invention discloses a blockchain method based on quantum key distribution and quantum key privacy enhancement. It includes: generating quantum keys through nodes and distributing them to designated nodes; obtaining transaction data encrypted with the quantum keys through user nodes; generating a shared blockchain ledger based on the transaction data through a peer-to-peer consensus mechanism; and obtaining the quantum keys and the shared blockchain ledger through each node, and decrypting the shared blockchain ledger using the quantum keys to obtain the transaction data. By generating and distributing quantum keys to designated nodes, encrypting transaction data using the quantum keys, and generating a shared blockchain ledger through peer-to-peer consensus, nodes can decrypt the shared blockchain ledger using the quantum keys to obtain the original transaction data. This allows for data decryption among designated nodes, preventing third-party eavesdropping, enhancing the privacy of the blockchain system, and ensuring the security of transaction data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of blockchain technology, and in particular to a blockchain method based on quantum key distribution and quantum key privacy enhancement. Background Technology

[0002] Blockchain is an innovative application model that integrates technologies such as peer-to-peer transmission, encryption algorithms, consensus mechanisms, and distributed data block chain storage. It is a distributed data sharing ledger.

[0003] Currently, blockchain serves as a shared ledger, storing data related to finance, banking, and assets. Some of this data involves private information or information that entities such as institutions, organizations, companies, and enterprises are unwilling to disclose. Furthermore, even among blockchain nodes, entities are unwilling to fully disclose certain information across all nodes, but rather prefer to selectively share transaction details among some nodes.

[0004] However, existing network transmission keys are easily eavesdropped by third parties, which challenges information security and leads to poor privacy in blockchain systems, thus making it impossible to guarantee the security of transaction data. Summary of the Invention

[0005] This invention provides a blockchain method based on quantum key distribution and quantum key privacy enhancement to ensure the information security of transaction data in the blockchain system.

[0006] According to one aspect of the present invention, a blockchain method based on quantum key distribution and quantum key privacy enhancement is provided, applied to a blockchain system, comprising: user nodes and peer nodes, the method comprising:

[0007] Quantum keys are generated through nodes and then sent to the designated nodes.

[0008] The system obtains transaction data encrypted with quantum keys through user nodes, and generates a blockchain shared ledger based on the transaction data through a peer-to-peer consensus mechanism. The blockchain shared ledger includes transaction data encrypted with quantum keys.

[0009] The quantum key and blockchain shared ledger are obtained from each node, and the transaction data is obtained by decrypting the blockchain shared ledger using the quantum key.

[0010] Optionally, generating a quantum key via a node includes: acquiring user-preconfigured quantum key generation parameters, wherein the quantum key generation parameters include photon polarization angles; and generating a quantum key based on the quantum key generation parameters.

[0011] Optionally, the quantum key is sent to designated nodes, including: determining the eavesdropping risk value between the nodes of the two communicating parties; when the eavesdropping risk value is less than the security control threshold, the quantum key is sent to the node through the quantum channel.

[0012] Optionally, a blockchain shared ledger is generated based on transaction data through a peer-to-peer consensus mechanism, including: generating data blocks by encrypting transaction data using quantum keys; sending the data blocks to each peer node and obtaining response information sent by each peer node; and generating a blockchain shared ledger based on the response information and the data blocks.

[0013] Optionally, generating data blocks based on quantum key encrypted transaction data includes: determining the timestamp corresponding to the transaction data, generating data groups based on the transaction data with the specified timestamp, and generating data blocks by packaging the quantum key encrypted transaction data.

[0014] Optionally, a blockchain shared ledger is generated based on the response information and data blocks, including: when it is determined that response information from all peer nodes has been received, obtaining the server's original blockchain data; and combining the data blocks with the original blockchain data to generate the blockchain shared ledger.

[0015] Optionally, after determining the corresponding eavesdropping risk value between the nodes of the two communicating parties, the method further includes: generating a prompt message based on the eavesdropping risk value when the eavesdropping risk value is greater than the security control threshold; and triggering an alarm in a specified manner based on the prompt message.

[0016] According to another aspect of the present invention, a blockchain device based on quantum key distribution and quantum key privacy enhancement is provided, applied to a blockchain system, comprising: user nodes and peer nodes, the device comprising:

[0017] The quantum key transmission module is used to generate quantum keys through nodes and send the quantum keys to designated nodes;

[0018] The blockchain shared ledger generation module is used to obtain transaction data encrypted with quantum keys through user nodes, and generate a blockchain shared ledger based on the transaction data through a peer-to-peer consensus mechanism. The blockchain shared ledger includes transaction data encrypted with quantum keys.

[0019] The transaction data decryption module is used to obtain quantum keys and blockchain shared ledgers through each node, and decrypt the blockchain shared ledgers according to the quantum keys to obtain transaction data.

[0020] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:

[0021] At least one processor; and

[0022] A memory that is communicatively connected to at least one processor; wherein,

[0023] The memory stores a computer program that can be executed by at least one processor, such that the at least one processor is able to execute the blockchain method based on quantum key distribution and quantum key privacy enhancement according to any embodiment of the present invention.

[0024] According to another aspect of the present invention, a computer-readable storage medium is provided, the computer-readable storage medium storing computer instructions for causing a processor to execute and implement the blockchain method based on quantum key distribution and quantum key privacy enhancement as described in any embodiment of the present invention.

[0025] The technical solution of this invention generates and distributes quantum keys to designated nodes, encrypts transaction data according to the quantum keys, and generates a blockchain shared ledger after consensus among peer nodes. Nodes can decrypt the blockchain shared ledger according to the quantum keys to obtain the original transaction data, enabling data decryption among designated nodes, avoiding third-party eavesdropping, enhancing the privacy of the blockchain system, and ensuring the security of transaction data.

[0026] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of the present invention, nor is it intended to limit the scope of the invention. Other features of the invention will become readily apparent from the following description. Attached Figure Description

[0027] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0028] Figure 1 This is a flowchart of a blockchain method based on quantum key distribution and quantum key privacy enhancement according to Embodiment 1 of the present invention;

[0029] Figure 2 This is a flowchart of another blockchain method based on quantum key distribution and quantum key privacy enhancement provided in Embodiment 2 of the present invention;

[0030] Figure 3 This is a schematic diagram of a quantum key distribution and blockchain shared ledger generation process according to Embodiment 2 of the present invention;

[0031] Figure 4This is a schematic diagram of a blockchain device based on quantum key distribution and quantum key privacy enhancement according to Embodiment 3 of the present invention;

[0032] Figure 5 This is a schematic diagram of the structure of an electronic device that implements a blockchain method based on quantum key distribution and quantum key privacy enhancement according to an embodiment of the present invention. Detailed Implementation

[0033] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.

[0034] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.

[0035] Example 1

[0036] Figure 1 This document provides a flowchart of a blockchain method based on quantum key distribution and quantum key privacy enhancement, as described in Embodiment 1 of the present invention. This method is applied to a blockchain system, including user nodes and peer nodes. This embodiment is applicable to situations where transaction data transmitted between user nodes and peer nodes in a blockchain system is encrypted. Figure 1 As shown, the method includes:

[0037] S110. Generate a quantum key through the node and send the quantum key to the designated nodes.

[0038] In this context, a key refers to a cipher used to encrypt and decrypt transmitted information, preventing unauthorized access to the content. A quantum key, on the other hand, utilizes the properties of quantum mechanics to enable communicating parties to generate and share a random, secure key. This key can be used to encrypt and decrypt information; it possesses true randomness, and its generation is based on physical mechanisms rather than mathematical algorithms. User nodes are user terminals located within the blockchain network. These terminals include, but are not limited to, mobile devices such as mobile phones, laptops, digital radio receivers, PDAs (Personal Digital Assistants), PADs (Tablets), and PMPs (Portable Multimedia Players). Furthermore, user nodes or peer nodes possess quantum devices, enabling the generation and distribution of quantum keys. Peer nodes are other nodes in the blockchain network connected to user nodes. A blockchain is a shared database storing data or information. It is an innovative application model integrating technologies such as peer-to-peer transmission, encryption algorithms, consensus mechanisms, and distributed data block chain storage; it is a distributed data sharing ledger.

[0039] Optionally, generating a quantum key via a node includes: acquiring user-preconfigured quantum key generation parameters, wherein the quantum key generation parameters include photon polarization angles; and generating a quantum key based on the quantum key generation parameters.

[0040] Specifically, in quantum communication, information is represented by the polarization state of photons. The quantum device determines the polarization state of the photons being transmitted, i.e., the photon polarization angle, based on pre-configured quantum key generation parameters. Different photon polarization angles correspond to different key representations. The quantum devices of user nodes or peer nodes can generate corresponding quantum keys based on the quantum key generation parameters. For example, a photon polarization angle of 0° corresponds to key bit 1, and a photon polarization angle of 90° corresponds to key bit 0. It should be noted that using quantum key distribution allows both communicating parties to obtain a pair of completely random quantum keys known only to the two parties, ensuring information security.

[0041] Optionally, the quantum key is sent to designated nodes, including: determining the eavesdropping risk value between the nodes of the two communicating parties; when the eavesdropping risk value is less than the security control threshold, the quantum key is sent to the node through the quantum channel.

[0042] Specifically, a quantum channel refers to a channel for data transmission between quantum nodes. User nodes and peer nodes can establish quantum channels with designated nodes and send quantum keys to these designated nodes through the quantum channels. Any measurement or eavesdropping during quantum key distribution will interfere with the distribution process and be detected by both communicating parties. To ensure communication security, the quantum devices of user nodes or peer nodes can detect the presence of a third party attempting to eavesdrop and obtain the key during quantum key distribution. That is, user nodes or peer nodes can determine the corresponding eavesdropping risk value between communicating nodes. The eavesdropping risk value is a value generated by the quantum device after detecting the current communication environment during quantum key distribution. Only when the eavesdropping risk value is less than the security control threshold will the quantum key be sent to the node through the quantum channel, preventing third-party eavesdropping during quantum key distribution and avoiding interference to both communicating parties during quantum key transmission, thus ensuring communication security.

[0043] Optionally, after determining the corresponding eavesdropping risk value between the nodes of the two communicating parties, the method further includes: generating a prompt message based on the eavesdropping risk value when the eavesdropping risk value is greater than the security control threshold; and triggering an alarm in a specified manner based on the prompt message.

[0044] Specifically, the security control threshold refers to the threshold set at the communication node according to communication needs. When the eavesdropping risk value is greater than the security control threshold, the quantum communication node can generate a prompt message based on the eavesdropping risk value. The prompt message includes the communication risk level. The quantum communication node can determine the risk level of communication with the node by the difference between the eavesdropping risk value and the security control threshold. For example, when the difference is between 0 and 5, the current communication risk level can be determined to be low risk; when the difference is between 5 and 10, the current communication risk level can be determined to be medium risk; and when the difference is greater than 10, the current communication risk level can be determined to be high risk.

[0045] Furthermore, the communication node will issue an alarm in a specified manner based on the risk level indicated in the alert message. This alarm serves to alert the user, enabling them to promptly identify any potential eavesdropping risks and investigate any third-party eavesdropping devices, thus ensuring the security of subsequent communications. The specified methods include voice or image. Voice alerts can be broadcast through a speaker connected to the user terminal; for example, the voice message could state: "Low-risk eavesdropping exists." Images can be displayed on the user terminal's screen to alert the user; for example, the user can view the risk level alert on their terminal, with the message: "Low-risk eavesdropping exists." The purpose of these eavesdropping risk alerts is to allow users to promptly identify third-party eavesdropping during quantum key distribution, facilitating timely checks and adjustments to the communication environment and improving the reliability of the quantum key distribution process.

[0046] S120: Obtain transaction data encrypted with quantum keys through user nodes, and generate a blockchain shared ledger based on the transaction data through a peer-to-peer consensus mechanism.

[0047] Specifically, after the distribution of quantum keys among quantum communication nodes, these quantum keys can be used as transaction keys to encrypt transaction data. A transaction key is a secure symmetric key used to encrypt blockchain transaction information. User nodes or blockchain peer nodes can use the quantum key as the symmetric key to encrypt transaction data. Using the quantum key, transaction data can be encrypted. Nodes can package the quantum-key-encrypted transaction data into data blocks. After consensus among blockchain peer nodes, new blocks are generated, thus forming the blockchain shared ledger. The blockchain shared ledger includes the transaction data encrypted using the quantum key.

[0048] S130. Obtain the quantum key and blockchain shared ledger through each node, and decrypt the blockchain shared ledger according to the quantum key to obtain transaction data.

[0049] Specifically, each node can access the blockchain's shared ledger and use the distributed quantum key to decrypt the ledger to obtain transaction data, gaining access to transaction details. Other nodes, unaware of the transaction key, cannot access these details. By encrypting and decrypting sensitive transaction data using quantum keys, transforming plaintext into ciphertext, and restricting access permissions for users, privacy is enhanced.

[0050] The technical solution of this invention generates and distributes quantum keys to designated nodes, encrypts transaction data according to the quantum keys, and generates a blockchain shared ledger after consensus among peer nodes. Nodes can decrypt the blockchain shared ledger according to the quantum keys to obtain the original transaction data, enabling data decryption among designated nodes, avoiding third-party eavesdropping, enhancing the privacy of the blockchain system, and ensuring the security of transaction data.

[0051] Example 2

[0052] Figure 2 This is a flowchart of a blockchain method based on quantum key distribution and quantum key privacy enhancement provided in Embodiment 2 of the present invention. This embodiment adds a specific process for generating a shared blockchain ledger based on quantum keys and transaction data, building upon Embodiment 1. For example... Figure 2 As shown, the method includes:

[0053] S210. Generate a quantum key through the node and send the quantum key to the designated nodes.

[0054] Optionally, generating a quantum key via a node includes: acquiring user-preconfigured quantum key generation parameters, wherein the quantum key generation parameters include photon polarization angles; and generating a quantum key based on the quantum key generation parameters.

[0055] Optionally, the quantum key is sent to designated nodes, including: determining the eavesdropping risk value between the nodes of the two communicating parties; when the eavesdropping risk value is less than the security control threshold, the quantum key is sent to the node through the quantum channel.

[0056] Optionally, after determining the corresponding eavesdropping risk value between the nodes of the two communicating parties, the method further includes: generating a prompt message based on the eavesdropping risk value when the eavesdropping risk value is greater than the security control threshold; and triggering an alarm in a specified manner based on the prompt message.

[0057] S220: Obtain transaction data encrypted with quantum keys through user nodes.

[0058] S230. Generate a data block by encrypting the transaction data using quantum key.

[0059] Optionally, generating data blocks based on quantum key encrypted transaction data includes: determining the timestamp corresponding to the transaction data, generating data groups based on the transaction data with the specified timestamp, and generating data blocks by packaging the quantum key encrypted transaction data.

[0060] Specifically, when encrypting transaction data, the node encrypts each transaction one by one, meaning only one data item can be encrypted at a time before the next one can be encrypted. The node generates data blocks according to the user-defined time intervals. The node determines the timestamp corresponding to each transaction data item and then groups the transaction data with the specified timestamp into a data block. This data block contains the transaction data from the specified time intervals. It should be noted that there can be one or more transaction data items. For example, the node can be configured to generate a data block every 2 seconds when acquiring transaction data. If 5 transaction data items are acquired within 2 seconds, the sorting node will group these 5 transaction data items into a data block and package them into a data block.

[0061] S240. Send the data block to each peer node and obtain the response information sent by each peer node.

[0062] S250. Generate a blockchain shared ledger based on the response information and data blocks.

[0063] Optionally, generating a blockchain shared ledger based on response information and data blocks includes: when it is determined that response information from all peer nodes has been received, obtaining the server's raw blockchain data, wherein the raw blockchain data contains encrypted transaction data; and combining the data blocks with the raw blockchain data to generate a blockchain shared ledger.

[0064] Specifically, after a node forms a new data block, it goes through a consensus mechanism among peer nodes in the blockchain to generate a new block, which is then used to further generate the blockchain's shared ledger. That is, the system's ordering node sends the data block to each peer node and receives responses from each peer node. The sending method involves broadcasting encrypted transaction data to all peer nodes. Only after confirming that responses have been received from all peer nodes does it indicate that the blockchain's consensus mechanism has been successfully passed, and only then can a new block be generated to create the blockchain's shared ledger.

[0065] Furthermore, when the system's sorting node determines that it has received responses from all peer nodes, it acquires the original blockchain data and adds the data block as a new block to the original blockchain data to generate the blockchain shared ledger. The transaction data stored in the blockchain shared ledger is ciphertext generated after being encrypted with quantum keys.

[0066] Detailed implementation method: Figure 3 This invention provides a schematic diagram of a quantum key distribution and blockchain shared ledger generation process in Embodiment 2. Figure 3 In this system, there are multiple user nodes (1, 2...j) and multiple peer nodes (1, 2...n). The arrows indicate the direction of data transmission. After user nodes and peer nodes distribute quantum keys to designated nodes, the nodes can generate the distributed quantum keys. Transaction data encrypted with the quantum keys is submitted to the blockchain shared ledger only after the nodes have confirmed receiving responses from all peer nodes.

[0067] S260. Obtain the quantum key and blockchain shared ledger through each node, and decrypt the blockchain shared ledger according to the quantum key to obtain transaction data.

[0068] The technical solution of this invention generates and distributes quantum keys to designated nodes, encrypts transaction data according to the quantum keys, and generates a blockchain shared ledger after consensus among peer nodes. Nodes can decrypt the blockchain shared ledger according to the quantum keys to obtain the original transaction data, enabling data decryption among designated nodes, avoiding third-party eavesdropping, enhancing the privacy of the blockchain system, and ensuring the security of transaction data.

[0069] Example 3

[0070] Figure 4This is a schematic diagram of a blockchain device based on quantum key distribution and quantum key privacy enhancement, provided in Embodiment 3 of the present invention. This device is applied to a blockchain system and includes: user nodes and peer nodes. Figure 4 As shown, the device includes: a quantum key transmission module 310, used to generate quantum keys through nodes and send the quantum keys to designated nodes; a blockchain shared ledger generation module 320, used to obtain transaction data encrypted with quantum keys through user nodes, and generate a blockchain shared ledger based on the transaction data through a peer-to-peer consensus mechanism, wherein the blockchain shared ledger includes transaction data encrypted with quantum keys; and a transaction data decryption module 330, used to obtain quantum keys and the blockchain shared ledger through each node, and decrypt the blockchain shared ledger based on the quantum keys to obtain the transaction data.

[0071] Optionally, the quantum key transmission module 310 specifically includes: a quantum key generation unit, used to: acquire quantum key generation parameters pre-configured by the node, wherein the quantum key generation parameters include photon polarization angles; and generate a quantum key based on the quantum key generation parameters.

[0072] Optionally, the quantum key transmission module 310 specifically includes: a quantum key transmission unit, used to: determine the nodes of both communicating parties and determine the corresponding eavesdropping risk value between the nodes; when the eavesdropping risk value is less than the security control threshold, transmit the quantum key to the node through the quantum channel.

[0073] Optionally, the blockchain shared ledger generation module 320 specifically includes: a data block generation unit, used to generate data blocks based on quantum keys and transaction data; a response information receiving unit, used to send data blocks to each peer node and obtain response information sent by each peer node; and a blockchain shared ledger generation unit, used to generate a blockchain shared ledger based on the response information and data blocks.

[0074] Optionally, the data block generation unit is specifically used for: determining the timestamp corresponding to the transaction data, generating data groups based on the transaction data with the specified timestamp, and generating data blocks by packaging the transaction data encrypted with quantum keys.

[0075] Optionally, the blockchain shared ledger generation unit is specifically used for: when it is determined that response information from all peer nodes has been received, obtaining the server's original blockchain data, wherein the original blockchain data contains encrypted transaction data; and combining the data blocks with the original blockchain data to generate a blockchain shared ledger.

[0076] Optionally, the quantum key transmission module 310 further includes: a risk alarm unit, used to generate a prompt message based on the eavesdropping risk value when the eavesdropping risk value is greater than the security control threshold after determining the corresponding eavesdropping risk value between the nodes of the two communicating parties; and to trigger an alarm in a specified manner based on the prompt message.

[0077] The technical solution of this invention generates and distributes quantum keys to designated nodes, encrypts transaction data according to the quantum keys, and generates a blockchain shared ledger after consensus among peer nodes. Nodes can decrypt the blockchain shared ledger according to the quantum keys to obtain the original transaction data, enabling data decryption among designated nodes, avoiding third-party eavesdropping, enhancing the privacy of the blockchain system, and ensuring the security of transaction data.

[0078] The blockchain device based on quantum key distribution and quantum key privacy enhancement provided in this embodiment of the invention can execute the blockchain method based on quantum key distribution and quantum key privacy enhancement provided in any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the method execution.

[0079] Example 4

[0080] Figure 5 A schematic diagram of an electronic device 10 that can be used to implement embodiments of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processors, cellular phones, smartphones, wearable devices (e.g., helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the invention described and / or claimed herein.

[0081] like Figure 5 As shown, the electronic device 10 includes at least one processor 11 and a memory, such as a read-only memory (ROM) 12 or a random access memory (RAM) 13, communicatively connected to the at least one processor 11. The memory stores computer programs executable by the at least one processor. The processor 11 can perform various appropriate actions and processes based on the computer program stored in the ROM 12 or loaded from storage unit 18 into the RAM 13. The RAM 13 may also store various programs and data required for the operation of the electronic device 10. The processor 11, ROM 12, and RAM 13 are interconnected via a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.

[0082] Multiple components in electronic device 10 are connected to I / O interface 15, including: input unit 16, such as keyboard, mouse, etc.; output unit 17, such as various types of displays, speakers, etc.; storage unit 18, such as disk, optical disk, etc.; and communication unit 19, such as network card, modem, wireless transceiver, etc. Communication unit 19 allows electronic device 10 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks.

[0083] Processor 11 can be various general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of processor 11 include, but are not limited to, central processing units (CPUs), graphics processing units (GPUs), various special-purpose artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, digital signal processors (DSPs), and any suitable processor, user node, micro-user node, etc. Processor 11 performs the various methods and processes described above, such as a blockchain device based on quantum key distribution and quantum key privacy enhancement. That is: generating quantum keys through nodes and sending the quantum keys to designated nodes; obtaining transaction data encrypted with quantum keys through user nodes, generating a blockchain shared ledger based on the transaction data through a peer-to-peer consensus mechanism, wherein the blockchain shared ledger includes transaction data encrypted with quantum keys; obtaining quantum keys and the blockchain shared ledger through each node, and decrypting the blockchain shared ledger using the quantum keys to obtain the transaction data.

[0084] In some embodiments, a blockchain device based on quantum key distribution and quantum key privacy enhancement can be implemented as a computer program tangibly contained in a computer-readable storage medium, such as storage unit 18. In some embodiments, part or all of the computer program can be loaded and / or installed on electronic device 10 via ROM 12 and / or communication unit 19. When the computer program is loaded into RAM 13 and executed by processor 11, one or more steps of a blockchain device based on quantum key distribution and quantum key privacy enhancement described above can be performed. Alternatively, in other embodiments, processor 11 can be configured to execute a blockchain device based on quantum key distribution and quantum key privacy enhancement by any other suitable means (e.g., by means of firmware).

[0085] Various embodiments of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), systems-on-a-chip (SoCs), payload-programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include implementations in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a dedicated or general-purpose programmable processor, capable of receiving data and instructions from a storage system, at least one input device, and at least one output device, and transmitting data and instructions to the storage system, the at least one input device, and the at least one output device.

[0086] Computer programs used to implement the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, such that when executed by the processor, the computer programs cause the functions / operations specified in the flowcharts and / or block diagrams to be performed. The computer programs may be executed entirely on a machine, partially on a machine, or as a standalone software package, partially on a machine and partially on a remote machine, or entirely on a remote machine or server.

[0087] In the context of this invention, a computer-readable storage medium can be a tangible medium that may contain or store a computer program for use by or in conjunction with an instruction execution system, apparatus, or device. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination thereof. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof.

[0088] To provide interaction with a user, the systems and techniques described herein can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user provides input to the electronic device. Other types of devices can also be used to provide interaction with the user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including sound input, voice input, or tactile input).

[0089] The systems and technologies described herein can be implemented in computing systems that include backend components (e.g., as data servers), or computing systems that include middleware components (e.g., application servers), or computing systems that include frontend components (e.g., user computers with graphical user interfaces or web browsers through which users can interact with implementations of the systems and technologies described herein), or any combination of such backend, middleware, or frontend components. The components of the system can be interconnected via digital data communication of any form or medium (e.g., communication networks). Examples of communication networks include local area networks (LANs), wide area networks (WANs), blockchain networks, and the Internet.

[0090] A computing system can include clients and servers. Clients and servers are generally located far apart and typically interact through communication networks. The client-server relationship is created by computer programs running on the respective computers and having a client-server relationship with each other. The server can be a cloud server, also known as a cloud computing server or cloud host, which is a hosting product within the cloud computing service system to address the shortcomings of traditional physical hosts and VPS services, such as high management difficulty and weak business scalability.

[0091] It should be understood that the various forms of processes shown above can be used, with steps reordered, added, or deleted. For example, the steps described in this invention can be executed in parallel, sequentially, or in different orders, as long as the desired result of the technical solution of this invention can be achieved, and this is not limited herein.

[0092] The specific embodiments described above do not constitute a limitation on the scope of protection of this invention. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this invention should be included within the scope of protection of this invention.

Claims

1. A blockchain method based on quantum key distribution and quantum key privacy enhancement, applied to a blockchain system, comprising: The user node and the peer node are characterized by comprising: generating quantum keys through the nodes, and sending the quantum keys to designated nodes; obtaining transaction data encrypted by the quantum keys through the user node, and generating a blockchain shared ledger through a peer node consensus mechanism according to the transaction data, wherein the blockchain shared ledger includes transaction data encrypted by the quantum keys; obtaining the quantum keys and the blockchain shared ledger through the nodes, and decrypting the blockchain shared ledger according to the quantum keys to obtain the transaction data; wherein the sending of the quantum keys to the designated nodes comprises: determining the eavesdropping risk value between the nodes of the communication parties; when the eavesdropping risk value is less than a security control threshold, sending the quantum keys to the nodes through a quantum channel.

2. The method of claim 1, wherein, The generation of the quantum keys through the nodes comprises: obtaining quantum key generation parameters pre-configured by the nodes, wherein the quantum key generation parameters include photon polarization angles; generating the quantum keys according to the quantum key generation parameters.

3. The method of claim 1, wherein, The generation of the blockchain shared ledger through the peer node consensus mechanism according to the transaction data comprises: encrypting the transaction data according to the quantum keys to generate data blocks; sending the data blocks to the peer nodes and obtaining response information sent by the peer nodes; generating the blockchain shared ledger according to the response information and the data blocks.

4. The method of claim 3, wherein, The encryption of the transaction data according to the quantum keys to generate data blocks comprises: determining the time stamp corresponding to the transaction data, and generating data groups according to the transaction data of the specified time stamp; packing the transaction data encrypted by the quantum keys to generate the data blocks.

5. The method of claim 3, wherein, The generation of the blockchain shared ledger according to the response information and the data blocks comprises: when it is determined that the response information of all peer nodes is received, obtaining original blockchain data of a server, wherein the original blockchain data includes encrypted transaction data; combining the data blocks with the original blockchain data to generate the blockchain shared ledger.

6. The method of claim 1, wherein, After the determination of the eavesdropping risk value between the nodes of the communication parties, the method further comprises: when the eavesdropping risk value is greater than a security control threshold, generating prompt information according to the eavesdropping risk value; alerting in a specified manner according to the prompt information.

7. A blockchain device based on quantum key distribution and quantum key privacy enhancement, applied to a blockchain system, comprising: The user node and the peer node are characterized by comprising: a quantum key sending module for generating quantum keys through the nodes, and sending the quantum keys to designated nodes; a blockchain shared ledger generation module for obtaining transaction data encrypted by the quantum keys through the user node, and generating a blockchain shared ledger through a peer node consensus mechanism according to the transaction data, wherein the blockchain shared ledger includes transaction data encrypted by the quantum keys; a transaction data decryption module for obtaining the quantum keys and the blockchain shared ledger through the nodes, and decrypting the blockchain shared ledger according to the quantum keys to obtain the transaction data; The quantum key sending module specifically comprises a quantum key sending unit configured to: determine a corresponding eavesdropping risk value between nodes of the two communication parties; when the eavesdropping risk value is less than a security control threshold, send the quantum key to the nodes through a quantum channel.

8. An electronic device, comprising: The electronic device comprises: at least one processor; and a memory connected to the at least one processor in communication; wherein the memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor to enable the at least one processor to execute the method of any one of claims 1-6.

9. A computer storage medium, characterized in that The computer storage medium stores computer instructions, and the computer instructions are used to enable the processor to implement the method of any one of claims 1-6 when executed.

Citation Information

Patent Citations

  • Method for realizing quantum communication service block chain

    CN111277404A

  • Data security sharing block chain system based on quantum key distribution

    CN114826605A