A blockchain-based internet of things cross-domain authentication method
By hierarchically dividing the IoT network and using on-chain and off-chain storage methods, combined with RSA cryptographic accumulators and distributed identity identifiers, the problems of weak computing power and privacy protection of IoT devices are solved, achieving efficient cross-domain authentication and information privacy protection.
Patent Information
- Application Number
- CN202311713867.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-13
- Publication Date
- 2026-11-20
- Estimated Expiration
- 2043-12-13
AI Technical Summary
IoT devices have low computing power, weak networking capabilities, and short battery life, making them unable to adapt to resource-intensive consensus algorithms. Blockchain transaction performance cannot meet concurrency requirements, resulting in unacceptable delays for real-time sensitive applications. Furthermore, the transparency of blockchain conflicts with the privacy needs of IoT users/devices, requiring additional cryptographic solutions for privacy protection.
By employing technologies such as blockchain, IPFS, and RSA cryptographic accumulators, the IoT network is divided into layers. The upper-layer devices of the sensing terminals are used as blockchain nodes, while the lower-layer terminals do not participate in maintaining the blockchain network. A combined on-chain and off-chain storage method is adopted, and data interaction and processing are carried out through domain master nodes and domain administrator nodes. Distributed identity identifiers are used for off-chain storage, and device information is selectively disclosed to protect privacy.
It achieves cross-domain authentication with low resource consumption, improves transaction processing performance, meets the concurrency requirements of IoT authentication, and completes authentication without exposing sensitive information, thus protecting information privacy.
Smart Images

Figure CN117714142B_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of communication technology, specifically relating to a blockchain-based cross-domain authentication method for the Internet of Things. Background Technology
[0002] The Industrial Internet of Things (IIoT), as a key technology for implementing Industry 4.0, is attracting increasing attention from researchers. Traditional IoT architectures consist of a sensing layer, a network layer, and an application layer, responsible for collecting environmental data or object status information and storing, managing, and analyzing it through cloud computing platforms. However, with the widespread application of IoT technology in real-world scenarios, the vulnerabilities and insecurities of traditional IoT architectures are gradually becoming apparent, with a proliferation of common attack types. To address issues such as resource constraints and weak self-organization capabilities, IoT devices typically outsource storage and computing tasks to cloud service providers. However, centralized cloud-based architectures also present many potential security threats.
[0003] Traditional public key infrastructure (PKI) authentication schemes create closed security domains, requiring devices to frequently authenticate with cloud services. However, this authentication process introduces technical challenges and security risks to communication lines. The goal of IoT cross-domain authentication is to solve the problem of identity recognition and authentication between different IoT domains. However, different devices are often deployed under different management domains, and logical isolation makes data interaction between devices extremely difficult. Furthermore, different operators possess closed management domains, resulting in their certificates being mutually unrecognizable.
[0004] The decentralized nature of blockchain technology makes it suitable for large-scale, distributed IoT scenarios. Many studies have applied blockchain technology to IoT scenarios, proposing decentralized IoT management architectures and novel authentication mechanisms to meet the additional attributes of terminal devices, such as mobility, identity privacy protection, device heterogeneity, and interactivity, as well as the specific authentication needs of different IoT scenarios.
[0005] As a special type of blockchain, consortium blockchains retain decentralized characteristics and are inherently suited for large-scale, distributed IoT scenarios. Decentralized IoT authentication architectures designed using consortium blockchains can serve as a new alternative to traditional PKI-based authentication mechanisms. Furthermore, this solution can also consider additional attributes such as device mobility, identity privacy protection, device heterogeneity, and interactivity, while simultaneously meeting specific authentication needs in different IoT scenarios, such as cross-domain authentication and real-time authentication. Based on these considerations, several innovative authentication mechanisms can be designed. Existing cross-domain authentication schemes based on blockchain technology can be categorized into three main types according to their functions: data ledgers, incentive mechanisms, and contract platforms.
[0006] Data Ledger: Yazdinejad et al. proposed an innovative authentication method for 5G scenarios. They utilized blockchain and software-defined networking technologies to eliminate unnecessary re-authentication during handover between heterogeneous units. This method leverages blockchain to implement functions such as device registration, key generation, authentication, and malicious behavior monitoring, thereby improving the efficiency and security of authentication. Kaur et al. proposed a lightweight cross-datacenter authentication scheme for the connected vehicle field. This scheme combines blockchain and elliptic curve cryptography to store and maintain a blockchain ledger of network state information. Cui et al. proposed a local-public hybrid blockchain architecture that divides Internet of Things (IoT) nodes into base stations, cluster heads, and ordinary nodes based on their resource availability. In this architecture, the local chain is responsible for authenticating ordinary nodes, while the public chain is responsible for authenticating cluster head nodes. To ensure the consistency of transaction information during the registration and authentication phases, the research team formalized the definition and stored the node's identity information on the blockchain.
[0007] Incentive Mechanisms: Wu et al. proposed an Internet of Things (IoT) incentive platform called SmartRetro. Driven by blockchain technology, this platform aims to encourage more distributed detectors to actively participate in system vulnerability detection and submit corresponding results. Through the use of smart contracts, SmartRetro users can automatically receive feedback information related to the security of their installed IoT systems. The incentive mechanism is automatically allocated through smart contracts, without relying on centralized institutions. The introduction of this platform can increase participation in system vulnerability detection and provide users with a more automated and secure feedback mechanism. For distributed P2P applications, Lin et al. proposed a distributed Internet of Things (IoT) knowledge trading market and developed a consortium blockchain for maintaining the market's knowledge management and transactions. In this research, they proposed a knowledge pricing strategy based on non-cooperative game theory and a corresponding market incentive mechanism. By introducing these innovative concepts and technologies, this distributed IoT knowledge trading market can better promote knowledge sharing and trading, thereby driving further development in the IoT field.
[0008] Contract Platform: Based on the commercial blockchain system Eris, Wu et al. successfully implemented a prototype for Internet of Things (IoT) device authentication. This prototype includes two types of smart contracts: device contracts and relationship contracts. Device contracts store device information, while relationship contracts store pairing relationships between related devices. By invoking these contracts, related devices can store the authentication results of the authenticating entity on the blockchain, achieving reliability and security in IoT device authentication. Hammi and his team used smart contracts to implement authentication tasks between IoT devices within a virtual area. This research provides a practical solution to the IoT device authentication problem and promotes the application of blockchain in the IoT field.
[0009] Currently, many studies are applying blockchain technology to IoT scenarios; however, current blockchain-based solutions still face several technical challenges. First, the low computing power, weak connectivity, and short battery life of IoT devices make them unsuitable for resource-intensive consensus algorithms. Second, the transaction performance of blockchain cannot meet the concurrency requirements of IoT authentication, making latency unacceptable for real-time sensitive applications. Therefore, addressing these technical challenges will be a key focus of future research. Summary of the Invention
[0010] To address the aforementioned problems in related technologies, this invention provides a blockchain-based cross-domain authentication method for the Internet of Things (IoT). The technical problem to be solved by this invention is achieved through the following technical solution:
[0011] This invention provides a blockchain-based cross-domain authentication method for the Internet of Things (IoT), comprising:
[0012] A first device in a first management domain obtains second basic information from a second device in a second management domain; the first management domain and the second management domain may be the same or different management domains; each management domain includes a domain master node, a domain administrator node, and terminal devices; the domain master node is used to manage the domain administrator node, and the domain administrator node is used to manage the terminal devices; each management domain corresponds to a private blockchain, and the domain master nodes of different management domains correspond to a public blockchain; each domain administrator node is used to store and retrieve data from the file system and the corresponding private blockchain.
[0013] The first device, the first domain master node of the first management domain, the first domain administrator node of the first management domain, the second device, and the second domain master node of the second management domain shall jointly perform one-way authentication from the first device to the second device based at least on the second basic information and the data on the first private blockchain corresponding to the first management domain.
[0014] When the one-way authentication from the first device to the second device is successful, the second device obtains the first basic information from the first device. The second device, the second domain master node, the second domain administrator node of the second management domain, the first device, and the first domain master node jointly perform one-way authentication from the second device to the first device based at least on the first basic information and the data on the second private blockchain corresponding to the second management domain, thereby realizing two-way authentication between the first device and the second device.
[0015] The present invention has the following beneficial technical effects:
[0016] By hierarchically dividing each management domain into domain master nodes, domain administrator nodes, and terminal devices, and making each domain administrator node a node in the management domain responsible for storing and retrieving data from the file system and the corresponding private blockchain, terminal devices do not participate in maintaining the blockchain network. Instead, terminal devices interact with the domain master node through the domain administrator node. This design achieves low resource consumption. By storing and retrieving data through the file system and the blockchain network, a combined on-chain and off-chain storage method is achieved, which reduces the storage pressure and read / write frequency on the blockchain, thereby improving transaction processing performance to meet the concurrency requirements of IoT authentication.
[0017] The present invention will be further described in detail below with reference to the accompanying drawings and embodiments. Attached Figure Description
[0018] Figure 1 A flowchart of a blockchain-based IoT cross-domain authentication method provided in an embodiment of the present invention;
[0019] Figure 2 A schematic diagram of an exemplary cross-domain authentication system for the Internet of Things provided in this embodiment of the invention;
[0020] Figure 3 A schematic diagram illustrating the initialization process of an exemplary IoT cross-domain authentication system provided in this embodiment of the invention;
[0021] Figure 4 This is a schematic diagram illustrating an exemplary registration process for a terminal device provided in an embodiment of the present invention. Detailed Implementation
[0022] The present invention will be further described in detail below with reference to specific embodiments, but the implementation of the present invention is not limited thereto.
[0023] In the description of this invention, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of this invention, "a plurality of" means two or more, unless otherwise explicitly specified.
[0024] In the description of this specification, the references to terms such as "one embodiment," "some embodiments," "example," "specific example," or "some examples," etc., indicate that a specific feature, structure, material, or characteristic described in connection with that embodiment or example is included in at least one embodiment or example of the invention. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples. In addition, those skilled in the art can combine and integrate the different embodiments or examples described in this specification.
[0025] Although the invention has been described herein in conjunction with various embodiments, those skilled in the art will understand and implement other variations of the disclosed embodiments by reviewing the accompanying drawings, disclosure, and appended claims in carrying out the claimed invention. In the claims, the word "comprising" does not exclude other components or steps, and "a" or "an" does not exclude a plurality. A single processor or other unit can implement several functions listed in the claims. While different dependent claims may recite certain measures, this does not mean that these measures cannot be combined to produce good results.
[0026] Many studies are currently applying blockchain technology to IoT scenarios; however, current blockchain-based solutions still face several technical challenges. First, the low computing power, weak connectivity, and short battery life of IoT devices make them unsuitable for resource-intensive consensus algorithms. Second, the transaction performance of blockchain cannot meet the concurrency requirements of IoT authentication, making latency unacceptable for real-time sensitive applications. Furthermore, the transparency of blockchain conflicts with the privacy needs of IoT users / devices, requiring additional cryptographic schemes for privacy protection. Additionally, as IoT authentication information continues to grow, the storage requirements of blockchain are expanding, posing a significant challenge to IoT nodes and necessitating solutions to the storage bottleneck caused by data expansion. Therefore, addressing these technical challenges will be a key focus of future research.
[0027] Based on this, this application proposes a blockchain-based cross-domain authentication method for the Internet of Things (IoT) by combining various cutting-edge technologies such as blockchain, IPFS, and RSA cryptographic accumulators. This invention hierarchically divides the IoT network, treating the upper-layer devices of the sensing terminals as blockchain nodes, while the lower-layer terminals do not participate in maintaining the blockchain network. The lower-layer terminals and upper-layer devices interact and process data through an intermediary proxy service. This design achieves low resource consumption. This invention employs a combined on-chain and off-chain storage approach to reduce on-chain storage pressure and read / write frequency, thereby improving transaction processing performance. In this invention, users can selectively disclose device information to ensure that cross-domain authentication is completed without exposing any sensitive information, thus protecting information privacy. To avoid storing large and redundant data, this invention selects an efficient and lightweight cryptographic accumulator to accumulate device information, thereby reducing the burden of storage and transmission.
[0028] Figure 1 This is a flowchart of a blockchain-based IoT cross-domain authentication method provided in this invention, applied to an IoT cross-domain authentication system. The IoT cross-domain authentication system includes at least one management domain. Each management domain contains a domain master node, a domain group node, and terminal equipment. The domain master node manages the domain group nodes, and the domain group nodes manage the terminal equipment. Each management domain corresponds to a private blockchain (slave blockchain), and the domain master nodes of different management domains correspond to a public blockchain (master blockchain). Each domain group node is used to store and retrieve data from the file system and the corresponding private blockchain. For example, these management domains can consist of all intranet devices under the same public IP address, or they can consist of distributed, cross-domain network nodes. Each management domain forms an independent private blockchain, and the domain master nodes of all management domains form a public blockchain. The public blockchain stores the initialization parameters of each management domain, providing a guarantee for subsequent cross-domain authentication between different terminal devices.
[0029] Domain master node: A high-performance cloud service capable of processing large amounts of data in parallel. Its primary function is to manage the administrator nodes within its domain; typically, each domain has only one master node. This node receives data requests from lower-level services and processes them accordingly. As the node with the highest privileges within the domain, the domain master node is trusted by all nodes in the network. The domain master node can initialize all administrator nodes and provide authentication for them.
[0030] Domain administrator nodes are primarily responsible for registering and managing IoT devices (i.e., terminal devices), and forwarding tasks requiring strong computing and security capabilities to upper-layer nodes for processing. Furthermore, domain administrator nodes act as proxy service nodes for blockchains and file systems (e.g., IPFS), recording on-chain information about user DID identity operations and storing terminal device information off-chain (i.e., the file system). Introducing edge gateways enables access and management of IoT devices, improving IoT management efficiency and shielding against underlying heterogeneity issues.
[0031] Terminal devices refer to IoT devices existing in various management domains, such as signal transmitters, cameras, and smart sensors. They are typically deployed at the network edge to collect and sense data. Each terminal device belongs to only one management domain and is supervised by a designated administrator node. Typically, terminal devices can only perform simple data sensing and transmission; their computing and storage capabilities are limited, their energy resources are limited, and they cannot perform complex calculations and data processing.
[0032] For example, Figure 2 This is a schematic diagram of a cross-domain authentication system for the Internet of Things (IoT). Figure 2 As shown, the system contains five different management domains, and the domain master nodes for these five management domains are Mnode1, Mnode2, Mnode3, Mnode4, and Mnode5, respectively. For example, as shown... Figure 2 As shown, the second management domain contains three domain administrator nodes, Gnode1, Gnode2, and Gnode3, which are used to manage the corresponding terminal devices Device1, Device2, and Device3 for sending / receiving data streams with these devices. Some information about these three terminal devices can be stored in IPFSDB, which also stores information used for data verification, i.e., Device Information. Gnode1, Gnode2, and Gnode3 are used to generate the respective DID identifier, CPT credential, and VC for Device1, Device2, and Device3, which can be stored in BlockDB and returned to their respective devices.
[0033] As mentioned above Figure 1 As shown, the method provided by the present invention includes the following steps:
[0034] S101, The first device in the first management domain obtains the second basic information from the second device in the second management domain; the first management domain and the second management domain are the same or different management domains; each management domain includes a domain master node, a domain administrator node, and terminal devices; the domain master node is used to manage the domain administrator node, and the domain administrator node is used to manage the terminal devices; each management domain corresponds to a private blockchain, and the domain master nodes of different management domains correspond to a public blockchain; each domain administrator node is used to store and read data from the file system and the corresponding private blockchain.
[0035] Here, the second basic information is the basic information of the second device, including: the DID of the domain master node of the second management domain (hereinafter referred to as the second MID), the CPT certificate of the second device (hereinafter referred to as the second CPT certificate), and the public key of the second device.
[0036] S102, the first device, the first domain master node of the first management domain, the first domain administrator node of the first management domain, the second device, and the second domain master node of the second management domain, shall jointly perform one-way authentication from the first device to the second device based at least on the second basic information and the data on the first private blockchain corresponding to the first management domain.
[0037] Here, S102 can be implemented through S1021 to S1025:
[0038] S1021. The first device uses the second basic information to perform same-domain verification on the second device, and obtains a same-domain verification result indicating whether the first management domain and the second management domain are the same management domain.
[0039] Specifically, the first device obtains the first MID; the first MID represents the DID identifier of the first domain master node; the first device compares the first MID with the second MID, and when the first MID and the second MID are the same, a same-domain verification result is obtained indicating that the first management domain and the second management domain are the same management domain, and when the first MID and the second MID are different, a same-domain verification result is obtained indicating that the first management domain and the second management domain are different management domains.
[0040] S1022. When the same-domain verification result indicates that the device belongs to the same management domain, the first domain administrator node of the first management domain uses the second basic information to perform a legality verification on the second device and obtain a legality verification result that indicates whether the second device is legal.
[0041] Specifically, when the same domain verification result indicates that the two devices are in the same management domain, the first device sends the second CPT credential to the first domain administrator node. The first domain administrator node obtains the second CPT credential of the second device from the first private blockchain and uses the second CPT credential obtained from the first private blockchain to perform consistency verification on the second CPT credential received from the first device. When the verification result is consistent, a legality verification result indicating that the second device is legitimate is obtained. When the verification result is inconsistent, a legality verification result indicating that the second device is illegitimate is obtained.
[0042] S1023. When the same-domain verification result indicates that the devices belong to different management domains, the first domain master node and the first domain administrator node of the first management domain jointly verify the legitimacy of the second device based on the second basic information, the data on the first private blockchain corresponding to the first management domain, and the data on the public blockchain. When the legitimacy verification of the second device is passed, intermediate verification data is obtained.
[0043] Specifically, S1023 can be implemented through S11 to S14:
[0044] S11. When the same-domain verification result indicates that they are different management domains, the first device shall send at least the second MID and the first CPT credential to the first domain administrator node; the first CPT credential represents the first device's CPT credential.
[0045] In some embodiments, when the same-domain authentication result indicates different management domains, the first device sends the second MID and the first CPT credential to the first domain administrator node. In other embodiments, when the same-domain authentication result indicates different management domains, the first device sends the second MID, the first CPT credential, and the first device's CID identifier to the first domain administrator node. The first device's CID identifier is an index identifier returned by the file system after the first domain administrator node stores the generated first device's DID identifier in the file system. Thus, by selectively using the device's CID identifier, users can selectively disclose their own device's CID identifier, ensuring that cross-domain authentication is completed without exposing any sensitive information, thereby protecting information privacy.
[0046] S12. The first domain administrator node obtains the first CPT credential from the first private blockchain, uses the first CPT credential obtained from the first private blockchain to perform consistency verification on the first CPT credential received from the first device, and when the verification result shows consistency, it sends at least the first GID, the first proof, and the second MID to the first domain master node accordingly; the first GID represents the DID identifier of the first domain administrator node; the first proof is the proof of the first domain administrator node.
[0047] Specifically, when the first device sends the second MID and the first CPT credential to the first domain administrator node, the first domain administrator node, after verifying the first CPT credential, will send the first GID, the first proof, and the second MID to the first domain master node. Conversely, when the first device sends the second MID, the first CPT credential, and the first device's CID to the first domain administrator node, the first domain administrator node, after verifying the first CPT credential, will send the first GID, the first proof, the first device's CID, and the second MID to the first domain master node. The first device's CID can be retrieved later when needed and does not participate in the device's legitimacy verification.
[0048] S13. The first domain master node uses a cryptographic accumulator and the security parameters of the first management domain to verify the legitimacy of the first GID. When the first GID is verified to be legitimate, the second domain master node retrieves the public key of the second domain master node from the public blockchain based on the second MID.
[0049] S14. When the public key of the second domain master node is retrieved, it indicates that the second device is legitimate. Accordingly, the first domain master node generates intermediate verification data using at least the first GID, the first proof, and the public key of the second domain master node, employing a signature algorithm, a symmetric encryption algorithm, and an asymmetric encryption algorithm.
[0050] Specifically, when the public key of the second domain master node is retrieved, it indicates that the second device is legitimate. Accordingly, the first domain master node uses a signature algorithm to sign at least the first GID and the first proof, and randomly generates a key. Based on the key, the first domain master node uses a symmetric encryption algorithm to encrypt the first GID, the first proof, and the signed first GID and the signed first proof to obtain the ciphertext. Based on the public key of the second domain master node, the first domain master node uses an asymmetric encryption algorithm to encrypt the key to obtain the key ciphertext. The ciphertext and the key ciphertext constitute the intermediate verification data.
[0051] S1024, The first device sends the intermediate verification data to the second device.
[0052] S1025. The second domain master node of the second management domain verifies the first device based on the intermediate verification data and the data on the public blockchain, completing the one-way authentication from the first device to the second device.
[0053] Specifically, the second domain master node of the second management domain uses its own private key to decrypt the key ciphertext to obtain the key, and uses the key to decrypt the information ciphertext to obtain at least the first GID and the first proof; the second domain master node obtains the security parameters of the first management domain from the public blockchain, verifies the first GID based on the security parameters of the first management domain and the first proof, and when the first GID is valid, sends the verification result representing the validity of the first device to the second device, completing the one-way authentication from the first device to the second device.
[0054] S103. When the one-way authentication from the first device to the second device is successful, the second device obtains the first basic information from the first device. The second device, the second domain master node, the second domain administrator node of the second management domain, the first device, and the first domain master node jointly perform one-way authentication from the second device to the first device based at least on the data on the second private blockchain corresponding to the second management domain, thereby realizing two-way authentication between the first device and the second device.
[0055] Here, the principle of S103 is the same as that of S102 described above. Accordingly, S103 can be implemented using S1031 to S1035:
[0056] S1031. The second device uses the first basic information to perform same-domain verification on the first device and obtains a same-domain verification result indicating whether the first management domain and the second management domain are the same management domain.
[0057] Here, the principle of S1031 is the same as that of S1021 described above.
[0058] S1032. When the same domain verification result indicates that the device belongs to the same management domain, the second domain administrator node of the second management domain uses the first basic information to perform a legality verification on the first device and obtain a legality verification result that indicates whether the first device is legal.
[0059] Here, the principle of S1032 is the same as that of S1022 described above.
[0060] S1033. When the same-domain verification result indicates that the devices belong to different management domains, the second domain master node and the second domain administrator node of the second management domain jointly verify the legitimacy of the first device based on the first basic information, the data on the second private blockchain corresponding to the second management domain, and the data on the public blockchain. When the legitimacy verification of the first device is passed, intermediate verification data is obtained.
[0061] Here, the principle of S1033 is the same as that of S1023 described above.
[0062] S1034, The second device sends the intermediate verification data to the first device.
[0063] S1035. The first domain master node of the first management domain verifies the second device based on the intermediate verification data and the data on the public blockchain, completing the one-way authentication from the second device to the first device.
[0064] Here, the principle of S1035 is the same as that of S1025 described above.
[0065] Here, after the two terminal devices complete two-way authentication, they can use the Diffie-Hellman algorithm to exchange keys for subsequent communication services.
[0066] In some embodiments, prior to S101, the system needs to be built and initialized. The initialization process can be as follows: Figure 3 As shown, this is specifically reflected in S201 to S205:
[0067] S201. The target domain master node randomly generates the first parameter N and the second parameter g, and generates its own public key and private key pair; the target domain master node is either the first domain master node or the second domain master node.
[0068] like Figure 3 As shown, for the target domain DomainN, during the Set parameters phase, Mnode can use an algorithm to randomly generate two random prime numbers. The first and second parameters can be N and g, and a key generation algorithm can be used to generate its own public and private key pair.
[0069] S202. The target domain master node initializes the RSA cryptographic accumulator and generates a GID for each domain administrator node in the target domain, and sends the GID to the respective domain administrator node in the target domain; correspondingly, the target domain is the first management domain or the second management domain.
[0070] like Figure 3 As shown, during the GID generation phase, the Mnode initializes the RSA cryptographic accumulator, generates a GID for each Gnode in the target domain, and sends its respective GID to the corresponding Gnode.
[0071] For example, Mnode can use Algorithm 1 shown in Table 1 to initialize the RSA cryptographic accumulator.
[0072] Table 1
[0073]
[0074]
[0075] S203. The target domain master node generates the target domain's ACC value using the initialized RSA cryptographic accumulator based on the GID of each domain administrator node in the target domain, the first parameter N, and the second parameter g. The first parameter N, the second parameter g, and the target domain's ACC value constitute the target domain's security parameters.
[0076] like Figure 3 As shown, in the Computing ACC phase, the Mnode, based on N and g, uses the initialized RSA cryptographic accumulator to accumulate the GIDs of all Gnodes in the target domain to obtain the ACC value of the target domain.
[0077] S204. The target domain master node generates a proof for each domain administrator node in the target domain based on the ACC value of the target domain and the GID of each domain administrator node in the target domain, and sends it to each domain administrator node in the target domain.
[0078] like Figure 3 As shown, during the Computing ACC phase, the Mnode also generates a proof for each Gnode in the domain.
[0079] S205. The target domain master node stores the private key of the public key and private key pair locally, and stores the public key of the public key and private key pair, as well as the security parameters of the target domain, to the public blockchain.
[0080] like Figure 3 As shown, in the ACC, N, g phase, Mnode stores the private key from the public key and private key pair locally, and stores the public key from the public key and private key pair, as well as the ACC, N, g of the target domain, to the public blockchain Blockchain.
[0081] In some embodiments, a device registration process can be performed before S101 described above. The device registration process can be as follows: Figure 4 As shown, this is specifically reflected in S301 to S305:
[0082] S301. The target device sends a registration request to the target domain administrator node; the registration request contains the device information of the target device; the target device is either the first device or the second device, and correspondingly, the target domain administrator node is either the first domain administrator node or the second domain administrator node.
[0083] like Figure 4 As shown, in the Set parameters phase, the Device collects its own device information, which includes, for example, the device's IP address, MAC address, and production date; in the DeviceInfo phase, the Device sends a registration request to the Gnode.
[0084] S3202, The target domain administrator node generates a DID identifier for the target device and sends it to the target device.
[0085] like Figure 4 As shown, during the DID generation phase, the Gnode generates a DID identifier for the Device.
[0086] S303. The target domain administrator node stores the DID identifier of the target device to the file system and receives the CID identifier of the target device returned by the file system.
[0087] like Figure 4 As shown, in the DeviceInfo phase, Gnode generates a DID identifier for the Device and uploads it to IPFS; in the Data storage phase, IPFS stores the DID identifier of the Device and generates a CID identifier for the Device; in the return cid phase, Gnode receives the CID identifier of the Device.
[0088] S304. The target domain administrator node generates the target device's CPT credential based on the DID identifier of the domain master node of its own management domain, its own DID identifier, the target device's DID identifier, and the target device's CID identifier. It then uploads the target device's CPT credential to the private blockchain corresponding to its own target domain and sends the target device's CPT credential to the target device.
[0089] like Figure 4 As shown, in the Generate certificate phase, Gnode generates a CPT certificate for the Device; in the certificate phase, Gnode sends the CPT certificate to the Device; and in the Stored information phase, the Device stores its own CPT certificate.
[0090] The following examples illustrate the IoT cross-domain authentication method of this application through cross-management domain authentication and cross-security domain authentication. Cross-management domain authentication refers to two devices being in the same Mnode but managed by different Gnodes; cross-security domain authentication refers to two devices being in different management domains and managed by different Mnodes.
[0091] 1) Cross-administration authentication
[0092] First, Device A directly obtains Device B's basic information from Device B (i.e., the MID of the domain master node in the management domain where Device B resides, Device B's CPT credentials, and Device B's public key (used for subsequent communication encryption)). Then, Device A compares the MID in its credentials with the MID of the domain master node in its management domain to determine if the communicating parties are in the same security domain. If both devices have the same MID, the Gnode managing Device A downloads Device B's CPT credentials from its domain's private blockchain and verifies them against the CPT credentials obtained from Device B. If they match, the verification is successful. After successful verification, Device A sends its CPT credentials to Device B. Next, Device B verifies Device A's legitimacy in the same way to ensure mutual authentication. If both verifications are successful, subsequent communication can proceed.
[0093] 2) Cross-security domain authentication
[0094] First, DeviceA directly obtains DeviceB's basic information from DeviceB (i.e., the MID of the domain master node of the management domain where DeviceB resides, DeviceB's CPT credentials, and DeviceB's public key (used for subsequent communication encryption)). Then, DeviceA compares the MID in the credentials with the MID of the domain master node of its own management domain to determine if the communicating parties are in the same security domain. If the MIDs of the two communicating parties are inconsistent, a verification credential needs to be generated collaboratively by the Gnode and Mnode to ensure the security and reliability of cross-domain authentication. DeviceA first sends a cross-domain request to its own domain's Gnode, using the MID of the domain master node of DeviceB's management domain, DeviceA's CPT credentials, and DeviceA's CID (optional; if you don't want to expose DeviceA's own specific information, you don't need to send this). The Gnode in this domain verifies the validity of DeviceA's CPT (i.e., downloads DeviceA's CPT credential from the corresponding private blockchain, and then verifies the downloaded DeviceA's CPT credential with the one obtained from DeviceA; if they match, the verification is successful). Upon successful verification, the Gnode in this domain sends a cross-domain request to the Mnode in this domain, using DeviceB's domain master node's MID, DeviceA's CID, its own GID, and its own Proof as parameters. The Mnode in this domain then verifies the validity of the Gnode's GID using the properties of a cryptographic accumulator, based on the received GID and Proof. When the GID of the Gnode in this domain is valid, the Mnode in this domain will retrieve the public key of the domain master node of DeviceB from the public blockchain based on the MID of DeviceB's domain master node. Then, the Mnode in this domain will use a signature algorithm to sign the CID, GID, and Proof of DeviceA. Then, it will randomly generate a key and use this key and a symmetric encryption algorithm to generate ciphertext (information ciphertext) for the unsigned CID, unsigned GID, and unsigned Proof, as well as the signed CID, signed GID, and signed Proof. Then, it will use an asymmetric encryption algorithm and the public key of DeviceB's MID to encrypt the randomly generated key (key ciphertext), and then return it to DeviceA level by level.Next, Device A sends both the encrypted message and the encrypted key directly to Device B. Device B then forwards the encrypted message and the encrypted key to the Mnode of its own management domain. The Mnode in Device B's management domain decrypts the encrypted key using its private key to obtain the key, and then uses the key to decrypt the encrypted message, obtaining Device A's CID, Device A's Gnode's GID, and Device A's Gnode's Proof. Then, the Mnode in Device B's management domain verifies Device A's Gnode's GID and Proof. Specifically, this verification involves obtaining the ACC, N, and g of the management domain where Device A's Gnode resides from the public blockchain. The ACC, N, g, and proof are used to verify the validity of Device A's Gnode's GID. If valid, a valid result is generated and returned to Device B. Device B then executes the same process, thus achieving two-way authentication between Device A and Device B, and between Device B and Device A.
[0095] 1) In order to solve the problem of difficult device authentication and low security in different management domains in traditional Internet of Things, this invention adopts a novel cloud-edge-device three-layer architecture model, which is suitable for most application scenarios.
[0096] 2) In response to the challenges of continuous data flow output from large-scale IoT devices and numerous transactions and huge transaction ledgers verified on the blockchain, this invention adopts RSA cryptographic accumulator technology to improve the efficiency of the original traversal search O(n) time complexity to O(1).
[0097] 3) To address the privacy leakage issues inherent in traditional cross-domain authentication, this invention introduces a distributed identity identifier (WeIdentity DID) to ensure that the entity's real-world identity is stored off-chain. DID allows entities to minimize or selectively disclose information to other organizations, effectively preventing any third party from reverse-engineering the entity's identity in the real world or other semantic contexts.
[0098] 4) To address the issue that the workload of blockchain nodes increases with the number of IoT devices, this invention employs the InterPlanetary File System (IPFS) and blockchain technology in synergy to decouple the storage layer and control layer, thereby improving the authentication efficiency of the protocol.
[0099] The above description, in conjunction with specific preferred embodiments, provides a further detailed explanation of the present invention. It should not be construed that the specific implementation of the present invention is limited to these descriptions. For those skilled in the art, various simple deductions or substitutions can be made without departing from the concept of the present invention, and all such modifications and substitutions should be considered within the scope of protection of the present invention.
Claims
1. A blockchain-based cross-domain authentication method for the Internet of Things, characterized in that, include: The first device in the first management domain obtains the second basic information from the second device in the second management domain; The first management domain and the second management domain may be the same or different management domains; each management domain includes a domain master node, a domain administrator node, and terminal devices; the domain master node is used to manage the domain administrator node, and the domain administrator node is used to manage the terminal devices; each management domain corresponds to a private blockchain, and the domain master nodes of different management domains correspond to a public blockchain; each domain administrator node is used to store and retrieve data from the file system and the corresponding private blockchain. The first device, the first domain master node of the first management domain, the first domain administrator node of the first management domain, the second device, and the second domain master node of the second management domain shall jointly perform one-way authentication from the first device to the second device based at least on the second basic information and the data on the first private blockchain corresponding to the first management domain. When the one-way authentication from the first device to the second device is successful, the second device obtains the first basic information from the first device. The second device, the second domain master node, the second domain administrator node of the second management domain, the first device, and the first domain master node jointly perform one-way authentication from the second device to the first device based at least on the first basic information and the data on the second private blockchain corresponding to the second management domain, thereby realizing two-way authentication between the first device and the second device.
2. The blockchain-based cross-domain authentication method for the Internet of Things according to claim 1, characterized in that, The first device, the first domain master node of the first management domain, the first domain administrator node of the first management domain, the second device, and the second domain master node of the second management domain jointly perform one-way authentication from the first device to the second device based at least on the second basic information and the data on the first private blockchain corresponding to the first management domain, including: The first device uses the second basic information to perform same-domain verification on the second device, and obtains a same-domain verification result indicating whether the first management domain and the second management domain are the same management domain; When the same domain verification result indicates that the two devices are in the same management domain, the first domain administrator node of the first management domain uses the second basic information to perform a legality verification on the second device, and obtains a legality verification result that indicates whether the second device is legal. When the same-domain verification result indicates that the devices are in different management domains, the first domain master node and the first domain administrator node of the first management domain jointly perform a legality verification on the second device based on the second basic information, the data on the first private blockchain corresponding to the first management domain, and the data on the public blockchain. When the legality verification of the second device is passed, intermediate verification data is obtained. The first device sends the intermediate verification data to the second device; The second domain master node of the second management domain verifies the first device based on the intermediate verification data and the data on the public blockchain, thus completing the one-way authentication from the first device to the second device.
3. The blockchain-based cross-domain authentication method for the Internet of Things according to claim 2, characterized in that, The second basic information includes: a second MID, which represents the DID identifier of the second domain master node; the first device uses the second basic information to perform same-domain verification on the second device, obtaining a same-domain verification result indicating whether the first management domain and the second management domain are the same management domain, including: The first device acquires the first MID; the first MID represents the DID identifier of the first domain master node; The first device compares the first MID with the second MID. When the first MID and the second MID are the same, a same-domain verification result is obtained indicating that the first management domain and the second management domain are the same management domain. When the first MID and the second MID are different, a same-domain verification result is obtained indicating that the first management domain and the second management domain are different management domains.
4. The blockchain-based cross-domain authentication method for the Internet of Things according to claim 2, characterized in that, The second basic information includes: a second CPT credential, which represents the CPT credential of the second device; when the same-domain verification result indicates that the device belongs to the same management domain, the first domain administrator node of the first management domain uses the second basic information to perform a legality verification on the second device, obtaining a legality verification result characterizing whether the second device is legal, including: When the same domain verification result indicates that the domains are the same, the first device sends the second CPT credential to the first domain administrator node. The first domain administrator node obtains the second CPT credential of the second device from the first private blockchain. Using the second CPT credential obtained from the first private blockchain, it performs consistency verification on the second CPT credential received from the first device. When the verification result is consistent, a legality verification result indicating that the second device is legitimate is obtained. When the verification result is inconsistent, a legality verification result indicating that the second device is illegitimate is obtained.
5. The blockchain-based cross-domain authentication method for the Internet of Things according to claim 2, characterized in that, The second basic information includes: a second MID, which represents the DID identifier of the second domain master node; when the same-domain verification result indicates different management domains, the first domain master node and the first domain administrator node of the first management domain jointly perform a legality verification on the second device based on the second basic information, data on the first private blockchain corresponding to the first management domain, and data on the public blockchain, and obtain intermediate verification data when the legality verification of the second device passes, including: When the same-domain verification result indicates that they are in different management domains, the first device shall at least send the second MID and the first CPT credential to the first domain administrator node; the first CPT credential represents the CPT credential of the first device. The first domain administrator node obtains the first CPT credential from the first private blockchain, uses the first CPT credential obtained from the first private blockchain to perform consistency verification on the first CPT credential received from the first device, and when the verification result shows consistency, accordingly, at least the first GID, the first proof, and the second MID are sent to the first domain master node; the first GID represents the DID identifier of the first domain administrator node; the first proof is the proof of the first domain administrator node; The first domain master node uses a cryptographic accumulator and the security parameters of the first management domain to verify the legitimacy of the first GID. When the first GID is verified to be legitimate, the second domain master node retrieves the public key of the second domain master node from the public blockchain based on the second MID. When the public key of the second domain master node is retrieved, it indicates that the second device is legitimate. Accordingly, the first domain master node generates intermediate verification data using at least the first GID, the first proof, and the public key of the second domain master node, employing a signature algorithm, a symmetric encryption algorithm, and an asymmetric encryption algorithm.
6. The blockchain-based cross-domain authentication method for the Internet of Things according to claim 5, characterized in that, When the same-domain verification result indicates different management domains, the first device sends at least the second MID and the first CPT credential to the first domain administrator node, including: When the same-domain verification result indicates different management domains, the first device sends the second MID and the first CPT credential to the first domain administrator node; or, When the same-domain verification result indicates that they are in different management domains, the first device sends the second MID, the first CPT credential, and the first device's CID identifier to the first domain administrator node; the first device's CID identifier is an index identifier returned by the file system after the first domain administrator node stores the generated first device's DID identifier in the file system.
7. The blockchain-based cross-domain authentication method for the Internet of Things according to claim 5, characterized in that, When the public key of the second domain master node is retrieved, it indicates that the second device is legitimate. Accordingly, the first domain master node generates intermediate verification data using at least the first GID, the first proof, and the public key of the second domain master node, employing a signature algorithm, a symmetric encryption algorithm, and an asymmetric encryption algorithm, including: When the public key of the second domain master node is retrieved, it indicates that the second device is legitimate. Accordingly, the first domain master node uses a signature algorithm to sign at least the first GID and the first proof, and randomly generates a key. The first domain master node uses the key and a symmetric encryption algorithm to encrypt the first GID, the first proof, and the signed first GID and the signed first proof to obtain ciphertext. The first domain master node encrypts the key using an asymmetric encryption algorithm based on the public key of the second domain master node to obtain the key ciphertext; the information ciphertext and the key ciphertext constitute the intermediate verification data.
8. The blockchain-based cross-domain authentication method for the Internet of Things according to claim 6, characterized in that, The second domain master node of the second management domain verifies the first device based on the intermediate verification data and the data on the public blockchain, completing the one-way authentication from the first device to the second device, including: The second domain master node of the second management domain uses its own private key to decrypt the key ciphertext to obtain the key, and uses the key to decrypt the information ciphertext to obtain at least the first GID and the first proof. The second domain master node obtains the security parameters of the first management domain from the public blockchain, verifies the first GID based on the security parameters of the first management domain and the first proof, and sends the verification result indicating the legitimacy of the first device to the second device when the first GID is valid, thus completing the one-way authentication from the first device to the second device.
9. The blockchain-based cross-domain authentication method for the Internet of Things according to claim 1, characterized in that, Before the first device in the first management domain obtains the second basic information from the second device in the second management domain, the process further includes: The target domain master node randomly generates the first parameter and the second parameter, and generates its own public key and private key pair; the target domain master node is either the first domain master node or the second domain master node; The target domain master node initializes the RSA cryptographic accumulator, generates a GID for each domain administrator node in the target domain, and sends the GID to the respective domain administrator node in the target domain; correspondingly, the target domain is either the first management domain or the second management domain. The target domain master node generates the ACC value of the target domain using an initialized RSA cryptographic accumulator based on the GID of each domain administrator node in the target domain, the first parameter, and the second parameter; the first parameter, the second parameter, and the ACC value of the target domain constitute the security parameters of the target domain. The target domain master node generates proofs for each domain administrator node in the target domain based on the ACC value of the target domain and the GID of each domain administrator node in the target domain, and sends them to each domain administrator node in the target domain. The target domain master node stores the private key of the public key and private key pair locally, and stores the public key of the public key and private key pair, as well as the security parameters of the target domain, in the public blockchain.
10. The blockchain-based cross-domain authentication method for the Internet of Things according to claim 1, characterized in that, Before the first device in the first management domain obtains the second basic information from the second device in the second management domain, the method further includes: The target device sends a registration request to the target domain administrator node; the registration request contains the device information of the target device; the target device is either the first device or the second device, and correspondingly, the target domain administrator node is either the first domain administrator node or the second domain administrator node; The target domain administrator node generates a DID identifier for the target device and sends it to the target device; The target domain administrator node stores the DID identifier of the target device in the file system and receives the CID identifier of the target device returned by the file system; The target domain administrator node generates the CPT credential for the target device based on the DID identifier of the domain master node of its own management domain, its own DID identifier, the DID identifier of the target device, and the CID identifier of the target device. The CPT credential for the target device is then uploaded to the private blockchain corresponding to the target domain and sent to the target device.
