Edge computing terminal authentication method, system and device based on blockchain
By using blockchain technology to build a decentralized network in edge computing, and using shared authentication transaction records between edge nodes to achieve terminal authentication, it solves the problem of inefficient authentication of mobile terminals, improves the reliability and efficiency of authentication, and supports cross-border authentication Platform application.
Patent Information
- Application Number
- CN202111421771.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-26
- Publication Date
- 2024-11-19
- Estimated Expiration
- 2041-11-26
AI Technical Summary
In the prior art, edge computing terminals have low authentication efficiency during mobile, and their cross-platform applications are limited, and the central database model is complex and inefficient.
Blockchain technology is used to build a decentralized edge node network, and terminal authentication is realized through shared authentication transaction records between edge nodes, and cross-platform terminal authentication is realized using the non-forgery and sharing characteristics of blockchain.
It improves the reliability and efficiency of terminal authentication, simplifies the authentication process, reduces dependence on central nodes, and supports efficient cross-platform applications.
Smart Images

Figure CN114143312B_ABST
Abstract
Description
Background Art
[0002] Edge computing, also translated as edge computing, is a distributed computing architecture that moves the calculations of applications, data, and services from the central nodes of the network to the logical edge nodes of the network for processing.
[0003] Edge computing breaks down large services that were originally handled entirely by central nodes into smaller and more manageable parts, which are then distributed to edge nodes for processing. Edge nodes are closer to user terminal devices, which can speed up data processing and transmission and reduce latency.
[0004] It should be noted that the information disclosed in the above background technology section is only used to enhance the understanding of the background of the present invention, and therefore may include information that does not constitute the prior art known to ordinary technicians in the field. Summary of the invention
[0005] In response to the problems in the prior art, the purpose of the present invention is to provide an edge computing terminal authentication method, system and device based on blockchain, which overcomes the difficulties of the prior art and can improve the terminal authentication efficiency in the edge computing field.
[0006] An embodiment of the present invention provides an edge computing terminal authentication method based on blockchain, wherein a blockchain network is constructed by edge nodes as blockchain nodes, and the edge computing terminal authentication method is applied to edge nodes, including:
[0007] Receiving an authentication request from a terminal, the authentication request carrying information to be authenticated;
[0008] In the case of obtaining a first authentication transaction record of the terminal from the blockchain using the identification information of the terminal, authenticating the information to be authenticated using the first authentication transaction record;
[0009] If the authentication is successful, the authentication success information is sent to the terminal;
[0010] If the authentication is successful, a second authentication transaction record is constructed for the authentication information, and the second authentication transaction record is uploaded to the blockchain.
[0011] Optionally, authenticating the information to be authenticated using the first authentication transaction record includes the following steps:
[0012] By extracting the authenticated token from the first authentication transaction record, the authentication token authentication mechanism is used to authenticate the legitimacy of the authentication information;
[0013] When the legality authentication is passed, the first authentication transaction record is used to perform terminal identity authentication on the information to be authenticated.
[0014] Optionally, an authentication token authentication mechanism is used to authenticate the legitimacy of the authentication information, specifically including the following steps:
[0015] Obtain a hash value of the token to be authenticated from the information to be authenticated;
[0016] Perform hash calculation on the authenticated token to obtain a hash value of the authenticated token;
[0017] The hash value of the authenticated token is compared with the hash value of the token to be authenticated, and if the comparison passes, the legitimacy authentication is confirmed to be passed.
[0018] Optionally, the edge computing terminal authentication method further includes:
[0019] If the authentication is successful, concatenate the identification information of the edge node, the identification information of the terminal, the shared key of the terminal stored in the first authentication transaction record, and the random number provided by the terminal in the information to be authenticated to obtain concatenated data;
[0020] The concatenated data is encrypted using the edge node's own private key to obtain a new authentication token, generate a new authentication token, and perform hash calculation on the new authentication token to obtain a hash value of the new authentication token;
[0021] Send authentication success information to the terminal, including:
[0022] Send the authentication pass information and the hash value of the new authentication token to the terminal;
[0023] The second authentication transaction record is constructed based on the authentication information, including:
[0024] A second authentication transaction record is constructed using the authentication information and the new authentication token.
[0025] Optionally, performing terminal identity authentication on the information to be authenticated using the first authentication transaction record includes:
[0026] Generate a target authentication code using the shared key of the terminal stored in the first authentication transaction record, the identity authentication domain value, and the random number provided by the terminal in the information to be authenticated;
[0027] Compare the target authentication code with the authentication code to be authenticated provided by the terminal through the transaction information to be processed, and use the comparison result as the identity authentication result;
[0028] The authentication code to be authenticated is generated by the terminal using the shared key, identity authentication domain value and random number stored in the terminal.
[0029] Optionally, the blockchain-based edge computing terminal authentication method further includes:
[0030] If the authentication is successful, a new identity authentication domain value of the terminal is generated;
[0031] Send authentication success information to the terminal, including:
[0032] Send authentication pass information and new identity authentication domain value to the terminal;
[0033] The second authentication transaction record is constructed based on the authentication information, including:
[0034] Construct a second authentication transaction record based on the authentication information and the new identity authentication domain value.
[0035] Optionally, the blockchain-based edge computing terminal authentication method further includes:
[0036] If the authentication is successful and the business demand information of the terminal is obtained, business services are provided to the terminal.
[0037] Optionally, providing business services to the terminal includes:
[0038] By acquiring at least one of the authority and the credit level of the terminal from the first authentication record, a matching business service is provided to the terminal.
[0039] The embodiment of the present invention further provides an edge computing terminal authentication system based on blockchain, which is used to implement the above-mentioned edge computing terminal authentication method. The blockchain network is constructed by edge nodes as blockchain nodes. The edge computing terminal authentication system is applied to the edge nodes, including:
[0040] A receiving module receives an authentication request from a terminal, wherein the authentication request carries information to be authenticated;
[0041] an authentication module, authenticating the information to be authenticated using the first authentication transaction record, when obtaining the first authentication transaction record of the terminal from the blockchain using the identification information of the terminal;
[0042] The sending module sends the authentication pass information to the terminal when the authentication is passed;
[0043] The generation module, when the authentication is passed, constructs a second authentication transaction record for the authentication information and uploads the second authentication transaction record to the blockchain.
[0044] Optionally, the authentication module further includes:
[0045] A legality authentication module, extracting an authenticated token from the first authentication transaction record and using an authentication token authentication mechanism to authenticate the legality of the authentication information;
[0046] The identity authentication module, when the legality authentication is passed, uses the first authentication transaction record to perform terminal identity authentication on the information to be authenticated.
[0047] Optionally, the legality authentication module is specifically used for:
[0048] Obtain a hash value of the token to be authenticated from the information to be authenticated;
[0049] Perform hash calculation on the authenticated token to obtain a hash value of the authenticated token;
[0050] The hash value of the authenticated token is compared with the hash value of the token to be authenticated, and if the comparison passes, the legitimacy authentication is confirmed to be passed.
[0051] Optionally, the identity authentication module is specifically used for:
[0052] Generate a target authentication code using the shared key of the terminal stored in the first authentication transaction record, the identity authentication domain value, and the random number provided by the terminal in the information to be authenticated;
[0053] Compare the target authentication code with the authentication code to be authenticated provided by the terminal through the transaction information to be processed, and use the comparison result as the identity authentication result;
[0054] The authentication code to be authenticated is generated by the terminal using the shared key, identity authentication domain value and random number stored in the terminal.
[0055] The embodiment of the present invention further provides an edge computing terminal authentication system based on blockchain, wherein the blockchain network is constructed by edge nodes as blockchain nodes, and the edge computing terminal authentication system includes:
[0056] The terminal sends a terminal authentication request carrying the information to be authenticated to the edge node;
[0057] The edge node receives the terminal authentication request, uses the terminal's identification information to obtain the terminal's authentication transaction record from the blockchain, uses the authentication transaction record to authenticate the information to be authenticated, and if the authentication is successful, sends the authentication pass information to the terminal, generates a new authentication transaction record for the authentication information, and uploads the new authentication transaction record to the blockchain.
[0058] An embodiment of the present invention further provides an edge computing terminal authentication device based on blockchain, comprising:
[0059] processor;
[0060] a memory in which executable instructions for the processor are stored;
[0061] Among them, the processor is configured to perform the steps of the above-mentioned blockchain-based edge computing terminal authentication method by executing executable instructions.
[0062] An embodiment of the present invention also provides a computer-readable storage medium for storing a program, which, when executed, implements the steps of the above-mentioned blockchain-based edge computing terminal authentication method.
[0063] The purpose of the present invention is to provide an edge computing terminal authentication method, system and device based on blockchain, using edge nodes as blockchain nodes to build a blockchain. When any edge node receives an authentication request from a terminal, it can obtain a first authentication transaction record of the terminal from the blockchain, use the first authentication transaction record to authenticate the information to be authenticated, and when the authentication is successful, send authentication success information to the terminal, build a second authentication transaction record for the information to be authenticated, and upload the second authentication transaction record to the blockchain.
[0064] The embodiment of the present invention makes full use of the sharing characteristics of blockchain data. Any edge node can obtain the authentication transaction record of the terminal from the local blockchain account book, and use the authentication transaction record to authenticate the information to be authenticated, thereby realizing terminal authentication during the mobile process. The embodiment of the present invention utilizes the unforgeability of blockchain to improve the reliability of terminal authentication, and saves the complexity of the terminal authentication link and the efficiency of terminal authentication while saving the central node. BRIEF DESCRIPTION OF THE DRAWINGS
[0065] Other features, objectives and advantages of the present invention will become more apparent from a reading of the detailed description of non-limiting embodiments made with reference to the following accompanying drawings.
[0066] Figure 1 This is a schematic diagram of a blockchain network implementing an edge computing system according to an embodiment of the present invention;
[0067] Figure 2 A timing diagram of a blockchain-based edge computing terminal authentication method provided in an embodiment of the present invention;
[0068] Figure 3 One of the flowcharts of the edge computing terminal authentication method based on blockchain provided by an embodiment of the present invention;
[0069] Figure 4 Flow chart 2 of the edge computing terminal authentication method based on blockchain provided in an embodiment of the present invention;
[0070] Figure 5 Flow chart 3 of the edge computing terminal authentication method based on blockchain provided in an embodiment of the present invention;
[0071] Figure 6 Flow chart 4 of the edge computing terminal authentication method based on blockchain provided in an embodiment of the present invention;
[0072] Figure 7The edge computing block data structure diagram provided by the embodiment of the present invention;
[0073] Figure 8 A schematic diagram of the MILENAGE algorithm provided in an embodiment of the present invention;
[0074] Fig. 9 A diagram of the edge node structure in the edge computing terminal authentication system provided by an embodiment of the present invention;
[0075] Fig.10 A timing diagram of a blockchain-based edge computing terminal authentication method provided in an embodiment of the present invention;
[0076] Fig.11 One of the module schematic diagrams of the edge computing terminal authentication system based on blockchain provided by an embodiment of the present invention;
[0077] Fig.12 The second module schematic diagram of the edge computing terminal authentication system based on blockchain provided by an embodiment of the present invention;
[0078] Fig.13 The third module schematic diagram of the edge computing terminal authentication system based on blockchain provided by an embodiment of the present invention;
[0079] Fig.14 A fourth schematic diagram of a module of a blockchain-based edge computing terminal authentication system provided in an embodiment of the present invention;
[0080] Fig.15 This is a schematic diagram of the operation of the blockchain-based edge computing terminal authentication system provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0081] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in a variety of forms and should not be construed as limited to the embodiments set forth herein. Instead, these embodiments are provided to make the present invention comprehensive and complete and to fully convey the concepts of the example embodiments to those skilled in the art.
[0082] The accompanying drawings are only schematic illustrations of the present invention and are not necessarily drawn to scale. The same reference numerals in the figures represent the same or similar parts, and their repeated description will be omitted. Some of the block diagrams shown in the accompanying drawings are functional entities and do not necessarily correspond to physically or logically independent entities. These functional entities can be implemented in software form, or implemented in one or more hardware forwarding modules or integrated circuits, or implemented in different networks and / or processor devices and / or microcontroller devices.
[0083] In addition, the processes shown in the accompanying drawings are only exemplary and do not necessarily include all the steps. For example, some steps can be decomposed, some steps can be combined or partially combined, and the actual execution order may change according to the actual situation. The words "first", "second" and similar words used in the specific description do not indicate any order, quantity or importance, but are only used to distinguish different components. It should be noted that the embodiments of the present invention and the features in different embodiments can be combined with each other without conflict.
[0084] The inventors have noticed that in edge computing scenarios, it is necessary to face the problem that the terminal is often in the process of movement, and the terminal will switch to different edge nodes during the movement. These edge nodes authenticate the terminal to be cut in, and provide corresponding services on this basis.
[0085] The inventors understand that a wide range of industry applications will have a large number of terminals, which will be registered at different edge nodes and a central database will be deployed for unified authentication. This model is very complex and inefficient. Moreover, this also limits the cross-platform application of edge computing.
[0086] The inventors of the present invention consider solving the above problems by eliminating the central database and introducing blockchain technology to enable edge nodes to authenticate terminals during the mobile process.
[0087] Blockchain technology is a decentralized distributed data management framework and has been applied to many distributed system scenarios. Blockchain can realize distributed trusted computing and transactions efficiently and at low cost through a decentralized and unforgeable computing model. It is currently widely used in finance, logistics, industrial manufacturing, medical care, the Internet of Things and other fields.
[0088] Blockchain is decentralized and unforgeable, so the terminal authentication process during the mobile process in the edge computing system can be implemented across platforms. This model is simple and has high authentication efficiency.
[0089] The embodiment of the present invention proposes to use edge nodes to build a blockchain network. The terminal performs authentication at any edge node, which can be regarded as an authentication transaction record. The authentication transaction record is stored on the blockchain, and in fact, each blockchain node shares the authentication transaction record. In this way, when the terminal moves to any edge node, the edge node can use the authentication transaction record stored in the blockchain to authenticate the terminal requesting to enter.
[0090] By using the embodiment of the present invention, there is no need to build an authentication center node, and the unforgeable characteristics of the blockchain are utilized to improve the security and reliability of terminal authentication, and to improve the feasibility of edge computing by the terminal across platforms. Moreover, by using the embodiment of the present invention, there is no need to register simultaneously with all system nodes, and a highly efficient authentication mechanism that can be registered in one place and used across the entire network can be implemented.
[0091] Figure 1 The edge computing system based on blockchain provided by the embodiment of the present invention, the blockchain network is composed of multiple edge nodes, each edge node serves as a blockchain node, each edge node is equal to each other, and independently maintains a set of distributed blockchain ledgers to realize shared blockchain data.
[0092] In this case, reference Figure 2 , Figure 2 An edge computing terminal authentication system based on blockchain is provided for an embodiment of the present invention, wherein the blockchain network is composed of edge nodes, and the edge computing terminal authentication system may include: an edge node 1a and a terminal 1b as blockchain nodes, wherein the edge node 1a is any edge node in the blockchain network, and the edge node is not particularly limited.
[0093] refer to Figure 2 , the edge computing terminal authentication system based on blockchain implements terminal authentication through the following steps:
[0094] Step 210: The terminal 1b sends an authentication request carrying the information to be authenticated to the edge node 1a;
[0095] Step 220: The edge node 1a uses the identification information of the terminal 1b to obtain the authentication transaction record of the terminal 1b from the blockchain;
[0096] Step 230: The edge node 1a authenticates the information to be authenticated using the authentication transaction record;
[0097] Step 240: The edge node 1a sends the authentication pass information to the terminal 1b;
[0098] Step 250: When the authentication is successful, the edge node 1a generates a new authentication transaction record for the information to be authenticated, and uploads the new authentication transaction record to the blockchain.
[0099] Using the embodiment of the present invention, each edge node serving as a blockchain node shares authentication transaction records, so when a terminal moves from a previous edge node to a current edge node and requests to cut in, the current edge node can use the authentication transaction record between the terminal and the previous edge node to authenticate the terminal authentication request.
[0100] The embodiments of the present invention utilize the unforgeability of blockchain to improve the reliability of terminal authentication, and while saving central nodes, reduce the complexity of the terminal authentication link and improve terminal authentication efficiency.
[0101] Figure 3 The flowchart of the edge computing terminal authentication method based on blockchain provided by the embodiment of the present invention, the execution subject of this method is an edge node as a blockchain node, and the edge node is any blockchain node. Specifically, the edge node can be a physical device or a virtual machine, which is not specifically limited here.
[0102] Reference Figure 3 , this method specifically comprises the following steps:
[0103] Step 310: receiving an authentication request from a terminal, the authentication request carrying information to be authenticated;
[0104] Step 320: When the first authentication transaction record of the terminal is obtained from the blockchain using the identification information of the terminal, the information to be authenticated is authenticated using the first authentication transaction record;
[0105] Step 330: If the authentication is successful, send authentication success information to the terminal;
[0106] Step 340: If the authentication is successful, a second authentication transaction record is constructed for the authentication information, and the second authentication transaction record is uploaded to the blockchain.
[0107] The embodiment of the present invention makes full use of the sharing characteristics of blockchain data. Any edge node can obtain the authentication transaction record of the terminal from the local blockchain account book, and use the authentication transaction record to authenticate the information to be authenticated, thereby realizing terminal authentication during the mobile process. The embodiment of the present invention utilizes the unforgeability of blockchain to improve the reliability of terminal authentication, and saves the complexity of the terminal authentication link and the efficiency of terminal authentication while saving the central node.
[0108] In the embodiment of the present invention, the authentication edge node that generates the first authentication transaction record and the edge node of the current second authentication transaction record may be two different edge nodes or the same edge node.
[0109] In an embodiment of the present invention, after a terminal registers at an edge node, the edge node generates an authentication transaction record for the terminal based on the registration record. The authentication transaction record is sent to the blockchain network, and the blockchain packages and produces a block containing the authentication transaction record and incorporates it into the chain.
[0110] In the subsequent process, as the terminal flows to multiple edge nodes, terminal authentication requirements are involved at each edge node. The method of the embodiment of the present invention is used to perform the current authentication, and a new authentication transaction record is generated and uploaded to the chain, which serves as the basis for the next terminal authentication.
[0111] In an embodiment of the present invention, when multiple candidate authentication transaction records of the terminal are obtained from the blockchain using the identification information of the terminal, a first authentication transaction record whose timing is later than other candidate authentication transaction records is selected from the multiple candidate authentication transaction records.
[0112] In this embodiment, the first authentication transaction record is the most recent authentication transaction record of the terminal.
[0113] In the embodiment of the present invention, dual authentication is used to authenticate the authentication information. Specifically, the authentication information is authenticated using the first authentication transaction record, including the following steps:
[0114] By extracting the authenticated token from the first authentication transaction record, the authentication token authentication mechanism is used to authenticate the legitimacy of the authentication information;
[0115] When the legality authentication is passed, the first authentication transaction record is used to perform terminal identity authentication on the information to be authenticated.
[0116] In this way, when the identity authentication is passed, it is confirmed that the authentication of the information to be authenticated is passed.
[0117] By using this embodiment, a dual authentication mechanism can be implemented for the authentication request, thereby enhancing the effectiveness and reliability of the authentication on the basis of simplicity and high efficiency.
[0118] In the embodiment of the present invention, the authentication token authentication mechanism is used to authenticate the legitimacy of the authentication information, which specifically includes the following steps:
[0119] Obtain a hash value of the token to be authenticated from the information to be authenticated;
[0120] Perform hash calculation on the authenticated token to obtain a hash value of the authenticated token;
[0121] The hash value of the authenticated token is compared with the hash value of the token to be authenticated, and if the comparison passes, the legitimacy authentication is confirmed to be passed.
[0122] This embodiment adopts a token-based authentication mechanism. When the hash value of the authenticated token is consistent with the hash value of the token to be authenticated, it means that the token to be authenticated and the authenticated token are generated by the same edge node and are the same token.
[0123] In actual applications, the authenticated token is automatically generated by the edge node that generates the first authentication transaction record when the terminal authentication is passed, and is added to the first authentication transaction record. The authenticated token is then hashed and sent to the terminal.
[0124] Therefore, when the terminal initiates an authentication request to the current edge node, the hash value of the authenticated token is used as the hash value of the token to be authenticated as part of the information to be authenticated and added to the authentication request. In this way, the current edge node can use the authentication token authentication mechanism to authenticate the legitimacy of the information to be authenticated.
[0125] In the embodiment of the present invention, refer to Figure 4 , the edge computing terminal authentication method also includes:
[0126] Step 410: receiving an authentication request from a terminal, the authentication request carrying information to be authenticated;
[0127] Step 420: When the first authentication transaction record of the terminal is obtained from the blockchain using the identification information of the terminal, the information to be authenticated is authenticated using the first authentication transaction record;
[0128] Step 430: If the authentication is successful, concatenate the identification information of the edge node, the identification information of the terminal, the shared key of the terminal stored in the first authentication transaction record, and the random number provided by the terminal in the information to be authenticated to obtain concatenated data;
[0129] Step 440: Encrypt the concatenated data using the edge node's own private key to obtain a new authentication token, generate a new authentication token, and perform hash calculation on the new authentication token to obtain a hash value of the new authentication token;
[0130] Step 450: Sending authentication pass information and the hash value of the new authentication token to the terminal;
[0131] Step 460: Construct a second authentication transaction record for the information to be authenticated and the new authentication token, and upload the second authentication transaction record to the blockchain.
[0132] Among them, the hash value of the authentication token and the authentication pass information in step 450 can be implemented through the same step, and the hash value of the authentication token is carried in the authentication pass information. In other embodiments, the hash value of the authentication token and the authentication pass information can also be sent to the terminal through different steps, without any order.
[0133] Steps 410 and 420 refer to the above steps 310 and 320 respectively, and are not described in detail here.
[0134] In the embodiment of the present invention, the new authentication token is used for the next terminal authentication.
[0135] In an embodiment of the present invention, the shared key of the terminal can be generated by the registration edge node and provided to the terminal when the terminal first registers in the blockchain network, and the shared key can be used permanently. At the same time, the shared key of the terminal is stored on the chain.
[0136] In this case, the public key of the edge node that generates the first authentication transaction record is used to decrypt the authenticated token to obtain the shared key of the terminal.
[0137] In the embodiment of the present invention, the random number provided by the terminal is randomly generated by the terminal and sent to the terminal through the information to be authenticated, so the edge node can extract the random number from the information to be authenticated.
[0138] In the embodiment of the present invention, the legitimacy authentication based on the authentication token is the first authentication, and the terminal identity authentication of the information to be authenticated using the first authentication transaction record is the second authentication. The terminal identity authentication of the information to be authenticated using the first authentication transaction record includes the following steps:
[0139] Generate a target authentication code using the shared key of the terminal stored in the first authentication transaction record, the identity authentication domain value, and the random number provided by the terminal in the information to be authenticated;
[0140] The target authentication code is compared with the authentication code to be authenticated provided by the terminal through the transaction information, and the comparison result is used as the identity authentication result; wherein the authentication code to be authenticated is generated by the terminal using the shared key, identity authentication domain value and random number stored in the terminal.
[0141] In the embodiment of the present invention, the identity authentication domain value of the terminal is generated by the edge node of the previous round, that is, the edge node that generates the first authentication transaction record, and provided to the terminal when the authentication is passed. On the one hand, the terminal saves the received identity authentication domain value locally for the current authentication, and on the other hand, the edge node of the previous round adds the identity authentication domain value to the first authentication transaction record and uploads it to the chain for the next round of terminal authentication.
[0142] In an optional embodiment of the present invention, reference Figure 5 , the edge computing terminal authentication method based on blockchain includes:
[0143] Step 510: receiving an authentication request from a terminal, wherein the authentication request carries information to be authenticated;
[0144] Step 520: When a first authentication transaction record of the terminal is obtained from the blockchain using the identification information of the terminal, the information to be authenticated is authenticated using the first authentication transaction record;
[0145] Step 530: if the authentication is successful, generate a new identity authentication domain value of the terminal;
[0146] Step 540: Sending authentication pass information and the new identity authentication domain value to the terminal;
[0147] Step 550: Construct a second authentication transaction record for the information to be authenticated and the new identity authentication domain value, and upload the second authentication transaction record to the blockchain.
[0148] The new identity authentication domain value is provided to the terminal, which is used by the terminal to generate an authentication code in the next round of authentication.
[0149] In the embodiment of the present invention, reference Figure 6 , the edge computing terminal authentication method based on blockchain may include the following steps:
[0150] Step 610: receiving an authentication request from a terminal, the authentication request carrying information to be authenticated;
[0151] Step 620: When the first authentication transaction record of the terminal is obtained from the blockchain using the identification information of the terminal, the information to be authenticated is authenticated using the first authentication transaction record;
[0152] Step 630: If the authentication is successful, send authentication success information to the terminal;
[0153] Step 640: If the authentication is successful, construct a second authentication transaction record for the authentication information, and upload the second authentication transaction record to the blockchain;
[0154] Step 650: When the authentication is successful and the service requirement information of the terminal is obtained, the terminal is provided with service.
[0155] Steps 610, 620, 630, and 640 refer to the above steps 310, 320, 330, and 340, respectively, and will not be described in detail here.
[0156] In the embodiment of the present invention, when the terminal has a service demand, the edge node provides a corresponding service, and the specific service content is related to the service demand information and is not limited here.
[0157] The service requirement information may be carried in the service request, or may be sent to the edge node separately if the authentication is passed.
[0158] In an embodiment of the present invention, providing a business service to a terminal specifically includes the following steps:
[0159] By acquiring at least one of the authority and the credit level of the terminal from the first authentication record, a matching business service is provided to the terminal.
[0160] The authority and credit rating of the terminal can be assigned when the terminal is registered, and can be upgraded or downgraded in the future and recorded in the blockchain. Therefore, this can achieve the extraction of the authority and credit rating recorded from the blockchain in order to provide matching business services to the terminal.
[0161] Figure 7 For the edge computing block data structure provided by the embodiment of the present invention, refer to Figure 7 , the block data structure conforms to the general block data structure. In the block body, the key variables contained in each record include:
[0162] ID i : The identity ID number of the i-th terminal;
[0163] MEC_ID ij : ID number of the jth edge node for login authentication of the i-th terminal;
[0164] AMF i : The terminal is at the edge node MEC_ID ij The authentication AMF (AuthenticationManagementField) value used, the above identity authentication field value is an embodiment of the AMF value;
[0165] AUTN i : Edge node MEC_ID ij An authentication token generated after authenticating the terminal;
[0166] Key_Pri ij : PKI private key of edge node MEC_IDij;
[0167] K i : The shared key of the terminal;
[0168] RAND i : MEC_ID at the edge node ij The random number used during authentication;
[0169] TimeStamp i :The terminal is at the edge node MEC_ID ij Timestamp of authentication;
[0170] P i : Terminal authority level;
[0171] Cr i : The credit rating of the terminal;
[0172] MEC_ID ik : Identification information of the edge node where the terminal is registered.
[0173] ID in the initial authentication transaction record i Generated by the registered edge node, a shared key K is also generated i And distributed to the terminal for permanent storage.
[0174] P i and Cr i Indicates the authority and credit level of the terminal. This field is maintained by the registered edge node and can be upgraded or downgraded.
[0175] During the authentication process, the edge node also generates AMF i The field is distributed to the terminal for the next authentication and recorded in the block. The edge node calculates and generates the authentication token AUTN i , the token is hashed to generate a hash value Hash(AUTN i ),AUTN i Stored in the block record, and the hash value Hash (AUTN i ) is distributed to the terminal for the next authentication.
[0176] The terminal authentication mechanism of the embodiment of the present invention uses the MILENAGE algorithm, and generates the authentication code MAC and the session key CK through the f1 and f3 functions of the MILENAGE algorithm. i , specific reference Figure 8 shown.
[0177] When a terminal moves to an edge node and wishes to obtain services, it must be authenticated by the service edge node. i 、AMF i , SQN and RAND i Calculate and generate the authentication code MAC:
[0178] MAC = f1(K i ,AMF i ,SQN,RAND i );
[0179] AMF i Generated by the edge node in the previous round and stored by the terminal;
[0180] Then, the authentication vector AV is calculated:
[0181] AV=ID i ||SQN||RAND i ||Hash(AUTN i )||MAC
[0182] Among them, Hash(AUTN i ) is the authentication token AUTN generated after the previous round of edge node authenticationi The terminal sends the AV to the current edge node for authentication. The authentication vector A corresponds to the information to be authenticated above.
[0183] After receiving the authentication request and authentication vector AV from the terminal, the edge node extracts the terminal ID i 、Authentication token AUTN i Hash value, authentication code MAC and random number RAND i and serial number SQN.
[0184] The edge node first traverses its own blockchain account book to find the most recent authentication transaction record about the terminal, and then extracts the authentication token AUTN. i , and perform hash calculation on it to determine whether it is a legal authentication token.
[0185] After the comparison is passed, find the MEC_ID of the last authenticated edge node in the record ij PKI public key pair AUTN i Decrypt and obtain the original plaintext of the authentication token:
[0186] AUTN i (Plain text) = UnEncrypt (Key_Pub ij ,AUTN i )
[0187] Where Key_Pub ij is the PKI public key of the previous edge node. The original plaintext of the decrypted authentication token is:
[0188] MEC_ID ij ⊕ID i ||K i ||RAND i
[0189] Extract the shared key K of the terminal i , combined with SQN and RAND in the authentication vector AV i and AMF stored in the block i The value is used to generate the authentication code MAC through the f1 function, and then compared with the authentication code MAC in the authentication vector. If the comparison is successful, the terminal authentication is completed.
[0190] It should be noted that although the terminal transmits the authentication vector AV once, the edge node actually performs a double authentication on the terminal without relying on the cooperation of any other units, confirming the identity and reliability of the edge terminal and ensuring that the identity of the terminal is not illegally stolen or misused.
[0191] In the embodiment of the present invention, the terminal deploys a MILENAGE algorithm module, a sequence number SQN generator and a random number RAND generator. The MILENAGE algorithm module is used to execute the MILENAGE algorithm to generate an authentication code MAC and a session key CK. i The serial number SQN generator is used to generate the serial number required for this authentication and provide it to the edge node. The random number RAND generator is used to generate the random number required for this authentication and use the random number to generate the authentication code, and also send the random number to the edge node to generate the authentication code.
[0192] Fig. 9 The structure diagram of the edge node computing system provided by the present invention includes:
[0193] Terminal authentication core processing unit 910: responsible for processing the process and control of terminal authentication;
[0194] AUTN encryption and decryption engine 920: performs encryption and decryption based on asymmetric PKI. The encryption and decryption keys are stored in the "blockchain key database 940". When authenticating the terminal, the PKI public key of the edge node of the previous round of authentication is used to authenticate the AUTN stored in the blockchain authentication transaction record. i Perform the decryption operation and after completing the authentication, use the PKI private key of this node to generate the AUTN i Perform encryption operations;
[0195] Blockchain interaction interface 930: facing the blockchain, it is the block data entry, and records the terminal login authentication and activities as transactions and sends them to the blockchain accounting node;
[0196] Blockchain key database 940: stores the PKI public keys of edge nodes in the entire blockchain and the PKI public key and private key of the node;
[0197] Key generator 950: by inputting the shared key K of the terminal i And the random number RAND sent by the terminal i , through the f3 function of the MILENAGE algorithm (ref. Figure 7 As shown) generates a session key CK between the terminal and the edge node i :CK i =f3(K i ,RAND i );
[0198] Ledger reading and writing module 960: used to read and write data from a locally maintained distributed blockchain ledger;
[0199] AMF generator 970: Generates a 16-bit authentication control field code and distributes it to the terminal as the identity authentication field value for generating the authentication code MAC value in the next round of authentication process.
[0200] In one application scenario, reference Fig.10 ,The edge computing terminal authentication method specifically includes the following processes.
[0201] Step 1010: Terminal i completes authentication (or registration) through edge node A.
[0202] Step 1020: Edge node A generates AMF through the AMF generator i , using the PKI private key Key_Pr of this node i Terminal identification information MEC_ID ij , the shared private key K of the terminal i and the random number RAND i Encryption generates authentication token AUTN i , and calculate AUTN i Hash value Hash(AUTN i ).
[0203] Step 1030: Edge node A sends AMF i and Hash(AUTN i ) is distributed to the terminal for storage;
[0204] Step 1040: Edge node A sends AMF i and AUTN i The first authentication transaction record is generated together with other relevant terminal authentication information, service information, etc. and sent to the chain.
[0205] Step 1050: Edge node B receives the new block through the blockchain interaction interface and writes the block into the local distributed ledger through the ledger reading and writing module.
[0206] Step 1060: Terminal i moves to the service domain of edge node B and extracts the stored shared key K i , and generate SQN and RAND through the built-in sequence generator and random number generator i , calculate the authentication code MAC, and then add it to Hash (AUTN i ) combined to generate an authentication vector AV;
[0207] Step 1070: Terminal i sends the authentication vector AV to edge node B to request authentication;
[0208] Step 1080: The edge node B receives the authentication request and authentication vector AV from the terminal i, and extracts the ID number ID of the terminal i from the AV through the terminal authentication core processing unit.i , traverse the local blockchain ledger through the ledger reading and writing module, obtain the terminal's most recent first authentication transaction record, and extract AMF from the record i and AUTN i , then AUTN i Perform hash calculation and compare the calculated value with the Hash (AUTN i ) for comparison, if they are consistent, the first authentication is completed;
[0209] Step 1090: The AUTN encryption and decryption engine of edge node B obtains the PKI public key Key_Pub of edge node A through the local blockchain key database a , for AUTN i Perform decryption operation from AUTN i Extract the shared key K of terminal i from the plaintext i , using K i 、AMF i and RAND in AV i , SQN calculates the MAC authentication code through the f1 function of the MILENAGE algorithm and hands it over to the terminal authentication core processing unit;
[0210] In this way, the terminal authentication core processing unit compares the calculated MAC with the MAC in the AV, and if they are consistent, the second authentication is completed;
[0211] Step 10100: The terminal authentication core processing unit generates a 16-bit AMF through the AMF generator. i The ID value of this node MEC_ID, the ID number of the terminal and the RAND in the AV i and the shared key K of the terminal i Generate a new AUTN i Plain text, AUTN i The plaintext is handed over to the AUTN encryption and decryption engine;
[0212] The AUTN encryption and decryption engine uses the PKI private key Key_Pri b About AUTN i The plain text is encrypted and the authentication token AUTN is calculated and generated i The terminal authentication core processing unit notifies the terminal i of the authentication result and calculates AUTN i The hash value of AMF i The fields are sent together to the terminal for storage;
[0213] When a session is held between terminal i and edge node B, the shared key K of the terminal is used. i and the random number RAND iAnd the MILENAGE algorithm f3 function calculates and generates the session key CK i ,The communication session between the two parties is encrypted and protected by this key, and the edge node B provides corresponding services according to the terminal authority and credit level stored in the record;
[0214] Step 10110: The edge node B ends its service to terminal i and sends a new AMF i and AUTN i Together with other terminal information and service information, a second authentication transaction record is generated, sent to the chain, entered into a new block, and synchronized to the edge node on the chain.
[0215] Fig.11 A schematic diagram of a module of a blockchain-based edge computing terminal authentication system provided by an embodiment of the present invention, wherein a blockchain network is constructed by edge nodes as blockchain nodes, and an edge computing terminal authentication method is applied to edge nodes. The system includes but is not limited to:
[0216] The receiving module 1110 receives an authentication request from a terminal, where the authentication request carries information to be authenticated;
[0217] The authentication module 1120, in the case of obtaining a first authentication transaction record of the terminal from the blockchain using the identification information of the terminal, authenticates the information to be authenticated using the first authentication transaction record;
[0218] The sending module 1130 sends authentication pass information to the terminal when the authentication is successful;
[0219] Construction module 1140, when the authentication is passed, constructs a second authentication transaction record for the authentication information and uploads the second authentication transaction record to the blockchain.
[0220] The edge computing terminal authentication system based on blockchain in the embodiment of the present invention makes full use of the sharing characteristics of blockchain data. Any edge node can obtain the authentication transaction record of the terminal from the local blockchain account book, and use the authentication transaction record to authenticate the authentication information to achieve terminal authentication during the mobile process. The embodiment of the present invention utilizes the unforgeability of blockchain to improve the reliability of terminal authentication, and saves the complexity of the terminal authentication link and the efficiency of terminal authentication while saving the central node.
[0221] Optionally, the authentication module 1120 is specifically used for:
[0222] By extracting the authenticated token from the first authentication transaction record, the authentication token authentication mechanism is used to authenticate the legitimacy of the authentication information;
[0223] When the legality authentication is passed, the first authentication transaction record is used to perform terminal identity authentication on the information to be authenticated.
[0224] Optionally, the authentication module 1120 is further configured to:
[0225] Obtain a hash value of the token to be authenticated from the information to be authenticated;
[0226] Perform hash calculation on the authenticated token to obtain a hash value of the authenticated token;
[0227] The hash value of the authenticated token is compared with the hash value of the token to be authenticated, and if the comparison passes, the legitimacy authentication is confirmed to be passed.
[0228] Optionally, the authentication module 1120 is further configured to:
[0229] Generate a target authentication code using the shared key of the terminal stored in the first authentication transaction record, the identity authentication domain value, and the random number provided by the terminal in the information to be authenticated;
[0230] Compare the target authentication code with the authentication code to be authenticated provided by the terminal through the transaction information to be processed, and use the comparison result as the identity authentication result;
[0231] The authentication code to be authenticated is generated by the terminal using the shared key, identity authentication domain value and random number stored in the terminal.
[0232] Optionally, with Fig.11 compared to, Fig.12 The blockchain-based edge computing terminal authentication system also includes:
[0233] The data concatenation module 1210, when the authentication is passed, concatenates the identification information of the edge node, the identification information of the terminal, the shared key of the terminal stored in the first authentication transaction record, and the random number provided by the terminal in the information to be authenticated to obtain concatenated data;
[0234] The encryption module 1220 encrypts the concatenated data using the edge node's own private key, obtains a new authentication token, generates a new authentication token, and performs hash calculation on the new authentication token to obtain a hash value of the new authentication token;
[0235] The sending module 1230 is specifically used for:
[0236] Sending authentication pass information and a hash value of the new authentication token to the terminal;
[0237] The building block 1240 is specifically used for:
[0238] A second authentication transaction record is constructed using the authentication information and the new authentication token.
[0239] Optionally, with Fig.11 compared to, Fig.13 The blockchain-based edge computing terminal authentication system also includes:
[0240] The identity authentication domain value generation module 1310 generates a new identity authentication domain value of the terminal when the authentication is successful;
[0241] The sending module 1320 is specifically used for:
[0242] Send the authentication pass information and the new identity authentication domain value to the terminal;
[0243] The construction module 1330 is specifically used for:
[0244] Construct a second authentication transaction record based on the authentication information and the new identity authentication domain value.
[0245] Optionally, refer to Fig.14 ,and Fig.11 compared to, Fig.14 The blockchain-based edge computing terminal authentication system also includes:
[0246] The service providing module 1410 provides business services to the terminal when the authentication is passed and the business demand information of the terminal is obtained.
[0247] Optionally, the service providing module 1410 is specifically used for:
[0248] By acquiring at least one of the authority and the credit level of the terminal from the first authentication record, a matching business service is provided to the terminal.
[0249] The embodiment of the present invention also provides a blockchain-based edge computing terminal authentication device, including a processor and a memory, in which executable instructions of the processor are stored. The processor is configured to execute the steps of the blockchain-based edge computing terminal authentication method by executing the executable instructions.
[0250] As shown above, a blockchain is constructed using edge nodes as blockchain nodes. When any edge node receives an authentication request from a terminal, it can obtain the first authentication transaction record of the terminal from the blockchain, and use the first authentication transaction record to authenticate the authentication information. When the authentication is successful, the authentication pass information is sent to the terminal, and a second authentication transaction record is constructed for the authentication information, and the second authentication transaction record is uploaded to the blockchain.
[0251] It will be appreciated by those skilled in the art that various aspects of the present invention may be implemented as systems, methods or program products. Therefore, various aspects of the present invention may be specifically implemented in the following forms, namely: complete hardware implementation, complete software implementation (including firmware, microcode, etc.), or a combination of hardware and software implementations, which may be collectively referred to herein as "circuits", "modules" or "platforms".
[0252] Fig.15 Schematic diagram of the structure of the electronic device of the present invention. Fig.15 15 to 16. An electronic device 1500 according to this embodiment of the present invention is described. Fig.15 The electronic device 1500 shown is merely an example and should not limit the functions and scope of use of the embodiments of the present invention.
[0253] like Fig.15 As shown, the electronic device 1500 is in the form of a general computing device. The components of the electronic device 1500 may include, but are not limited to: at least one processing unit 1510, at least one storage unit 1520, a bus 1530 connecting different platform components (including the storage unit 1520 and the processing unit 1510), a display unit 1540, etc.
[0254] The storage unit stores program codes, which can be executed by the processing unit 1510, so that the processing unit 1510 executes the steps of various exemplary embodiments of the present invention described in the electronic prescription circulation processing method section of this specification. For example, the processing unit 1710 can execute the following steps: Figure 2-6 The steps shown in any of the accompanying drawings.
[0255] The storage unit 1520 may include a readable medium in the form of a volatile storage unit, such as a random access memory unit (RAM) 1521 and / or a cache memory unit 1522 , and may further include a read-only memory unit (ROM) 1523 .
[0256] The storage unit 1520 may also include a program / utility 1524 having a set (at least one) of program modules 1525, such program modules 1525 including but not limited to: a processing system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment.
[0257] Bus 1530 may represent one or more of several types of bus structures, including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.
[0258] The electronic device 1500 may also communicate with one or more external devices 1600 (e.g., keyboards, pointing devices, Bluetooth devices, etc.), may communicate with one or more devices that enable a user to interact with the electronic device 1500, and / or may communicate with any device that enables the electronic device 1500 to communicate with one or more other computing devices (e.g., routers, modems, etc.). Such communication may be performed via an input / output (I / O) interface 1750. Furthermore, the electronic device 1500 may also communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) via a network adapter 1560. The network adapter 1560 may communicate with other modules of the electronic device 1500 via the bus 1530. It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in conjunction with the electronic device 1500, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage platforms.
[0259] The embodiment of the present invention also provides a computer-readable storage medium for storing a program, and the steps of the edge computing terminal authentication method based on blockchain are implemented when the program is executed. In some possible implementations, various aspects of the present invention can also be implemented in the form of a program product, which includes a program code. When the program product is run on a terminal device, the program code is used to enable the terminal device to execute the steps of various exemplary embodiments of the present invention described in the above edge computing terminal authentication method section of this specification.
[0260] The program product for implementing the above method according to an embodiment of the present invention may adopt a portable compact disk read-only memory (CD-ROM) and include program code, and may be run on a terminal device, such as a personal computer. However, the program product of the present invention is not limited thereto, and in this document, a readable storage medium may be any tangible medium containing or storing a program, which may be used by or in combination with an instruction execution system, apparatus, or device.
[0261] The program product may use any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of readable storage media (a non-exhaustive list) include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.
[0262] Computer readable storage media may include data signals propagated in baseband or as part of a carrier wave, wherein readable program codes are carried. Such propagated data signals may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. The readable storage medium may also be any readable medium other than a readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, device, or device. The program codes contained on the readable storage medium may be transmitted using any suitable medium, including but not limited to wireless, wired, optical cable, RF, etc., or any suitable combination thereof.
[0263] Program code for performing the processes of the present invention may be written in any combination of one or more programming languages, including object-oriented programming languages such as Java, C++, and the like, as well as conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a separate software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (e.g., through the Internet using an Internet service provider).
[0264] In summary, the purpose of the present invention is to provide an edge computing terminal authentication method, system and device based on blockchain, which makes full use of the sharing characteristics of blockchain data. Any edge node can obtain the authentication transaction record of the terminal from the local blockchain account book, and use the authentication transaction record to authenticate the authentication information to achieve terminal authentication during the mobile process. The embodiment of the present invention utilizes the unforgeability of blockchain to improve the reliability of terminal authentication, and saves the complexity of the terminal authentication link and the efficiency of terminal authentication while saving the central node.
[0265] The above contents are further detailed descriptions of the present invention in combination with specific preferred embodiments, and it cannot be determined that the specific implementation of the present invention is limited to these descriptions. For ordinary technicians in the technical field to which the present invention belongs, several simple deductions or substitutions can be made without departing from the concept of the present invention, which should be regarded as falling within the protection scope of the present invention.
Claims
1. A blockchain-based edge computing terminal authentication method, characterized in that: The blockchain network is constructed by edge nodes as blockchain nodes, and the edge computing terminal authentication method is applied to edge nodes, including: Receiving an authentication request from a terminal, the authentication request carrying information to be authenticated; In a case where a first authentication transaction record of the terminal is obtained from the blockchain using the identification information of the terminal, authenticating the information to be authenticated using the first authentication transaction record; If the authentication is successful, sending authentication success information to the terminal; If the authentication is successful, construct a second authentication transaction record for the information to be authenticated, and upload the second authentication transaction record to the blockchain; The step of authenticating the information to be authenticated by using the first authentication transaction record comprises the following steps: By extracting the authenticated token from the first authentication transaction record, the authentication token authentication mechanism is used to authenticate the legitimacy of the information to be authenticated; If the legality authentication is passed, using the first authentication transaction record to perform terminal identity authentication on the information to be authenticated; The use of an authentication token authentication mechanism to authenticate the legitimacy of the information to be authenticated specifically includes the following steps: Obtaining a hash value of the token to be authenticated from the information to be authenticated; Performing hash calculation on the authenticated token to obtain a hash value of the authenticated token; The hash value of the authenticated token is compared with the hash value of the token to be authenticated, and if the comparison passes, the legality authentication is confirmed to be passed.
2. The edge computing terminal authentication method based on blockchain according to claim 1 is characterized in that: The edge computing terminal authentication method further includes: If the authentication is successful, concatenate the identification information of the edge node, the identification information of the terminal, the shared key of the terminal stored in the first authentication transaction record, and the random number provided by the terminal in the information to be authenticated to obtain concatenated data; Encrypting the concatenated data using the edge node's own private key to obtain a new authentication token, and performing hash calculation on the new authentication token to obtain a hash value of the new authentication token; Sending authentication success information to the terminal includes: Sending authentication pass information and a hash value of the new authentication token to the terminal; Constructing a second authentication transaction record for the information to be authenticated, including: A second authentication transaction record is constructed for the information to be authenticated and the new authentication token.
3. The edge computing terminal authentication method based on blockchain according to claim 1 is characterized in that: Performing terminal identity authentication on the information to be authenticated using the first authentication transaction record includes: Generate a target authentication code using the shared key of the terminal stored in the first authentication transaction record, the identity authentication domain value, and the random number provided by the terminal in the information to be authenticated, wherein the identity authentication domain value is the authentication and authorization management domain value of the terminal; Compare the target authentication code with the authentication code to be authenticated provided by the terminal through the transaction information to be processed, and use the comparison result as the identity authentication result; The authentication code to be authenticated is generated by the terminal using the shared key, identity authentication domain value and the random number stored in the terminal.
4. The edge computing terminal authentication method based on blockchain according to claim 3 is characterized in that: The edge computing terminal authentication method based on blockchain also includes: If the authentication is successful, generating a new identity authentication domain value for the terminal; Sending authentication success information to the terminal includes: Sending authentication pass information and the new identity authentication domain value to the terminal; Constructing a second authentication transaction record for the information to be authenticated, including: A second authentication transaction record is constructed for the information to be authenticated and the new identity authentication domain value.
5. The edge computing terminal authentication method based on blockchain according to claim 1 is characterized in that: The edge computing terminal authentication method based on blockchain also includes: When the authentication is successful and the service requirement information of the terminal is obtained, the service is provided to the terminal.
6. The edge computing terminal authentication method based on blockchain according to claim 5 is characterized in that: Providing business services to the terminal, including: By acquiring at least one of the authority and credit rating of the terminal from the first authentication transaction record, matching business services are provided to the terminal.
7. A blockchain-based edge computing terminal authentication system, characterized in that: The blockchain network is constructed by edge nodes as blockchain nodes, and the edge computing terminal authentication system is applied to edge nodes, including: A receiving module receives an authentication request from a terminal, wherein the authentication request carries information to be authenticated; an authentication module, authenticating the information to be authenticated by using the first authentication transaction record, when obtaining a first authentication transaction record of the terminal from the blockchain by using the identification information of the terminal; A sending module, when the authentication is successful, sends authentication success information to the terminal; A generating module, when the authentication is passed, constructs a second authentication transaction record for the information to be authenticated, and uploads the second authentication transaction record to the blockchain; The authentication module also includes: A legality authentication module, extracting an authenticated token from the first authentication transaction record and using an authentication token authentication mechanism to authenticate the legality of the information to be authenticated; An identity authentication module, when the legitimacy authentication is passed, performs terminal identity authentication on the information to be authenticated using the first authentication transaction record; The legality authentication module is specifically used for: Obtaining a hash value of the token to be authenticated from the information to be authenticated; Performing hash calculation on the authenticated token to obtain a hash value of the authenticated token; The hash value of the authenticated token is compared with the hash value of the token to be authenticated, and if the comparison passes, the legality authentication is confirmed to be passed.
8. The edge computing terminal authentication system based on blockchain according to claim 7 is characterized in that: The identity authentication module is specifically used for: Generate a target authentication code using the shared key of the terminal stored in the first authentication transaction record, the identity authentication domain value, and the random number provided by the terminal in the information to be authenticated, wherein the identity authentication domain value is the authentication and authorization management domain value of the terminal; Compare the target authentication code with the authentication code to be authenticated provided by the terminal through the transaction information to be processed, and use the comparison result as the identity authentication result; The authentication code to be authenticated is generated by the terminal using the shared key, identity authentication domain value and the random number stored in the terminal.
9. A blockchain-based edge computing terminal authentication system, characterized in that: The blockchain network is constructed by using edge nodes as blockchain nodes, and the edge computing terminal authentication system includes: The terminal sends a terminal authentication request carrying the information to be authenticated to the edge node; The edge node receives the terminal authentication request, obtains the authentication transaction record of the terminal from the blockchain using the identification information of the terminal, authenticates the information to be authenticated using the authentication transaction record, and sends authentication pass information to the terminal if the authentication passes, generates a new authentication transaction record for the information to be authenticated, and uploads the new authentication transaction record to the blockchain; The step of authenticating the information to be authenticated by using the authentication transaction record comprises the following steps: By extracting the authenticated token from the authentication transaction record, the authentication token authentication mechanism is used to authenticate the legitimacy of the information to be authenticated; In the case where the legality authentication is passed, using the authentication transaction record to perform terminal identity authentication on the information to be authenticated; The use of an authentication token authentication mechanism to authenticate the legitimacy of the information to be authenticated specifically includes the following steps: Obtaining a hash value of the token to be authenticated from the information to be authenticated; Performing hash calculation on the authenticated token to obtain a hash value of the authenticated token; The hash value of the authenticated token is compared with the hash value of the token to be authenticated, and if the comparison passes, the legality authentication is confirmed to be passed.
10. An edge computing terminal authentication device based on blockchain, characterized in that: include: processor; a memory storing executable instructions of the processor; Wherein, the processor is configured to perform the steps of the blockchain-based edge computing terminal authentication method described in any one of claims 1-6 by executing the executable instructions.
11. A computer-readable storage medium for storing a program, characterized in that: When the program is executed by a processor, the steps of the blockchain-based edge computing terminal authentication method described in any one of claims 1 to 6 are implemented.
Citation Information
Patent Citations
Identity authentication method and identity authentication device
CN106161032A
Business authentication method and system and computer readable storage medium
CN108234135A
Blockchain-based identity authentication method and related equipment
CN110177124A
Identity authentication method and device based on block chain
CN111753269A
Blockchain based authentication
US20200244464A1
