CN110400136B - Account management method, device, server and storage medium based on block chain - Google Patents

Account management method, device, server and storage medium based on block chain Download PDF

Info

Publication number
CN110400136B
CN110400136B CN201910688330.7A CN201910688330A CN110400136B CN 110400136 B CN110400136 B CN 110400136B CN 201910688330 A CN201910688330 A CN 201910688330A CN 110400136 B CN110400136 B CN 110400136B
Authority
CN
China
Prior art keywords
account
block
block chain
request
user
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910688330.7A
Other languages
Chinese (zh)
Other versions
CN110400136A (en
Inventor
李引
周洪飞
岳增书
尚志豪
李佳
庄木沛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Tencent Cloud Computing Beijing Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Tencent Cloud Computing Beijing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd, Tencent Cloud Computing Beijing Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201910688330.7A priority Critical patent/CN110400136B/en
Publication of CN110400136A publication Critical patent/CN110400136A/en
Application granted granted Critical
Publication of CN110400136B publication Critical patent/CN110400136B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/22Payment schemes or models
    • G06Q20/28Pre-payment schemes, e.g. "pay before"
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/382Payment protocols; Details thereof insuring higher security of transaction
    • G06Q20/3829Payment protocols; Details thereof insuring higher security of transaction involving key management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/40Authorisation, e.g. identification of payer or payee, verification of customer or shop credentials; Review and approval of payers, e.g. check credit lines or negative lists
    • G06Q20/401Transaction verification
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/04Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks
    • H04L63/0428Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/0815Network architectures or network communication protocols for network security for authentication of entities providing single-sign-on or federations
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/0876Network architectures or network communication protocols for network security for authentication of entities based on the identity of the terminal or configuration, e.g. MAC address, hardware or software configuration or device fingerprint
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/131Protocols for games, networked simulations or virtual reality
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/104Peer-to-peer [P2P] networks

Abstract

The invention discloses an account management method, an account management device, a server and a storage medium based on a block chain, and belongs to the technical field of networks. The method comprises the following steps: according to the account recharging request, deducting a first numerical value from the account bound by the account identifier to generate a first candidate block; sending a first candidate block to a plurality of blockchain nodes within a blockchain system; and when the plurality of block link points pass the verification of the first candidate block, adding the first candidate block serving as a third block into a second block chain, and adding a second numerical value into the platform seed account corresponding to the account number identifier. Therefore, the subsequent inquiry can be carried out based on the platform seed account of the account number, the traceability of the transaction record is ensured, and the reliability of the transaction is further improved.

Description

Account management method, device, server and storage medium based on block chain
The application is a divisional application with application date of 2018, 4 and 27 months, application number of 201810393545.1 and invention name of' account management method, device, server and storage medium based on block chain
Technical Field
The present invention relates to the field of network technologies, and in particular, to an account management method and apparatus based on a block chain, a server, and a storage medium.
Background
With the rapid development of the blockchain technology, the blockchain technology can be applied to various scenes. Account management is a typical application scenario of the blockchain technology. For example, account management of the game platform, account management within a company, and the like. In the account management process, how to create, log in, authenticate, recharge and consume the user account is an important problem to be solved urgently.
In the related art, taking game entertainment as an example, a game merchant generally purchases a server or a server cluster, and the server or the server cluster performs centralized management on a plurality of accounts, for example, services such as account registration service, login of each account, and recharge consumption are processed.
Disclosure of Invention
The embodiment of the invention provides an account management method, an account management device, a server and a storage medium based on a block chain, and the technical scheme is as follows:
in one aspect, an account management method based on a block chain is provided, where the method includes:
according to an account number recharging request, deducting a first numerical value from an account number bound with an account number identifier, wherein the account number recharging request carries the account number identifier and a second numerical value of virtual money to be recharged;
generating a first candidate block according to the account recharging request, wherein the first candidate block is used for storing a transaction record corresponding to the account recharging request;
sending the first candidate block to a plurality of blockchain nodes within a blockchain system;
when the plurality of block link points verify that the first candidate block passes, adding the first candidate block as a third block into a second block chain, adding a second numerical value in a platform seed account corresponding to the account number identifier, wherein the first numerical value and the second numerical value have a conversion relation, and the second block chain is used for storing transaction records of each account number.
In one aspect, an account management apparatus based on a block chain is provided, where the apparatus includes:
the deduction module is used for deducting a first numerical value from an account bound with an account identifier according to an account recharging request, wherein the account recharging request carries the account identifier and a second numerical value of the virtual currency to be recharged;
the generating module is used for generating a first candidate block according to the account recharging request, and the first candidate block is used for storing a transaction record corresponding to the account recharging request;
a first sending module, configured to send the first candidate block to a plurality of blockchain nodes in a blockchain system;
the first adding module is configured to add the first candidate block as a third block into a second block chain when the verification of the first candidate block by the plurality of block link points passes, add a second numerical value to the platform seed account corresponding to the account id, where the first numerical value and the second numerical value have a conversion relationship, and the second block chain is used to store transaction records of each account.
In one aspect, a server is provided, and the server includes a processor and a memory, where the memory stores at least one instruction, and the instruction is loaded and executed by the processor to implement the operations performed by the block chain based account management method as described above.
In one aspect, a computer-readable storage medium is provided, and at least one instruction is stored in the storage medium and loaded and executed by a processor to implement the operations performed by the block chain based account management method as described above.
The technical scheme provided by the embodiment of the invention has the following beneficial effects:
generating a first candidate block according to the account recharging request based on the account recharging request carrying the account identifier and a second numerical value of the virtual currency to be recharged; sending the first candidate block to a plurality of blockchain nodes in a blockchain system; when the plurality of block chain links pass the verification of the first candidate block, the first candidate block is added into a second block chain as a third block, so that the transaction is transparent in disclosure, and the second value is added to the platform seed account, so that the subsequent inquiry can be carried out based on the platform seed account of the account number, the traceability of transaction records is ensured, and the reliability of the transaction is further improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a schematic illustration of an implementation environment provided by an embodiment of the invention;
fig. 2 is a flowchart of an account registration method based on a block chain according to an embodiment of the present invention;
fig. 3 is a flowchart of an account recharging method based on a block chain according to an embodiment of the present invention;
fig. 4 is a schematic view of an account recharging process according to an embodiment of the present invention;
fig. 5 is a flowchart of a virtual article transaction method based on a block chain according to an embodiment of the present invention;
FIG. 6 is a schematic flow chart of a virtual article transaction according to an embodiment of the present invention;
fig. 7 is a schematic diagram of a structure of an account management apparatus based on a block chain according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of a server according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 1 is a schematic diagram of an implementation environment provided by an embodiment of the present invention, where the implementation environment includes: a server 101, a plurality of user terminals 102.
The plurality of servers 101 may be configured with the same blockchain, that is, the plurality of servers 101 may form a blockchain system, and each server 101 is a blockchain node in the blockchain system. Servers of various enterprises in the league may be included in the system, for example, the plurality of servers 101 may be nodes corresponding to the blockchain system for game merchants, and the plurality of user terminals 102 may establish communication connections with the plurality of servers 101 through private networks purchased by the game merchants in the blockchain system.
The multiple servers 101 may provide account management services for the user, and specifically may include an account registration service, an account recharging service, and a virtual article transaction service. Taking the user terminal 102 as an example, when a user needs to register an account, the user terminal 102 may send registration requests to the servers 101, and the plurality of servers authenticate the user based on the registration requests, and return an account identifier to the user terminal 102 after the authentication is passed, so that the user can log in the account based on the account identifier. When a user needs to recharge an account, the user terminal 102 may send a recharge request to the plurality of servers 101, and the plurality of servers 101 deduct the amount of the corresponding value of the account identifier binding account based on the target resource value of the virtual currency to be recharged, and then add the corresponding target resource value to the platform seed account of the account. When a virtual article transaction needs to be performed between the account number of the user and another account number, the user terminal 102 (or the user terminal where the other user is located) may further send a virtual article transaction request to the multiple servers 101, and the multiple servers 101 perform a transfer of the right to which the virtual article belongs and a transfer of virtual money between the two user account numbers based on the virtual article transaction request.
Meanwhile, when the account registration, the account recharging and the virtual article transaction process are executed, the multiple servers 101 can also respectively store account information and transaction records related to the account registration, the account recharging and the virtual article transaction into a block of a block chain, and subsequent users can also retrieve stolen accounts, trace the transaction records and the like based on the block, so that the reliability and the safety of the account registration, the account recharging and the virtual article transaction are ensured.
The account registration process, the account recharging process and the virtual article transaction process related to the present application are respectively described below. It should be noted that the account registration method, the account recharging method, and the virtual article transaction method may be applied to a blockchain node of a blockchain system, where the blockchain node may be a node corresponding to the blockchain system by a merchant, and is used to provide the account registration service, the account recharging service, and the virtual article transaction service for the user.
Fig. 2 is a flowchart of an account registration process based on a block chain according to an embodiment of the present invention. Referring to fig. 2, the method includes:
201. the blockchain node receives a registration request of the first terminal.
The registration request carries a user public key and first encryption information, and the first encryption information is obtained by encrypting first user identification information by using a system public key of a block chain system.
In the embodiment of the present invention, the block chain system may issue a system public key on a website of a notarization institution, and before a user registers an account, the user may first obtain the system public key from the website of the notarization institution, and encrypt the first user identification information of the user by using the system public key to obtain the first encryption information. And the user can acquire the own user public key and the user private key, a first terminal used by the user establishes communication connection with the block link point, the first terminal sends a registration request to the block link point based on the communication connection, and the block link point receives the registration request and acquires the user public key and the first encryption information from the registration request. Wherein the first subscriber identity information includes but is not limited to: the personal mailbox, the personal mobile phone number, the personal identification number and other information of the user.
It should be noted that the registration request may be a registration request of a game account, a registration request of a social application account, or the like. Taking a registration request of a game account as an example, a game merchant can purchase a private network of the game merchant in a blockchain system, and provide services such as account registration service, account recharging service, virtual article transaction and the like for a user based on a platform of the private network. In one possible embodiment, the first terminal may log in a private network of the game merchant, and the block link node obtains registration-required information, such as the first encrypted information and the user public key, from the first terminal through a registration entry of the private network.
The block node provides account registration services to the user based on the information required for registration, as shown in step 202 and 204 below.
202. And the block chain node decrypts the first encrypted information by adopting a system private key of the block chain system to obtain first user identification information, and verifies the first user identification information.
The block chain link point decrypts the first encrypted information by adopting a system private key to obtain the first user identification information, and judges whether the first user identification information is valid information or not. When the first user identification information is valid information, the first user identification information is verified to be valid, that is, the registration request is valid. When the first user identification information is invalid information, the first user identification information is not verified, that is, the registration request is invalid.
In one possible design, the block link point may send verification information to a user based on the first subscriber identity information to determine whether the first subscriber identity information is valid information. Taking the first user identification information as an example of the personal mailbox, the verification process may be: the block link point may send an email verification message including email activation information to the personal email, and when the first terminal receives the email verification message and returns an activation response to the block link point according to the email activation information, the block link point determines that the first user identification information is valid information based on the received activation response, and the email verification passes. And when the block link point does not receive the activation response, determining that the first user identification information is invalid information, and failing to verify. Certainly, when the first user identification information includes a personal mobile phone number, the block link point may also send verification information to the personal mobile phone number for verification, and the implementation process is the same process as the verification based on the personal mailbox, which is not described herein again.
Before verifying the user identity information, the block link point may also verify whether the first user identification information is authenticated, and whether the registration operation is a malicious operation is performed through a verification code.
203. And when the first user identification information passes verification, the block link point acquires the account identification of the first terminal, and generates a first block in the first block chain based on the account identification, the user public key and the first user identification information.
The first blockchain is used for storing user registration information. The first blockchain may store a plurality of account id and related information, such as a user public key and user id information. When the first user identification information passes verification, the block chain node allocates an account identification for the first terminal, and the account identification is used for uniquely identifying the account. And the block link point generates a first block according to the account mark, the user public key and the first user mark information, and adds the first block into a first block chain. That is, the first block stores the user identifier, the user public key, and the first user identifier information.
In a possible implementation manner, the first block further stores an authenticated state of the first subscriber identity information, and accordingly, the process of generating the first block may further be: the block link point generates the first block according to the account identifier, the user public key, the first user identifier information, and the authenticated state of the first user identifier information. Because the authenticated state of the first user identification information is stored, other accounts cannot register a new account by using the first user identification information, so that malicious falsifying of the user identification information is limited, and the phenomenon of malicious account registration is avoided.
Of course, the embodiment of the present invention does not limit the storage manner of the authenticated state of the first subscriber identity information by the blockchain node. The block link point may store the first subscriber identity information to a designated field of the first block, the designated field indicating that the authentication status of the stored subscriber identity information is authenticated. Or, the block link point may also directly store the first subscriber identity information and the authenticated state corresponding to the first subscriber identity information.
In the embodiment of the present invention, the block link point successfully allocates the account id to the user based on the registration request through the above step 201 and 203, that is, the account registration is successful. The block link point also needs to inform the user of the registration result in step 204.
204. And the block link point encrypts the account identifier by adopting the user public key and returns the encrypted account identifier to the first terminal.
The block link node encrypts the account identifier through a user public key carried in the registration request, and sends the encrypted account identifier to the first terminal through communication connection between the block link node and the first terminal.
The first terminal decrypts the account identifier through a user private key, and stores the account identifier and the first user identification information in an associated manner. The first terminal subsequently sends a login request to the block link point based on the account identifier and the first user identifier information. In the embodiment of the present invention, the block link point may provide an account login service for the user based on the following step 205.
205. And the block chain node receives a login request of a second terminal, and when the first block stores the first user identification information and the authenticated state of the first user identification information, the second terminal is allowed to log in based on the account identification in response to the login request.
The login request carries encrypted account identification and the first user identification information, wherein the account identification and the first user identification information are both encrypted information by adopting a system public key. And the block link point decrypts the information carried by the login request according to a system private key to obtain the account identifier and the first user identifier information. The block chain node acquires user identification information corresponding to the account identification from a first block, and acquires the authentication state of the first user identification information when the user identification information corresponding to the account identification is the first user identification information; when the authentication state of the first user identification information is the authenticated state, determining that the account identifier has the login authority, namely, the block link node passes the verification of the login request, and returning a login success message to the second terminal; and when the user identification information corresponding to the account identification is different from the first user identification information or the first user identification information is in an unauthenticated state, determining that the account identification does not have login authority, verifying the login request, and returning a login failure message to the second terminal.
It should be noted that the second terminal and the first terminal may be the same terminal, or may also be two different terminals. The terminal used in the account registration process and the terminal used in the login process are not particularly limited in the embodiments of the present invention.
In the embodiment of the present invention, when both the account id and the user id information of the user are stolen, the block link point may also provide a recovery service for the stolen account for the user, and the recovery process is the process shown in the following step 206 and 209.
206. The blockchain node receives a request back from the third terminal.
When the account id and/or the first user id information is stolen, the user may send a request for a callback to the account to the block node. The request carries account identification and second encryption information, and the second encryption information is obtained by encrypting the second user identification information by using the user private key.
The second user identification information and the first user identification information may be the same or different, and the different situations refer to: the user may be exchanged for new user identification information. For example, the user uses a mobile phone number, a personal mailbox, or the like different from that at the time of registration.
It should be noted that the third terminal may encrypt the account id by using the system public key first, and send the encrypted account id to the block link point. In addition, the third terminal, the second terminal and the first terminal may be the same terminal, or may be two or three different terminals. The embodiment of the invention does not specifically limit the terminal used in the account registration process, the login process and the recall process.
207. And the block chain node acquires the user public key from the first block, decrypts the second encrypted information by adopting the user public key, and verifies the second user identification information.
And the block link point acquires a user public key corresponding to the account identifier from the first block according to the account identifier, and decrypts the second encrypted information by adopting the user public key to obtain the second user identifier information. The process of verifying the second ue information by the block link node is the same as the process of verifying the first ue information in step 202, and is not described herein again.
In a possible design, when the account id is information encrypted by using a system public key, the block link point may further decrypt the encrypted account id by using a system private key to obtain the account id.
It should be noted that the block link point also needs to determine whether the first subscriber identity information during registration is the same as the second subscriber identity information during the above-mentioned retrieving process, and if so, the block link point directly performs the following step 209. If not, the block link point needs to store the account id and the corresponding second user id information again in the first block chain through the following step 208, and then execute step 209.
208. When the verification passes, the block link point generates a second block in the first block chain based on the account identifier, the user public key and the second user identifier information.
It should be noted that the process of generating the second block is the same process as that in step 203, and in addition, the block link point may also store the authenticated state of the second user identification information in the second block, and the process is the same process as that of storing the authenticated state of the first user indication information, which is not described herein again.
In one possible design, when the verification is passed, the block link point determines that the account is stolen, and after the block link point stores the information corresponding to the account again, the user may be notified to retrieve the result through the following step 209.
209. And the block link point encrypts the second user identification information by adopting the user public key and returns the encrypted second user identification information to the third terminal.
And the block link point encrypts the second user identification information by adopting the user public key and sends the encrypted second user identification information to the third terminal. And the third terminal receives the encrypted second user identification information and decrypts the encrypted second user identification information through the user private key. The third terminal determines that the request-back is successful, and subsequently, account login can be performed through the account identifier and the second user identifier information.
In the embodiment of the invention, a UTXO (unused Transaction Output) mode is adopted in the block chain system for management, which is different from a balance mode of a traditional account, and for a stolen account, after a user requests the account through the steps, the rights and interests of the account are correspondingly recovered.
In one possible design, when the account is stolen, the third terminal may also query a transaction record during the theft to take risk control measures based on the transaction record. The block chain node can also provide query service of stolen account numbers for users. The query process may be: the block chain node receives an inquiry request of the third terminal, wherein the inquiry request is used for inquiring transaction records in a target time period, and the target time period is a stolen time period identified by the account number; the blockchain node acquires a transaction record corresponding to the account identifier in the target time period from a second blockchain according to the account identifier, wherein the second blockchain is used for storing the transaction record of each account; and the block link point returns the transaction record corresponding to the account number identifier to the third terminal.
It should be noted that, when the loss of the user during the theft period is serious, the third terminal may further send a theft loss processing request to the block link point, where the theft loss processing request is used to indicate that the virtual currency lost during the theft period and/or the stolen virtual goods are retrieved for the account, and the block link point may provide the stolen virtual currency or the retrieved virtual goods for the user based on the theft loss processing request, thereby ensuring that the rights and interests of the user are not lost.
In one possible design, the block link point may send a recall success message to the third terminal based on the second subscriber identity. For example, a notification mail containing a recall success message is sent to the user's personal mailbox. Of course, the notification mail may contain the second user identification information and the account information.
In the embodiment of the invention, the block link point can decrypt the first encrypted information based on the user public key and the first encrypted information carried by the registration request to obtain the first user identification information, when the first user identification information passes verification, an account identification is distributed to the user information, and the first block in the first block chain is generated based on the account identification, the user public key and the first user identification information, so that the safety of account management is ensured. And the block link point encrypts the account identifier by adopting the user public key and returns the encrypted account identifier, so that a subsequent user can log in and retrieve a stolen account based on the account identifier and the first user identification information, and the safety and reliability of account management are further improved.
Fig. 3 is a flowchart of an account recharging method based on a block chain according to an embodiment of the present invention. The execution subject of the embodiment of the present invention is any blockchain node in the blockchain system, referring to fig. 3, the method includes:
301. and the block chain node receives an account recharging request of the fourth terminal.
When the user needs to recharge the account, the user can send an account recharging request to the block link point through the fourth terminal, and the account recharging request carries the account identification and the second numerical value of the virtual currency to be recharged. And the fourth terminal establishes communication connection with the block link point. And the fourth terminal logs in the personal account based on the communication connection and sends an account recharging request to the block chain link point. And the block chain node receives the account number recharging request and acquires the account number identification to be recharged and a second numerical value from the account number recharging request.
302. And the block chain node deducts a first numerical value from the account identified and bound by the account according to the account recharging request and generates a first candidate block.
In the embodiment of the invention, after the block chain link point acquires the account number recharging request, the block chain link point can also acquire at least one other account number recharging request in the current time period in batch; and when the plurality of block chain nodes pass the verification of the previous block, the block chain node generates the first candidate block according to the account recharging request, at least one other account recharging request in the current time period and the hash value of the previous block. Wherein, the second block chain is used for storing the transaction records of each account number
When the first candidate block is generated, the first candidate block structurally comprises a block head and a block body, the block chain node can store a plurality of account recharging requests and the hash value of the previous block in the block body of the block, and the block head is left out, so that the operation efficiency of the first candidate block is improved.
It should be noted that, the block link point may obtain a plurality of account recharging requests in batch at intervals of a preset time period and pack the recharging requests into a first candidate block, so that the problem of unstable recharging transaction is solved, the possibility that a new block is generated by periodically summarizing the account recharging requests is ensured, and the real-time performance and regularity of the recharging capability of the block link system are ensured. In addition, the block link point can also empty the head of the block, thereby reducing the complexity of calculation and improving the efficiency of generating the first candidate block.
The generation process of the first candidate block is actually a process of mining by the block link point, and when the block link point packs the recharging requests into the first candidate block, the first candidate block can be added into the second block chain only after passing the verification of the block chain nodes.
303. And the block chain node sends the first candidate block to a plurality of block chain nodes in a block chain system, and when the plurality of block chain nodes verify the first candidate block, the first candidate block is taken as a third block and added into a second block chain, and a second numerical value is added into a platform seed account corresponding to the account number identifier.
The block link point may send the first candidate block to the block link nodes, verify the first candidate block, and return a verification result to the block link point. When the verification of the feedback of the block chain nodes is received, the first candidate block is a correct block, the block chain nodes determine that the verification of the block chain nodes on the first candidate block passes, and the block chain nodes add the first candidate block as a third block into a second block chain; when the verification that the feedback of the plurality of block nodes is received is not passed or the feedback of the plurality of block chain nodes is not received, it indicates that the first candidate block is an erroneous block, and the block node does not process the first candidate block.
It should be noted that, when the verification passes, the block chain node broadcasts the third block in the block chain system, each block chain node in the block chain system adds the third block to the second block chain, and adds the second numerical value to the platform seed account corresponding to the account.
The platform operator in the block chain system corresponds to the operator fund pool account, each account number of the platform operator may correspond to a respective platform seed account, and the platform seed account user records the current value of the virtual currency under the account number. When the platform seed account needs to be recharged, the block link points can recharge the virtual currency of a second numerical value for the platform seed account in an internal logic recharging mode. When the user uses the virtual money in the platform seed account for consumption, for example, to purchase virtual goods of other users, the block link node needs to recycle the virtual money of each platform seed account to the operator fund pool account. The block chain node can collect the virtual currency of each platform seed account periodically, so that the virtual currency can be supplemented and recycled for users more flexibly, and the transaction convenience is improved.
In addition, if the first candidate block verification fails, the block link point may receive blocks generated by other block link points, and when each block link node in the block chain system newly adds to the block of the second block chain and includes the account number recharging request, the block link point determines that the recharging transaction is successful, and returns a message of successful transaction to the user. When the block of each block chain node newly added to the second block chain does not contain the account recharging request, the block chain node determines that the recharging transaction is failed, and then the above-mentioned step 302 and 303 are executed again.
In this embodiment of the present invention, the block link point may further provide a query service for the account transaction record to the user through the following step 304.
304. And the block link node receives the transaction record query request, acquires the transaction record corresponding to the account identifier from the second block link according to the account identifier carried by the transaction record query request, and returns the transaction record corresponding to the account identifier.
It should be noted that, the block link point may locate, based on the account id carried in the transaction record query request, a third block storing the transaction record corresponding to the account id, obtain at least one transaction record from the third block, and send the at least one transaction record to the fourth terminal. Certainly, the user can also set query conditions such as the location, time or amount of the queried transaction, and the block link point is queried based on the query conditions, so that the query requirement of the user is greatly met.
In order to clearly show the above recharging process, the recharging process is described with reference to the recharging flow shown in fig. 4, taking a game account as an example, as shown in fig. 4, when a user recharges the account, the block link point initiates an account recharging request in the block link platform, where the account recharging request carries an operator fund pool account corresponding to a game merchant, a platform seed account of the user, and a second value of the virtual currency to be recharged. The block chain link point collects transaction records of the current time period in batch based on the account number recharging request, and obtains a hash value of a previous block of a second block chain, wherein the second block chain is used for storing the transaction records of each account number; and when the other block chain nodes pass the verification of the previous block, the block chain node generates a first candidate block based on a plurality of transaction records including the account recharging request and the hash value of the previous block, namely the process of mining as shown in fig. 4. The bsp broadcasts the first candidate block and waits for other bsps to verify the first candidate block, i.e. to notify updates as shown in fig. 4, and broadcasts and waits for verification. When the verification fails, the process of mining needs to be performed again for the block link point. When the verification is passed, each block link point adds the first candidate block as a third block into the second block chain, determines the recharging success, namely, the confirmation transaction as shown in fig. 4, and notifies the user of the successful recharging message.
In the embodiment of the invention, the block link point can generate a first candidate block according to the account recharging request, wherein the account recharging request carries the account identifier and a second numerical value of the virtual currency to be recharged; sending the first candidate block to a plurality of blockchain nodes in a blockchain system; when the plurality of block chain links pass the verification of the first candidate block, the first candidate block is added into a second block chain as a third block, so that the transaction is transparent in disclosure, and the second value is added to the platform seed account, so that the subsequent inquiry can be carried out based on the platform seed account of the account number, the traceability of transaction records is ensured, and the reliability of the transaction is further improved.
Fig. 5 is a flowchart of a virtual item transaction method based on a blockchain according to an embodiment of the present invention. The execution subject of the embodiment of the present invention is any blockchain node in the blockchain system, referring to fig. 5, the method includes:
501. the block link node receives a virtual item transaction request.
The virtual article transaction request carries a transfer-out account number identification used as a virtual article transfer-out party, a transfer-in account number identification used as a virtual article transfer-in party and an identification of a virtual article to be transacted. In the embodiment of the present invention, account id of the registration process and the recharge process is taken as the account id to be transferred as an example for explanation. In the embodiment of the invention, when a user transacts goods with other users, the user can send a virtual goods transaction request to the block chain node based on the transaction information related to the transaction, and the block chain node receives the virtual goods transaction request and acquires the account identifier, a transfer account identifier used as a virtual goods transfer party and an identifier of a virtual goods to be transacted from the virtual goods transaction request.
It should be noted that the virtual article transaction request may be initiated by any account id of the account id and a transfer account id of a virtual article transfer party, which is not specifically limited in this embodiment of the present invention.
502. And the block chain node generates a second candidate block according to the virtual article transaction request, and locks the use state of the virtual article.
The second candidate block is used to store the transaction record corresponding to the virtual article transaction request, and the block node determines the implementation manner of the second candidate block, which is the same process as the above step 302 and is not described herein again. The locking of the use state of the virtual article means: and the block chain node acquires the use state of the virtual article according to the identifier of the virtual article and sets the use state of the virtual article as forbidden use.
The above-mentioned process of generating the second candidate block, that is, the process of mining the block chain link point in the block chain system, may also be generating the second candidate block by other block chain nodes in the block chain system, that is, the process of mining the block chain link point by other special mining nodes, and the block chain system may collect a transaction fee by way of collecting the transaction fee, and thus, flexibility of transaction processing is improved.
503. When the plurality of block chain nodes verify the second candidate block, the block chain nodes add the second candidate block as a fourth block into a second block chain, change the right of the virtual article to belong to the account mark, and release the use state of the virtual article.
The second blockchain is used to store the transaction records of each account, and the implementation manner that the block link point adds the fourth block to the second blockchain is the same as the process in step 303, which is not described herein again. When the fourth block is added into the second block chain, the block chain node determines that the transaction is successful and correspondingly changes the ownership of the virtual article, and the step of releasing the use state of the virtual article means that the use state of the virtual article is restored to the available state.
In the embodiment of the present invention, if the account of the user is stolen, or the transaction may be a malicious transaction, the block link point may further trace the transaction record of the account, and the process may be: and receiving an account transaction record query request by the block link node, wherein the account transaction record query request carries an account identifier, acquiring the transaction related to the account identifier according to the account identifier, and returning the account transaction record.
In a possible design, the transaction record stored in the fourth block may be data encrypted by using the transaction record. For each transaction related in the account transaction record, the block link point may further obtain a transaction public key corresponding to the transaction, decrypt the transaction record stored in the fourth block according to the transaction public key of the transaction, and determine whether the transaction is a malicious transaction based on the virtual currency related to the transaction record and the corresponding virtual article. When the transaction is a malicious transaction, the block link point can adopt wind control attack on the malicious transaction object according to the malicious transaction object corresponding to the malicious transaction. For example, adding an account number of the malicious transaction object to a wind-controlled blacklist, freezing a use state of a virtual item under the account number of the malicious transaction object, and the like.
And judging malicious transaction based on whether the value of the virtual currency is equivalent to the value of the virtual article, wherein the block link points are malicious transaction if the value is not equivalent, and otherwise, the block link points are normal transaction.
In one possible design, when any blockchain node in the blockchain system fails, for example, when a server returns, the blockchain node may also perform data recovery, and the process may be: when any blockchain node in the blockchain system fails, the blockchain node restores the transfer-out account number identification and the ownership of the virtual currency and the virtual goods identified by the account number to the position before the failure occurs. Wherein, for the transaction of the virtual currency during the fault, the block link point can increase or decrease the operation of the virtual currency during the fault and perform the opposite operation; that is, the operation of increasing the third amount of virtual currency for the platform seed account during the fault is performed by decreasing the third amount of virtual currency in the platform seed account, and the operation of increasing the third amount of virtual currency in the platform seed account is performed by decreasing the third amount of virtual currency for the platform seed account during the fault. For the transaction of the virtual article during the failure, the block chain node can restore the ownership of the virtual article during the failure to the original affiliated account number, so that the risk caused by equipment failure is reduced.
In order to clearly show the transaction process, the transaction process is described below with reference to the flow shown in fig. 6, taking a game account number as an example, as shown in fig. 6, when two users perform a transaction of a virtual article, the block chain link points initiate a transaction request in a block chain platform, and the transaction request carries an exit account number identifier as a virtual article exit party, an account number identifier as a transfer party, and an identifier of a virtual article to be transacted. For example, as shown in fig. 6, a player a account pays virtual money to a player B account, purchases a virtual article P of the player B account, the block node packs a transaction record corresponding to the transaction request based on the transaction request, freezes the usage status of the virtual article P, batches the transaction records of the current time period, obtains a previous block hash value, and verifies the previous block by using other block nodes, and when the verification passes, a second candidate block is generated, that is, the process of mining as shown in fig. 6. The block node broadcasts the second candidate block and waits for the verification of the second candidate block by other block nodes, i.e. the process of broadcasting as shown in fig. 6. And other block chain nodes add the transaction record into a transaction pool of the other block chain nodes, verify the second candidate block, determine that the transaction is successful when the verification is passed, and each block chain node adds the second candidate block as a fourth block into the second block chain, changes the ownership of the virtual article from the player B account to the player A account, namely, the process of confirming the transaction as shown in fig. 6, and modifies the ownership of the virtual article.
In the embodiment of the invention, the block chain node can generate a second candidate block corresponding to the virtual article transaction request based on the virtual article transaction request, and lock the use state of the virtual article; when the plurality of block link points verify the second candidate block, the second candidate block is added into the second block chain, so that the accuracy and reliability of transaction record storage are ensured. And when the transaction is successful, the block chain node changes the right of the virtual article again, and releases the use state of the virtual article, thereby ensuring that the transaction can be accurately executed finally and improving the availability of the transaction.
Fig. 7 is a schematic diagram of a structure of an account management device based on a block chain according to an embodiment of the present invention. Referring to fig. 7, the apparatus includes:
a receiving module 701, configured to receive a registration request of a first terminal, where the registration request carries a user public key and first encryption information, and the first encryption information is obtained by encrypting first user identification information by using a system public key of a block chain system;
a decryption module 702, configured to decrypt the first encrypted information by using a system private key of the block chain system to obtain the first user identification information;
an obtaining module 703, configured to obtain an account id of the first terminal when the first user id information is verified;
a generating module 704, configured to generate a first block in a first block chain based on the account identifier, the user public key, and the first user identifier information, where the first block chain is used to store user registration information;
a returning module 705, configured to encrypt the account identifier with the user public key, and return the encrypted account identifier to the first terminal.
Optionally, the first block further stores an authenticated state of the first subscriber identity information.
Optionally, the apparatus further comprises:
a receiving module 701, configured to receive a login request of a second terminal, where the login request carries the encrypted account id and the first user id information;
and the response module is used for responding to the login request and allowing the second terminal to log in based on the account identification when the first user identification information is stored in the first block and the authenticated state of the first user identification information is stored.
Optionally, the method may be characterized in that,
the receiving module 701 is further configured to receive a request for retrieving from a third terminal, where the request for retrieving carries an account identifier and second encryption information, and the second encryption information is obtained by encrypting second user identifier information by using the user private key;
the decryption module 702 is further configured to obtain the user public key from the first block, decrypt the second encrypted information by using the user public key to obtain the second user identification information, and verify the second user identification information;
the generating module 704 is further configured to generate a second block in the first block chain based on the account identifier, the user public key, and the second user identifier information when the verification passes;
the returning module 705 is further configured to encrypt the second user identification information by using the user public key, and return the encrypted second user identification information to the third terminal.
Optionally, the apparatus further comprises:
the receiving module 701 is further configured to receive an inquiry request of the third terminal, where the inquiry request is used to inquire a transaction record in a target time period, and the target time period is a stolen time period identified by the account;
the obtaining module 703 is further configured to obtain, according to the account identifier, a transaction record corresponding to the account identifier in the target time period from a second blockchain, where the second blockchain is used to store the transaction record of each account;
the returning module 705 is further configured to return the transaction record corresponding to the account id to the third terminal.
Optionally, the apparatus further comprises:
the deduction module is used for deducting a first numerical value from the account bound by the account identifier according to the account recharging request;
the generating module 704 is further configured to generate a first candidate block according to the account recharging request, where the first candidate block is used to store a transaction record corresponding to the account recharging request;
a first sending module, configured to send the first candidate block to a plurality of blockchain nodes in a blockchain system;
the first adding module is configured to add the first candidate block as a third block into a second block chain when the plurality of block link points verify that the first candidate block passes, add a second numerical value to a platform seed account corresponding to the account id, where the first numerical value and the second numerical value have a conversion relationship, and the second block chain is used to store transaction records of each account number.
Optionally, the generating module 704 is further configured to obtain a hash value of a previous block in the second block chain; and when the plurality of block link points pass the verification of the previous block, generating the first candidate block according to the transaction record corresponding to the account recharging request, the transaction record corresponding to at least one other account recharging request in the current time period and the hash value of the previous block.
Optionally, the apparatus further comprises:
the receiving module 701 is further configured to receive a virtual article transaction request, and deduct a third value from a platform seed account corresponding to the account identifier, where the virtual article transaction request carries a transfer account identifier and the account identifier as a virtual article transfer party, and an identifier of a virtual article to be transacted;
the generating module 704 is further configured to generate a second candidate block according to the virtual article transaction request, and lock the use state of the virtual article, where the second candidate block is used to store a transaction record corresponding to the virtual article transaction request;
a second sending module, configured to send the second candidate block to a plurality of blockchain nodes in a blockchain system;
and the second adding module is used for adding the second candidate block as a fourth block into a second block chain when the plurality of block link points verify that the second candidate block passes, changing the right of the virtual article to belong to the account identifier, and releasing the use state of the virtual article, wherein the second block chain is used for storing the transaction records of each account number.
Optionally, the apparatus further comprises:
and the recovery module is used for recovering the transfer account identifier of the virtual article transfer party and the virtual currency and the ownership of the virtual article identified by the account identifier to the position before the failure occurs when the equipment in the block chain system fails.
In the embodiment of the invention, the block link point can decrypt the first encrypted information based on the user public key and the first encrypted information carried by the registration request to obtain the first user identification information, when the first user identification information passes verification, an account identification is distributed to the user information, and the first block in the first block chain is generated based on the account identification, the user public key and the first user identification information, so that the safety of account management is ensured. And the block link point encrypts the account identifier by adopting the user public key and returns the encrypted account identifier, so that a subsequent user can log in and retrieve a stolen account based on the account identifier and the first user identification information, and the safety and reliability of account management are further improved.
It should be noted that: the account management device based on the block chain provided in the above embodiment is exemplified by only the division of the above functional modules when account management based on the block chain is performed, and in practical applications, the function distribution may be completed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules, so as to complete all or part of the functions described above. In addition, the block chain-based account management device provided in the above embodiment and the block chain-based account management method embodiment belong to the same concept, and specific implementation processes thereof are detailed in the method embodiment and are not described herein again.
Fig. 8 is a schematic structural diagram of a server according to an embodiment of the present invention, where the server 800 may generate a relatively large difference due to different configurations or performances, and may include one or more processors (CPUs) 801 and one or more memories 802, where the memory 802 stores at least one instruction, and the at least one instruction is loaded and executed by the processor 801 to implement the partition chain based account management method according to the foregoing method embodiments. Of course, the server may also have components such as a wired or wireless network interface, a keyboard, and an input/output interface, so as to perform input/output, and the server may also include other components for implementing the functions of the device, which are not described herein again.
In an exemplary embodiment, a computer-readable storage medium, such as a memory, including instructions executable by a processor in a terminal to perform a block chain based account management method in the following embodiments is also provided. For example, the computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.

Claims (20)

1. An account management method based on a blockchain is applied to any blockchain node in a blockchain system, the blockchain node is a node corresponding to a block chain system by a merchant, and the blockchain node and a fourth terminal establish communication connection through a private network purchased by the merchant in the blockchain system, and the method comprises the following steps:
receiving an account recharging request of the fourth terminal, wherein the account recharging request carries an account identifier and a second numerical value of the virtual currency to be recharged, and the account identifier is distributed to the fourth terminal by the block chain node;
according to the account recharging request, deducting a first numerical value from the account bound by the account identifier;
obtaining at least one recharging request of other accounts in the current time period in batch;
the method comprises the steps of obtaining a hash value of a previous block in a second block chain, wherein the second block chain is used for storing transaction records of each account;
when a plurality of block chain link points in the block chain system pass the previous block verification, storing a transaction record corresponding to the account number recharging request, a transaction record corresponding to the at least one other account number recharging request and a hash value of the previous block in a block body of a first candidate block, and leaving the block head of the first candidate block empty, wherein the first candidate block is used for storing the transaction record corresponding to the account number recharging request;
sending the first candidate block to the plurality of blockchain nodes;
when the plurality of block chain nodes verify the first candidate block, adding the first candidate block as a third block into the second block chain, and adding a second numerical value to the platform seed account corresponding to the account number identifier, wherein the first numerical value and the second numerical value have a conversion relationship.
2. The method of claim 1, wherein after the sending the first candidate block to the plurality of blockchain nodes, the method further comprises:
when the plurality of block link points do not verify the first candidate block, receiving a block generated by any block link point in the plurality of block link nodes;
when each block chain node in the block chain system is newly added into a block of a second block chain and contains the account number recharging request, the recharging transaction is determined to be successful, and a message of successful transaction is returned;
and when the blocks of each block chain node in the block chain system, which are newly added into the second block chain, do not contain the account number recharging request, determining that the recharging transaction fails, and repeatedly executing the operation of generating the first candidate blocks and adding the first candidate blocks into the second block chain.
3. The method of claim 1, wherein after adding the second value to the platform seed account corresponding to the account identifier, the method further comprises:
and receiving a transaction record query request, acquiring a transaction record corresponding to the account number identifier from the second block chain according to the account number identifier carried by the transaction record query request, and returning the transaction record corresponding to the account number identifier.
4. The method according to claim 3, wherein the obtaining, according to the account id carried in the transaction record query request, the transaction record corresponding to the account id from the second blockchain includes:
and positioning a third block for storing the transaction record corresponding to the account number identification based on the account number identification carried by the transaction record query request, and acquiring at least one transaction record from the third block.
5. The method of claim 1, wherein before deducting the first value from the account bound by the account identifier according to the account recharge request, the method further comprises:
receiving a registration request of a first terminal, wherein the registration request carries a user public key and first encryption information, and the first encryption information is obtained by encrypting first user identification information by adopting a system public key of a block chain system;
decrypting the first encrypted information by using a system private key of the block chain system to obtain the first user identification information;
when the first user identification information passes verification, acquiring an account identification of the first terminal;
generating a first block in a first block chain based on the account identification, the user public key and the first user identification information, wherein the first block chain is used for storing user registration information;
and encrypting the account identification by adopting the user public key, and returning the encrypted account identification to the first terminal.
6. The method of claim 5, wherein the first block further stores an authenticated status of the first subscriber identity information.
7. The method of claim 6, further comprising:
receiving a login request of a second terminal, wherein the login request carries the encrypted account identification and the first user identification information;
and when the first block stores the first user identification information and stores the authenticated state of the first user identification information, responding to the login request, and allowing the second terminal to log in based on the account identification.
8. The method of claim 5, further comprising:
receiving a request for requesting;
acquiring the user public key from the first block, decrypting the second encrypted information by adopting the user public key to obtain second user identification information, and verifying the second user identification information;
when the verification is passed, generating a second block in the first block chain based on the account identification, the user public key and the second user identification information;
and encrypting the second user identification information by adopting the user public key, and returning the encrypted second user identification information to the third terminal.
9. The method of claim 8, further comprising:
receiving a query request of the third terminal, wherein the query request is used for querying transaction records in a target time period, and the target time period is a stolen time period of the account identifier;
acquiring a transaction record corresponding to the account identifier in the target time period from a second block chain according to the account identifier, wherein the second block chain is used for storing the transaction record of each account;
and returning the transaction record corresponding to the account identification to the third terminal.
10. An account management device based on a blockchain is characterized in that the device is located in a blockchain system, the device is a node corresponding to a merchant in the blockchain system, the device and a fourth terminal establish communication connection through a private network purchased by the merchant in the blockchain system, and the device comprises:
the deduction module is used for receiving an account number recharging request of the fourth terminal, wherein the account number recharging request carries an account number identifier and a second numerical value of the virtual currency to be recharged, and the account number identifier is distributed to the fourth terminal by the device; according to the account recharging request, deducting a first numerical value from the account bound by the account identifier;
the generation module is used for obtaining at least one recharging request of other accounts in batch in the current time period; the method comprises the steps of obtaining a hash value of a previous block in a second block chain, wherein the second block chain is used for storing transaction records of each account; when a plurality of block chain link points in the block chain system pass the previous block verification, storing a transaction record corresponding to the account number recharging request, a transaction record corresponding to the at least one other account number recharging request and a hash value of the previous block in a block body of a first candidate block, and leaving the block head of the first candidate block empty, wherein the first candidate block is used for storing the transaction record corresponding to the account number recharging request;
a first sending module, configured to send the first candidate block to the plurality of block nodes;
a first adding module, configured to add the first candidate block as a third block into the second block chain when the plurality of block link points verify that the first candidate block passes, add a second numerical value to the platform seed account corresponding to the account id, where the first numerical value and the second numerical value have a conversion relationship.
11. The apparatus of claim 10, further comprising:
the system comprises a receiving module, a first terminal and a second terminal, wherein the receiving module is used for receiving a registration request of the first terminal, the registration request carries a user public key and first encryption information, and the first encryption information is obtained by encrypting first user identification information by adopting a system public key of a block chain system;
the decryption module is used for decrypting the first encrypted information by adopting a system private key of the block chain system to obtain the first user identification information;
the acquisition module is used for acquiring the account identification of the first terminal when the first user identification information passes verification;
the generating module is further configured to generate a first block in a first block chain based on the account identifier, the user public key, and the first user identifier information, where the first block chain is used to store user registration information;
and the returning module is used for encrypting the account identifier by adopting the user public key and returning the encrypted account identifier to the first terminal.
12. The apparatus of claim 11, wherein the first block further stores an authenticated status of the first subscriber identity information.
13. The apparatus according to claim 12, wherein the receiving module is further configured to receive a login request of a second terminal, where the login request carries the encrypted account id and the first user id information;
the device further comprises a response module, which is used for responding to the login request and allowing the second terminal to log in based on the account identification when the first block stores the first user identification information and the authenticated state of the first user identification information.
14. The apparatus according to claim 11, wherein the receiving module is further configured to receive a request for retrieving from a third terminal, where the request for retrieving carries an account id and second encrypted information, and the second encrypted information is obtained by encrypting the second user id information with a user private key;
the decryption module is further configured to obtain the user public key from the first block, decrypt the second encrypted information by using the user public key to obtain the second user identification information, and verify the second user identification information;
the generating module is further configured to generate a second block in the first block chain based on the account identifier, the user public key, and the second user identifier information when the verification passes;
the returning module is further configured to encrypt the second user identification information by using the user public key, and return the encrypted second user identification information to the third terminal.
15. The apparatus according to claim 14, wherein the receiving module is further configured to receive an inquiry request from the third terminal, where the inquiry request is used to inquire transaction records in a target time period, and the target time period is a stolen time period identified by the account;
the obtaining module is further configured to obtain, according to the account identifier, a transaction record corresponding to the account identifier in the target time period from a second blockchain, where the second blockchain is used to store the transaction record of each account;
and the returning module is also used for returning the transaction record corresponding to the account identifier to the third terminal.
16. The apparatus according to claim 11, wherein the receiving module is further configured to receive a block generated by any block link point in the plurality of block chain nodes when the plurality of block link points do not verify the first candidate block;
the return module is further configured to determine that the recharging transaction is successful and return a message of successful transaction when the account recharging request is included in a block in which each blockchain node in the blockchain system is newly added to the second blockchain; and when the blocks of each block chain node in the block chain system, which are newly added into the second block chain, do not contain the account number recharging request, determining that the recharging transaction fails, and repeatedly executing the operation of generating the first candidate blocks and adding the first candidate blocks into the second block chain.
17. The apparatus of claim 11, wherein the receiving module is further configured to receive a transaction record query request;
and the return module is further used for acquiring the transaction record corresponding to the account identifier from the second block chain according to the account identifier carried by the transaction record query request, and returning the transaction record corresponding to the account identifier.
18. The apparatus of claim 17, wherein the return module is further configured to:
and positioning a third block for storing the transaction record corresponding to the account number identification based on the account number identification carried by the transaction record query request, and acquiring at least one transaction record from the third block.
19. A server, comprising a processor and a memory, wherein the memory stores at least one instruction, and the instruction is loaded and executed by the processor to implement the operations performed by the blockchain-based account management method according to any one of claims 1 to 9.
20. A computer-readable storage medium having stored therein at least one instruction, which is loaded and executed by a processor to perform operations performed by the blockchain-based account management method according to any one of claims 1 to 9.
CN201910688330.7A 2018-04-27 2018-04-27 Account management method, device, server and storage medium based on block chain Active CN110400136B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910688330.7A CN110400136B (en) 2018-04-27 2018-04-27 Account management method, device, server and storage medium based on block chain

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910688330.7A CN110400136B (en) 2018-04-27 2018-04-27 Account management method, device, server and storage medium based on block chain
CN201810393545.1A CN108712395B (en) 2018-04-27 2018-04-27 Account management method, device, server and storage medium based on block chain

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
CN201810393545.1A Division CN108712395B (en) 2018-04-27 2018-04-27 Account management method, device, server and storage medium based on block chain

Publications (2)

Publication Number Publication Date
CN110400136A CN110400136A (en) 2019-11-01
CN110400136B true CN110400136B (en) 2021-05-14

Family

ID=63867556

Family Applications (3)

Application Number Title Priority Date Filing Date
CN201810393545.1A Active CN108712395B (en) 2018-04-27 2018-04-27 Account management method, device, server and storage medium based on block chain
CN201910688336.4A Active CN110417775B (en) 2018-04-27 2018-04-27 Virtual article transaction method and device based on block chain and server
CN201910688330.7A Active CN110400136B (en) 2018-04-27 2018-04-27 Account management method, device, server and storage medium based on block chain

Family Applications Before (2)

Application Number Title Priority Date Filing Date
CN201810393545.1A Active CN108712395B (en) 2018-04-27 2018-04-27 Account management method, device, server and storage medium based on block chain
CN201910688336.4A Active CN110417775B (en) 2018-04-27 2018-04-27 Virtual article transaction method and device based on block chain and server

Country Status (1)

Country Link
CN (3) CN108712395B (en)

Families Citing this family (42)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109410007B (en) * 2018-10-30 2021-05-11 杭州复杂美科技有限公司 Jigsaw puzzle game method, system, equipment and storage medium
CN109359994B (en) * 2018-10-31 2020-12-22 巴马平方米区块链有限公司 Service processing method, device and system based on block chain
CN109432784B (en) * 2018-11-07 2020-06-30 四川长虹电器股份有限公司 Account transaction processing method and device based on block chain
CN109173266A (en) * 2018-11-12 2019-01-11 网易(杭州)网络有限公司 Processing method, device, processor and the server of fictitious assets across game
CN109636362A (en) * 2018-11-14 2019-04-16 深圳前海达闼云端智能科技有限公司 Virtual asset transaction method and device and block chain network node
CN109493054B (en) * 2018-11-27 2020-09-08 深圳幂度信息科技有限公司 Multi-chain information management method, device, storage medium and block chain identity analyzer
CN109600374A (en) * 2018-12-12 2019-04-09 四川商通实业有限公司 Secure user data sending method and its system based on block chain
CN113077254A (en) * 2019-03-29 2021-07-06 创新先进技术有限公司 Method and apparatus for resetting blockchain account key based on biometrics
CN110032890B (en) * 2019-04-15 2021-03-05 京东方科技集团股份有限公司 Safety network device and safety access method
CN110135175A (en) * 2019-04-26 2019-08-16 平安科技(深圳)有限公司 Information processing, acquisition methods, device, equipment and medium based on block chain
CN110232569B (en) * 2019-05-07 2021-04-16 北京奇艺世纪科技有限公司 Method and device for reading transaction record and storage medium
CN111865558A (en) * 2019-05-19 2020-10-30 北京骑胜科技有限公司 Service data processing method and device, electronic equipment and storage medium
CN110166460B (en) * 2019-05-24 2021-12-14 北京思源理想控股集团有限公司 Service account registration method and device, storage medium and electronic device
CN110175316B (en) * 2019-05-27 2023-11-28 朱志文 Media number interaction method, system and storage medium based on blockchain
US11501295B2 (en) 2019-07-24 2022-11-15 Advanced New Technologies Co., Ltd. Object distribution processing
CN110490640B (en) * 2019-07-24 2021-08-31 创新先进技术有限公司 Method, device and system for object distribution processing
CN110598434B (en) * 2019-09-12 2023-08-15 腾讯科技(深圳)有限公司 House information processing method and device based on blockchain network, electronic equipment and storage medium
US11656952B2 (en) * 2019-09-20 2023-05-23 Samsung Electronics Co., Ltd. Reliable key-value store with write-ahead-log-less mechanism
CN110598386B (en) * 2019-09-27 2023-05-30 腾讯科技(深圳)有限公司 Block chain-based data processing method, device, equipment and storage medium
CN110602255A (en) * 2019-10-08 2019-12-20 山东爱城市网信息技术有限公司 Account information protection method based on block chain, terminal and storage medium
CN110913275B (en) * 2019-11-19 2021-11-16 腾讯科技(深圳)有限公司 Method, system and storage medium for adding attribute information of target object
CN110910978B (en) * 2019-11-21 2024-04-09 腾讯科技(深圳)有限公司 Information processing method and related device applied to blockchain network
CN111132156B (en) * 2019-12-30 2023-04-14 全链通有限公司 Registration method of 5G user terminal, user terminal equipment and medium
CN111148094B (en) * 2019-12-30 2023-11-21 全链通有限公司 Registration method of 5G user terminal, user terminal equipment and medium
CN111132149B (en) * 2019-12-30 2023-11-21 全链通有限公司 Registration method of 5G user terminal, user terminal equipment and medium
CN111198922B (en) * 2020-01-02 2023-04-18 腾讯科技(深圳)有限公司 Game resource management method and device based on block chain
CN111291336A (en) * 2020-01-21 2020-06-16 腾讯科技(深圳)有限公司 Game registration method and device in game platform
CN111556022A (en) * 2020-03-30 2020-08-18 中国平安财产保险股份有限公司 Method and device for registering account, computer equipment and storage medium
CN111444551B (en) * 2020-04-25 2023-06-13 中信银行股份有限公司 Account registration and login method and device, electronic equipment and readable storage medium
CN111586038A (en) * 2020-05-06 2020-08-25 青岛大学 Data processing method and device, block chain link point equipment and storage medium
CN111770089B (en) * 2020-06-29 2022-04-08 福建福链科技有限公司 Authentication method for blockchain sensor and blockchain network
CN114095521B (en) * 2020-07-27 2023-09-05 中移(成都)信息通信科技有限公司 Remote sensing data storage method, device, equipment and storage medium
CN112131542B (en) * 2020-09-23 2024-03-26 北京达佳互联信息技术有限公司 Data processing method, device and server
CN112184229A (en) * 2020-10-14 2021-01-05 深圳壹账通智能科技有限公司 Block chain-based sub-account transaction processing method, system and equipment
CN113052576B (en) * 2020-11-05 2024-02-27 北京跨联元焕网络科技有限公司 Hosting method and system for cross-chain exchange
CN112434020B (en) * 2020-11-26 2021-09-24 腾讯科技(深圳)有限公司 Database account cleaning method and device and electronic equipment
CN112529402A (en) * 2020-12-09 2021-03-19 杭州趣链科技有限公司 Task delegation method, system, device, equipment and storage medium
CN112700246B (en) * 2020-12-31 2023-11-28 iCALC控股有限公司 Block chain-based data processing method, device, equipment and readable storage medium
CN112910663B (en) * 2021-01-14 2022-06-14 网易(杭州)网络有限公司 Method, device, equipment and storage medium for message broadcasting and terminal registration
CN113822974A (en) * 2021-11-24 2021-12-21 支付宝(杭州)信息技术有限公司 Method, apparatus, electronic device, medium, and program for generating avatar
CN114500025B (en) * 2022-01-19 2023-10-27 北京达佳互联信息技术有限公司 Account identifier acquisition method, device, server and storage medium
CN114418578A (en) * 2022-03-30 2022-04-29 北京溪塔科技有限公司 Block chain account risk query method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106453271A (en) * 2016-09-21 2017-02-22 江苏通付盾科技有限公司 Identity registration method and system, identity authentication method and system
CN107369046A (en) * 2017-07-25 2017-11-21 深圳市中青合创传媒科技有限公司 Live platform carries out real money purchase, exchange, the method using ideal money
CN107563761A (en) * 2017-08-26 2018-01-09 复旦大学 Game account management method based on block chain
CN107862215A (en) * 2017-09-29 2018-03-30 阿里巴巴集团控股有限公司 A kind of date storage method, data query method and device

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1866288A (en) * 2005-05-17 2006-11-22 中兴通讯股份有限公司 Virtual pawnshop of network game and transaction method thereof
US20170132630A1 (en) * 2015-11-11 2017-05-11 Bank Of America Corporation Block chain alias for person-to-person payments
WO2017152150A1 (en) * 2016-03-04 2017-09-08 ShoCard, Inc. Method and system for authenticated login using static or dynamic codes
WO2018090331A1 (en) * 2016-11-18 2018-05-24 深圳前海达闼云端智能科技有限公司 Blockchain network, article transaction method and apparatus, and node device
CN106533696B (en) * 2016-11-18 2019-10-01 江苏通付盾科技有限公司 Identity identifying method, certificate server and user terminal based on block chain
CN107077674B (en) * 2016-12-29 2021-06-11 达闼机器人有限公司 Transaction verification processing method and device and node equipment
CN107491946A (en) * 2017-07-10 2017-12-19 北京云知科技有限公司 It is a kind of to store virtual objects to the method, apparatus of block chain and electronic equipment
CN107547514A (en) * 2017-07-17 2018-01-05 招商银行股份有限公司 Identity identifying method, system and computer-readable recording medium
CN107451946A (en) * 2017-08-11 2017-12-08 兰州大学 Huckster management method and system
CN107483198B (en) * 2017-09-25 2019-11-12 中国科学院信息工程研究所 A kind of block catenary system supervised and method
CN107786547A (en) * 2017-09-30 2018-03-09 厦门快商通信息技术有限公司 A kind of auth method based on block chain, device and computer-readable recording medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106453271A (en) * 2016-09-21 2017-02-22 江苏通付盾科技有限公司 Identity registration method and system, identity authentication method and system
CN107369046A (en) * 2017-07-25 2017-11-21 深圳市中青合创传媒科技有限公司 Live platform carries out real money purchase, exchange, the method using ideal money
CN107563761A (en) * 2017-08-26 2018-01-09 复旦大学 Game account management method based on block chain
CN107862215A (en) * 2017-09-29 2018-03-30 阿里巴巴集团控股有限公司 A kind of date storage method, data query method and device

Also Published As

Publication number Publication date
CN110400136A (en) 2019-11-01
CN108712395A (en) 2018-10-26
CN110417775B (en) 2021-03-26
CN108712395B (en) 2022-01-07
CN110417775A (en) 2019-11-05

Similar Documents

Publication Publication Date Title
CN110400136B (en) Account management method, device, server and storage medium based on block chain
CN110609869B (en) Block chain-based data storage method, related equipment and storage medium
US10938551B2 (en) System and method for implementing a resolver service for decentralized identifiers
EP3812920A1 (en) Blockchain certificate storage method and apparatus, and computer device
CN103098070B (en) For the methods, devices and systems of Data Position in monitoring network service
CN106600252A (en) Payment method and payment system based on block chain
CN111383021A (en) Node management method, device, equipment and medium based on block chain network
CN111465951A (en) Intelligent logistics management using blockchains
CN107135085B (en) Orient statistical control method, the system of flow
CN109754226B (en) Data management method, device and storage medium
CN112804354B (en) Method and device for data transmission across chains, computer equipment and storage medium
CN110620776B (en) Data transfer information transmission method and device
CN111314066A (en) Block chain-based data transfer method, terminal and computer-readable storage medium
CN110738502A (en) bill processing method and device and storage medium device
CN114021162A (en) Computing power sharing method, device, system, electronic equipment and storage medium
KR101120059B1 (en) Billing verifying apparatus, billing apparatus and method for cloud computing environment
CN109389449B (en) Information processing method, server and storage medium
CN111680282B (en) Node management method, device, equipment and medium based on block chain network
CN111597537B (en) Block chain network-based certificate issuing method, related equipment and medium
CN110232570B (en) Information supervision method and device
US20230259930A1 (en) Cross-chain transaction processing method and apparatus, electronic device, and storage medium
CN114418769A (en) Block chain transaction charging method and device and readable storage medium
KR20220056574A (en) A method and an apparatus for master key management based on sharing algorithms for block chain transactions
EP3896900A1 (en) Control method, server, program, and data structure
CN113961945A (en) Method, system, device and storage medium for determining participation of blockchain nodes

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 40015639

Country of ref document: HK

GR01 Patent grant
GR01 Patent grant