Distributed cross-domain identity authentication method and device based on blockchain and post-quantum cryptography
The distributed cross-domain identity authentication method built by blockchain and post-quantum cryptography solves the problems of low cross-domain authentication efficiency and vulnerability to quantum computing attacks in multi-domain IoT networks. It achieves efficient and secure cross-domain identity authentication and key negotiation, and is adapted to quantum computing environments.
Patent Information
- Application Number
- CN202611303707.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-26
- Publication Date
- 2026-11-27
AI Technical Summary
In the multi-domain network environment of the Internet of Things, cross-domain identity authentication suffers from low efficiency, high communication overhead, and vulnerability to quantum computing attacks. Existing authentication schemes are difficult to maintain security under the classical computing model.
A distributed cross-domain identity authentication method based on blockchain and post-quantum cryptography is adopted. A hierarchical network architecture is constructed through management control nodes and blockchain consensus nodes. Certificates are generated using post-quantum signature algorithms and stored in the consortium blockchain to achieve decentralized sharing of certificates. Key negotiation is performed through post-quantum encryption and decryption algorithms to resist quantum computing attacks.
It achieves efficient and secure cross-domain identity authentication, reduces communication overhead, ensures the long-term security of the authentication process, and is adaptable to quantum computing environments.
Smart Images

Figure CN123184850A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of communication network security technology, and in particular to a distributed cross-domain identity authentication method and device based on blockchain and post-quantum cryptography. Background Technology
[0002] In multi-domain IoT network environments, devices belonging to different network domains require cross-domain authentication due to their different management domains. With the surge in the number of IoT devices and their increased mobility, the demand for cross-domain authentication is becoming increasingly frequent, placing higher demands on the processing efficiency of authentication systems. However, the management nodes of each network domain are only responsible for maintaining device information within their own domain, resulting in information isolation between domains and a lack of effective sharing mechanisms. During cross-domain authentication, the authenticator needs to query the authenticated party's certificates and public keys, involving repeated interactions between multiple domains, leading to a significant increase in authentication latency and system overhead. If a single central node is used to record device information from all domains to simplify the query process, the storage pressure and processing load on this central node will increase dramatically, becoming a system performance bottleneck. Therefore, how to achieve efficient and lightweight identity authentication in cross-domain scenarios is one of the urgent technical problems to be solved in the field of IoT security.
[0003] Existing authentication schemes, such as those based on Public Key Infrastructure (PKI), elliptic curve cryptography, certificateless authentication, and zero-knowledge proofs, generally rely on the large integer factorization problem or the discrete logarithm problem for security. Under classical computational models, the complexity of solving these mathematical problems increases exponentially with the key size, thus they are considered computationally secure. However, quantum computing technology has developed rapidly in recent years. Quantum computers, utilizing quantum superposition and quantum entanglement, can solve large integer factorization and discrete logarithms in polynomial time. This means that once quantum computers with sufficient computing power become available, current mainstream public-key cryptography systems will face the real risk of being compromised, thereby rendering authentication schemes relying on these systems ineffective.
[0004] In summary, how to achieve efficient cross-domain identity authentication in a multi-domain network environment and make it resistant to quantum computing attacks is a technical problem that urgently needs to be solved by those skilled in the art. Summary of the Invention
[0005] To address the aforementioned issues, this application provides a distributed cross-domain identity authentication method and apparatus based on blockchain and post-quantum cryptography, comprising the following: Firstly, this application provides a distributed cross-domain identity authentication method based on blockchain and post-quantum cryptography, applied to a layered network architecture, wherein the layered network architecture includes a network component layer, a management and control layer, and a consensus layer; the network component layer contains multiple network domains, each of which deploys at least one management and control node of the management and control layer and at least one blockchain consensus node of the consensus layer, and each blockchain consensus node jointly maintains a consortium blockchain; the management and control node is deployed with a post-quantum signature algorithm and a post-quantum encryption and decryption algorithm; the method includes: In response to a registration request sent by a target device to the management and control node within its domain, the management and control node verifies the device information in the registration request. After successful verification, it generates a post-quantum certificate for the target device based on the post-quantum signature algorithm. The management and control node sends the hash value of the post-quantum certificate to the corresponding blockchain consensus node to initiate an on-chain transaction. The blockchain consensus node performs consensus authentication on the hash value and stores the hash value in the consortium blockchain after consensus is passed, thus completing the registration of the target device. After the target device is registered, when the first device requests cross-domain identity authentication with the second device, the first device and the second device exchange their respective post-quantum certificates through the management control node and the consortium blockchain in their respective domains and perform signature verification based on the post-quantum signature algorithm to complete two-way identity authentication. After the two-way authentication is successful, the first device and the second device perform a key negotiation process based on the post-quantum encryption and decryption algorithm to generate a shared session key, and use the shared session key to encrypt subsequent communication data.
[0006] Optionally, the device information carried in the registration request includes the device identity identifier, device type, organization to which the device belongs, and public key generated by the target device; the post-quantum certificate includes the device identity identifier, device type, organization to which the device belongs, device public key, domain identifier, certificate issuance time, certificate expiration time, and certificate status fields.
[0007] Optionally, the management control node sends the hash value of the post-quantum certificate to the corresponding blockchain consensus node to initiate an on-chain transaction, including: The management and control node uses its own private key to perform a post-quantum signature on the hash value of the post-quantum certificate, and sends the generated signature and the hash value of the post-quantum certificate to the corresponding blockchain consensus node; After receiving the signature and the hash value, the blockchain consensus node uses the public key of the management control node to verify the signature. Once the verification is successful, the node publishes the hash value to the consortium blockchain according to the smart contract and initiates a consensus request.
[0008] Optionally, the two-way authentication includes: The first device sends an authentication request to the second device; The second device generates a first random number in response to the authentication request and sends it to the first device; The first device uses its own private key to perform a post-quantum signature on the first random number, and sends the signature result, the post-quantum certificate of the first device, and the certificate hash value of the first device to the second device. The second device queries the consortium blockchain for the certificate hash value of the first device through the management and control node within its own domain, in order to verify the validity of the first device's post-quantum certificate; After the certificate validity verification is successful, the second device uses the public key of the first device to verify the signature of the first device in order to complete the identity authentication of the first device; After the second device successfully authenticates the identity of the first device, the second device generates a second random number, performs a post-quantum signature on the second random number using its own private key, and sends the signature result, the post-quantum certificate, and the certificate hash value of the second device to the first device. The first device queries the consortium blockchain for the certificate hash value of the second device through the management and control node within its own domain, in order to verify the validity of the second device's post-quantum certificate; After the certificate validity verification is successful, the first device uses the public key of the second device to verify the signature of the second device in order to complete the identity authentication of the second device.
[0009] Optionally, the key negotiation process includes: The first device generates a first temporary seed and sends it to the second device; After receiving the first temporary seed, the second device generates a second temporary seed, generates a shared seed based on the first temporary seed and the second temporary seed, and then sends the second temporary seed to the first device. After receiving the second temporary seed, the first device generates the same shared seed based on the first temporary seed and the second temporary seed; The first device and the second device respectively use the shared seed to expand and generate a shared matrix, each using its own private key and the shared matrix to generate a temporary public key, and exchange the temporary public keys; The first device and the second device calculate a shared secret based on the other party's temporary public key and their own private key, respectively. Then, they convert the shared secret into a shared session key through a key derivation function and verify the consistency of the shared session key through an encrypted confirmation message.
[0010] Optionally, the post-quantum signature algorithm is a Crystal-Dilithium signature algorithm based on lattice cryptography; the post-quantum encryption and decryption algorithm is a Crystal-Kyber encryption algorithm based on lattice cryptography.
[0011] Optionally, the blockchain consensus nodes use a practical Byzantine fault-tolerant algorithm to authenticate the hash value. The hash value is stored in the consortium blockchain only when more than two-thirds of the total number of blockchain consensus nodes vote in favor of it.
[0012] Optionally, the method further includes: When the registered target device needs to change its own device information, the target device sends an information modification request carrying its own signature to the management and control node in its domain. After the management and control node verifies the signature, it updates the device information of the target device according to the information modification request, generates an updated post-quantum certificate for the target device based on the post-quantum signature algorithm, and sends the hash value of the updated post-quantum certificate to the blockchain consensus node to initiate on-chain transactions and consensus storage.
[0013] Optionally, the method further includes: When the registered target device needs to be deregistered, the target device sends a deregistration request carrying its own signature to the management control node in its domain. After the management control node verifies the signature, it sets the status field of the post-quantum certificate of the target device to invalid, and sends the certificate hash value containing the invalid status information to the blockchain consensus node to initiate on-chain transactions and consensus storage.
[0014] Secondly, this application provides a distributed cross-domain identity authentication device based on blockchain and post-quantum cryptography. The device is applied to a layered network architecture, which includes a network component layer, a management control layer, and a consensus layer. The network component layer comprises multiple network domains, each of which deploys at least one management control node of the management control layer and at least one blockchain consensus node of the consensus layer. Each blockchain consensus node jointly maintains a consortium blockchain. The management control node is equipped with a post-quantum signature algorithm and a post-quantum encryption / decryption algorithm. The device includes: The registration module is used to respond to a registration request sent by a target device to the management control node in its domain, control the management control node to verify the device information in the registration request, and after successful verification, generate a post-quantum certificate for the target device based on the post-quantum signature algorithm, control the management control node to send the hash value of the post-quantum certificate to the corresponding blockchain consensus node to initiate an on-chain transaction, control the blockchain consensus node to perform consensus authentication on the hash value, and after successful consensus, store the hash value in the consortium blockchain to complete the registration of the target device. The cross-domain authentication module is used to control the first device and the second device to exchange their respective post-quantum certificates through the management control node and the consortium blockchain in their respective domains and to perform signature verification based on the post-quantum signature algorithm after the target device has been registered. The key negotiation module is used to control the first device and the second device to perform a key negotiation process based on the post-quantum encryption and decryption algorithm after the two-way authentication is successful, generate a shared session key, and use the shared session key to encrypt subsequent communication data.
[0015] Optionally, the device information carried in the registration request includes the device identity identifier, device type, organization to which the device belongs, and public key generated by the target device; the post-quantum certificate includes the device identity identifier, device type, organization to which the device belongs, device public key, domain identifier, certificate issuance time, certificate expiration time, and certificate status fields.
[0016] Optionally, the registration module controls the management control node to send the hash value of the post-quantum certificate to the corresponding blockchain consensus node to initiate an on-chain transaction, specifically including: The management control node uses its own private key to perform a post-quantum signature on the hash value of the post-quantum certificate, and sends the generated signature and the hash value of the post-quantum certificate to the corresponding blockchain consensus node; After receiving the signature and the hash value, the control node verifies the signature using the public key of the management control node. Once the verification is successful, the hash value is published to the consortium blockchain according to the smart contract, and a consensus request is initiated.
[0017] Optionally, the cross-domain authentication module controls the first device and the second device to perform two-way identity authentication, specifically including: Control the first device to send an authentication request to the second device; The second device is controlled to generate a first random number in response to the authentication request and send it to the first device. The first device is controlled to perform a post-quantum signature on the first random number using its own private key, and then sends the signature result, the post-quantum certificate of the first device, and the certificate hash value of the first device to the second device. The second device is controlled to query the certificate hash value of the first device through the management control node within its own domain to the consortium blockchain in order to verify the validity of the post-quantum certificate of the first device; After the certificate validity verification is successful, the second device is controlled to use the public key of the first device to verify the signature of the first device in order to complete the identity authentication of the first device; After the second device successfully authenticates the identity of the first device, it controls the second device to generate a second random number, performs a post-quantum signature on the second random number using its own private key, and sends the signature result of the second device, the post-quantum certificate of the second device, and the certificate hash value of the second device to the first device. The first device is controlled to query the certificate hash value of the second device from the consortium blockchain through the management control node within its own domain, in order to verify the validity of the second device's post-quantum certificate; After the certificate validity verification is successful, the first device is controlled to use the public key of the second device to verify the signature of the second device in order to complete the identity authentication of the second device.
[0018] Optionally, the key negotiation module controls the first device and the second device to perform a key negotiation process, specifically including: Control the first device to generate a first temporary seed and send it to the second device; After receiving the first temporary seed, the second device generates a second temporary seed, generates a shared seed based on the first temporary seed and the second temporary seed, and then sends the second temporary seed to the first device. After receiving the second temporary seed, the first device is controlled to generate the same shared seed based on the first temporary seed and the second temporary seed. The first device and the second device are controlled to generate a shared matrix by expanding the shared seed, and each device generates a temporary public key using its own private key and the shared matrix, and then exchanges the temporary public keys. The first device and the second device are controlled to calculate a shared secret based on the other party's temporary public key and their own private key, respectively. Then, the shared secret is converted into a shared session key through a key derivation function, and the consistency of the shared session key is verified through an encrypted confirmation message.
[0019] Optionally, the post-quantum signature algorithm is a Crystal-Dilithium signature algorithm based on lattice cryptography; the post-quantum encryption and decryption algorithm is a Crystal-Kyber encryption algorithm based on lattice cryptography.
[0020] Optionally, the blockchain consensus nodes use a practical Byzantine fault-tolerant algorithm to authenticate the hash value. The hash value is stored in the consortium blockchain only when more than two-thirds of the total number of blockchain consensus nodes vote in favor of it.
[0021] Optionally, the device further includes: The information modification module is used to control the registered target device to send an information modification request carrying its own signature to the management control node in its domain when the target device needs to change its own device information. After the management control node verifies the signature, it modifies the request to update the device information of the target device according to the information, and generates an updated post-quantum certificate for the target device based on the post-quantum signature algorithm. The hash value of the updated post-quantum certificate is then sent to the blockchain consensus node to initiate on-chain transactions and consensus storage.
[0022] Optionally, the device further includes: The deregistration module is used to control the registered target device to send a deregistration request carrying its own signature to the management control node in its domain when the target device needs to be deregistered. After the management control node verifies the signature, it sets the status field of the post-quantum certificate of the target device to invalid and sends the certificate hash value containing the invalid status information to the blockchain consensus node to initiate on-chain transactions and consensus storage.
[0023] Thirdly, this application provides a device comprising a memory and a processor, the memory for storing instructions or code, and the processor for executing the instructions or code to cause the device to perform the distributed cross-domain identity authentication method based on blockchain and post-quantum cryptography described in any of the implementations of the first aspect.
[0024] Fourthly, this application provides a computer-readable storage medium storing code, wherein when the code is executed, a device running the code implements the distributed cross-domain identity authentication method based on blockchain and post-quantum cryptography described in any of the implementations of the first aspect.
[0025] This application provides a distributed cross-domain identity authentication method based on blockchain and post-quantum cryptography. In executing the method, a hierarchical network architecture is first constructed using management control nodes and blockchain consensus nodes deployed in each network domain. Each blockchain consensus node jointly maintains a consortium blockchain, and the management control node is equipped with a post-quantum signature algorithm and a post-quantum encryption / decryption algorithm. Then, during the device registration phase, in response to a registration request from a target device, the management control node verifies the device information and generates a post-quantum certificate for the target device based on the post-quantum signature algorithm. The certificate hash value is then sent to the blockchain consensus node, which performs consensus authentication on the hash value and stores it in the consortium blockchain after consensus is passed, completing device registration. Next, during the cross-domain authentication phase, when a registered first device requests cross-domain identity authentication with a second device, both parties exchange their respective post-quantum certificates through the management control nodes and consortium blockchain within their respective domains and perform signature verification based on the post-quantum signature algorithm, completing two-way identity authentication. Finally, after successful two-way identity authentication, the first and second devices perform a key negotiation process based on the post-quantum encryption / decryption algorithm to generate a shared session key, which is then used to encrypt subsequent communication data.
[0026] In this way, decentralized sharing of certificate information among network domains is achieved through a consortium blockchain. This eliminates the need for repeated certificate information queries across multiple domain management nodes during cross-domain authentication; a simple query of the blockchain is sufficient to verify certificate validity. This reduces communication overhead for cross-domain authentication and solves the problem of high authentication costs caused by information asymmetry between network domains. Furthermore, the authentication and key negotiation processes are constructed using post-quantum signature and encryption / decryption algorithms, making the entire authentication and communication process resistant to quantum computing attacks and ensuring long-term security of cross-domain communication. Thus, efficient and secure cross-domain identity authentication can be effectively achieved in multi-domain network environments. Attached Figure Description
[0027] To more clearly illustrate the technical solutions in this embodiment or the prior art, the drawings used in the description of the embodiment or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0028] Figure 1 A schematic diagram of a layered network architecture provided in an embodiment of this application; Figure 2 A flowchart illustrating a distributed cross-domain identity authentication method based on blockchain and post-quantum cryptography, provided for embodiments of this application; Figure 3 This is a schematic diagram of the structure of a distributed cross-domain identity authentication device based on blockchain and post-quantum cryptography, provided in an embodiment of this application. Detailed Implementation
[0029] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of this application.
[0030] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, data stored, data displayed, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of related data must comply with the relevant laws, regulations and standards of the relevant countries and regions.
[0031] Figure 1 This is a schematic diagram of a layered network architecture provided in an embodiment of this application. Figure 1 The diagram illustrates a network component layer, a management and control layer, and a consensus layer. An embodiment of this application provides a distributed cross-domain identity authentication method based on blockchain and post-quantum cryptography, applied to this layered network architecture, which includes a network component layer, a management and control layer, and a consensus layer.
[0032] The network component layer comprises multiple network domains, each of which deploys at least one management control node of the management control layer and at least one blockchain consensus node of the consensus layer. The network component layer includes various access and forwarding devices in the network. In heterogeneous networks, there may be multiple wired or wireless access devices. Due to factors such as the actual network standard, structure, and affiliation, the network component layer is divided into different network domains, each containing at least one terminal device. The management control layer comprises multiple management control nodes distributed across various network domains. These nodes are connected to devices within their respective domains. Management control nodes receive information and requests from users, such as registration and authentication requests. After identifying these requests, they transmit them to the smart contracts corresponding to the functions of the consensus layer. The consensus layer comprises multiple blockchain consensus nodes distributed across various network domains. These blockchain consensus nodes jointly maintain a consortium blockchain, and each management control node is connected to its corresponding blockchain consensus node. All blockchain consensus nodes jointly maintain a consortium blockchain. Each blockchain management node in the consensus layer is also connected to the management control nodes in each domain of the management control layer. They receive authentication-related data sent by the management control nodes, package this data into blocks, upload them to the blockchain, and then perform consensus authentication on this block data together with other blockchain management nodes. The management control nodes are equipped with post-quantum signature algorithms and post-quantum encryption / decryption algorithms.
[0033] Figure 2 This is a flowchart illustrating a distributed cross-domain identity authentication method based on blockchain and post-quantum cryptography, provided as an embodiment of this application. (Combined with...) Figure 2 As shown in the embodiments of this application, the distributed cross-domain identity authentication method based on blockchain and post-quantum cryptography may include: S201. In response to the registration request sent by the target device to the management and control node in its domain, the management and control node verifies the device information in the registration request, and after successful verification, generates a post-quantum certificate for the target device based on the post-quantum signature algorithm. The management and control node sends the hash value of the post-quantum certificate to the corresponding blockchain consensus node to initiate an on-chain transaction. The blockchain consensus node performs consensus authentication on the hash value and stores the hash value in the consortium blockchain after consensus is passed, thus completing the registration of the target device.
[0034] The target device is a terminal device in the network component layer that needs to access the network and conduct cross-domain communication, such as sensors, smart terminals, or vehicle units in the Internet of Things (IoT). The management and control node is a server device distributed across various network domains in the management and control layer. Each network domain contains at least one management and control node, which is connected to the devices within its domain. It receives registration requests, authentication requests, and other information sent by the devices, identifies these requests, and transmits them to the corresponding smart contracts in the consensus layer. The blockchain consensus node is a server device distributed across various network domains in the consensus layer. Each management and control node is connected to a corresponding blockchain consensus node, and all blockchain consensus nodes jointly maintain a consortium blockchain. The post-quantum signature algorithm is a digital signature algorithm deployed on the management and control node that is resistant to quantum computing attacks. The post-quantum certificate is a digital identity credential generated by the management and control node for the target device. This certificate contains the device's identity information and public key, and is signed by the management and control node to ensure its immutability. The hash value is a fixed-length digest value obtained by calculating the post-quantum certificate using a cryptographic hash function. It is used to uniquely identify the content of the certificate. Any modification to the certificate content will cause the hash value to change; therefore, the hash value can be used to verify the integrity of the certificate. A consortium blockchain is a distributed ledger jointly maintained by various blockchain consensus nodes. It is used to store the hash value of device certificates and leverages the immutability and decentralization of blockchain to achieve cross-domain information sharing.
[0035] Before sending a registration request to the management and control node within its domain, the target device first generates its own post-quantum public-private key pair. Specifically, the target device randomly generates a polynomial vector. and , and The coefficients are obtained by random sampling from the central binomial distribution. The central binomial distribution is a probability distribution from which the absolute value of random numbers sampled is very small, therefore... and All are short polynomial vectors. The target device will store its private key. Set as The target device uses a publicly available module matrix. calculate ,in It is a publicly available modular matrix, generated from a random seed, through which identical matrices can be generated. The public key of the target device Set as ,in for The seed. The mathematical problem upon which the above calculation is based is the Module Learning Error (MLWE) problem, that is, given a matrix... and with noise disturbance In the case of, from Solving in the middle Computationally infeasible, this mathematical problem is computationally difficult for both classical and quantum computing models. Therefore, the public-private key system built on this problem can effectively resist quantum computing attacks and improve the security of the identity authentication system.
[0036] After generating a public-private key pair, the target device sends a registration request to the management and control node within its domain. The registration request carries device information including the target device's device identifier, device type, organization to which the device belongs, and the public key generated by the target device. The device identifier is an ID used to uniquely identify the device. The device type indicates the type of device, such as a sensor, gateway, or end-user device. The organization to which the device belongs indicates the institution or department to which the device belongs.
[0037] After receiving a registration request, the management control node verifies the device information in the request, such as checking if the device identity already exists and if the device information format is correct. If there are any problems with the information, the user registration is rejected. If the verification is successful, the management control node generates a post-quantum certificate for the target device based on the post-quantum signature algorithm. The post-quantum certificate includes fields such as device identity, device type, device organization, device public key, domain identifier, certificate issuance time, certificate expiration time, and certificate status. This certificate can be represented as: .in For device identification, For equipment type, For the organization to which the equipment belongs, For the device public key, For the domain identifier, For the date of certificate issuance, This field represents the certificate expiration time, and State is the certificate status field, which is set to Valid during initial registration.
[0038] After generating the post-quantum certificate, the management and control node sends the hash value of the post-quantum certificate to the corresponding blockchain consensus node to initiate on-chain transactions. Specifically, the management and control node calculates the post-quantum certificate. hash value The system then uses its private key to perform a post-quantum signature on the hash value, and sends the generated signature and the hash value to the corresponding blockchain consensus node. This signature employs a challenge-response mechanism in post-quantum cryptography, implemented as follows: Management and control nodes according to The content derives a random number ,pass Generate a short vector Then calculate ,Will Lossy compression is performed to obtain Lossy compression refers to the operation of mapping high-bit values to low-bit values, reducing communication overhead while maintaining verification accuracy. Then, calculation... ,in The public key for the domain X management and control node. This is a cryptographic hash of the signer's public key and the message. Then, it is calculated... , The generated signature ,in Challenge value, For response value, It is part of the private key for the domain X management and control node.
[0039] After receiving the signature and the hash value of the post-quantum certificate, the blockchain consensus node verifies the signature using the public key of the management control node. The specific verification process is as follows: The blockchain consensus node first calculates... Then calculate HighBits is a special operation function in post-quantum cryptography. This function is used to extract the effective values of the high bits in a vector. It can tolerate small noise and distinguish the largest effective value that is closest to the original value. This is part of the public key of the domain X management and control node. The mathematical principle behind the above verification process is: ; ; ; in, and The two parts of the private key for the domain X management and control node. It is a very small error term, therefore It is a very small error value. Very close That is, the original The HighBits function can be used to extract the highbits. Then the blockchain consensus nodes calculate... ,Will Compare the hash with the 'c' appended to the signature. If they match, the signature verification is successful, indicating that the certificate hash was indeed signed by the management control node of domain X. Otherwise, the signature verification fails.
[0040] After successful verification, the blockchain consensus node publishes the hash value of the post-quantum certificate to the consortium blockchain according to the smart contract and initiates a consensus request. The smart contract is an automated digital protocol pre-deployed on the blockchain, automatically executing corresponding operations when preset conditions are met. The blockchain consensus node uses a Practical Byzantine Fault Tolerance (PBT) algorithm to authenticate the hash value. PBT is an algorithm capable of reaching consensus in a distributed network with malicious nodes, ensuring correct consensus even with no more than one-third of malicious nodes through multiple rounds of voting and confirmation mechanisms. The hash value is stored in the consortium blockchain only when more than two-thirds of the total number of blockchain consensus nodes vote in favor, ensuring that user data on the blockchain is not tampered with. After consensus is achieved, the blockchain node returns the result to the management control node of domain X. If consensus is successful, the management control node returns the result and certificate to the target device, completing the target device registration process. Through the above registration process, the certificate hash of the target device is stored in the consortium blockchain. The immutability of the blockchain ensures the integrity and trustworthiness of the device's identity information. All domains share the same blockchain ledger, providing a globally verifiable identity information foundation for subsequent cross-domain authentication. During cross-domain authentication, there is no need to repeatedly query certificate information between management nodes of multiple domains. The validity of the certificate can be verified simply by querying the blockchain, thereby reducing the communication overhead of cross-domain authentication.
[0041] In one implementation of this application, the method further includes a device information modification process: when a registered target device needs to change its own device information, the target device sends an information modification request carrying its own signature to the management control node within its domain. Specifically, the target device uses its own private key to perform a post-quantum signature on the information modification request, using the same signature method as the management control node, i.e., generating the signature through a challenge-response mechanism. After receiving the information modification request, the management control node verifies the target device's signature, using the same verification method as the blockchain consensus node's verification of the management control node's signature. If the signature verification passes, the management control node updates the target device's device information according to the information modification request and generates an updated post-quantum certificate for the target device based on the post-quantum signature algorithm. For example, if the target device's device type or affiliated organization changes, the management control node updates the corresponding fields in the new certificate. After generating the updated post-quantum certificate, the management control node sends the hash value of the updated post-quantum certificate to the blockchain consensus node to initiate on-chain transactions and consensus storage; the subsequent on-chain process is the same as the registration process. Through the above information modification process, changes to device information can be promptly synchronized to the blockchain, ensuring that the certificate information is always consistent with the actual state of the device.
[0042] In one implementation of this application, the method further includes a device deregistration process: when a registered target device needs to be deregistered, the target device sends a deregistration request carrying its own signature to the management control node within its domain. This deregistration request includes the target device's certificate and its own signature, using the same signing method as described above. After the management control node verifies the signature, it sets the status field of the target device's post-quantum certificate to invalid and sends the certificate hash value containing the invalid status information to the blockchain consensus node to initiate on-chain transactions and consensus storage. The subsequent on-chain process is the same as the registration process. Through this deregistration process, certificates marked as invalid will fail validity verification in subsequent authentications. The certificate status corresponding to the certificate hash value stored in the blockchain is invalid. When other devices query this certificate during cross-domain authentication, they will receive an invalid verification result, thereby achieving timely recovery of device identity information and revocation of permissions.
[0043] S202. After the target device is registered, when the first device requests cross-domain identity authentication with the second device, the first device and the second device exchange their respective post-quantum certificates through the management control node and the consortium blockchain in their respective domains and perform signature verification based on the post-quantum signature algorithm to complete two-way identity authentication. The first device is the terminal device initiating the authentication request, and the second device is the peer terminal device being authenticated. The first and second devices belong to different network domains. The post-quantum signature algorithm is a Crystal-Dilithium signature algorithm based on lattice cryptography. The security of this algorithm is based on solving a matrix equation with errors, a mathematical problem that is computationally difficult for both classical and quantum computing models. The post-quantum encryption / decryption algorithm is a Crystal-Kyber encryption algorithm based on lattice cryptography, also constructed based on the aforementioned mathematical problem, and is used for data encryption protection in the subsequent key negotiation process.
[0044] The two-way authentication includes the following steps.
[0045] The first device sends an authentication request to the second device, and the authentication request contains the identity information of the first device.
[0046] After receiving the authentication request, the second device generates a first random number N_2 and sends it to the first device. This random number is a one-time value randomly generated by the device and is used in the challenge-response mechanism to prevent replay attacks. A replay attack refers to an attack where an attacker intercepts the authentication message of a legitimate user and retransmits it in subsequent communications to impersonate the legitimate user. Because the random number generated in each authentication process is different and unpredictable, attackers cannot predict and replay a valid response in advance, thus effectively resisting replay attacks.
[0047] After receiving the first random number, the first device performs a post-quantum signature on the first random number using its own private key. The first device has already generated its own post-quantum public-private key pair through the aforementioned registration process; its private key is... The public key is The first device, based on the first random number... Derive short vectors , specifically, = → This indicates that a short vector is derived from a random number. Then, the following calculations are performed: ; Will Lossy compression is performed to obtain Lossy compression refers to the operation of mapping high-bit values to low-bit values. Then, the following calculations are performed: ,in The public key of the first device, This is a cryptographic hash of the signer's public key and the message. Then, the following is calculated: , The generated signature for: .
[0048] in Challenge value, For response value, This is part of the first device's private key. The first device generates its own random number. and timestamp Random numbers The signature object is used when the second device sends a signature to the first device. The timestamp is used to record the current time information, serving as a double safeguard against replay attacks. The first device will then send the signature result... The post-quantum certificate of the first device The certificate hash value of the first device Random numbers and timestamp Send to the second device.
[0049] After receiving the above information, the second device first checks the timestamp. Whether it times out and random number Is it the same as the previously sent random number? Same. If the timestamp expires, it means the authentication request has expired. and If they are identical, it indicates a potential replay attack; if any of the above checks fails, the authentication process terminates. If the checks pass, the second device queries the consortium blockchain for the certificate hash value of the first device through the management and control node within its own domain to verify the validity of the first device's post-quantum certificate. Specifically, the second device sends a query request to the management and control node within its own domain, and this query request contains the certificate of the first device. and certificate hash Since the first device and the second device belong to different network domains, the management control node in the domain to which the second device belongs cannot find information about the first device within its own domain. Therefore, the management control node sends a query request to the blockchain consensus node it is connected to. This query request contains the certificate hash value of the first device. The blockchain consensus node searches the stored on-chain records to check if the certificate hash value of the first device exists, in order to verify the legitimacy of the first device's certificate. After confirming the legitimacy of the first device's certificate, the blockchain consensus node returns the confirmation result to the second device.
[0050] After the certificate validity verification is successful, the second device uses the first device's public key to verify the first device's signature, thus completing the authentication of the first device's identity. Specifically, the second device retrieves the first device's certificate... Extract the public key of the first device And combined with the first random number generated earlier. calculate: HighBits is a special operation function in post-quantum cryptography, used to extract the effective values of the high-order bits in a vector, and can tolerate small noise. It is part of the first device's public key.
[0051] Then calculate: ,Will With received The signature is compared; if they match, the signature verification is successful, indicating that the signature was indeed made by the holder of the private key. The signature must be signed by the first device; otherwise, the signature verification fails. The mathematical principle of the above verification process is the same as the signature verification principle in the aforementioned registration process, that is, using the HighBits function to... Extract Then, the validity of the signature is confirmed by hash comparison.
[0052] After the second device successfully authenticates the identity of the first device, the second device generates a second random number. The second random number is post-quantum signed using its own private key, and the signature result from the second device is then transmitted. The second device's post-quantum certificate and the certificate hash of the second device The second device sends the data to the first device. The second device generates the signature in the same way as the first device, that is, it uses its own private key to generate the second random number. Perform the signature and obtain the signature result. .
[0053] After receiving the aforementioned information, the first device queries the consortium blockchain for the certificate hash value of the second device through the management and control node within its own domain to verify the validity of the second device's post-quantum certificate. The query process is the same as described above: the first device sends a query request to the management and control node within its own domain, the management and control node initiates a query to the blockchain consensus node, and the blockchain consensus node searches the stored on-chain records to confirm the legitimacy of the second device's certificate and returns the result. After the certificate validity verification is successful, the first device uses the second device's public key to verify the second device's signature, using the same verification method as described above. At this point, the two-way identity authentication between the first and second devices is complete.
[0054] When the first and second devices are within the same domain, the authentication process is similar to the cross-domain authentication process described above, with the only simplification being the step of verifying certificate validity. Since the domain's management and control nodes already store each other's certificate information, there's no need to interact with the blockchain for further verification; the remaining procedures are the same as the cross-domain authentication process.
[0055] Through the aforementioned two-way authentication process, the first and second devices complete cross-domain two-way authentication without needing to share any secret information beforehand. The challenge-response mechanism based on the Dilithium post-quantum signature algorithm ensures that only devices holding legitimate private keys can pass signature verification. Since the algorithm's security is based on mathematical problems that are difficult for both classical and quantum computers to solve, this authentication process effectively resists quantum computing attacks. Simultaneously, by querying and verifying the certificate hash value through a consortium blockchain, cross-domain authentication can complete global verification of certificate validity without repeatedly exchanging certificate information between management nodes in multiple domains, reducing communication overhead and improving authentication efficiency.
[0056] S203. After the two-way authentication is successful, the first device and the second device perform a key negotiation process based on the post-quantum encryption and decryption algorithm to generate a shared session key, and use the shared session key to encrypt subsequent communication data.
[0057] The post-quantum encryption and decryption algorithm is a Crystal-Kyber encryption algorithm based on lattice cryptography. This algorithm is also based on solving matrix equations with errors and is resistant to quantum computing attacks. The temporary seed is a randomly generated value used to generate the shared secret. The shared seed is a common value calculated by both communicating parties using their respective temporary seeds; each party calculates independently but the result is the same. The shared matrix is a matrix generated from the shared seed using a specific expansion algorithm. Since both communicating parties have the same shared seed and follow the same expansion algorithm, the generated shared matrix is also identical. The temporary public key is a temporary public key calculated by both communicating parties based on the shared matrix and their respective private keys, used for calculating the shared secret. The shared secret is a common secret value calculated by both communicating parties based on each other's temporary public key and their own private key; this value is known only to the communicating parties. The key derivation function is a function that converts the shared secret into a symmetric encryption key. The session key is a symmetric encryption key derived by both communicating parties from the shared secret using the key derivation function, used to encrypt and protect subsequent communication data.
[0058] The key negotiation process includes the following steps.
[0059] The first device generates the first temporary seed And send it to the second device.
[0060] After receiving the first temporary seed, the second device generates a second temporary seed. The system generates a shared seed based on the first temporary seed and the second temporary seed, and then sends the second temporary seed to the first device.
[0061] Specifically, the second device calculates the shared seed. : After receiving the second temporary seed, the first device generates the same shared seed based on the first temporary seed and the second temporary seed. The first device also calculates... ,because and The value is known to both communicating parties, therefore the value calculated by both parties is... same.
[0062] The first device and the second device respectively use the shared seed to expand and generate a shared matrix, each using its own private key and the shared matrix to generate a temporary public key, and exchange the temporary public keys.
[0063] Both the first and second devices use a shared seed. Expand into a temporary shared matrix Both follow the same expansion equation, therefore the same shared seed expands to the same shared matrix. The first device uses its own private key. and shared matrix calculate: The temporary public key of the first device Set to: ; The private key of the second device is Its public key is ,in , The second device also uses its own private key. and shared matrix calculate: The temporary public key of the first device Set to: ; The first device exchanges temporary public keys with the second device, and the first device will... Send to the second device, the second device will Send to the first device.
[0064] The first device and the second device calculate a shared secret based on the other party's temporary public key and their own private key, respectively. Then, they convert the shared secret into a shared session key through a key derivation function and verify the consistency of the shared session key through an encrypted confirmation message.
[0065] Taking the second device as an example, the second device receives the temporary public key from the first device. ,calculate: ; in As part of the first device's temporary public key, This is part of the private key of the second device. The second device uses the Decode function to decode... Decode to obtain the shared secret : The decoding function, `Decode`, is used in post-quantum cryptography to separate the large valid components from noisy computation results while ignoring small error terms. Similarly, the first device receives the temporary public key from the second device. Then, calculate ; ; and The principle of equality is as follows: ; ; because , , , Both are polynomials with small coefficients, so their difference will be ignored by the decoder, while the main parts of the two equations are obviously... ,therefore: ; The first and second devices respectively convert the shared secret into a shared session key using the key derivation function KDF. ; .
[0066] Since the shared secret calculated by both communicating parties is the same, the derived session key is also the same.
[0067] After generating the shared session key, both parties confirm the session key. The second device then uses the shared session key. An encrypted confirmation message is sent to the first device. Upon receiving this confirmation message, the first device uses the shared session key. Decryption: If decryption is successful and the message content is confirmed to be correct, it indicates that the first device has successfully obtained the same session key as the second device. The first device replies to the second device with a confirmation message, which is also encrypted using the shared session key. Upon receiving the reply, the second device decrypts it using the shared session key. If decryption is successful and the reply message content is correct, it indicates that both parties confirm that the session keys are consistent, and the key negotiation process is complete. Thereafter, the first and second devices use the shared session key to encrypt subsequent communication data.
[0068] Through the aforementioned key negotiation process, the first and second devices establish a secure encrypted communication channel after successful two-way authentication. The temporary key negotiation mechanism based on the Kyber post-quantum encryption algorithm ensures that the session keys generated for each communication are independent, meaning that even if a session key is leaked, it will not affect the security of other communication sessions, achieving forward security. Since the security of this algorithm is based on mathematical problems that are difficult for both classical and quantum computers to solve, the temporary seed and temporary public key exchanged during key negotiation cannot be used to derive the shared secret and session key, thus effectively resisting quantum computing attacks. Simultaneously, through the mechanism of temporary seeds and shared matrices, the communicating parties can negotiate the same session key without pre-sharing any secret information, reducing the complexity of key management.
[0069] The above are some specific implementations of a distributed cross-domain identity authentication method based on blockchain and post-quantum cryptography provided in the embodiments of this application. Based on this, this application also provides a corresponding device. The device provided in the embodiments of this application will be described below from the perspective of functional modularity.
[0070] Figure 3This is a schematic diagram of a distributed cross-domain identity authentication device based on blockchain and post-quantum cryptography, provided as an embodiment of this application. The device is applied to a layered network architecture, which includes a network component layer, a management and control layer, and a consensus layer. The network component layer contains multiple network domains, each of which deploys at least one management and control node of the management and control layer and at least one blockchain consensus node of the consensus layer. All blockchain consensus nodes jointly maintain a consortium blockchain. The management and control node is equipped with a post-quantum signature algorithm and a post-quantum encryption / decryption algorithm. Combined with... Figure 3 As shown in the embodiment of this application, the distributed cross-domain identity authentication device 300 based on blockchain and post-quantum cryptography includes: The registration module 310 is used to respond to a registration request sent by the target device to the management control node in its domain, control the management control node to verify the device information in the registration request, and after the verification is successful, generate a post-quantum certificate for the target device based on the post-quantum signature algorithm, control the management control node to send the hash value of the post-quantum certificate to the corresponding blockchain consensus node to initiate an on-chain transaction, control the blockchain consensus node to perform consensus authentication on the hash value, and after consensus is successful, store the hash value in the consortium blockchain to complete the registration of the target device; The cross-domain authentication module 320 is used to control the first device and the second device to exchange their respective post-quantum certificates and perform signature verification based on the post-quantum signature algorithm through the management control node and the consortium blockchain in their respective domains after the target device has been registered. The key negotiation module 330 is used to control the first device and the second device to perform a key negotiation process based on the post-quantum encryption and decryption algorithm after the two-way authentication is passed, generate a shared session key, and use the shared session key to encrypt subsequent communication data.
[0071] In one implementation of this application, the device information carried in the registration request includes the device identity identifier, device type, device organization, and public key generated by the target device; the post-quantum certificate includes the device identity identifier, device type, device organization, device public key, domain identifier, certificate issuance time, certificate expiration time, and certificate status fields.
[0072] In one implementation of this application, the registration module controls the management control node to send the hash value of the post-quantum certificate to the corresponding blockchain consensus node to initiate an on-chain transaction, specifically including: The management control node uses its own private key to perform a post-quantum signature on the hash value of the post-quantum certificate, and sends the generated signature and the hash value of the post-quantum certificate to the corresponding blockchain consensus node; After receiving the signature and the hash value, the control node verifies the signature using the public key of the management control node. Once the verification is successful, the hash value is published to the consortium blockchain according to the smart contract, and a consensus request is initiated.
[0073] In one implementation of this application embodiment, the cross-domain authentication module controls the first device and the second device to perform two-way identity authentication, specifically including: Control the first device to send an authentication request to the second device; The second device is controlled to generate a first random number in response to the authentication request and send it to the first device. The first device is controlled to perform a post-quantum signature on the first random number using its own private key, and then sends the signature result, the post-quantum certificate of the first device, and the certificate hash value of the first device to the second device. The second device is controlled to query the certificate hash value of the first device through the management control node within its own domain to the consortium blockchain in order to verify the validity of the post-quantum certificate of the first device; After the certificate validity verification is successful, the second device is controlled to use the public key of the first device to verify the signature of the first device in order to complete the identity authentication of the first device; After the second device successfully authenticates the identity of the first device, it controls the second device to generate a second random number, performs a post-quantum signature on the second random number using its own private key, and sends the signature result of the second device, the post-quantum certificate of the second device, and the certificate hash value of the second device to the first device. The first device is controlled to query the certificate hash value of the second device from the consortium blockchain through the management control node within its own domain, in order to verify the validity of the second device's post-quantum certificate; After the certificate validity verification is successful, the first device is controlled to use the public key of the second device to verify the signature of the second device in order to complete the identity authentication of the second device.
[0074] In one implementation of this application, the key negotiation module controls the first device and the second device to perform a key negotiation process, specifically including: Control the first device to generate a first temporary seed and send it to the second device; After receiving the first temporary seed, the second device generates a second temporary seed, generates a shared seed based on the first temporary seed and the second temporary seed, and then sends the second temporary seed to the first device. After receiving the second temporary seed, the first device is controlled to generate the same shared seed based on the first temporary seed and the second temporary seed. The first device and the second device are controlled to generate a shared matrix by expanding the shared seed, and each device generates a temporary public key using its own private key and the shared matrix, and then exchanges the temporary public keys. The first device and the second device are controlled to calculate a shared secret based on the other party's temporary public key and their own private key, respectively. Then, the shared secret is converted into a shared session key through a key derivation function, and the consistency of the shared session key is verified through an encrypted confirmation message.
[0075] In one implementation of this application, the post-quantum signature algorithm is a Crystal-Dilithium signature algorithm based on lattice cryptography; and the post-quantum encryption / decryption algorithm is a Crystal-Kyber encryption algorithm based on lattice cryptography.
[0076] In one implementation of this application, the blockchain consensus node uses a practical Byzantine fault-tolerant algorithm to perform consensus authentication on the hash value. The hash value is stored in the consortium blockchain only when more than two-thirds of the total number of blockchain consensus nodes vote in favor.
[0077] In one implementation of this application, the apparatus further includes: The information modification module is used to control the registered target device to send an information modification request carrying its own signature to the management control node in its domain when the target device needs to change its own device information. After the management control node verifies the signature, it modifies the request to update the device information of the target device according to the information, and generates an updated post-quantum certificate for the target device based on the post-quantum signature algorithm. The hash value of the updated post-quantum certificate is then sent to the blockchain consensus node to initiate on-chain transactions and consensus storage.
[0078] In one implementation of this application, the apparatus further includes: The deregistration module is used to control the registered target device to send a deregistration request carrying its own signature to the management control node in its domain when the target device needs to be deregistered. After the management control node verifies the signature, it sets the status field of the post-quantum certificate of the target device to invalid and sends the certificate hash value containing the invalid status information to the blockchain consensus node to initiate on-chain transactions and consensus storage.
[0079] This application also provides corresponding devices and computer storage media for implementing the solutions provided in this application.
[0080] The device includes a memory and a processor. The memory stores instructions or code, and the processor executes the instructions or code to cause the device to perform the method described in any embodiment of this application.
[0081] The computer storage medium stores code, and when the code is run, the device running the code implements the method described in any embodiment of this application.
[0082] As can be seen from the above description of the embodiments, those skilled in the art can clearly understand that all or part of the steps in the methods of the above embodiments can be implemented by means of software plus a general-purpose hardware platform. Based on this understanding, the technical solution of this application can be embodied in the form of a software product. This computer software product can be stored in a storage medium, such as a read-only memory (ROM) / RAM, magnetic disk, optical disk, etc., including several instructions to cause a computer device (which may be a personal computer, a server, or a network communication device such as a router) to execute the methods described in various embodiments or some parts of the embodiments of this application.
[0083] It is understood that in the specific embodiments of this application, the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, data stored, data displayed, etc.) involved need to obtain user permission or consent when the above embodiments of this application are applied to specific products or technologies, and the collection, use and processing of related data need to comply with the relevant laws, regulations and standards of relevant countries and regions.
[0084] It should be noted that, in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.
[0085] It should also be noted that the various embodiments in this specification are described in a progressive manner, and the same or similar parts between the various embodiments can be referred to mutually. Each embodiment focuses on describing the differences from other embodiments. In particular, for the device and apparatus embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the description of the method embodiments. The device and apparatus embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate, and the components indicated as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of the solution in this embodiment according to actual needs. Those skilled in the art can understand and implement this without creative effort.
[0086] The above description is merely one specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the technical scope disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
Claims
1. A distributed cross-domain identity authentication method based on blockchain and post-quantum cryptography, characterized in that, The method is applied to a layered network architecture, which includes a network component layer, a management and control layer, and a consensus layer. The network component layer contains multiple network domains, and each network domain deploys at least one management and control node of the management and control layer and at least one blockchain consensus node of the consensus layer. Each blockchain consensus node jointly maintains a consortium blockchain. The management and control node is equipped with a post-quantum signature algorithm and a post-quantum encryption / decryption algorithm; the method includes: In response to a registration request sent by a target device to the management and control node within its domain, the management and control node verifies the device information in the registration request. After successful verification, it generates a post-quantum certificate for the target device based on the post-quantum signature algorithm. The management and control node sends the hash value of the post-quantum certificate to the corresponding blockchain consensus node to initiate an on-chain transaction. The blockchain consensus node performs consensus authentication on the hash value and stores the hash value in the consortium blockchain after consensus is passed, thus completing the registration of the target device. After the target device is registered, when the first device requests cross-domain identity authentication with the second device, the first device and the second device exchange their respective post-quantum certificates through the management control node and the consortium blockchain in their respective domains and perform signature verification based on the post-quantum signature algorithm to complete two-way identity authentication. After the two-way authentication is successful, the first device and the second device perform a key negotiation process based on the post-quantum encryption and decryption algorithm to generate a shared session key, and use the shared session key to encrypt subsequent communication data.
2. The method according to claim 1, characterized in that, The device information carried in the registration request includes the device identity identifier, device type, organization to which the device belongs, and public key generated by the target device. The post-quantum certificate includes fields such as device identity, device type, organization to which the device belongs, device public key, domain identifier, certificate issuance time, certificate expiration time, and certificate status.
3. The method according to claim 1, characterized in that, The management and control node sends the hash value of the post-quantum certificate to the corresponding blockchain consensus node to initiate an on-chain transaction, including: The management and control node uses its own private key to perform a post-quantum signature on the hash value of the post-quantum certificate, and sends the generated signature and the hash value of the post-quantum certificate to the corresponding blockchain consensus node; After receiving the signature and the hash value, the blockchain consensus node uses the public key of the management control node to verify the signature. Once the verification is successful, the node publishes the hash value to the consortium blockchain according to the smart contract and initiates a consensus request.
4. The method according to claim 1, characterized in that, The two-way authentication includes: The first device sends an authentication request to the second device; The second device generates a first random number in response to the authentication request and sends it to the first device; The first device uses its own private key to perform a post-quantum signature on the first random number, and sends the signature result, the post-quantum certificate of the first device, and the certificate hash value of the first device to the second device. The second device queries the consortium blockchain for the certificate hash value of the first device through the management and control node within its own domain, in order to verify the validity of the first device's post-quantum certificate; After the certificate validity verification is successful, the second device uses the public key of the first device to verify the signature of the first device in order to complete the identity authentication of the first device; After the second device successfully authenticates the identity of the first device, the second device generates a second random number, performs a post-quantum signature on the second random number using its own private key, and sends the signature result, the post-quantum certificate, and the certificate hash value of the second device to the first device. The first device queries the consortium blockchain for the certificate hash value of the second device through the management and control node within its own domain, in order to verify the validity of the second device's post-quantum certificate; After the certificate validity verification is successful, the first device uses the public key of the second device to verify the signature of the second device in order to complete the identity authentication of the second device.
5. The method according to claim 1, characterized in that, The key negotiation process includes: The first device generates a first temporary seed and sends it to the second device; After receiving the first temporary seed, the second device generates a second temporary seed, generates a shared seed based on the first temporary seed and the second temporary seed, and then sends the second temporary seed to the first device. After receiving the second temporary seed, the first device generates the same shared seed based on the first temporary seed and the second temporary seed; The first device and the second device respectively use the shared seed to expand and generate a shared matrix, each using its own private key and the shared matrix to generate a temporary public key, and exchange the temporary public keys; The first device and the second device calculate a shared secret based on the other party's temporary public key and their own private key, respectively. Then, they convert the shared secret into a shared session key through a key derivation function and verify the consistency of the shared session key through an encrypted confirmation message.
6. The method according to claim 1, characterized in that, The post-quantum signature algorithm is a Crystal-Dilithium signature algorithm based on lattice cryptography; the post-quantum encryption and decryption algorithm is a Crystal-Kyber encryption algorithm based on lattice cryptography.
7. The method according to claim 1, characterized in that, The blockchain consensus nodes use a practical Byzantine fault-tolerant algorithm to authenticate the hash value. The hash value is stored in the consortium blockchain only when more than two-thirds of the total number of blockchain consensus nodes vote in favor of it.
8. The method according to claim 1, characterized in that, The method further includes: When the registered target device needs to change its own device information, the target device sends an information modification request carrying its own signature to the management and control node in its domain. After the management and control node verifies the signature, it updates the device information of the target device according to the information modification request, generates an updated post-quantum certificate for the target device based on the post-quantum signature algorithm, and sends the hash value of the updated post-quantum certificate to the blockchain consensus node to initiate on-chain transactions and consensus storage.
9. The method according to claim 1, characterized in that, The method further includes: When the registered target device needs to be deregistered, the target device sends a deregistration request carrying its own signature to the management control node in its domain. After the management control node verifies the signature, it sets the status field of the post-quantum certificate of the target device to invalid, and sends the certificate hash value containing the invalid status information to the blockchain consensus node to initiate on-chain transactions and consensus storage.
10. A distributed cross-domain identity authentication device based on blockchain and post-quantum cryptography, characterized in that, The device is applied to a layered network architecture, which includes a network component layer, a management and control layer, and a consensus layer. The network component layer contains multiple network domains, and each network domain deploys at least one management and control node of the management and control layer and at least one blockchain consensus node of the consensus layer. Each blockchain consensus node jointly maintains a consortium blockchain. The management and control node is equipped with a post-quantum signature algorithm and a post-quantum encryption / decryption algorithm; the device includes: The registration module is used to respond to a registration request sent by a target device to the management control node in its domain, control the management control node to verify the device information in the registration request, and after successful verification, generate a post-quantum certificate for the target device based on the post-quantum signature algorithm, control the management control node to send the hash value of the post-quantum certificate to the corresponding blockchain consensus node to initiate an on-chain transaction, control the blockchain consensus node to perform consensus authentication on the hash value, and after successful consensus, store the hash value in the consortium blockchain to complete the registration of the target device. The cross-domain authentication module is used to control the first device and the second device to exchange their respective post-quantum certificates through the management control node and the consortium blockchain in their respective domains and to perform signature verification based on the post-quantum signature algorithm after the target device has been registered. The key negotiation module is used to control the first device and the second device to perform a key negotiation process based on the post-quantum encryption and decryption algorithm after the two-way authentication is successful, generate a shared session key, and use the shared session key to encrypt subsequent communication data.
