Identity authentication system and method based on block chain
Through the decentralized identity authentication system based on the blockchain, the FISCO BCOS alliance chain platform is used to solve the single point of failure and privacy data leakage problems of centralized identity authentication, achieving high performance, high scalability and higher security. , providing an easy-to-maintain identity authentication solution.
Patent Information
- Application Number
- CN202410832379.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-26
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2044-06-26
AI Technical Summary
Existing identity authentication technology has problems with centralized single points of failure and privacy data leakage, and it is difficult to maintain and provide a decentralized and reliable identity authentication system.
Adopting a decentralized identity authentication system based on the blockchain, through the non-tampering characteristics of the blockchain and the FISCO BCOS alliance chain platform, node identity registration, key management and access control are implemented, and user authentication and token authentication services are provided to ensure Security and reliability of identity authentication.
It achieves high performance, high scalability and higher security, avoids the risk of attacks from centralized servers, and provides an easy-to-maintain decentralized identity authentication system.
Smart Images

Figure CN118802335A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of identity authentication, and in particular to an identity authentication system and method based on blockchain. Background Art
[0002] In the current information society, all kinds of organizations will face the need to acquire, transmit, process, process and regenerate their own business information. At present, such needs are all met by using information systems. Through observation, it can be found that the various nodes responsible for acquiring, transmitting, processing, processing and regenerating in the information systems currently used by various organizations are generally not in the same position in space, but are scattered in the organizations in different regions of the organization. At the same time, these information nodes and the information relationships between them constitute the network information system of the organization. Then, when the nodes or information relationships in the network information system of the organization must be converted or changed to meet certain needs, the information nodes will face the problem of re-accessing the network information system and establishing information relationships with other nodes.
[0003] Identity authentication is an important security mechanism to ensure information security. Identity authentication technology refers to the process and method of identifying and auditing the executors on the Internet. Traditional identity authentication methods include local password authentication, where the user stores the pre-set password in the local terminal device; in contrast, remote password authentication, where the user sends the locally entered password to a remote centralized server for verification during authentication. In recent years, many new authentication methods have also emerged: 1) SMS verification. A random verification code is sent to the user in the form of a mobile phone text message, and the user enters this verification code during verification or transaction authentication to ensure the correctness of the system's identity authentication; 2) Dynamic password. The current mainstream is based on time synchronization. Every once in a while, the terminal application will randomly generate a serial number as the user's verification password; 3) Biometrics. Biometrics refers to the relevant measurement of human characteristics. It is an emerging human identity recognition and access control method in computer science. This method uses sensors or inductors to obtain the physiological or behavioral characteristics of organisms, and further converts them into serialized information for verification. Human biometrics include physiological characteristics and behavioral characteristics. Physiological characteristics are related to physical measurements of the body, such as fingerprints, palm veins, and facial recognition; behavioral characteristics are related to human behavior patterns, including gait, signature, etc. However, for any of the above verification schemes, passwords or user biometric information need to be stored in the local terminal or remote server. Once these authentication information is intercepted during transmission or the centralized server is attacked, the attacker can forge the user's identity to conduct a deception attack, ultimately leading to the leakage of user privacy and the loss of assets.
[0004] The identity authentication based on Public Key Infrastructure (PKI) disclosed in the prior art is a relatively mature and widely used authentication technology. It binds the user's public key and user identity in the form of a public key certificate. However, PKI introduces a trusted third party CA for identity authentication, which brings the cost of certificate management, storage and calculation. The problem of large-scale key management is generally to use the method of physically adding CAs, and there are also problems of cross-certification and trust management between users of each CA. Crashing the provider's central server is the main goal of hackers, so user data is vulnerable to hacker attacks. In a distributed environment, in order to facilitate user management, each organization sets up an authentication server to form a relatively independent trust domain. However, a single independent trust domain cannot provide multiple services, and users need multi-domain access, which has a cross-domain authentication problem. Therefore, based on the above-mentioned identity authentication mechanism, there are problems that are difficult to maintain and the centralized server is vulnerable to attacks. Therefore, how to provide a decentralized, reliable and easy-to-maintain identity authentication system is a problem that needs to be solved urgently. Summary of the invention
[0005] In response to the above-mentioned problems, the present invention proposes a blockchain-based identity authentication system and method, which utilizes the decentralized structure and tamper-proof characteristics of blockchain to solve the potential centralized single point failure problems and privacy data leakage problems in traditional identity management mechanisms.
[0006] In order to achieve the above object, the technical solution adopted by the present invention is as follows:
[0007] A blockchain-based identity authentication system, characterized in that the system is composed of an application layer, a business layer, a service layer, a data layer and a basic layer from top to bottom, wherein:
[0008] The application layer is mainly used for business logic processing, operating data at the front end, and dynamically displaying data in a visual way;
[0009] The business layer is used to provide the algorithms required for business implementation, complete business functions through relevant algorithms, and interact with the data layer and application layer;
[0010] The service layer is used to provide reusable services;
[0011] The data layer is used for data storage and access, and realizes data synchronization between blockchain data and MySQL database. The blockchain data includes node data, authorization data, transaction records, and access records. The data in MySQL database includes basic data and business data.
[0012] The basic layer is used to provide the infrastructure for system operation.
[0013] Furthermore, the services provided by the service layer include blockchain services, authentication services, and access control restriction services;
[0014] Blockchain services include basic services, key services, committee voting services, alliance node management, and smart contract related services;
[0015] The authentication service includes user authentication service and token authentication service.
[0016] Furthermore, the application layer includes:
[0017] The data dashboard module is used to monitor the relationship status of each business terminal, server operation resources and blockchain operation;
[0018] The data operation module is used to provide a management interface for various functional services on the control end.
[0019] Furthermore, the business layer includes:
[0020] The system node management module is used to call the blockchain to add, modify, and deactivate the basic information, firmware information, and identity identification of each node terminal to complete node identity registration;
[0021] Business relationship management module, used to create transaction to-dos for each front-end node;
[0022] The access control proxy module is a middleware deployed in the application terminal, which is used to obtain the unique firmware information of the node, parse the identity key generated after the identity registration is completed when resetting or initializing the access control proxy module, configure it to the access control proxy module, and realize the long connection communication service with the control management end;
[0023] User management module, responsible for the basic management of system operation users and roles;
[0024] Access record query module, used to query the logs generated by system access;
[0025] Transaction record query module, used to query transaction records in the system;
[0026] Log management module, used for daily system operation and operation record management and query;
[0027] The permission management module is used to control the permissions of system users.
[0028] Further, the access control proxy module includes a node firmware information unit, a node identity setting unit, and a node connection service unit;
[0029] Node firmware information unit, used to obtain the hardware serial code of the information terminal and the unique information of the hardware;
[0030] A node identity setting unit, used to configure the identity key generated after the system node management module completes the identity registration;
[0031] The node connection service unit is used to communicate with the control management end through a long connection.
[0032] Furthermore, the service layer includes:
[0033] Blockchain service module, used to provide basic blockchain services;
[0034] Authentication service module, used to authenticate user information and token information;
[0035] The access control service module is used to actively cut off the communication connection between the two when the identity authentication of the user or the middleware fails.
[0036] Furthermore, the blockchain service module includes a blockchain basic service unit, a secret key service unit, a committee voting service unit, an alliance node management unit and a smart contract unit.
[0037] Furthermore, the authentication service module includes:
[0038] User authentication unit, used to identify, verify, and authenticate users who log into the system or middleware long connections;
[0039] The token authentication unit is used to perform anti-counterfeiting and anti-borrowing identification processing on all communications between users and middleware.
[0040] A blockchain-based identity authentication method, implemented based on the identity authentication system as claimed in claim 1, characterized in that it includes the following steps:
[0041] Step 1: Deploy the access control proxy service module to the business node;
[0042] Step 2: Obtain the unique firmware information of the service node through the access control proxy service module;
[0043] Step 3: Register the node identity with the system node management module of the control end according to the obtained firmware information;
[0044] Step 4: After receiving the identity registration request, the system node management module calls the blockchain's key service unit to generate the node's blockchain identity, associates the firmware information with the blockchain identity, and uses the blockchain basic service to store it in the blockchain to complete the node identity registration;
[0045] Step 5: The system node management module exports the identity key file of the business node and imports the identity key file into the access control proxy service module;
[0046] Step 6: After receiving the identity key import request, the access control proxy service module parses the ciphertext of the identity key file according to the firmware information. If the parsing is successful, the key file is configured and the process goes to step 7. If not, it means that the key is invalid and the authentication process is terminated.
[0047] Step 7: The access control proxy service module automatically initiates a long connection to establish communication with the control end and sends a request message;
[0048] Step 8: After receiving the communication request, the control end calls the authentication service module to authenticate the identity carried in the request; if the authentication succeeds, it proceeds to step 9; if the authentication fails, it means that the identity is invalid, and the access control service module actively disconnects the long connection communication and terminates the authentication process;
[0049] Step 9: The control end calls the blockchain service to query the middleware firmware information according to the identity. If the query is successful, it goes to step 10. If the query fails, it means that the identity is invalid, and the access control service module actively disconnects the long connection communication and terminates the authentication process;
[0050] Step 10: The control end decrypts the communication content according to the firmware information and the identity key of the access control proxy service module. If the decryption is successful, it proceeds to step 11. If the decryption fails, it means that the identity has been misused. The access control service module actively disconnects the long connection communication and terminates the authentication process.
[0051] Step 11: If the communication content is decrypted successfully, the token authentication is passed.
[0052] The beneficial effects of the present invention are:
[0053] The identity recognition system designed by the present invention adopts the FISCO BCOS blockchain platform as the underlying technical support to realize the access identity recognition of business applications, and has the characteristics of high performance, high scalability, higher security and credibility. BRIEF DESCRIPTION OF THE DRAWINGS
[0054] Figure 1 A data block structure diagram suitable for identity authentication;
[0055] Figure 2 This is a diagram of the architecture of the identity authentication system proposed by the present invention;
[0056] Figure 3 This is a flow chart of identity registration of the identity authentication method proposed by the present invention;
[0057] Figure 4A flow chart is provided for establishing the information relationship of the identity authentication method proposed in the present invention. DETAILED DESCRIPTION
[0058] In order to enable those skilled in the art to better understand the technical solution of the present invention, the technical solution of the present invention is further described below in conjunction with the accompanying drawings and embodiments.
[0059] The present invention proposes an identity authentication system and method based on blockchain technology. Firstly, a data block structure suitable for identity authentication is established.
[0060] 1. Based on the data block structure
[0061] like Figure 1 As shown, blockchain technology is a technology based on decentralized and distributed ledgers, which has the characteristics of being tamper-proof, decentralized, and highly reliable. The present invention adopts FISCO BCOS alliance chain, which is an enterprise-level alliance chain platform based on blockchain technology. It is the first open source blockchain platform in China, which has the characteristics of high efficiency, security, easy development, and easy expansion. It has the following advantages:
[0062] (1) High performance: Fisco BCOS adopts an asynchronous network communication model with high concurrent processing capabilities and low latency characteristics, which can meet the needs of large-scale identity authentication.
[0063] (2) High scalability: Fisco BCOS supports horizontal expansion and can automatically complete load balancing and data sharding when the number of cluster nodes increases.
[0064] (3) Support for national encryption algorithms: Fisco BCOS uses national encryption algorithms, which have higher security and credibility.
[0065] The overall identity recognition system is divided into three parts: the blockchain platform, the business system node control end (hereinafter referred to as the control end), and the business system node front-end (hereinafter referred to as the front-end).
[0066] 2. Identity authentication system based on blockchain technology
[0067] Combination Figure 2 ,The present invention proposes an identity authentication system based on blockchain, which includes an application layer, a business layer, a service layer, a data layer, and a basic layer from top to bottom;
[0068] Application layer: mainly responsible for specific business logic processing, operating data at the front end, and realizing dynamic display of data in a visual way;
[0069] Business layer: provides algorithms and calculation processes for business functions such as system node management, business relationship management, access control agent, user management, access record query, transaction record query, log management, and permission management, and interacts with the data layer and application layer;
[0070] Service layer: mainly provides reusable services, including blockchain services, authentication services and access control restriction services; blockchain services include basic services, key services, committee voting services, alliance node management, and smart contract related services; authentication services include user authentication services and token authentication services;
[0071] Data layer: responsible for data storage and access, and realizing data synchronization between blockchain data and MySQL database; the blockchain data includes node data, authorization data, transaction records, and access records; the MySQL data in the MySQL database includes basic data and business data.
[0072] Basic layer: used to provide the infrastructure for system operation, such as computing servers, distributed storage, etc.
[0073] (1) Application layer
[0074] The application layer includes a data dashboard module and a data operation module;
[0075] The data dashboard module is responsible for monitoring the relationship status of each business terminal, server operation resources and blockchain operation;
[0076] The data operation module is used to provide a management interface for various functional services on the control end.
[0077] (2) Business layer
[0078] The business layer includes a system node management module, a business relationship management module, an access control proxy module, a user management module, an access record query module, a transaction record query module, a log management module, and a rights management module;
[0079] The system node management module is responsible for calling the blockchain to add, modify, and deactivate the basic information, firmware information, and identity identification of each node terminal, thereby realizing node identity registration;
[0080] The business relationship management module is responsible for creating transaction to-dos for each front-end node, such as creating new node business relationships, modifying node business relationships, adding configurations, and modifying configurations. After the front-end and the control end are connected and authenticated, the transactions are automatically matched and executed.
[0081] The access control proxy module is a middleware deployed on the application terminal, including node firmware information, node identity settings, node connection services and other units. It is responsible for obtaining the hardware serial codes such as CPU and MAC of the information terminal, as well as obtaining the unique hardware information such as the unique UID. When resetting or initializing the information middleware, it is responsible for parsing the identity key generated by the system node management module after completing the identity registration and configuring it to the middleware, as well as the long connection communication service with the control management end;
[0082] User management module is responsible for basic management capabilities such as system operation users and roles;
[0083] Access record query module, used to query the system's access record log;
[0084] Transaction record query module, used to query the transaction record log of the system;
[0085] The log management module is responsible for the daily operation of the system, operation records and other management queries;
[0086] The permission management module is responsible for the permission control of system users.
[0087] (3) Service Layer
[0088] The service layer includes blockchain service, authentication service, and access control service modules;
[0089] The blockchain service consists of a blockchain basic service unit, a secret key service unit, a committee voting service unit, an alliance node management unit, and a smart contract unit; the blockchain service is a general blockchain capability, and the present invention adopts the FISCOBCOS alliance chain;
[0090] The authentication service consists of a user authentication unit and a token authentication unit, and
[0091] The user authentication unit is responsible for identifying, verifying, and authenticating users who log into the system or middleware long connections;
[0092] The token authentication unit is responsible for anti-counterfeiting and anti-borrowing identification of all communications between users and middleware;
[0093] The access control service module is responsible for actively cutting off the communication connection when the identity authentication of the user or middleware fails.
[0094] 3. Identity Authentication Method of Blockchain-Based Identity Authentication System
[0095] like Figure 3-4 The present invention also proposes an identity authentication method based on the above identity authentication system, which comprises the following steps:
[0096] Step 1: Deploy the access control proxy service module (middleware) to the business node;
[0097] Step 2: Obtain the unique firmware information (CPU sn, MACsn, UID, etc.) of the service node through the access control proxy service module;
[0098] Step 3: Register the node identity with the system node management module of the control end according to the firmware information obtained in step 2;
[0099] Step 4: After receiving the identity registration request, the system node management module calls the blockchain's key service unit to generate the node's blockchain identity, associates the firmware information with the blockchain identity, and uses the blockchain basic service to store it in the blockchain to complete the node identity registration;
[0100] Step 5: The system node management module exports the identity key file of the business node (the content of the key file is the ciphertext of the blockchain identity of the node after the firmware information of the business node is spliced and the middle bits are taken to add salt and encrypt), and imports the identity key file into the access control proxy service module (middleware);
[0101] Step 6: After receiving the identity key import request, the access control proxy service module parses the ciphertext of the identity key file according to the firmware information. If the parsing is successful, the key file is configured and the process goes to step 7. If not, it means that the key is invalid and the authentication process is terminated.
[0102] Step 7: The access control proxy service module automatically initiates a long connection to establish communication with the control end and sends a request message (including heartbeat, business message, etc.);
[0103] Step 8: After receiving the communication request, the control end calls the authentication service module to authenticate the identity (user) carried in the request; if the authentication succeeds, it proceeds to step 9; if the authentication fails, it means that the identity is invalid, and the access control service module actively disconnects the long connection communication and terminates the authentication process;
[0104] Step 9: The control end calls the blockchain service to query the middleware firmware information according to the identity. If the query is successful, it goes to step 10. If the query fails, it means that the identity is invalid, and the access control service module actively disconnects the long connection communication and terminates the authentication process;
[0105] Step 10: The control end decrypts the communication content according to the firmware information and the identity key of the access control proxy service module. If the decryption is successful, it proceeds to step 11. If the decryption fails, it means that the identity has been misused. The access control service module actively disconnects the long connection communication and terminates the authentication process.
[0106] Step 11: If the communication content is decrypted successfully, the token authentication is passed.
[0107] The above shows and describes the basic principles, main features and advantages of the present invention. It should be understood by those skilled in the art that the present invention is not limited to the above embodiments, and the above embodiments and descriptions are only for explaining the principles of the present invention. Without departing from the spirit and scope of the present invention, the present invention may have various changes and improvements, which fall within the scope of the present invention to be protected. The scope of protection of the present invention is defined by the attached claims and their equivalents.
Claims
1. A blockchain-based identity authentication system, It is characterized in that From top to bottom, the system consists of the application layer, business layer, service layer, data layer and basic layer, among which: The application layer is mainly used for business logic processing, operating data at the front end, and dynamically displaying data in a visual way; The business layer is used to provide the algorithms required for business implementation, complete business functions through relevant algorithms, and interact with the data layer and application layer; The service layer is used to provide reusable services; The data layer is used for data storage and access, and realizes data synchronization between blockchain data and MySQL database. The blockchain data includes node data, authorization data, transaction records, and access records. The data in MySQL database includes basic data and business data. The basic layer is used to provide the infrastructure for system operation.
2. A blockchain-based identity authentication system as claimed in claim 1, It is characterized in that The services provided by the service layer include blockchain services, authentication services, and access control restriction services; Blockchain services include basic services, key services, committee voting services, alliance node management, and smart contract related services; The authentication service includes user authentication service and token authentication service.
3. A blockchain-based identity authentication system as claimed in claim 1, It is characterized in that The application layer includes: The data dashboard module is used to monitor the relationship status of each business terminal, server operation resources and blockchain operation; The data operation module is used to provide a management interface for various functional services on the control end.
4. A blockchain-based identity authentication system as claimed in claim 1, It is characterized in that The business layer includes: The system node management module is used to call the blockchain to add, modify, and deactivate the basic information, firmware information, and identity identification of each node terminal to complete node identity registration; Business relationship management module, used to create transaction to-dos for each front-end node; The access control proxy module is a middleware deployed in the application terminal, which is used to obtain the unique firmware information of the node, parse the identity key generated after the identity registration is completed when resetting or initializing the access control proxy module, configure it to the access control proxy module, and realize the long connection communication service with the control management end; User management module, responsible for the basic management of system operation users and roles; Access record query module, used to query the logs generated by system access; Transaction record query module, used to query transaction records in the system; Log management module, used for daily system operation and operation record management and query; The permission management module is used to control the permissions of system users.
5. A blockchain-based identity authentication system as claimed in claim 3, It is characterized in that The access control proxy module includes a node firmware information unit, a node identity setting unit, and a node connection service unit; Node firmware information unit, used to obtain the hardware serial code of the information terminal and the unique information of the hardware; A node identity setting unit, used to configure the identity key generated after the system node management module completes the identity registration; The node connection service unit is used to communicate with the control management end through a long connection.
6. A blockchain-based identity authentication system as claimed in claim 1, It is characterized in that The service layer includes: Blockchain service module, used to provide basic blockchain services; Authentication service module, used to authenticate user information and token information; The access control service module is used to actively cut off the communication connection between the two when the identity authentication of the user or the middleware fails.
7. A blockchain-based identity authentication system as claimed in claim 5, It is characterized in that The blockchain service module includes a blockchain basic service unit, a secret key service unit, a committee voting service unit, an alliance node management unit and a smart contract unit.
8. The blockchain-based identity authentication system as claimed in claim 5, It is characterized in that The authentication service module includes: User authentication unit, used to identify, verify, and authenticate users who log into the system or middleware long connections; The token authentication unit is used to perform anti-counterfeiting and anti-borrowing identification processing on all communications between users and middleware.
9. A blockchain-based identity authentication method, implemented based on the identity authentication system as claimed in claim 1, It is characterized in that The following steps are involved: Step 1: Deploy the access control proxy service module to the business node; Step 2: Obtain the unique firmware information of the service node through the access control proxy service module; Step 3: Register the node identity with the system node management module of the control end according to the obtained firmware information; Step 4: After receiving the identity registration request, the system node management module calls the blockchain's key service unit to generate the node's blockchain identity, associates the firmware information with the blockchain identity, and uses the blockchain basic service to store it in the blockchain to complete the node identity registration; Step 5: The system node management module exports the identity key file of the business node and imports the identity key file into the access control proxy service module; Step 6: After receiving the identity key import request, the access control proxy service module parses the ciphertext of the identity key file according to the firmware information. If the parsing is successful, the key file is configured and the process goes to step 7. If not, it means that the key is invalid and the authentication process is terminated. Step 7: The access control proxy service module automatically initiates a long connection to establish communication with the control end and sends a request message; Step 8: After receiving the communication request, the control end calls the authentication service module to authenticate the identity carried in the request; If the authentication succeeds, go to step 9. If the authentication fails, it means that the identity is invalid, and the access control service module actively disconnects the long connection communication and terminates the authentication process. Step 9: The control end calls the blockchain service to query the middleware firmware information according to the identity. If the query is successful, it goes to step 10. If the query fails, it means that the identity is invalid, and the access control service module actively disconnects the long connection communication and terminates the authentication process; Step 10: The control end decrypts the communication content according to the firmware information and the identity key of the access control proxy service module. If the decryption is successful, it proceeds to step 11. If the decryption fails, it means that the identity has been misused. The access control service module actively disconnects the long connection communication and terminates the authentication process. Step 11: If the communication content is decrypted successfully, the token authentication is passed.
Citation Information
Patent Citations
Identity authentication system based on block chain technology and implementation method thereof
CN111538790A
Internet of vehicles identity management system and management method based on block chain and identification password
CN114125773A
Industrial internet cross-domain authentication method based on block chain and Handle identifier
CN114629720A
Identity authentication method based on block chain
CN115051848A
Identity authentication method, system and device based on block chain and storage medium
CN116248368A
