Blockchain-based login authentication methods, devices, equipment, and storage media

By using blockchain technology for identity authentication and platform relationship judgment contracts, automated login authentication is achieved during application software redirection, solving the problem of complex login steps in existing technologies, improving user experience and enhancing security.

CN117614704BActive Publication Date: 2026-11-17CHINA MOBILE GROUP JIANGSU +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311610327.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-11-28
Publication Date
2026-11-17
Estimated Expiration
2043-11-28

AI Technical Summary

Technical Problem

The login and authentication process in existing applications is complicated and results in a poor user experience. In particular, when users forget their account and password data, they need to search for it via SMS or manual means, which is cumbersome and time-consuming.

Method used

The login authentication method adopts a blockchain-based approach. Through a main chain and side chain architecture, it utilizes identity authentication and authorization contracts and platform relationship judgment contracts to achieve automated identity and platform authentication. It directly returns the application interface of the target application platform to the user, avoiding the need for the user to manually enter account and password data.

Benefits of technology

It improved the user experience, simplified the login process, reduced the risk of data leakage, and enhanced the security and efficiency of the authentication process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117614704B_ABST
    Figure CN117614704B_ABST
Patent Text Reader

Abstract

This invention discloses a blockchain-based login authentication method, apparatus, device, and storage medium. The method is applied to a blockchain platform comprising at least one main chain and several side chains, and is executed by the main chain. The method includes: obtaining an identity authentication result, user identity data, and platform data sent by a first side chain; the identity authentication result is obtained by the first side chain after authenticating a received application redirection request; the application redirection request is triggered by a target user clicking on a function redirection interface corresponding to a second application platform within a first application platform belonging to the first side chain; performing platform relationship authentication based on the user identity data and platform data; and after successful authentication, sending the identity authentication result and user identity data to a second side chain corresponding to the second application platform for login authentication. This invention, by introducing a main-side chain blockchain architecture, enables automatic login authentication when a user triggers an application redirection request on the first application platform, thereby improving the user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of blockchain technology, and in particular to a blockchain-based login authentication method, apparatus, device, and storage medium. Background Technology

[0002] To meet users' product consumption needs and attract traffic, operators often embed or integrate the functional interfaces of other applications into one of their own applications.

[0003] However, users cannot directly use the functions of other applications through one application. When switching to another application, users still need to log in and authenticate. Furthermore, if users do not remember their account and password during the login authentication process of another application, the software switch cannot be completed. In other words, the existing application switching process has the problem of complicated login authentication steps and poor user experience. Summary of the Invention

[0004] The main objective of this invention is to provide a blockchain-based login authentication method, apparatus, device, and storage medium, aiming to solve the technical problems of complex login authentication steps and poor user experience during the redirection process of existing application software.

[0005] To achieve the above objectives, the present invention provides a blockchain-based login authentication method. This method is applied to a blockchain platform comprising at least one main chain and several side chains, and is executed by the main chain. The method includes:

[0006] Obtain the identity authentication result, user identity data, and platform data sent by the first sidechain. The identity authentication result is obtained by the first sidechain after authenticating the received application jump request. The application jump request is triggered by the target user clicking the function jump interface corresponding to the second application platform in the first application platform to which the first sidechain belongs.

[0007] Platform relationship authentication is performed based on the user identity data and the platform data;

[0008] After successful authentication, the identity authentication result and the user identity data are sent to the second sidechain corresponding to the second application platform for login authentication.

[0009] Optionally, when the first sidechain receives the application redirection request, it obtains the account password data and user identity data corresponding to the target user based on the application redirection request, obtains the local account password information corresponding to the user identity data through the identity authentication and authorization contract, and performs identity authentication based on the account password data and the local account password information.

[0010] Optionally, the platform relationship authentication includes: platform user authentication and platform mapping authentication; the step of performing platform relationship authentication based on the user identity data and the platform data includes:

[0011] The contract retrieves permission information and target platform information corresponding to the first application platform from the local database based on the platform relationship determination;

[0012] The platform relationship determination contract uses the user identity data and permission information to perform platform user authentication.

[0013] The contract is determined by the platform relationship and is authenticated by platform mapping based on the platform data and the target platform information.

[0014] Optionally, the target platform information includes platform embedding relationship information, and the step of determining the platform mapping authentication of the contract based on the platform data and the target platform information through the platform relationship includes:

[0015] The platform relationship determination contract performs platform mapping authentication between the first application platform and the second application platform based on the platform embedded relationship information and the platform data.

[0016] Optionally, the target platform information further includes the correspondence information between the platform and the sidechain; the step of determining the platform mapping authentication of the contract based on the platform data and the target platform information through the platform relationship further includes:

[0017] The platform relationship determination contract performs platform mapping authentication between the first application platform and the second application platform based on the platform embedded relationship information and the platform data.

[0018] Optionally, the second sidechain performs login authentication based on the identity authentication result and the user identity data through the identity authentication and authorization contract.

[0019] Optionally, after sending the identity authentication result and the user identity data to the second sidechain corresponding to the second application platform for login authentication, the method further includes:

[0020] If login authentication is successful, the application interface of the second application platform will be displayed on the first application platform.

[0021] Furthermore, to achieve the above objectives, the present invention also proposes a blockchain-based login authentication device, which includes:

[0022] The first data transmission module is used to obtain the identity authentication result, user identity data and platform data sent by the first side chain. The identity authentication result is obtained by the first side chain after authenticating the received application jump request. The application jump request is triggered by the target user clicking the function jump interface corresponding to the second application platform in the first application platform to which the first side chain belongs.

[0023] The platform relationship authentication module is used to perform platform relationship authentication based on the user identity data and the platform data.

[0024] The second data transmission module is used to send the identity authentication result and the user identity data to the second sidechain corresponding to the second application platform for login authentication after successful authentication.

[0025] Furthermore, to achieve the above objectives, the present invention also proposes a blockchain-based login authentication device, the device comprising: a memory, a processor, and a blockchain-based login authentication program stored in the memory and executable on the processor, the blockchain-based login authentication program being configured to implement the steps of the blockchain-based login authentication method described above.

[0026] Furthermore, to achieve the above objectives, the present invention also proposes a storage medium storing a blockchain-based login authentication program, wherein when the blockchain-based login authentication program is executed by a processor, it implements the steps of the blockchain-based login authentication method described above.

[0027] This invention discloses a blockchain-based login authentication method, apparatus, device, and storage medium. The method includes: acquiring an identity authentication result, user identity data, and platform data sent by a first sidechain. The identity authentication result is obtained by the first sidechain after authenticating a received application redirection request. The application redirection request is triggered by a target user clicking on a function redirection interface corresponding to a second application platform within a first application platform belonging to the first sidechain. Upon receiving the application redirection request, the first sidechain acquires the target user's account password data and user identity data based on the request, and obtains local account password information corresponding to the user identity data through an identity authentication and authorization contract. Identity authentication is then performed based on the account password data and local account password information. Platform relationship authentication is performed based on the user identity data and platform data. After successful authentication, the identity authentication result and user identity data are sent to a second sidechain corresponding to the second application platform for login authentication. The second sidechain performs login authentication based on the identity authentication result and user identity data through an identity authentication and authorization contract. If login authentication is successful, the application interface of the second application platform is returned to the first application platform. This invention links various application platforms through a main-sidechain blockchain architecture. Platform relationship authentication is completed via the main chain, and identity authentication is performed via the sidechain. Upon successful login, the user is directly redirected to the application interface of the second application platform, thus automatically authenticating login when the user triggers an application redirect, thereby improving user experience. Simultaneously, this invention avoids the need for users to manually input their account and password data multiple times, reducing the risk of data leakage. Furthermore, it uses an identity authentication contract to verify the user's identity, ensuring that the user initiating the redirection request is a trusted user, and also uses the identity authentication contract to authenticate the target user's login on the second application platform, thereby enhancing the security of the authentication process. Attached Figure Description

[0028] Figure 1 This is a schematic diagram of the structure of a blockchain-based login authentication device in the hardware operating environment involved in the embodiments of the present invention;

[0029] Figure 2 This is a schematic diagram of the first process of the first embodiment of the blockchain-based login authentication method of the present invention;

[0030] Figure 3 This is a schematic diagram of the second process of the first embodiment of the blockchain-based login authentication method of the present invention;

[0031] Figure 4 This is a schematic diagram of the first process of the second embodiment of the blockchain-based login authentication method of the present invention;

[0032] Figure 5 This is a schematic diagram of the second process of the second embodiment of the blockchain-based login authentication method of the present invention;

[0033] Figure 6 This is a schematic diagram of the third process of the second embodiment of the blockchain-based login authentication method of the present invention;

[0034] Figure 7 This is a structural block diagram of the first embodiment of the blockchain-based login authentication device of the present invention.

[0035] The realization of the objective, functional features and advantages of the present invention will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. Detailed Implementation

[0036] It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.

[0037] Reference Figure 1 , Figure 1 This is a schematic diagram of the hardware operating environment of the blockchain-based login authentication device involved in the embodiments of the present invention.

[0038] like Figure 1 As shown, the blockchain-based login authentication device may include: a processor 1001, such as a central processing unit (CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. The communication bus 1002 is used to enable communication between these components. The user interface 1003 may include a display screen or an input unit such as a keyboard; optionally, the user interface 1003 may also include a standard wired interface or a wireless interface. The network interface 1004 may optionally include a standard wired interface or a wireless interface (such as a Wireless-Fidelity (Wi-Fi) interface). The memory 1005 may be high-speed random access memory (RAM) or stable non-volatile memory (NVM), such as a disk drive. The memory 1005 may also optionally be a storage device independent of the aforementioned processor 1001.

[0039] Those skilled in the art will understand that Figure 1 The structure shown does not constitute a limitation on blockchain-based login authentication devices and may include more or fewer components than shown, or combine certain components, or have different component arrangements.

[0040] like Figure 1 As shown, the memory 1005, which serves as a storage medium, may include an operating system, a data storage module, a network communication module, a user interface module, and a blockchain-based login authentication program.

[0041] exist Figure 1 In the blockchain-based login authentication device shown, the network interface 1004 is mainly used for data communication with the network server; the user interface 1003 is mainly used for data interaction with the user; the processor 1001 and the memory 1005 in the blockchain-based login authentication device of the present invention can be set in the blockchain-based login authentication device, and the blockchain-based login authentication device calls the blockchain-based login authentication program stored in the memory 1005 through the processor 1001 and executes the blockchain-based login authentication method provided in the embodiment of the present invention.

[0042] This invention provides a blockchain-based login authentication method, referring to... Figure 2 , Figure 2 This is a schematic diagram of the first process of the first embodiment of the blockchain-based login authentication method of the present invention.

[0043] Understandably, there are currently two common methods for app redirection: one is to directly redirect to the embedded app for functionality; the other is to log in using the embedded app's username and password. However, since users typically register different usernames and passwords for different apps, both methods require re-login to the embedded app during the redirection process. This forces users to recall their username and password, and if forgotten, requires retrieval via SMS or manual verification. This cumbersome and time-consuming process negatively impacts the user experience.

[0044] To address the aforementioned issues, this embodiment proposes a blockchain-based login authentication method. In this embodiment, the method is applied to a blockchain platform comprising at least one main chain and several side chains. The blockchain-based login authentication method includes the following steps:

[0045] Step S10: Obtain the identity authentication result, user identity data and platform data sent by the first sidechain. The identity authentication result is obtained by the first sidechain after authenticating the received application jump request. The application jump request is triggered by the target user clicking the function jump interface corresponding to the second application platform in the first application platform to which the first sidechain belongs.

[0046] It should be noted that the executing entity of the method in this embodiment can be the aforementioned main chain. In this embodiment, the blockchain platform can store account information and authenticate user information for various application platforms (or software platforms) under the operator based on the aforementioned main-side chain structure. Specifically, this embodiment can construct corresponding side chains for different platforms. Each side chain can be used to store the user's identity data and account password data on the corresponding platform, and perform initial identity authentication on the user based on the stored identity data and account password data.

[0047] It is understood that each sidechain may contain multiple nodes, and any node may be connected to the corresponding application platform. In this embodiment, each node in the first sidechain is connected to the first application platform. Furthermore, the display interface of the first application platform may show some functional modules or interfaces of the second application platform. When a user clicks a function button of the second application platform in the display interface of the first application platform (i.e., a function jump interface built into or embedded in the first application platform corresponding to the second application platform), the first application platform receives the corresponding application jump request. The server corresponding to the first application platform then forwards the application jump request to the first sidechain (the corresponding node), so that the first sidechain obtains the user identity information corresponding to the target user based on the application jump request, and performs identity authentication on the target user who triggered the application jump request.

[0048] It is easy to understand that the aforementioned user identity information may include the aforementioned user identity data, the aforementioned platform data, and the account password data corresponding to the target user. The first sidechain can then perform identity authentication based on this user identity information. Specifically, as one possible implementation, in this embodiment, when the first sidechain receives the application redirection request, it obtains the account password data and the user identity data corresponding to the target user based on the application redirection request, and obtains the local account password information corresponding to the user identity data through the identity authentication and authorization contract, and performs identity authentication based on the account password data and the local account password information.

[0049] It should be noted that when any node in the first sidechain of the blockchain platform receives an application redirection request, it can parse the application redirection request to obtain user identity data, account password data, and platform data, which include the target user's user identity data, account password data, and platform data. After reaching a consensus on the obtained user identity data, account password data, and platform data, the data is stored locally on all nodes of the first sidechain.

[0050] It is easy to understand that the aforementioned user identity data can be the target user's registered identity data in the first application platform, and this registered identity data has not been used to complete identity login in the second application platform embedded in the first application platform. Specifically, it can include the target user's digital identity ID (such as an ID card number), identity credential type, and identity information corresponding to the identity credential type. The account and password data can be the target user's registered account and password data in the first application platform, which allows login to the first application platform. Platform data can include the attribute information of the first application platform and the attribute information of the second application platform, as well as the embedding relationship between the first and second application platforms. For example, the digital identity ID of the first application platform, the digital identity ID of the second application platform, and the embedding of the second application platform into the first application platform.

[0051] Understandably, the smart contracts executed by the blockchain in this embodiment may include identity authentication contracts on each sidechain. Therefore, in this embodiment, the first sidechain can authenticate the target user for the first application platform based on the user's identity data and account password data using the identity authentication contract. Specifically, after a node on the first sidechain obtains the target user's identity data and account password data based on a redirect request, it can search for the stored account password data corresponding to the target user's identity data in the node's local storage, i.e., the aforementioned local account password information. Then, it performs a hash comparison between the account password data and the local account password information. If the hash values ​​match, the target user's identity authentication result is considered successful; if the hash values ​​do not match, the target user's identity authentication result is considered unsuccessful.

[0052] It's important to understand that after a node on the first sidechain completes the user authentication, the authentication result can be packaged into a sidechain block and published to the first sidechain for consensus. Then, each node on the first sidechain stores the consensus-reached authentication result locally, and finally packages the authentication result, user identity data, and platform data into a mainchain block and sends it to the main chain. This first sidechain authentication primarily implements user authentication within the first application platform, completing the first stage of the entire authentication process proposed in this proposal. This authentication ensures that the user issuing the application redirection request is a trustworthy user.

[0053] It should be noted that after each node in the main chain receives the relevant data sent by any side chain, it can perform local storage for all nodes in the main chain. In this embodiment, the relevant data can be the identity authentication result, user identity data, and platform data sent by the first side chain mentioned above.

[0054] Step S20: Perform platform relationship authentication based on the user identity data and the platform data;

[0055] Step S30: After successful authentication, the identity authentication result and the user identity data are sent to the second sidechain corresponding to the second application platform for login authentication.

[0056] It is readily understood that, in this embodiment, to further ensure the reliability of user identity data, a secondary authentication can be performed based on user identity data and platform data, namely the aforementioned platform relationship authentication. After platform relationship authentication is performed and passed, this embodiment can package the identity authentication result and user identity data into a sidechain block, and determine the target to be sent as the second application platform based on the platform data. The packaged sidechain block is then sent to the second sidechain corresponding to the second application platform, where consensus is reached and local storage is performed, thereby enabling the second sidechain to perform login authentication for the target user. Specifically, as one possible implementation, in this embodiment, the second sidechain performs login authentication based on the identity authentication result and the user identity data through the identity authentication and authorization contract.

[0057] It is important to understand that in this embodiment, the second sidechain can complete the login authentication and authorization of the target user corresponding to the user's identity data based on the received identity authentication result. Specifically, each node in the second sidechain can input the identity authentication result and the user's identity data into the aforementioned identity authentication and authorization contract. If the identity authentication result is that the authentication fails, the identity authentication and authorization contract will jump to the identity authentication process of the second application platform. At this time, the target user may not have registered and logged in to the second application platform before. Therefore, the interface returned by the main chain to the first application platform at this time can be the login interface of the second application platform. Specifically, in this embodiment, the page indicating that the user is not logged in can be sent to the server of the first application platform, which will then send it to the client of the first application platform so that the target user can register and log in to the second application platform.

[0058] Furthermore, as one possible implementation method, such as Figure 3 As shown, Figure 3 This is a second flowchart illustrating the first embodiment of the blockchain-based login authentication method of the present invention. In this embodiment, after step S30, the method further includes:

[0059] Step S40: If the login authentication is successful, the application interface of the second application platform will be sent back to the first application platform.

[0060] In essence, if the identity authentication result is successful, the identity authentication contract can directly output the successful authentication result. The main chain can then feed back the authentication result from the second sidechain to the server corresponding to the second application platform, thereby automatically completing the login authentication process for the target user. Upon receiving the identity authentication result, if the second application platform's server is successful, it will directly respond with a page indicating successful login. At this point, the main chain can feed back the application interface of the second application platform to the server of the first application platform, which will then distribute it to the client of the first application platform.

[0061] In summary, this embodiment links various application platforms through a main-sidechain blockchain architecture. Platform relationship authentication is completed via the main chain, and identity authentication is performed via the sidechain. Upon successful login, the user is directly redirected to the application interface of the second application platform, thus automatically authenticating login when the user triggers application redirection, thereby improving user experience. Simultaneously, this embodiment avoids the need for users to manually input their account and password data multiple times, reducing the risk of data leakage. Furthermore, user identity authentication is performed through an identity authentication contract to ensure that the user initiating the redirection request is a trusted user. The identity authentication contract also performs login authentication for the target user on the second application platform, thereby enhancing the security of the authentication process.

[0062] This embodiment discloses a blockchain-based login authentication method. The method includes: obtaining an identity authentication result, user identity data, and platform data sent by a first sidechain. The identity authentication result is obtained by the first sidechain after authenticating a received application redirection request. The application redirection request is triggered by the target user clicking on a function redirection interface corresponding to a second application platform within a first application platform belonging to the first sidechain. When the first sidechain receives the application redirection request, it obtains the target user's account password data and user identity data based on the request, and obtains the local account password information corresponding to the user identity data through an identity authentication and authorization contract. Identity authentication is then performed based on the account password data and the local account password information. Platform relationship authentication is performed based on the user identity data and platform data. After successful authentication, the identity authentication result and user identity data are sent to the second sidechain corresponding to the second application platform for login authentication. The second sidechain performs login authentication based on the identity authentication result and user identity data through an identity authentication and authorization contract. If login authentication is successful, the application interface of the second application platform is returned to the first application platform. This embodiment links various application platforms through a main-sidechain blockchain architecture. Platform relationship authentication is completed via the main chain, and identity authentication is completed via the sidechain. Upon successful login, the user is directly redirected to the application interface of the second application platform, thus automatically authenticating login when the user triggers application redirection, thereby improving user experience. Simultaneously, this embodiment avoids the need for users to manually input their account and password data multiple times, reducing the risk of data leakage. Furthermore, it uses an identity authentication contract to verify the user's identity, ensuring that the user initiating the redirection request is a trusted user. The identity authentication contract also performs login authentication for the target user on the second application platform, thereby enhancing the security of the authentication process.

[0063] Reference Figure 4 , Figure 4 This is a schematic diagram of the first process of the second embodiment of the blockchain-based login authentication method of the present invention. Figure 2The illustrated embodiment presents a second embodiment of the blockchain-based login authentication method of the present invention.

[0064] It is readily understood that the smart contract in this embodiment may include two contract functions: in addition to the aforementioned sidechain identity authentication contract, it may also include a mainchain platform relationship judgment contract, and perform platform relationship authentication for the target user through this mainchain platform relationship judgment contract. Specifically, in this embodiment, the platform relationship authentication includes: platform user authentication and platform mapping authentication; such as Figure 4 As shown, step S20 specifically includes:

[0065] Step S201: Determine the permission information and the target platform information corresponding to the first application platform from the local database based on the platform relationship judgment contract;

[0066] Step S202: The platform relationship judgment contract performs platform user authentication based on the user identity data and the permission information;

[0067] It should be noted that in this embodiment, each node of the main chain can pre-store platform relationship data and permission information in its local database. The permission information refers to the user's registration information on each platform. Based on this permission information, it can be determined whether the user has registered on each platform or is a registered user of the platform. Therefore, in this embodiment, the main chain can obtain permission information from the local database through the platform relationship judgment contract and perform platform user authentication based on the user identity data and permission information. Specifically, in this embodiment, the user identity data corresponding to the received target user can be compared based on the permission information to detect whether the user identity data is located in the permission information already stored in the current main chain node. If so, the platform user authentication is successful; otherwise, it fails.

[0068] Step S203: The contract is determined by the platform relationship and performs platform mapping authentication based on the platform data and the target platform information.

[0069] It's important to understand that each node in the main chain can perform platform mapping authentication by comparing the received platform data with the target platform information corresponding to the first application platform in the platform relationship data stored in the node's local database. If the target platform information matches the platform data and the aforementioned platform user authentication also passes, the target user's platform relationship authentication succeeds. If the mapping relationship between the target platform information and the platform data is inconsistent, or if the mapping relationship is consistent but the platform user authentication based on permission data fails, the target user's platform relationship authentication fails. After authentication, each node in the main chain reaches a consensus on the platform relationship authentication result and stores it locally.

[0070] It is easy to understand that the aforementioned platform relationship data can also be the pre-stored platform embedding relationships in the main chain nodes; that is, the target platform information may include platform embedding relationship information. Therefore, further, as one possible implementation, such as... Figure 5 As shown, Figure 5 This is a second flowchart illustrating a second embodiment of the blockchain-based login authentication method of the present invention. In this embodiment, step S203 includes:

[0071] Step S203a: Based on the platform embedded relationship information and the platform data, the contract determines the platform mapping authentication between the first application platform and the second application platform.

[0072] It is important to understand that the platform embedding relationship information mentioned above in this embodiment can be the embedding relationship between the first application platform and other application platforms, such as the second application platform embedding into the first application platform or the first application platform being embedded into the second application platform. The platform data mentioned above can be the second application platform embedding into the first application platform. If the platform embedding relationship information corresponding to the first application platform stored in each node of the main chain is the second application platform embedding into the first application platform, then the target user's platform mapping authentication passes. If the platform embedding relationship information corresponding to the first application platform stored in each node of the main chain is the first application platform embedding into the second application platform, then the target user's platform mapping authentication fails. Based on the above steps, this embodiment can detect the embedding relationship between platforms through the platform relationship judgment contract, thereby protecting the embedding relationship between platforms and improving the security of platform nesting.

[0073] It should be understood that the aforementioned platform relationship data can also be the pre-stored correspondence between platforms and sidechains in each node of the main chain; that is, the target platform information can also include the correspondence information between platforms and sidechains. Furthermore, as one possible implementation method, such as... Figure 6 As shown, Figure 6 This is a schematic diagram of the third process of the second embodiment of the blockchain-based login authentication method of the present invention. In this embodiment, step S203 further includes:

[0074] Step S203b: Based on the platform embedded relationship information and the platform data, the contract determines the platform mapping authentication between the first application platform and the second application platform.

[0075] It is easy to understand that the aforementioned target platform information can be the correspondence between the first application platform and the sidechain in the blockchain. In this embodiment, each node of the main chain can detect whether the mapping relationship between the first application platform and the first sidechain matches the locally stored correspondence information between the first application platform and the sidechain. If yes, the platform mapping authentication passes; if no, the platform mapping authentication fails. Through the above steps, this embodiment can detect the correspondence between the platform and the sidechain through the platform relationship judgment contract, thereby protecting the correspondence between the platform and the sidechain and improving the security of the mapping between the platform and the blockchain sidechain. It is understood that this embodiment can also use the aforementioned platform embedded relationship information and the aforementioned correspondence information between the platform and the sidechain simultaneously for platform mapping authentication to strengthen the protection effect.

[0076] In summary, this embodiment, by combining blockchain smart contract technology and constructing platform relationship judgment contracts and identity authentication contracts, can achieve automatic authentication during platform redirection and login processes, improving user login authentication efficiency. Simultaneously, this embodiment can detect the embedding relationship between platforms through the platform relationship judgment contract, thereby protecting the embedding relationship between platforms and improving the security of platform nesting. Furthermore, it can detect the correspondence between platforms and sidechains through the platform relationship judgment contract, thereby protecting the correspondence between platforms and sidechains and improving the security of the mapping between platforms and the blockchain platform.

[0077] In this embodiment, platform relationship authentication includes: platform user authentication and platform mapping authentication. This embodiment obtains permission information and target platform information corresponding to the first application platform from the local database through a platform relationship judgment contract. The platform user authentication is performed based on user identity data and permission information through the platform relationship judgment contract. Platform mapping authentication is performed based on platform data and target platform information through the platform relationship judgment contract. Furthermore, the target platform information includes platform embedding relationship information. In this embodiment, the platform mapping authentication between the first and second application platforms is performed based on the platform embedding relationship information and platform data through the platform relationship judgment contract. The target platform information also includes the corresponding relationship information between the platform and the sidechain. In this embodiment, the platform mapping authentication between the first and second application platforms is performed based on the platform embedding relationship information and platform data through the platform relationship judgment contract. This embodiment can combine blockchain smart contract technology. By constructing a platform relationship judgment contract and an identity authentication contract, automatic authentication and authorization can be achieved during the platform redirection login process, improving the efficiency of user login authentication. Simultaneously, this embodiment can detect the embedding relationship between platforms through the platform relationship judgment contract, thereby protecting the embedding relationship between platforms and improving the security of platform nesting. By determining the correspondence between the contract detection platform and the sidechain through platform relationship analysis, the correspondence between the platform and the sidechain is protected, thereby improving the security of the mapping between the platform and the blockchain platform.

[0078] Furthermore, this embodiment of the invention also proposes a storage medium storing a blockchain-based login authentication program, which, when executed by a processor, implements the steps of the blockchain-based login authentication method described above.

[0079] refer to Figure 7 , Figure 7 This is a structural block diagram of the first embodiment of the blockchain-based login authentication device of the present invention.

[0080] like Figure 7 As shown, the blockchain-based login authentication device proposed in this embodiment of the invention includes:

[0081] The first data transmission module 701 is used to obtain the identity authentication result, user identity data and platform data sent by the first side chain. The identity authentication result is obtained by the first side chain after authenticating the received application jump request. The application jump request is triggered by the target user clicking the function jump interface corresponding to the second application platform in the first application platform to which the first side chain belongs.

[0082] The platform relationship authentication module 702 is used to perform platform relationship authentication based on the user identity data and the platform data;

[0083] The second data transmission module 703 is used to send the identity authentication result and the user identity data to the second sidechain corresponding to the second application platform for login authentication after successful authentication.

[0084] Furthermore, as one possible implementation, in this embodiment, when the first sidechain receives the application redirection request, it obtains the account password data and user identity data corresponding to the target user based on the application redirection request, and obtains the local account password information corresponding to the user identity data through the identity authentication and authorization contract, and performs identity authentication based on the account password data and the local account password information.

[0085] Furthermore, as one possible implementation, in this embodiment, the second sidechain performs login authentication based on the identity authentication result and the user identity data through the identity authentication and authorization contract.

[0086] Furthermore, as one possible implementation, in this embodiment, the first data transmission module 701 is also used to send the application interface of the second application platform back to the first application platform if the login authentication is successful.

[0087] This embodiment obtains the identity authentication result, user identity data, and platform data sent by the first sidechain. The identity authentication result is obtained by the first sidechain after authenticating the received application redirection request. The application redirection request is triggered by the target user clicking the function redirection interface corresponding to the second application platform in the first application platform to which the first sidechain belongs. When the first sidechain receives the application redirection request, it obtains the target user's account password data and user identity data based on the application redirection request, and obtains the local account password information corresponding to the user identity data through the identity authentication and authorization contract. Identity authentication is performed based on the account password data and the local account password information. Platform relationship authentication is performed based on the user identity data and platform data. After successful authentication, the identity authentication result and user identity data are sent to the second sidechain corresponding to the second application platform for login authentication. The second sidechain performs login authentication based on the identity authentication result and user identity data through the identity authentication and authorization contract. If the login authentication is successful, the application interface of the second application platform is returned to the first application platform. This embodiment links various application platforms through a main-sidechain blockchain architecture. Platform relationship authentication is completed via the main chain, and identity authentication is completed via the sidechain. Upon successful login, the user is directly redirected to the application interface of the second application platform, thus automatically authenticating login when the user triggers application redirection, thereby improving user experience. Simultaneously, this embodiment avoids the need for users to manually input their account and password data multiple times, reducing the risk of data leakage. Furthermore, it uses an identity authentication contract to verify the user's identity, ensuring that the user initiating the redirection request is a trusted user. The identity authentication contract also performs login authentication for the target user on the second application platform, thereby enhancing the security of the authentication process.

[0088] Based on the first embodiment of the blockchain-based login authentication device of the present invention described above, a second embodiment of the blockchain-based login authentication device of the present invention is proposed.

[0089] In this embodiment, the platform relationship authentication includes: platform user authentication and platform mapping authentication; the platform relationship authentication module 702 is also used to obtain permission information and target platform information corresponding to the first application platform from the local database through the platform relationship judgment contract;

[0090] The platform relationship authentication module 702 is also used to perform platform user authentication based on the user identity data and the permission information through the platform relationship judgment contract;

[0091] The platform relationship authentication module 702 is also used to determine the platform mapping authentication of the contract based on the platform data and the target platform information through the platform relationship.

[0092] Furthermore, as one possible implementation, in this embodiment, the target platform information includes platform embedding relationship information. The platform relationship authentication module 702 is also used to perform platform mapping authentication between the first application platform and the second application platform based on the platform embedding relationship information and the platform data through the platform relationship judgment contract.

[0093] Furthermore, as one possible implementation, in this embodiment, the target platform information also includes the correspondence information between the platform and the sidechain. The platform relationship authentication module 702 is also used to perform platform mapping authentication between the first application platform and the second application platform based on the platform embedded relationship information and the platform data through the platform relationship judgment contract.

[0094] In this embodiment, platform relationship authentication includes: platform user authentication and platform mapping authentication. This embodiment obtains permission information and target platform information corresponding to the first application platform from the local database through a platform relationship judgment contract. The platform user authentication is performed based on user identity data and permission information through the platform relationship judgment contract. Platform mapping authentication is performed based on platform data and target platform information through the platform relationship judgment contract. Furthermore, the target platform information includes platform embedding relationship information. In this embodiment, the platform mapping authentication between the first and second application platforms is performed based on the platform embedding relationship information and platform data through the platform relationship judgment contract. The target platform information also includes the corresponding relationship information between the platform and the sidechain. In this embodiment, the platform mapping authentication between the first and second application platforms is performed based on the platform embedding relationship information and platform data through the platform relationship judgment contract. This embodiment can combine blockchain smart contract technology. By constructing a platform relationship judgment contract and an identity authentication contract, automatic authentication and authorization can be achieved during the platform redirection login process, improving the efficiency of user login authentication. Simultaneously, this embodiment can detect the embedding relationship between platforms through the platform relationship judgment contract, thereby protecting the embedding relationship between platforms and improving the security of platform nesting. By determining the correspondence between the contract detection platform and the sidechain through platform relationship analysis, the correspondence between the platform and the sidechain is protected, thereby improving the security of the mapping between the platform and the blockchain platform.

[0095] Other embodiments or specific implementations of the blockchain-based login authentication device of the present invention can be found in the above-described method embodiments, and will not be repeated here.

[0096] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or system. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or system that includes that element.

[0097] The sequence numbers of the above embodiments of the present invention are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.

[0098] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) as described above, and includes several instructions to cause a terminal device (which may be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in the various embodiments of the present invention.

[0099] The above are merely preferred embodiments of the present invention and do not limit the scope of the patent. Any equivalent structural or procedural transformations made based on the description and drawings of the present invention, or direct or indirect applications in other related technical fields, are similarly included within the scope of patent protection of the present invention.

Claims

1. A blockchain-based login authentication method, characterized in that, The method is applied to a blockchain platform comprising at least one main chain and several side chains, the method is executed by the main chain, and the method includes: Obtain the identity authentication result, user identity data, and platform data sent by the first sidechain. The identity authentication result is obtained by the first sidechain after authenticating the received application jump request. The application jump request is triggered by the target user clicking the function jump interface corresponding to the second application platform in the first application platform to which the first sidechain belongs. Platform relationship authentication is performed based on the user identity data and the platform data; After successful authentication, the identity authentication result and the user identity data are sent to the second sidechain corresponding to the second application platform for login authentication. 2.The blockchain-based login authentication method of claim 1, wherein, When the first sidechain receives the application redirection request, it obtains the account password data and user identity data corresponding to the target user based on the application redirection request, and obtains the local account password information corresponding to the user identity data through the identity authentication and authorization contract, and performs identity authentication based on the account password data and the local account password information. 3.The blockchain-based login authentication method of claim 2, wherein, The platform relationship authentication includes: platform user authentication and platform mapping authentication; the steps of performing platform relationship authentication based on the user identity data and the platform data include: The contract retrieves permission information and target platform information corresponding to the first application platform from the local database based on the platform relationship determination; The platform relationship determination contract uses the user identity data and permission information to perform platform user authentication. The contract is determined by the platform relationship and is authenticated by platform mapping based on the platform data and the target platform information. 4.The blockchain-based login authentication method of claim 3, wherein, The target platform information includes platform embedding relationship information. The step of determining the platform mapping authentication of the contract based on the platform data and the target platform information through the platform relationship includes: The platform relationship determination contract performs platform mapping authentication between the first application platform and the second application platform based on the platform embedded relationship information and the platform data. 5.The blockchain-based login authentication method of claim 4, wherein, The target platform information also includes the correspondence information between the platform and the sidechain; The step of determining the platform mapping authentication of the contract based on the platform data and the target platform information through the platform relationship further includes: The platform relationship determination contract performs platform mapping authentication between the first application platform and the second application platform based on the platform embedded relationship information and the platform data.

6. The blockchain-based login authentication method as described in claim 2, characterized in that, The second sidechain performs login authentication based on the identity authentication result and the user identity data through the identity authentication and authorization contract.

7. The blockchain-based login authentication method as described in claim 6, characterized in that, After sending the identity authentication result and the user identity data to the second sidechain corresponding to the second application platform for login authentication, the method further includes: If login authentication is successful, the application interface of the second application platform will be displayed on the first application platform.

8. A blockchain-based login authentication device, characterized in that, The blockchain-based login authentication device includes: The first data transmission module is used to obtain the identity authentication result, user identity data and platform data sent by the first side chain. The identity authentication result is obtained by the first side chain after authenticating the received application jump request. The application jump request is triggered by the target user clicking the function jump interface corresponding to the second application platform in the first application platform to which the first side chain belongs. The platform relationship authentication module is used to perform platform relationship authentication based on the user identity data and the platform data. The second data transmission module is used to send the identity authentication result and the user identity data to the second sidechain corresponding to the second application platform for login authentication after successful authentication.

9. A blockchain-based login authentication device, characterized in that, The device includes: a memory, a processor, and a blockchain-based login authentication program stored on the memory and executable on the processor, the blockchain-based login authentication program being configured to implement the steps of the blockchain-based login authentication method as described in any one of claims 1 to 7.

10. A storage medium, characterized in that, The storage medium stores a blockchain-based login authentication program, which, when executed by a processor, implements the steps of the blockchain-based login authentication method as described in any one of claims 1 to 7.

Citation Information

Patent Citations

  • Decentralized application platform

    CN109033376A

  • Authorization processing method and apparatus, and storage medium

    EP4149053A1