Account management method, device, terminal and storage medium

By obtaining and verifying user identity information in Ethereum and generating blockchain real-name accounts, the problem of real-name user transactions that cannot be implemented under third-party supervision in the existing technology is solved, and real-name transactions and permission management of blockchain accounts are realized. Enhanced transaction security.

CN113506108BActive Publication Date: 2025-01-10NETEASE (HANGZHOU) NETWORK CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202110713153.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-06-25
Publication Date
2025-01-10
Estimated Expiration
2041-06-25

AI Technical Summary

Technical Problem

The existing technology cannot realize real-name user transactions under third-party supervision in Ethereum, and blockchain accounts lack different permission management capabilities for user account data.

Method used

By obtaining the identity information of the target user for real-name verification, if the verification is passed, a real-name account for the target blockchain will be generated and the account and identity proof information will be stored in the blockchain to realize real-name user transactions under third-party supervision.

Benefits of technology

It realizes third-party supervision capabilities when users log in to blockchain accounts, enhances the security and permission management of user transactions, and supports decentralized identity services.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113506108B_ABST
    Figure CN113506108B_ABST
Patent Text Reader

Abstract

The present application discloses an account management method, device, terminal and storage medium, the account management method comprising: obtaining a target blockchain account of a target user, the target blockchain account being a user account created in a blockchain; obtaining the identity information of the target user, and performing real-name verification on the identity information; if the real-name verification of the identity information passes, obtaining the identity certification information corresponding to the identity information; based on the identity certification information and the target blockchain account, generating a target blockchain real-name account of the target user in the blockchain. This solution generates a blockchain real-name account based on the user's real-name information and the blockchain account, and when the user logs in to the blockchain account, it can realize capabilities such as real-name user transactions under third-party supervision.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to an account management method, device, terminal and storage medium. Background Art

[0002] In the existing technical solutions, an account is represented by a sha256 public-private key pair in Ethereum. The account address is calculated from the public key. The Ethereum data of the account, including the Ethereum account balance, Ethereum smart contract tokens, etc., can be obtained. However, it cannot guarantee that the account has completed real-name registration, nor does it have different permissions for user account data, and it is impossible to realize real-name user transactions under third-party supervision.

[0003] Therefore, the existing technology needs to be improved. Summary of the invention

[0004] The embodiments of the present application provide an account management method, device, terminal and storage medium, which can realize real-name user transactions under third-party supervision and other capabilities when a user logs into a blockchain account.

[0005] The present application provides an account management method, which includes:

[0006] Obtain a target blockchain account of a target user, where the target blockchain account is a user account created in the blockchain;

[0007] Obtaining the identity information of the target user and performing real-name verification on the identity information;

[0008] If the real-name verification of the identity information is passed, obtaining the identity certification information corresponding to the identity information;

[0009] Based on the identity proof information and the target blockchain account, a target blockchain real-name account of the target user is generated in the blockchain.

[0010] In an optional embodiment, generating a target blockchain real-name account of the target user in the blockchain based on the identity certification information and the target blockchain account includes:

[0011] Storing the target blockchain account in each node of the blockchain;

[0012] The identity proof information is added to the target blockchain account to generate a target blockchain real-name account of the target user.

[0013] In an optional embodiment, the blockchain includes a first blockchain and a second blockchain, and generating a target blockchain real-name account of the target user in the blockchain based on the identity certification information and the target blockchain account includes:

[0014] Storing the target blockchain account in each node of the first blockchain;

[0015] Storing the identity information and the target blockchain account in each node of the second blockchain;

[0016] Based on the target blockchain account in the first blockchain and the corresponding identity information and the target blockchain account in the second blockchain, a target blockchain real-name account of the target user is generated.

[0017] In an optional embodiment, generating a target blockchain real-name account of the target user in the blockchain based on the identity certification information and the target blockchain account includes:

[0018] Storing the target blockchain account and the identity information on each node of the blockchain;

[0019] An account contract of the target user is generated in the blockchain, wherein the account contract includes the target blockchain account and the corresponding identity certification information, wherein the account contract is a real-name account of the target blockchain.

[0020] In an optional embodiment, the obtaining the identity information of the target user and performing real-name verification on the identity information includes:

[0021] Obtain the identity information of the target user and determine the real-name verification agency;

[0022] Querying the real-name identity information through the real-name verification agency to see whether the identity information exists;

[0023] If the query result is yes, it is determined that the identity information has passed the real-name verification.

[0024] In an optional embodiment, after generating a target blockchain real-name account of the target user in the blockchain based on the identity certification information and the target blockchain account, the method further includes:

[0025] The target blockchain account and the identity verification information are stored by the real-name verification agency.

[0026] In an optional embodiment, it also includes:

[0027] Receiving a login request for a client, wherein the login request includes a first blockchain account of a user to be logged in;

[0028] Sending the first blockchain account to the server, triggering the server to obtain a first blockchain real-name account corresponding to the first blockchain account from the blockchain, performing identity verification on the user to be logged in based on the identity verification information in the first blockchain real-name account, and sending the verification success information after the verification passes;

[0029] The verification success information is received, and the user interface of the client is displayed.

[0030] In an optional embodiment, the receiving a login request for a client further includes:

[0031] Displaying a login entry on the operation page of the client, wherein the login entry includes a blockchain login entry;

[0032] A first blockchain account input through the blockchain login portal is received, and the login request is generated based on the first blockchain account.

[0033] In an optional embodiment, it also includes:

[0034] Recording the real-name verification process of the target user to obtain real-name verification record information;

[0035] The real-name verification record information is stored in the blockchain.

[0036] The present application also provides an account management device, which includes:

[0037] A first acquisition unit is used to acquire a target blockchain account of a target user, where the target blockchain account is a target user account created in the blockchain;

[0038] A verification unit, used to obtain the identity information of the target user and perform real-name verification on the identity information;

[0039] A second acquisition unit is used to acquire identity certification information corresponding to the identity information if the real-name verification of the identity information passes;

[0040] A generating unit is used to generate a target blockchain real-name account of the target user in the blockchain based on the identity proof information and the blockchain account.

[0041] An embodiment of the present application also provides a terminal, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the above-mentioned account management method when executing the computer program.

[0042] An embodiment of the present application further provides a storage medium on which a computer program is stored, wherein when the computer program is executed by a processor, the steps of the above-mentioned account management method are implemented.

[0043] The embodiment of the present application provides an account management method, device, terminal and storage medium. Through the account management method of this embodiment, the target blockchain account of the target user can be obtained, and the target blockchain account is a user account created in the blockchain; the identity information of the target user is obtained, and the identity information is verified by real name; if the real-name verification of the identity information is passed, the identity proof information corresponding to the identity information is obtained; based on the identity proof information and the target blockchain account, the target blockchain real-name account of the target user is generated in the blockchain. Therefore, in this application, according to the obtained blockchain account of the target user and the real-name information of the target user, the blockchain real-name account of the target user is generated, and when the target user logs in to the blockchain account, the capabilities such as real-name user transactions under third-party supervision can be realized. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.

[0045] Figure 1 is a flow chart of an account management method provided by an embodiment of the present application;

[0046] Figure 2 It is a reference diagram of an exemplary code for creating a target blockchain account and real-name verification provided in an embodiment of the present application;

[0047] Figure 3 It is a reference diagram of an exemplary code for generating a target blockchain real-name account provided in an embodiment of the present application;

[0048] Figure 4 is a schematic diagram of an account management system applied to an account management method provided in an embodiment of the present application;

[0049] Figure 5 It is a structural diagram of an account management device provided in an embodiment of the present application;

[0050] Figure 6 It is a structural diagram of a terminal provided in an embodiment of the present application. DETAILED DESCRIPTION

[0051] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of this application.

[0052] The embodiment of the present application provides an account management method, device, terminal and storage medium. Specifically, the embodiment provides an account management method applicable to an account management device, and the account management device can be integrated in a computer device. The computer device can be a terminal or other device, for example, a mobile phone, a tablet computer, a laptop computer, a desktop computer, etc.

[0053] The computer device may also be a server or other device. The server may be an independent physical server or a server cluster or distributed system composed of multiple physical servers. It may also be a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN, as well as big data and artificial intelligence platforms, but is not limited to these.

[0054] The account management method provided in the embodiment of the present application is applied to the blockchain network, wherein the blockchain is essentially a decentralized database, a string of data blocks generated by cryptographic methods, each of which contains information about a batch of network transactions, which is used to verify the validity of its information (anti-counterfeiting) and generate the next block. The blockchain may include a blockchain underlying platform, a platform product service layer, and an application service layer. Among them, the blockchain is a new distributed infrastructure and computing paradigm that uses a block chain data structure to verify and store data, a distributed node consensus algorithm to generate and update data, cryptography to ensure the security of data transmission and access, and smart contracts composed of automated script codes to program and operate data.

[0055] The underlying blockchain platform can include processing modules such as user management, basic services, smart contracts, and operation monitoring. Among them, the user management module is responsible for the identity information management of all blockchain participants, including maintaining public and private key generation (account management), key management, and the maintenance of the correspondence between the user's real identity and the blockchain address (authority management), etc., and, under authorization, supervises and audits the transactions of certain real identities and provides risk control rule configuration (risk control audit); the basic service module is deployed on all blockchain node devices to verify the validity of business requests, and records valid requests to storage after consensus is reached. For a new business request, the basic service first adapts the interface for parsing and authentication (interface adaptation), and then encrypts the business information through the consensus algorithm (consensus management). The smart contract module is responsible for the registration and issuance of contracts, as well as contract triggering and contract execution. Developers can define the contract logic in a programming language and publish it to the blockchain (contract registration). According to the logic of the contract terms, the key or other events are called to trigger the execution and complete the contract logic. It also provides the function of contract upgrade and cancellation. The operation monitoring module is mainly responsible for the deployment, configuration modification, contract setting, cloud adaptation and real-time status visualization output of the product during the product release process, such as alarm, network monitoring, node equipment health monitoring, etc.

[0056] The platform product service layer provides the basic capabilities and implementation framework of typical applications. Developers can superimpose business features based on these basic capabilities to complete the blockchain implementation of business logic. The application service layer provides application services based on blockchain solutions for business participants to use.

[0057] The blockchain network in the embodiment of the present application may include blockchain nodes, and multiple blockchain nodes jointly maintain the blockchain. The blockchain node may be various computing nodes with the same or different computing power, such as a personal computer, a network server, a database server, a smart phone, etc., which are not limited here. Any two blockchain nodes in the blockchain node can communicate point-to-point. The blockchain is a distributed database of blocks linked in chronological order by hash pointers. The blocks of the blockchain are added in chronological order. When the predetermined conditions are met, each blockchain node in the blockchain network allows the current blockchain node to create a block and add the block to the blockchain, and the added block is used as the current latest block on the blockchain. At a certain moment, the current latest block obtained from the blockchain by the blockchain nodes maintaining the same blockchain is the same. In order to ensure that the blockchains stored locally by different blockchain nodes in the same blockchain network are consistent, a block synchronization process is required. It should be noted that the account management method provided in the embodiment of the present application can generally be executed by any blockchain node. Accordingly, the account management device provided in the embodiment of the present application can generally be set in any blockchain node.

[0058] The blockchain account described in the embodiments of the present application is also an Ethereum account, where the Ethereum account includes four fields: a random number, the account balance, the contract code (if any), and storage (usually empty). Each user can open an account, and the account balance is the Ether or other ERC20-based token owned by the user.

[0059] In the embodiment of the present application, the user's decentralized identity (DID) is added to the existing account model in the blockchain, and a blockchain real-name account is generated through real-name authentication by a third-party trusted institution to realize universal decentralized identity services and real-name user transactions under third-party supervision. Among them, in the decentralized identity (Decentralized Identity, DID) system, compared with the traditional identity system based on the Public Key Infrastructure (Public Key Infrastructure, PKI), the DID digital identity system based on the blockchain has the advantages of ensuring data authenticity, protecting user privacy and security, and strong portability.

[0060] The current blockchain account is a public-private key pair. If you want to use the blockchain to implement real-world business, such as using a blockchain account to log in to a shopping website, you need to establish a DID contract identity. The user maps the real-world information into the contract, and then reads the data through the gateway to log in. Although this method can be implemented, it is too complicated and extremely inconvenient for the blockchain to build a decentralized identity. Therefore, the embodiment of the present application provides an account management method, which generates a blockchain real-name account based on the user's real-name information and the blockchain account. When logging in to the blockchain account, it can realize the capabilities of real-name user transactions under third-party supervision. The specific steps include: obtaining the target blockchain account of the target user, the target blockchain account is a user account created in the blockchain; obtaining the identity information of the target user, and performing real-name verification on the identity information; if the real-name verification of the identity information passes, obtaining the identity proof information corresponding to the identity information; based on the identity proof information and the target blockchain account, generating the target blockchain real-name account of the target user in the blockchain.

[0061] It should be noted that the description order of the following embodiments is not intended to limit the preferred order of the embodiments.

[0062] The embodiments of the present application will be described from the perspective of an account management device, which can be specifically integrated into a computer device such as a terminal.

[0063] The present application embodiment provides an account management method, such as Figure 1 As shown, the process of the account management method of the embodiment of the present application can be as follows:

[0064] 101. Obtain a target blockchain account of a target user, where the target blockchain account is a user account created in the blockchain.

[0065] In the embodiment of the present application, the terminal first obtains the target blockchain account of the target user, and the target blockchain account is the user account created in the blockchain. If there is no blockchain account of the target user in the blockchain, it is necessary to create the target blockchain account of the target user; the step of creating the target blockchain account includes: the terminal responds to the target user's request to create the target blockchain account, obtains the target public-private key pair corresponding to the target user based on the creation request, and binds the target blockchain account to the target public-private key pair. If the target blockchain account of the target user already exists in the blockchain, the terminal can directly obtain the target blockchain account from the blockchain.

[0066] The step of obtaining the target public-private key pair corresponding to the target user includes: the terminal can generate multiple sets of public-private key pairs using the public-private key pair generation service, set the corresponding relationship between the public-private key pairs and the users, wherein a set of public-private key pairs includes a public key and a private key. Based on the corresponding relationship, the target public-private key pair corresponding to the target user is determined.

[0067] 102. Obtain identity information of the target user, and perform real-name verification on the identity information.

[0068] In an embodiment of the present application, after the terminal obtains an existing target blockchain account or creates and obtains a target blockchain account, the identity information of the target user is obtained, that is, the terminal receives various identity information input by the target user, such as the real name, ID card, face video and other information of the target user. After the terminal obtains the identity information, the identity information is verified by real name. It can be understood that the terminal verifies the identity information by real name, which means: the terminal determines the real-name verification agency and verifies the identity information by real-name verification through the real-name verification agency; or the terminal verifies the identity information by real-name verification through other feasible methods, as long as the terminal can obtain a reliable real-name verification result, this application does not limit this.

[0069] In the embodiment of the present application, the blockchain can call a third-party real-name service, that is, the obtained identity information can be verified by a third-party real-name verification agency. First, the real-name verification agency is determined, and the real-name verification agency is used to query whether the obtained identity information exists in the real-name identity information; if the query result is yes, it is determined that the identity information has passed the real-name verification; if the query result is no, the identity information has not passed the real-name verification. Among them, the real-name verification agency can store real-name identity information, and the terminal queries whether the target user's identity information exists in the real-name identity information stored by the real-name verification agency. If the query result is yes, the terminal can determine that the target user's identity information has passed the real-name verification; after receiving the real-name verification request from the terminal for the target user's identity information, the real-name verification agency can also call the real-name identity information in other trusted real-name verification agencies, query whether the target user's identity information exists in the real-name identity information stored by other trusted real-name verification agencies, and return the query result to the terminal. If the query result is yes, the terminal can determine that the target user's identity information has passed the real-name verification.

[0070] Among them, before querying the real-name identity information through the real-name verification agency to see whether the acquired identity information exists, it is necessary to first verify whether the real-name verification agency is an agency with real-name verification authority in the blockchain. The specific steps include: obtaining the identity identification information of the real-name verification agency, querying in the blockchain based on the identity identification information whether the real-name verification agency is an agency with real-name verification authority; if so, continuing to execute the step of querying the real-name identity information through the real-name verification agency to see whether the identity information of the target user exists. Among them, at least one real-name verification agency can be pre-determined in the blockchain, and the identity identification information of at least one real-name verification agency can be stored in the blockchain. These real-name verification agencies are trusted agencies with real-name verification authority in the blockchain. If the real-name verification agency performs real-name verification of the identity information of the target user by calling other real-name verification agencies, it is also necessary to first determine that the other real-name verification agencies are trusted agencies, that is, agencies with real-name verification authority in the blockchain.

[0071] In an embodiment of the present application, the identity information of the target user includes the biometrics of the target user, such as the facial image information of the target user, that is, the terminal receives the facial photo transmitted by the target user. A set of registered biometrics is stored in the real-name verification agency, and the set of registered biometrics includes the registered biometrics of each user who has registered with real name. For example, a set of facial images is stored in the real-name verification agency, and the set of facial images includes the facial images of each user who has registered with real name. Then the step of "querying through the real-name verification agency whether there is identity information in the real-name identity information" includes: querying through the real-name verification agency whether there is the biometrics of the target user in the set of registered biometrics; if so, determining that the biometrics of the target user pass the real-name verification. For example, querying through the real-name verification agency whether there is a facial image of the target user in the set of stored facial images, and returning the query result to the terminal. If so, the facial image information of the target user passes the real-name verification. Among them, the real-name verification agency can also call other trusted real-name verification agencies to query whether there is a facial image of the target user in the collection of facial images, and receive the query results and return them to the terminal. The terminal determines whether the facial image of the target user has passed the real-name verification based on the query results.

[0072] In the embodiment of the present application, the identity information passed by the target user may include multiple identity information, and the real-name verification agency verifies all the identity information passed by and returns all the query results. It is understandable that only after the real-name verification of all the identity information passes, the identity information of the target user is considered to have passed the real-name verification.

[0073] In the present application, please refer to Figure 2 , Figure 2A reference diagram of an exemplary code for creating a target blockchain account and real-name verification provided in an embodiment of the present application. Figure 2 In the code shown, an interface for creating user public and private keys is provided in Ethereum, and a DID proof verification interface is provided; based on the verification interface, a third-party real-name verification agency is called to verify the identity information entered by the user. First, a new user information creation interface is added, that is, a target blockchain account of the target user is created, and then a third-party real-name verification agency (that is, a third-party citizen detection agency) is called to detect the validity of the DID proof through transaction proof, that is, the validity of the identity information entered by the user is detected through the identity proof information returned by the third-party real-name verification agency.

[0074] 103. If the real-name verification of the identity information passes, obtain identity certification information corresponding to the identity information.

[0075] In an embodiment of the present application, if the acquired identity information of the target user passes the real-name verification, the real-name verification agency will generate at least one identity proof information based on the identity information and return the identity proof information to the terminal, thereby obtaining the identity proof information corresponding to the identity information of the target user.

[0076] The terminal receives the identity information returned by the real-name verification agency, and the identity information includes the verification information under at least one identity dimension of the target user. For example, the identity information transmitted by the target user to the terminal includes real name, identity certificate, face video and other information, and after the real-name verification of these identity information is passed, the real-name verification agency can generate a series of identity certificates based on these identity information, such as real user certificate, user gender certificate, user age certificate (whether the user is an adult), etc., and return these identity certificates to the terminal. The real user certificate can be, for example, the user's face image, the user's ID number, etc., and the real user certificate cannot be applied for repeatedly.

[0077] In the embodiment of the present application, when the identity information of the target user passes the real-name verification and obtains the identity proof information returned by the real-name verification agency, the third-party citizen real-name inspection agency issues a DID identity, realizing user real-name, anonymity between users and third-party supervision.

[0078] Optionally, after the real-name verification agency completes the verification of the user's real identity information, it generates identity verification information through zero-knowledge proof technology, which can increase the convenience of user information verification and hide the user's information, ensuring user security at a higher level.

[0079] 104. Based on the identity proof information and the target blockchain account, generate a target blockchain real-name account of the target user in the blockchain.

[0080] In the embodiment of the present application, after the terminal receives the identity information returned by the real-name verification agency, a target blockchain real-name account of the target user is generated in the blockchain based on the identity information and the acquired target blockchain account. The blockchain real-name account is stored in the blockchain, and when the target user logs in to a website that supports decentralized login, the blockchain real-name account corresponding to the input blockchain account can be queried, and the login can be completed by providing multiple identity information to the website.

[0081] In the embodiment of the present application, the terminal generates an account contract of the target user in the blockchain based on the target blockchain account information of the target user and the received identity information, and the account contract is the above-mentioned target blockchain real-name account. The identity information of the target user is stored in the account contract, and the account contract includes a query interface, which can be used to query the identity information in the account contract corresponding to the query interface when the user logs in through the blockchain account.

[0082] In the embodiment of the present application, the terminal receives a login request from a user to be logged in to a client, and the login request includes the blockchain account of the user to be logged in, which is set as the first blockchain account. The terminal can send the first blockchain account to the server, triggering the server to obtain the first blockchain real-name account corresponding to the first blockchain account from the blockchain, perform identity verification on the user to be logged in based on the target identity certification information in the first blockchain real-name account, and send verification success information after the verification passes. Based on the verification success information, the terminal displays the user interface of the client, that is, allows the user to be logged in to log in on the client.

[0083] In the embodiment of the present application, if the first blockchain account exists in the blockchain, the terminal directly obtains the first blockchain real-name account corresponding to the first blockchain account from the blockchain. Then, the terminal obtains the target identity information in the first blockchain real-name account. If the target identity information meets the identity information condition preset by the client to be logged in, the identity of the user to be logged in is verified based on the target identity information. If the identity verification passes, the terminal will send a verification success message and display the user interface of the client, that is, allow the user to be logged in to log in on the client.

[0084] Among them, before the terminal receives a login request for the client, a login entrance will be displayed on the operation page of the client, and the login entrance includes a blockchain login entrance; the terminal receives the user's account input instruction for the blockchain login entrance, and the user to be logged in enters the user's first blockchain account in the blockchain login entrance. The terminal receives the first blockchain account entered through the blockchain login entrance, and generates a login request based on the first blockchain account.

[0085] Among them, the client will preset at least one login condition, that is, the identity proof information condition of the user to be logged in, and perform identity verification on the user to be logged in based on the identity proof condition and the identity proof information in the first blockchain real-name account. Only when the identity proof information queried in the first blockchain real-name account corresponding to the first blockchain account of the user to be logged in meets the preset identity proof information condition, the identity verification of the user to be logged in is passed, and only after the verification is passed, the terminal can allow the user to be logged in to log in to the client. For example, the login of a certain client requires the provision of the age proof of the user to be logged in to prove that the user to be logged in is an adult. In the identity proof information obtained by the terminal, the user age proof is queried. If the user is an adult, the identity verification of the user to be logged in is passed, and the terminal sends a verification success message. Based on the verification success message, the user interface of the client is displayed, and the user is allowed to log in to the client. Among them, the login conditions of the client can be customized according to user needs, and this application is not limited by comparison.

[0086] The user to be logged in enters the first blockchain account information in the blockchain login portal, and the terminal receives the first blockchain account entered through the blockchain login portal, and generates a login request based on the first blockchain account. If the account information exists in the blockchain, the blockchain real-name account corresponding to the blockchain account is queried. If the account information does not exist in the blockchain, the user to be logged in confirms whether the information entered in the blockchain login portal is wrong, re-enters the correct blockchain account information, or fails to log in to the client.

[0087] Optionally, if the account information does not exist in the blockchain, the terminal can also provide an account creation portal, and the user to be logged in can create his own blockchain account through the account creation portal. After the blockchain account is created, the terminal needs to provide a real-name verification portal, and the user to be logged in can enter his own identity information through the real-name verification portal, and then the terminal will perform real-name verification on the identity information. After the real-name verification is passed, a blockchain real-name account is generated based on the returned identity proof information and the blockchain account, and stored in the blockchain. At this time, the user to be logged in can re-enter the blockchain account information in the blockchain login portal to log in.

[0088] Optionally, if the user's blockchain account information exists in the blockchain, but the blockchain account has not been verified by real name, a real-name verification entrance needs to be provided through the terminal. The user to be logged in can enter his or her identity information at the real-name verification entrance, and the terminal will then perform real-name verification on the identity information. After the real-name verification is passed, a blockchain real-name account is generated based on the returned identity proof information and the blockchain account, and stored in the blockchain. At this time, the user to be logged in can re-enter the blockchain account information at the blockchain login entrance to log in.

[0089] Optionally, multiple login entries may be displayed in the operation page of the client, of which the blockchain login entry is used to log in to the blockchain account, and the other login entries are used for ordinary login to the client. Among them, the blockchain account includes the blockchain account name and the blockchain account password. The blockchain account name corresponds to the user's public key one by one, and the blockchain account password is obtained through the user's private key. For example, if there are two login entries in the client, namely the blockchain login entry and the ordinary login entry, the user to be logged in can choose the blockchain login entry to enter the blockchain account to log in according to his own needs, or choose the ordinary login entry to enter the ordinary account and password registered in the client to log in. Among them, this application does not limit the display form and display position of the login entry.

[0090] Optionally, the client has a local history storage function, and can locally store blockchain account information and corresponding blockchain real-name account information. After the user to be logged in logs in to the client for the first time, the blockchain account and the corresponding blockchain real-name account information entered this time will be saved. Then, when the user logs in next time, the user to be logged in can select his own blockchain account from the saved blockchain accounts. After entering the correct blockchain account password, the client can directly query the identity information in the blockchain real-name account corresponding to the blockchain account from the locally saved blockchain real-name account information, and then determine whether the identity information meets the client's identity certification conditions to determine whether the user to be logged in can log in to the client.

[0091] In the embodiment of the present application, the terminal can record the real-name verification process of the target user, obtain the real-name verification record information, and store the real-name verification record information in the blockchain. The terminal can query the real-name verification record information from the blockchain.

[0092] In the embodiment of the present application, the above-mentioned account management method can be provided to a traditional website for combination, so as to realize a simple combination with traditional business. For example, the account management method provided in the embodiment of the present application is combined with a traditional shopping website. When the user to be logged in uses his own blockchain account to log in to the shopping network, the blockchain real-name account corresponding to the blockchain account can be called by the server, and the identity of the user to be logged in is verified based on the identity information in the blockchain real-name account. If the requirement for logging in to the shopping website is to provide the user's real identity certificate, and the user is an adult, the user's real identity certificate is queried from the obtained identity certificate information and the user's age certificate is queried to determine whether the user to be logged in is an adult. If the user to be logged in is an adult, the identity verification of the user to be logged in is passed, and the terminal sends a verification success message. Based on the verification success message, the user interface of the shopping website is displayed, that is, the user is allowed to log in to the shopping website for use. Through this account management method, the user can log in to the shopping website with real name, realize third-party supervision, strengthen the management of underage users, and improve the security of shopping website login. In addition, the login entrance of the shopping website may also include a general login entrance. If the shopping website does not want to restrict the users to be logged in, the users to be logged in can log in with the general account and password created by the shopping website, and the general login entrance can be opened or closed as needed.

[0093] In the present application, please refer to Figure 3 , Figure 3 A reference diagram of an exemplary code for generating a target blockchain real-name account provided in an embodiment of the present application. Figure 3 As shown in the reference code, the user's identity information is stored in the blockchain, and the identity information is verified by the real-name verification agency based on the identity information, and the various identity verification information of the received user is saved. Add DID related information to the blockchain source code account (Account) class, that is, add the user's identity verification information to the blockchain account.

[0094] In an embodiment of the present application, a blockchain account can be stored in each node of the blockchain, and then the acquired identity information can be added to the blockchain account to obtain a blockchain real-name account.

[0095] Optionally, each node in the current blockchain will store blockchain accounts and identity information; the current public solution does not require a specific node to handle it separately. If it involves public and non-public requirements, management nodes can be added for maintenance. Ordinary nodes do not maintain but only verify.

[0096] Optionally, two blockchains can be built, set as the first blockchain and the second blockchain, and the blockchain account is stored on each node of the first blockchain, and the blockchain account and identity information are stored on each node of the second blockchain. A corresponding relationship is established between the blockchain account on the first blockchain and the blockchain account and identity information on the second blockchain, that is, the target blockchain account on the first blockchain and the corresponding target blockchain account and identity information on the second blockchain are used as the target blockchain real-name account. When the user logs in, a chain query is implemented, that is, ordinary users can only access the first blockchain that "only has blockchain account information", and the management agency (real-name verification agency) can access the second blockchain that "has blockchain account information and identity information". When the target user needs to prove basic identity information, he can access the first blockchain, and then the first blockchain can securely access the second blockchain through the CA certificate issued by the second blockchain to obtain the identity information corresponding to the target blockchain account of the target user, wherein only some nodes of the first blockchain can obtain the certificate issued by the second blockchain.

[0097] Optionally, real-name verification agencies can store blockchain accounts and identity information to achieve third-party supervision of blockchain accounts.

[0098] In the embodiment of the present application, an account management method is provided. For the account management system where the account management method is applied, please refer to Figure 4 ,like Figure 4 As shown, in the blockchain system, the blockchain account of the target user is first obtained. Then the identity information of the target user is obtained, and the obtained identity information is verified by a third-party user detection agency. If the real-name verification of the identity information passes, the third-party user detection agency will issue the identity certification information of the target user, and the terminal obtains the identity certification information corresponding to the identity information. Based on the identity certification information and the target blockchain account, the target blockchain real-name account of the target user is generated and stored in the blockchain.

[0099] Among them, Figure 4 As shown, the target blockchain account is a user account created in the blockchain. If there is no blockchain account of the target user in the blockchain, it is necessary to create a target blockchain account of the target user, and the blockchain account can be created through the user public and private key generation service. Among them, the step of creating the target blockchain account includes: the terminal responds to the target user's request to create the target blockchain account, obtains the target public and private key pair corresponding to the target user based on the creation request, and binds the target blockchain account to the target public and private key pair. If the target blockchain account of the target user already exists in the blockchain, the terminal can directly obtain the target blockchain account from the blockchain.

[0100] Among them, Figure 4As shown, after the terminal obtains the existing target blockchain account or creates and obtains the target blockchain account, it then obtains the identity information of the target user, that is, the terminal receives various identity information input by the target user. Then, the blockchain can call a third-party real-name service, that is, the obtained identity information can be verified by a third-party real-name verification agency (third-party user detection agency). If the real-name verification of the target user's identity information passes, the real-name verification agency will issue at least one identity proof information based on the identity information, and return the identity proof information to the terminal, whereupon the terminal obtains the identity proof information corresponding to the target user's identity information. Among them, the identity proof information may be proof information including at least one identity proof dimension of the target user, for example Figure 4 Proof of real user (cannot be applied for repeatedly), proof of user age, etc.

[0101] Among them, Figure 4 As shown, after the terminal receives the identity information returned by the real-name verification agency, a target blockchain real-name account of the target user is generated in the blockchain based on the identity information and the acquired target blockchain account. The blockchain real-name account is stored in the blockchain. When the target user logs in to a website that supports decentralized login, the corresponding blockchain account is used to log in. The blockchain real-name account corresponding to the input blockchain account can be queried, and the login can be completed by providing multiple identity information.

[0102] In the present application embodiment, by Figure 4 The account management method in the account management system shown generates a blockchain real-name account for the target user based on the acquired blockchain account and the real-name information of the target user. When the target user logs in to the blockchain account, by querying the blockchain real-name account corresponding to the blockchain account, the real-name user transaction under third-party supervision and other capabilities can be realized. In addition, the third-party citizen real-name inspection agency issues a DID identity, realizing user real-name, anonymity between users, and third-party supervision.

[0103] In order to better implement the above method, accordingly, the embodiment of the present application further provides an account management device, which can be integrated into the terminal, for example, in the form of a client.

[0104] refer to Figure 5 The account management device includes a first acquisition unit 501, a verification unit 502, a second acquisition unit 503, and a generation unit 504, as follows:

[0105] A first acquisition unit 501 acquires a target blockchain account of a target user, where the target blockchain account is a target user account created in the blockchain;

[0106] The verification unit 502 is used to obtain the identity information of the target user and perform real-name verification on the identity information;

[0107] The second acquisition unit 503 is used to acquire identity certification information corresponding to the identity information if the real-name verification of the identity information passes;

[0108] The generating unit 504 is used to generate a target blockchain real-name account of the target user in the blockchain based on the identity proof information and the blockchain account.

[0109] In an optional embodiment, the generating unit 504 further includes:

[0110] Storing the target blockchain account in each node of the blockchain;

[0111] The identity proof information is added to the target blockchain account to generate a target blockchain real-name account of the target user.

[0112] In an optional embodiment, the blockchain includes a first blockchain and a second blockchain, and the generating unit 504 further includes:

[0113] Storing the target blockchain account in each node of the first blockchain;

[0114] Storing the identity information and the target blockchain account in each node of the second blockchain;

[0115] Based on the target blockchain account in the first blockchain and the corresponding identity information and the target blockchain account in the second blockchain, a target blockchain real-name account of the target user is generated.

[0116] In an optional embodiment, the generating unit 504 further includes:

[0117] Storing the target blockchain account and the identity information on each node of the blockchain;

[0118] An account contract of the target user is generated in the blockchain, wherein the account contract includes the target blockchain account and the corresponding identity certification information, wherein the account contract is a real-name account of the target blockchain.

[0119] In an optional embodiment, the verification unit 502 further includes:

[0120] Obtain the identity information of the target user and determine the real-name verification agency;

[0121] Querying the real-name identity information through the real-name verification agency to see whether the identity information exists;

[0122] If the query result is yes, it is determined that the identity information has passed the real-name verification.

[0123] In an optional embodiment, the generating unit 504 further includes:

[0124] The target blockchain account and the identity verification information are stored by the real-name verification agency.

[0125] In an optional embodiment, the generating unit 504 further includes:

[0126] Receiving a login request for a client, wherein the login request includes a first blockchain account of a user to be logged in;

[0127] Sending the first blockchain account to the server, triggering the server to obtain a first blockchain real-name account corresponding to the first blockchain account from the blockchain, performing identity verification on the user to be logged in based on the identity verification information in the first blockchain real-name account, and sending the verification success information after the verification passes;

[0128] The verification success information is received, and the user interface of the client is displayed.

[0129] In an optional embodiment, the generating unit 504 further includes:

[0130] Displaying a login entry on the operation page of the client, wherein the login entry includes a blockchain login entry;

[0131] A first blockchain account input through the blockchain login portal is received, and the login request is generated based on the first blockchain account.

[0132] In an optional embodiment, the generating unit 504 further includes:

[0133] Recording the real-name verification process of the target user to obtain real-name verification record information;

[0134] The real-name verification record information is stored in the blockchain.

[0135] Accordingly, the embodiment of the present application also provides a terminal, which may be a smart phone, a tablet computer, a laptop computer, a touch screen, a game console, a personal computer (PC), a personal digital assistant (PDA), or other terminal devices. Figure 6 As shown, Figure 6The terminal 600 includes a processor 601 having one or more processing cores, a memory 602 having one or more computer-readable storage media, and a computer program stored in the memory 602 and executable on the processor. The processor 601 is electrically connected to the memory 602. Those skilled in the art will appreciate that Figure 6 The terminal structure shown in the figure does not constitute a limitation on the terminal, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.

[0136] Processor 601 is the control center of terminal 600. It uses various interfaces and lines to connect various parts of the entire terminal 600, executes various functions of terminal 600 and processes data by running or loading software programs and / or modules stored in memory 602, and calling data stored in memory 602, thereby monitoring terminal 600 as a whole.

[0137] In the embodiment of the present application, the processor 601 in the terminal 600 loads instructions corresponding to the processes of one or more application programs into the memory 602 according to the following steps, and the processor 601 runs the application programs stored in the memory 602 to implement various functions:

[0138] Obtain a target blockchain account of a target user, where the target blockchain account is a user account created in the blockchain; obtain the identity information of the target user, and perform real-name verification on the identity information; if the real-name verification of the identity information passes, obtain identity certification information corresponding to the identity information; based on the identity certification information and the target blockchain account, generate a target blockchain real-name account of the target user in the blockchain.

[0139] The specific implementation of the above operations can be found in the previous embodiments, which will not be described in detail here.

[0140] Optional, such as Figure 6 As shown, the terminal 600 also includes: a touch screen 603, a radio frequency circuit 604, an audio circuit 605, an input unit 606 and a power supply 607. Among them, the processor 601 is electrically connected to the touch screen 603, the radio frequency circuit 604, the audio circuit 605, the input unit 606 and the power supply 607 respectively. Those skilled in the art can understand that Figure 6 The terminal structure shown in the figure does not constitute a limitation on the terminal, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.

[0141] The touch display screen 603 can be used to display a graphical user interface and receive operation instructions generated by the user acting on the graphical user interface. The touch display screen 603 may include a display panel and a touch panel. Among them, the display panel may be used to display information input by the user or information provided to the user and various graphical user interfaces of the terminal, and these graphical user interfaces may be composed of graphics, text, icons, videos and any combination thereof. Optionally, the display panel may be configured in the form of a liquid crystal display (LCD, Liquid Crystal Display), an organic light-emitting diode (OLED, Organic Light-Emitting Diode) and the like. The touch panel may be used to collect the user's touch operation on or near it (such as the user using any suitable object or attachment such as a finger, a stylus, etc. on the touch panel or near the touch panel), and generate corresponding operation instructions, and the operation instructions execute corresponding programs. Optionally, the touch panel may include two parts, a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into the touch point coordinates, and then sends it to the processor 601, and can receive the command sent by the processor 601 and execute it. The touch panel can cover the display panel. When the touch panel detects a touch operation on or near it, it is transmitted to the processor 601 to determine the type of touch event, and then the processor 601 provides a corresponding visual output on the display panel according to the type of touch event. In an embodiment of the present application, the touch panel and the display panel can be integrated into the touch display screen 603 to realize the input and output functions. However, in some embodiments, the touch panel and the touch panel can be used as two independent components to realize the input and output functions. That is, the touch display screen 603 can also be used as a part of the input unit 606 to realize the input function.

[0142] The radio frequency circuit 604 can be used to send and receive radio frequency signals to establish wireless communication with network devices or other terminals through wireless communication, and to send and receive signals between network devices or other terminals. In the embodiment of the present application, wireless communication can be established between the terminal and the third-party verification agency, and between the client to be logged in and the server, and signals can be sent and received between each other.

[0143] The audio circuit 605 can be used to provide an audio interface between the user and the terminal through a speaker and a microphone. The audio circuit 605 can transmit the electrical signal converted from the received audio data to the speaker, which is converted into a sound signal for output; on the other hand, the microphone converts the collected sound signal into an electrical signal, which is received by the audio circuit 605 and converted into audio data, and then the audio data is output to the processor 601 for processing, and then sent to another terminal through the radio frequency circuit 604, or the audio data is output to the memory 602 for further processing. The audio circuit 605 may also include an earplug jack to provide communication between an external headset and the terminal.

[0144] The input unit 606 can be used to receive input numbers, character information or user feature information (such as fingerprint, iris, facial information, etc.), and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control. In the embodiment of the present application, the input unit 606 can be used to receive the blockchain account input by the user to be logged in.

[0145] The power supply 607 is used to supply power to various components of the terminal 600. Optionally, the power supply 607 can be logically connected to the processor 601 through a power management system, so as to manage charging, discharging, and power consumption management through the power management system. The power supply 607 can also include one or more DC or AC power supplies, recharging systems, power failure detection circuits, power converters or inverters, power status indicators, and other arbitrary components.

[0146] although Figure 6 Not shown, the terminal 600 may also include a camera, a sensor, a wireless fidelity module, a Bluetooth module, etc., which will not be described in detail here.

[0147] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0148] As can be seen from the above, the terminal provided in this embodiment can obtain the target blockchain account of the target user, where the target blockchain account is a user account created in the blockchain; obtain the identity information of the target user, and perform real-name verification on the identity information; if the real-name verification of the identity information passes, obtain the identity proof information corresponding to the identity information; based on the identity proof information and the target blockchain account, generate the target blockchain real-name account of the target user in the blockchain.

[0149] A person of ordinary skill in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be completed by instructions, or by controlling related hardware through instructions. The instructions may be stored in a computer-readable storage medium and loaded and executed by a processor.

[0150] To this end, an embodiment of the present application provides a computer-readable storage medium, in which multiple computer programs are stored, and the computer program can be loaded by a processor to execute the steps of any account management method provided in the embodiment of the present application. For example, the computer program can execute the following steps:

[0151] Obtain a target blockchain account of a target user, where the target blockchain account is a user account created in the blockchain; obtain the identity information of the target user, and perform real-name verification on the identity information; if the real-name verification of the identity information passes, obtain identity certification information corresponding to the identity information; based on the identity certification information and the target blockchain account, generate a target blockchain real-name account of the target user in the blockchain.

[0152] The specific implementation of the above operations can be found in the previous embodiments, which will not be described in detail here.

[0153] The storage medium may include: a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.

[0154] Since the computer program stored in the storage medium can execute the steps of any one of the account management methods provided in the embodiments of the present application, the beneficial effects that can be achieved by any one of the account management methods provided in the embodiments of the present application can be achieved. Please refer to the previous embodiments for details and will not be repeated here.

[0155] The above is a detailed introduction to an account management method, device, terminal and storage medium provided in the embodiments of the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea. At the same time, for technical personnel in this field, according to the idea of ​​the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.

Claims

1. An account management method, characterized in that: Applied to terminals, including: Obtain a target blockchain account of a target user, where the target blockchain account is a user account created in the blockchain; Acquire the identity information of the target user and determine the real-name verification agency, wherein the identity information includes at least one of the target user's biometrics, the target user's name information, and the target user's ID card information; Querying the real-name identity information through the real-name verification agency to see whether the identity information exists; If the query result is yes, it is determined that the identity information has passed the real-name verification; If the real-name verification of the identity information is passed, obtaining the identity certification information corresponding to the identity information; Storing the target blockchain account in each node of the blockchain; The identity proof information is added to the target blockchain account to generate a target blockchain real-name account of the target user.

2. The account management method according to claim 1, characterized in that: After adding the identity proof information to the target blockchain account to generate the target blockchain real-name account of the target user, the method further includes: The target blockchain account and the identity verification information are stored by the real-name verification agency.

3. The account management method according to claim 1, characterized in that: Also includes: Receiving a login request for a client, wherein the login request includes a first blockchain account of a user to be logged in; Sending the first blockchain account to the server, triggering the server to obtain a first blockchain real-name account corresponding to the first blockchain account from the blockchain, performing identity verification on the user to be logged in based on the identity verification information in the first blockchain real-name account, and sending verification success information after the verification passes; Based on the verification success information, the user interface of the client is displayed.

4. The account management method according to claim 3, characterized in that: The receiving a login request for a client further includes: Displaying a login entry on the operation page of the client, wherein the login entry includes a blockchain login entry; A first blockchain account input through the blockchain login portal is received, and the login request is generated based on the first blockchain account.

5. The account management method according to claim 1, characterized in that: Also includes: Recording the real-name verification process of the target user to obtain real-name verification record information; The real-name verification record information is stored in the blockchain.

6. An account management method, characterized in that: Applied to terminals, including: Obtain a target blockchain account of a target user, where the target blockchain account is a user account created in a blockchain, where the blockchain includes a first blockchain and a second blockchain; Acquire the identity information of the target user and determine the real-name verification agency, wherein the identity information includes at least one of the target user's biometrics, the target user's name information, and the target user's ID card information; Querying the real-name identity information through the real-name verification agency to see whether the identity information exists; If the query result is yes, it is determined that the identity information has passed the real-name verification; If the real-name verification of the identity information is passed, obtaining the identity certification information corresponding to the identity information; Storing the target blockchain account in each node of the first blockchain; Storing the identity information and the target blockchain account in each node of the second blockchain; Based on the target blockchain account in the first blockchain and the corresponding identity information and the target blockchain account in the second blockchain, a target blockchain real-name account of the target user is generated.

7. An account management method, characterized in that: Applied to terminals, including: Obtain a target blockchain account of a target user, where the target blockchain account is a user account created in the blockchain; Acquire the identity information of the target user and determine the real-name verification agency, wherein the identity information includes at least one of the target user's biometrics, the target user's name information, and the target user's ID card information; Querying the real-name identity information through the real-name verification agency to see whether the identity information exists; If the query result is yes, it is determined that the identity information has passed the real-name verification; If the real-name verification of the identity information is passed, obtaining the identity certification information corresponding to the identity information; Storing the target blockchain account and the identity information on each node of the blockchain; An account contract of the target user is generated in the blockchain, wherein the account contract includes the target blockchain account and the corresponding identity certification information, wherein the account contract is a real-name account of the target blockchain.

8. An account management device, characterized in that: Applied to terminals, including: A first acquisition unit is used to acquire a target blockchain account of a target user, where the target blockchain account is a target user account created in the blockchain; A verification unit, configured to obtain the identity information of the target user and determine a real-name verification agency, wherein the identity information includes at least one of the target user's biometrics, the target user's name information, and the target user's ID card information; query the real-name identity information through the real-name verification agency to see whether the identity information exists; if the query result is yes, then determine that the identity information has passed the real-name verification; A second acquisition unit is used to acquire identity certification information corresponding to the identity information if the real-name verification of the identity information passes; A generating unit is used to store the target blockchain account in each node of the blockchain; add the identity proof information to the target blockchain account to generate a target blockchain real-name account of the target user.

9. A terminal, characterized in that: The method comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the steps of the account management method according to any one of claims 1 to 7 are implemented.

10. A storage medium, characterized in that: A computer program is stored thereon, wherein when the computer program is executed by a processor, the steps of the account management method according to any one of claims 1 to 7 are implemented.

Citation Information

Patent Citations

  • A transaction verification system based on block chain

    CN109165946A

  • Multi-chain information management method and device, storage medium and block chain identity parser

    CN109493054A

  • Ticket management method and device based on block chain and storage medium

    CN110555029A