Login control method and device for game application

By recording user game records and registration information through a blockchain network, calculating cumulative game time, and implementing control strategies, the problem of lax control over user game time is solved, and effective management of user game time is achieved.

CN111202987BActive Publication Date: 2025-12-19TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202010009132.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-01-06
Publication Date
2025-12-19
Estimated Expiration
2040-04-04

AI Technical Summary

Technical Problem

In existing technologies, the time users spend playing games on various gaming platforms is not strictly controlled, leading to user addiction and affecting their studies and health.

Method used

The blockchain network records users' game history and registration information, calculates cumulative game time, and implements control policies such as refusing login or delaying login when the cumulative game time exceeds the limit, ensuring that the user's game time within the blockchain network is within the limit.

Benefits of technology

Effectively control user gaming time, prevent users from spending too much time playing games in various applications, and protect users' learning and health.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111202987B_ABST
    Figure CN111202987B_ABST
Patent Text Reader

Abstract

Embodiments of the present application provide a login control method of a game application, comprising: receiving a login request sent by a client, the login request comprising a user identifier; obtaining corresponding registration information of the user identifier from a blockchain, determining a current game limit duration corresponding to the user identifier according to a current system time and age information included in the registration information; obtaining a game record corresponding to the user identifier from the blockchain, calculating an accumulated game duration of the user identifier within a set period of time through the game record, the accumulated game duration comprising a game duration of a user indicated by the user identifier on at least one game application accessed by the user on the blockchain network; and if the accumulated game duration is not less than the current game limit duration, executing a first game control strategy to restrict the user indicated by the user identifier from logging into the blockchain network by executing the first game control strategy. The duration of the user playing the game is effectively limited.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of computer and communication, in particular to a login control method and device of game application. BACKGROUND

[0002] The vigorous development of network games provides diversified entertainment for users, but also causes some social problems, such as users indulging in games, especially young users. Users playing games for a long time not only affect work or study, but also harm health.

[0003] Therefore, how to limit the time length of user playing games is a technical problem to be solved in the prior art. SUMMARY

[0004] Embodiments of the present application provide a login control method and device of game application, thereby at least to some extent, the user can be controlled to log in to the game application, and the game time of the user can be avoided to be too long.

[0005] Other characteristics and advantages of the present application will become apparent from the following detailed description, or will be learned by practice of the present application.

[0006] According to an aspect of an embodiment of the present application, a login control method of game application is provided, applied to a node in a blockchain network, comprising:

[0007] receiving a login request sent by a client, the login request comprising a user identifier;

[0008] obtaining corresponding registration information from the blockchain according to the user identifier, determining a current game limited time length corresponding to the user identifier by a current system time and age information included in the registration information; and

[0009] obtaining a game record corresponding to the user identifier from the blockchain, calculating an accumulated game time length of the user identifier within a set period of time by the game record, the accumulated game time length comprising a game time length of a user indicated by the user identifier on at least one game application accessed by the blockchain network;

[0010] if the accumulated game time length is not less than the current game limited time length, executing a first control strategy, and limiting the user indicated by the user identifier to log in to the blockchain network by executing the first game control strategy.

[0011] According to an aspect of an embodiment of the present application, a login control device of game application is provided, applied to a node in a blockchain network, the device comprising:

[0012] receive a login request sent by a client, the login request comprising a user identifier;

[0013] determine a current game limit duration corresponding to the user identifier according to a current system time and age information included in the registration information; and

[0014] determine a cumulative game duration of the user identifier within a set time limit according to the game record of the user identifier, the cumulative game duration comprising game durations of a user indicated by the user identifier in at least one game application accessed by the blockchain network;

[0015] limit the user indicated by the user identifier from logging into the blockchain network by executing the first game control strategy if the cumulative game duration is not less than the current game limit duration.

[0016] In the technical solutions provided in some embodiments of the present application, the user is limited from logging into the game application by limiting the user from logging into the blockchain network, and the game record of the user in each game application can be recorded to calculate the cumulative game duration of the user.

[0017] Further, the game record and the registration information of the user are written into the blockchain, so that the nodes in the blockchain network can calculate the cumulative game duration of the user in multiple game applications according to the game record and the current game limit duration of the user according to the registration information, and limit the user indicated by the user identifier from logging into the blockchain network by executing the first control strategy if the cumulative game duration corresponding to the user identifier is not less than the current game limit duration, thereby effectively avoiding the user from playing games in each game application for too long and effectively controlling the duration of the user playing games.

[0018] It should be understood that the foregoing general description and the following detailed description are only exemplary and explanatory, and cannot limit the present application. BRIEF DESCRIPTION OF DRAWINGS

[0019] The accompanying drawings, which are incorporated herein and constitute part of the specification, illustrate embodiments consistent with the application and, together with the description, further serve to explain the principles of the application. It is to be understood that the drawings are only schematic, and that they do not purport to be to scale with respect to one another. The drawings are intended for use in illustration of the embodiments(s) herein and are not intended for use in limitation thereof. In the drawings:

[0020] Figure 1 A schematic diagram of a blockchain network to which the technical solutions of the embodiments of the application can be applied is shown;

[0021] Figure 2 A schematic diagram of a blockchain according to an embodiment is shown;

[0022] Figure 3 A flowchart of a login control method of a game application according to an embodiment is shown;

[0023] Figure 4 A flowchart of a login control method of a game application according to another embodiment is shown;

[0024] Figure 5 A flowchart of a login control method of a game application according to yet another embodiment is shown;

[0025] Figure 6 A flowchart of a login control method of a game application according to yet another embodiment is shown; Figure 3 A flowchart of steps following step 310 of the corresponding embodiment in an embodiment is shown;

[0026] Figure 7 A flowchart of steps following step 550 of the corresponding embodiment in an embodiment is shown; Figure 5 A flowchart of steps following step 330 of the corresponding embodiment in an embodiment is shown;

[0027] Figure 8 A flowchart of steps following step 410 of the corresponding embodiment in an embodiment is shown; Figure 3 A flowchart of steps following step 930 of the corresponding embodiment in an embodiment is shown;

[0028] Figure 9 A flowchart of steps following step 930 of the corresponding embodiment in an embodiment is shown; Figure 4 A flowchart of steps following step 930 of the corresponding embodiment in an embodiment is shown;

[0029] Figure 10 A flowchart of steps following step 930 of the corresponding embodiment in an embodiment is shown; Figure 9 A flowchart of steps following step 930 of the corresponding embodiment in an embodiment is shown;

[0030] Figure 11 A flowchart of a login control method of a game application according to yet another embodiment is shown;

[0031] Figure 12 A block diagram of a login control apparatus of a game application according to an embodiment is shown;

[0032] Figure 13 A structural diagram of a computer system of an electronic device suitable for implementing embodiments of the present application is shown. DETAILED DESCRIPTION

[0033] Example implementations will now be described more fully with reference to the accompanying drawings. Example implementations may, however, be implemented in many different forms and should not be construed as limited to the examples set forth herein; rather, these implementations are provided so that this disclosure will be thorough and complete, and will fully convey the scope of example implementations to those skilled in the art.

[0034] Moreover, the described features, structures, or characteristics can be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided to give a thorough understanding of embodiments of the application. One skilled in the relevant art will recognize, however, that the

[0035] The block diagrams in the drawings show only the functional entities and not necessarily the physical separate entities. That is, the functional entities can be implemented in software, or in one or more hardware modules or integrated circuits, or in different network and / or processor devices and / or microcontroller devices.

[0036] The flow diagrams shown in the drawings are only exemplary and not necessarily to be understood as comprising all contents and operations / steps, nor necessarily to be executed in the order described. For example, some operations / steps can be broken down further, and some operations / steps can be combined or partially combined, so that the actual execution order can be changed according to actual conditions.

[0037] Referring to Figure 1 , Figure 1 is an optional structural diagram of a blockchain network 100 provided by embodiments of the present application, which includes a distributed system formed by a plurality of nodes 110 connected through network communication, wherein the nodes 110 can be any form of computing device (such as a server, a user terminal, etc.) in an access network.

[0038] The blockchain network 100 accesses several game applications, specifically, the nodes in the blockchain network can communicate with the servers corresponding to the game applications.

[0039] The node 110 at least includes a terminal of a game player, so that the game player as a user communicates with other nodes 110 in the blockchain network through a client in the terminal of the game player itself, and then logs in to the game application in the blockchain network through the blockchain network 100.

[0040] In an embodiment, the node 110 can also include an operator node, that is, a computer device of an operator, and the operator publishes the game application in the blockchain network based on a client in the computer device, so as to realize the publishing of the game application in the blockchain network, that is, to realize the access of the game application to the blockchain network, so that the user as a game player can log in to the accessed game application after logging in to the blockchain network.

[0041] In an embodiment, the node 110 can also be a server of the game application, that is, the server of the game application controls the login of the user to the game application as a node in the blockchain network, and also provides services for the client after the user logs in to the game application.

[0042] The nodes 110 form a peer-to-peer (P2P) network, and the P2P protocol is an application layer protocol running on a transmission control protocol (TCP) protocol. In the system, any machine such as a server or a terminal can join to become a node, and the node includes a hardware layer, an intermediate layer, an operating system layer, and an application layer.

[0043] Referring to the functions of the nodes in the blockchain network 100 shown in the figure, the functions involved include: Figure 1

[0044] 1) Routing, a basic function of the node, used to support communication between nodes.

[0045] In addition to the routing function, the node can also have the following functions:

[0046] 2) Application, used to be deployed in the blockchain, to realize specific services according to actual business needs, record data related to the realization of the function to form record data, carry a digital signature in the record data to represent the source of the task data, and send the record data to other nodes in the blockchain system. The record data, for example, user registration information, user game records, etc., is added to the block by other nodes when the verification of the source and integrity of the record data is successful.

[0047] The business implemented by the application can include:

[0048] ​2.1) wallet, for providing the function of conducting the transaction of electronic money, including initiating the transaction (i.e. sending the transaction record of the current transaction to other nodes in the blockchain network, after the other nodes are verified successfully, as a response to acknowledging the validity of the transaction, the record data of the transaction is stored in the temporary block of the blockchain; of course, the wallet also supports querying the remaining electronic money in the electronic money address;

[0049] 2.2) smart contract, a computerized protocol that can execute the terms of a certain contract, implemented by code deployed on a shared ledger for execution when certain conditions are met, according to the actual business requirements, the code is used to complete the automated transaction, for example, after receiving the login request of the client, the smart contract rejects the login request or allows the client to log in to the blockchain network; of course, the smart contract can also be a contract that executes the processing of the received information, which is not limited here.

[0050] 3) blockchain, including a series of blocks connected to each other in chronological order, once a new block is added to the blockchain, it will not be removed, and the block records the record data submitted by the nodes in the blockchain system. The record data can be the registration information of the registered user in the blockchain network, and the game record of the user in the game application connected to the blockchain network.

[0051] Referring to Figure 2 , Figure 2 is an optional schematic diagram of the blockchain provided by the embodiment of the application, each block includes the hash value of the transaction record stored in the block (the hash value of the block) and the hash value of the previous block, and the blocks are connected by the hash values to form the blockchain. In addition, the block can also include the timestamp when the block is generated and other information. Blockchain, in essence, is a decentralized database, which is a series of data blocks associated using cryptography, each data block contains relevant information for verifying the validity of the information (anti-fake) and generating the next block.

[0052] The implementation details of the technical solutions of the embodiments of the application are described in detail as follows:

[0053] Figure 3 A flowchart of a login control method of a game application according to an embodiment of the application is shown, and the login control method of the game application is applied to a node in a blockchain network. Referring to Figure 3 , the login control method of the game application at least includes steps 310 to 370, which are described in detail as follows:

[0054] Step 310, receiving a login request sent by a client, the login request including a user identifier.

[0055] At step 330, the corresponding registration information is obtained from the blockchain according to the user identifier, and the current game limit duration corresponding to the user identifier is determined by the current system time and the age information included in the registration information.

[0056] The user in the blockchain network interacts with other nodes in the blockchain network through a client.

[0057] The user identifier is used to identify the user requesting to log in in the blockchain network. In order to implement the method in the present disclosure, the user needs to register in the blockchain network now, and the node generates a user identifier for uniquely identifying the user in the blockchain network on the one hand; on the other hand, receives the registration information of the user, writes the registration information into the blockchain, and then synchronizes the blockchain to other nodes in the blockchain network. Thus, it is convenient for the blockchain network to manage and control the login of the user.

[0058] The blockchain network accesses a plurality of game applications, and a game player needs to log in to the blockchain network first if he / she wants to play in the game applications accessed by the blockchain network. Therefore, the login request in step 310 is initiated for logging in to the blockchain network.

[0059] In an embodiment, the user can select the game application he / she wants to enter (for the sake of distinction, the game application selected by the user is referred to as the target game application) before initiating the login request, so that the login request indicates the target game application.

[0060] In another embodiment, the user can not select the game application before initiating the login request, and selects the game application he / she wants to enter after successfully logging in to the blockchain network, so that the login request can not indicate the target game application.

[0061] In the present embodiment, the registration information of the user at least includes the age information of the user, which can be information indicating the birth date of the user, or can be registration age indicating the registration age of the user when registering in the blockchain network, which is not limited here.

[0062] The game limit duration is used to limit the total maximum game duration of the user in all game applications accessed by the user in the blockchain network.

[0063] The current game limit duration refers to the game limit duration corresponding to the current system time indicated by the user identifier, in other words, for the user, the current game limit duration is related to the age information of the user indicated by the user identifier and the current system time. The current system time indicates the current date and time, and can also be accurate to the minute.

[0064] In an embodiment, the game limited time length corresponds to a set period, for example, a set daily game limited time length, a set every-three-day game limited time length, a set weekly game limited time length, a set every-month game limited time length, etc., which can be set according to actual conditions and is not limited herein. In the scheme of the present disclosure, the game limited time length is related to age, in other words, if the ages of users are different, the game limited time lengths of the users are different, and therefore, the current game limited time length corresponding to the current system time calculated for a user is different for different years.

[0065] For a user, the age of the user changes over time, and therefore, the current age of the user needs to be calculated based on the current system time corresponding to the login request and the age information of the user, and then the current game limited time length corresponding to the current age of the user is determined according to the corresponding relationship between age and game limited time length.

[0066] and step 350, the corresponding game record of the user identifier is obtained from the blockchain according to the user identifier, and the cumulative game time length of the user identifier within a set period is calculated through the game record, wherein the cumulative game time length includes the game time length of the user indicated by the user identifier on at least one game application accessed by the user in the blockchain network.

[0067] In the scheme of the present disclosure, the client generates a game record for the user after the user exits any game application accessed by the user in the blockchain network each time. Each game record includes at least the game start time when the user starts the game and the exit time when the user exits the game.

[0068] Then, the game record is written into the blockchain and synchronized to other nodes in the blockchain network, so that any node can obtain the blockchain in which the game record of the user is written, thereby facilitating the nodes to control the game login of the user.

[0069] The cumulative game time length is obtained by time accumulation according to the game records of the user indicated by the user identifier in the game applications accessed by the user in the blockchain network.

[0070] The cumulative game time length is obtained by counting the game records within a set period. Of course, the set period is the same as the set period of the current game limited time length. For example, if the game limited time length is to limit the longest game time of the user within one day, the corresponding cumulative game time length is to count the game records within one day.

[0071] The game record of the user obtained is the entire game record of the user indicated by the user identifier after the user registers in the blockchain network. Therefore, the game record corresponding to the set period is filtered from the game record obtained in step 410. Then, the game duration is accumulated according to the game start time and the exit time in the game record in the set period, and the accumulated game duration of the user corresponding to the set period is obtained.

[0072] In specific embodiments, whether a game record is within the set period can be determined according to the game start time, the game exit time, etc. in the game record, which is not limited here.

[0073] For example, assuming that the game start time in the game record A is 2019-12-15-22:30, the game exit time is 2019-12-16-00:45, and the set period is in units of days, for example, from 00:00-24:00. If the game start time is used to determine whether the game record is within the set game period, the game record A is within the game period defined on December 15, 2019. If the game exit time is used to determine whether the game record is within the set game period, the game record A is within the game period defined on December 16, 2019.

[0074] In step 370, if the accumulated game duration is not less than the current game limited duration, a first game control strategy is executed, and the user indicated by the user identifier is restricted from logging in to the blockchain network by executing the first game control strategy.

[0075] In an embodiment, the first game control strategy is to reject the login request, so that when the accumulated game duration corresponding to the user identifier is not less than the current game limited duration, the user cannot continue any game application accessed in the blockchain network, and the user can continue the game only in the next period of game duration accumulation period, thereby effectively avoiding the user's game time being too long.

[0076] In another embodiment, the first game control strategy is to place the login request sent by the client in a waiting area, and the node restricts the client from logging in to the blockchain network by placing the login request in the waiting area. Further, after placing the login request in the waiting area, the login request is taken out at a set time interval, so that the login request is processed.

[0077] In another embodiment, the first game control strategy can also be sending a learning task to the client, for example, a test question practice, a course explanation video, a science video. After the user at the client side completes the test question practice or the course explanation video is played, the node controls the login of the client into the blockchain network. When the cumulative game time corresponding to the user identification is not less than the current game limited time, the learning task is sent to the client, which is equivalent to delaying the login of the client into the blockchain network, so as to effectively avoid the long game time of the user.

[0078] In other embodiments, the first game control strategy can also be other strategies for avoiding the immediate login of the user into the blockchain network, which are not limited here.

[0079] In the prior art, each game application is independent of each other, and due to the non-intercommunication of information between each game platform, the user continues to play by logging into other game platforms after reaching the corresponding limited game time on one game platform. Therefore, the game control in the prior art is easily bypassed and cannot effectively limit the game time of the user.

[0080] In the scheme of the present disclosure, the game application is accessed through the blockchain network, and the user logs into the game application by logging into the blockchain network, thereby realizing the limitation of the user logging into the game application by limiting the login of the user into the blockchain network. Moreover, since the user needs to log into the game application by logging into the blockchain network, it is convenient to record the game record of the user in each game application, and further calculate the cumulative game time of the user in multiple game applications.

[0081] Further, the game record and registration information of the user are written into the blockchain, so that the nodes in the blockchain network can calculate the game limited time of the user based on the cumulative game time in multiple game applications calculated according to the game record and based on the registration information. Further, only when the cumulative game time of the user is less than the game limited time, the client is allowed to log into the blockchain network, so that the long game time of the user in each game application can be effectively avoided. Moreover, since the first game control strategy is controlled by the registration information and the game record of the user, the game login control of the user is realized.

[0082] In an embodiment, as shown in Figure 4 the method further comprises:

[0083] Step 410, if the cumulative game time is less than the current game limited time, a second game control strategy is executed, and the client is accessed into the blockchain network by executing the second game control strategy. The client logs into the game application by accessing the blockchain network.

[0084] In an embodiment, the second game control strategy can be to immediately connect the client into the blockchain network, so that the client enters a game application based on the blockchain network connected by the blockchain network.

[0085] In another embodiment, the second game control strategy can be to increase the level or score of the client in the blockchain network while logging the client into the blockchain network. The level or score can assist the user in skill upgrading, equipment exchange, skin exchange, prop exchange, etc. in the game application.

[0086] Further, the increased level (or score) can be according to the difference between the current game limited time and the accumulated game time. For example, a plurality of difference ranges are preset, each difference range corresponds to an increase value of the level, so that the increase value of the level is determined by the difference between the current game limited time and the accumulated game time corresponding to the user identifier.

[0087] In yet another embodiment, the second game control strategy can also be to push pass information to the client while logging the client into the blockchain network, so that the user in which the client is located realizes game pass through the pass information.

[0088] After the client is logged into the blockchain network, the client can be logged into a game application connected by the blockchain network.

[0089] If the login request indicates a target game application that the user wants to log in, after logging into the blockchain network, the client logs into the target game application, that is, the user can enter the game interface of the target game application based on the client.

[0090] If the login request does not indicate the target game application that the user wants to log in, after the client is logged into the blockchain network, the user can select a game in the client interface after logging into the blockchain network, and then the client enters the game interface of the target game application according to the target game application selected by the user.

[0091] In an embodiment, as shown in Figure 5 the method further comprises:

[0092] Step 510, receiving a registration request sent by a client for a to-be-registered user.

[0093] Step 530, randomly generating a private key for the to-be-registered user according to the registration request.

[0094] Step 550, encrypting the private key by an elliptic curve encryption algorithm to obtain a public key.

[0095] Step 570, return the generated private key and public key to the client, and the client logs into the blockchain network through the public key and the private key.

[0096] As described above, if a user wants to log into the game application based on the blockchain network, the user needs to register in the blockchain network first.

[0097] After the node generates the private key and the public key for the user, the client where the user is located logs into the blockchain network through the private key and the public key. For example, the public key is used as the user's account, and the private key is used as the password for login.

[0098] In an embodiment, the private key of the user in the blockchain network is not public and needs to be kept secret. Therefore, the public key of the user can be used as the user identifier to obtain registration information and game records from the blockchain.

[0099] The private key and the public key generated by the node for the user are corresponding. Specifically, if a private key is used to sign a certain data, only the public key can be used to decrypt the signed data U; conversely, if a user's public key is used to encrypt a certain data, only the user's private key can be used to decrypt the encrypted data.

[0100] In an embodiment, the client can also be the client where the operator node is located. Thus, the user as an operator registers through steps 510-570 as described above, and obtains the private key and the public key correspondingly.

[0101] Thus, the user as an operator can publish game applications by logging into the blockchain network through his own public key and private key.

[0102] In an embodiment, the login request indicates the private key and the public key of the login user, as shown in Figure 6 After step 310, the method further includes:

[0103] Step 610, match and verify the private key and the public key indicated in the login request.

[0104] In the blockchain network, the private key of the user is not public. Therefore, the private key indicated in the login request in the login request is that a certain data in the login request is obtained by the private key of the user. In other words, the private key of the login user indicated in the login request is not explicitly indicated.

[0105] In an embodiment, the login request includes a signature data (assumed as data B) obtained by signing an initial data (assumed as data A) with the private key of the login user and the public key of the login user. The matching and verifying process in step 610 is:

[0106] Data B in the login request is decrypted using the login user's public key to obtain data C. Data C is then compared with data A. If data A and data C match, it is determined that the private key and public key of the login user indicated in the login request match. Otherwise, if data A and data C do not match, it is determined that the private key and public key of the login user indicated in the login request do not match.

[0107] If the verification confirms that the private key indicated in the login request matches the public key, then proceed to steps 330 and 350.

[0108] If the verification determines that the private key indicated in the login request does not match the public key, then proceed to step 630: reject the login request.

[0109] In one embodiment, such as Figure 7 As shown, after step 550, the method further includes:

[0110] Step 710: Hash the public key to obtain the wallet address of the user to be registered.

[0111] Step 730: The registration information of the user to be registered is associated with the wallet address and written into the blockchain, and synchronized to other nodes in the blockchain network.

[0112] The specific process of step 710 is as follows: perform SHA-256 hash calculation on the public key to obtain the first hash value; perform RIPEMD-160 calculation on the first hash value to obtain the second hash value; perform SHA-256 hash calculation on the second hash value to obtain the third hash value; perform SHA-256 hash calculation on the third hash value again to obtain the fourth hash value; add the first few bytes of the third hash value, such as four bytes, to the end of the fourth hash value to obtain the wallet address of the user to be registered.

[0113] After generating a wallet address for a user, the user's game records and registration information can be associated with the wallet address and written into the blockchain. Thus, the user's registration information and game records can be retrieved from the blockchain.

[0114] It is worth mentioning that, based on the characteristics of elliptic curve cryptography and hash algorithms, the process by which a node generates a user's private key, public key, and wallet address is irreversible. In other words, although the generation process is to randomly generate a private key, generate a public key based on the private key, and generate a wallet address based on the public key, if the user's wallet address is known, the user's public key cannot be calculated in reverse; similarly, if the user's public key is known, the user's private key cannot be calculated in reverse.

[0115] Therefore, for users in a blockchain network, the private key is not public, while the public key and wallet address can be public.

[0116] In an embodiment, the age information comprises a registered age of the user, and the registration information further comprises a registration time, as shown in Figure 8 In step 330, a current game limit duration corresponding to the user identifier is determined according to a current system time and the age information included in the registration information, comprising:

[0117] In step 810, a time difference is calculated according to the registration time and the current time.

[0118] In step 830, a current age of the user is calculated according to the time difference and the registered age of the user.

[0119] In step 850, a game limit duration corresponding to the current age is determined according to the current age.

[0120] Up to now, the current age of the user corresponding to the current time of the login request is calculated according to the registration time in the registration information and the registered age of the user, and thus the game limit duration is determined according to the determined current age.

[0121] In an embodiment, as shown in Figure 9 After step 410, the method further comprises:

[0122] In step 910, a game login request sent by the client is received, and the game login request indicates a target game application requested to be logged in.

[0123] In step 930, the client is controlled to log in to the target game application according to the game login request.

[0124] In this embodiment, after the client logs in to the blockchain network, the user can select a game application in a corresponding interface, and thus the node controls the client to log in to the target game application according to the target game application indicated by the game login request.

[0125] In an embodiment, as shown in Figure 10 After step 930, the method further comprises:

[0126] In step 1010, a game start time and a game exit time of the client in the target game application are obtained according to a game exit instruction sent by the client.

[0127] After the client enters a game interface of the target game application, the client performs game monitoring correspondingly, and if the user starts the game, the game start time is recorded correspondingly; if the client exits the target game application is monitored, the exit time is recorded correspondingly.

[0128] Thus, after the client sends the game exit instruction to the node, the node can obtain the game start time and the exit time from the client correspondingly.

[0129] Step 1030, generating a game record according to the user identification, the game start time and the exit time.

[0130] Step 1050, publishing the generated game record into a record pool of the blockchain network, to wait for writing the generated game record into the blockchain.

[0131] In an embodiment, step 1050 further comprises:

[0132] hashing the game record to obtain a digest;

[0133] signing the digest by a private key of the node to obtain signature data;

[0134] generating publishing data from the game record, the signature data and a public key of the node;

[0135] temporarily storing the publishing data into the record pool of the blockchain network, to wait for writing the game record in the publishing data into the blockchain.

[0136] Through the above process, after the node obtains the publishing data in the record pool, the node can verify the game record in the publishing data based on the game record in the publishing data, the public key of the node and the signature data, to determine whether the game record in the publishing data is tampered with, if tampered with, the game record in the publishing data is not written into the blockchain, otherwise, if not tampered with, the game record in the publishing data is written into the blockchain.

[0137] In an embodiment, as shown in Figure 11 the method further comprises:

[0138] Step 1110, obtaining a to-be-processed game record from a record pool of the blockchain network.

[0139] Step 1130, filtering invalid game records in the to-be-processed game record to obtain a game record to be written into the blockchain, the invalid game record being a game record with a single game duration lower than a set duration.

[0140] The set duration can be set according to actual needs, which is not specifically limited here, for example, the set duration is 1 minute, 5 minutes, 10 minutes, etc.

[0141] By filtering the invalid game record, the obtained game record to be written into the blockchain is a game record with a single game duration not lower than the set duration.

[0142] Step 1150, constructing a block according to the game record to be written into the blockchain.

[0143] Step 1170, linking the block to the blockchain and synchronizing in the blockchain network.

[0144] In an embodiment, the carrier of the game record existing in the record pool is a publishing data, the publishing data including the game record, signature data corresponding to the game record, and a public key of a data publisher corresponding to the publishing data. Before step 1150, the method further includes verifying the game record to be written into the blockchain, and the verification process is as follows:

[0145] decrypting the signature data in the publishing data through the public key of the publisher in the publishing data to obtain decrypted data; and

[0146] performing a hash operation on the game record in the publishing data to obtain first data;

[0147] comparing the first data with the decrypted data, if the first data is consistent with the decrypted data, it indicates that the game record in the publishing data has not been tampered with, and then step 1150 is performed;

[0148] otherwise, if the first data is not consistent with the decrypted data, it indicates that the game record in the publishing data has been tampered with, and then the game record is discarded.

[0149] Through the above process, it is ensured that the game records written into the blockchain are all game records that have not been tampered with.

[0150] In step 1150, the data in a block can include multiple game records, and in a specific embodiment, the game records included in each block can be determined according to the data size set for the block.

[0151] The constructed block at least includes the hash value of the previous block, and the hash value and the timestamp of the current block, so that the constructed block is linked to the blockchain according to the timestamp of the block. After the constructed block is linked to the blockchain, the blockchain is synchronized to other nodes in the blockchain network.

[0152] The process of writing the registration information of the user into the blockchain is the same as the process of writing the game record into the blockchain, which is not described here.

[0153] The device embodiments of the present application are introduced below, which can be used to execute the methods in the embodiments of the present application. For details not disclosed in the device embodiments of the present application, please refer to the method embodiments of the present application described above.

[0154] The present disclosure provides a login control device 1200 of a game application, applied to a node in a blockchain network, as shown in the following figure, the device includes: Figure 12

[0155] A receiving module 1210 is configured to receive a login request sent by a client, the login request including a user identifier.

[0156] ​The game limited duration determination module 1230 is configured to acquire registration information of a user corresponding to the user identifier from a blockchain of a node, and determine a current game limited duration corresponding to the user identifier according to a current system time and age information included in the registration information.

[0157] The accumulated game duration determination module 1250 is configured to acquire a game record corresponding to the user identifier from the blockchain according to the user identifier, and calculate an accumulated game duration of the user identifier within a set period of time according to the game record, wherein the accumulated game duration includes a game duration of a user indicated by the user identifier in at least one game application accessed by the user in the blockchain network.

[0158] The login limiting module 1270 is configured to execute a first game control strategy if the accumulated game duration is not less than the current game limited duration, and limit login of the user indicated by the user identifier to the blockchain network by executing the first game control strategy.

[0159] In an embodiment, the apparatus further includes:

[0160] The login module is configured to execute a second game control strategy if the accumulated game duration is less than the current game limited duration, and access the blockchain network by executing the second game control strategy, so that the client logs in to the game application by accessing the blockchain network.

[0161] In an embodiment, the game limited duration corresponds to a set period of time, and the accumulated game duration determination module 1250 includes:

[0162] The game record acquisition unit is configured to acquire a game record of a user from a blockchain of a node according to a user identifier.

[0163] The game duration accumulation unit is configured to accumulate game duration within a set period of time according to the game record, and obtain an accumulated game duration.

[0164] In an embodiment, the apparatus further includes:

[0165] The registration request receiving module is configured to receive a registration request sent by a client for a user to be registered.

[0166] The private key generation module is configured to randomly generate a private key for the user to be registered according to the registration request.

[0167] The encryption module is configured to encrypt the private key by an elliptic curve encryption algorithm to obtain a public key.

[0168] The return module is configured to return the generated private key and public key to the client, so that the client logs in to the blockchain network by using the public key and the private key.

[0169] In an embodiment, the login request indicates a private key and a public key of the login user, and the apparatus further comprises:

[0170] a matching verification module configured to perform matching verification on the private key and the public key indicated by the login request.

[0171] a first jump module configured to jump to the game-limited duration determination module 1230 and the accumulated game duration determination module 1250 if the verification determines that the private key and the public key in the login request match.

[0172] a second jump module configured to reject the login request if the verification determines that the private key and the public key in the login request do not match.

[0173] In an embodiment, the apparatus further comprises:

[0174] a wallet address generation module configured to perform a hash operation on the public key to obtain a wallet address of the user to be registered.

[0175] a writing module configured to write the registration information of the user to be registered and the wallet address into the blockchain and synchronize to other nodes in the blockchain network.

[0176] In an embodiment, the game-limited duration determination module 1230 comprises:

[0177] a time difference calculation unit configured to calculate a time difference according to the registration time and the current system time.

[0178] a current age calculation unit configured to calculate a current age of the user indicated by the user identifier according to the time difference and the user registration age.

[0179] a game-limited duration determination unit configured to determine a current game-limited duration corresponding to the current age according to the current age.

[0180] In an embodiment, the apparatus further comprises:

[0181] a game login request receiving module configured to receive a game login request sent by the client after the client accesses the blockchain network, the game login request indicating a target game application requested to log in.

[0182] an application login module configured to control the client to log in to the target game application according to the game login request.

[0183] In an embodiment, the apparatus further comprises:

[0184] a game exit instruction receiving module configured to obtain a game start time and an exit time of the client in the target game application according to a game exit instruction sent by the client.

[0185] The game record generation module is configured to generate a game record according to the user identifier, the game start time and the exit time.

[0186] The temporary storage module is configured to publish the generated game record to a record pool of the blockchain network, so as to wait for writing the generated game record into the blockchain.

[0187] In an embodiment, the apparatus further comprises:

[0188] The to-be-processed game record acquisition module is configured to acquire a to-be-processed game record from the record pool of the blockchain network.

[0189] The filtering module is configured to filter invalid game records in the to-be-processed game record, to obtain a game record to be written into the blockchain, the invalid game record being a game record with a single game duration less than a set duration.

[0190] The block construction module is configured to construct a block according to the game record to be written into the blockchain.

[0191] The linking and synchronization module is configured to link the block to the blockchain and synchronize in the blockchain network.

[0192] The functions and effects of the modules in the apparatus are described in detail in the implementation process of the corresponding steps in the game application login control method, and will not be repeated here.

[0193] It can be understood that these modules can be implemented by hardware, software or a combination of both. When implemented by hardware, these modules can be implemented as one or more hardware modules, such as one or more application specific integrated circuits. When implemented by software, these modules can be implemented as one or more computer programs executed on one or more processors.

[0194] Figure 13 A structural schematic diagram of a computer system of an electronic device suitable for implementing the embodiments of the present application is shown.

[0195] It should be noted that, Figure 13 The computer system 1300 of the electronic device shown is only an example and should not impose any limitation on the functions and use range of the embodiments of the present application.

[0196] As Figure 13As shown, the computer system 1300 includes a central processing unit (CPU) 1301 which can perform various suitable actions and processes in accordance with programs stored in a read-only memory (ROM) 1302 or loaded from the storage section 1308 into a random access memory (RAM) 1303, such as performing the methods in the above-described embodiments. Various programs and data required for system operation are also stored in the RAM 1303. The CPU 1301, the ROM 1302, and the RAM 1303 are connected to each other through a bus 1304. An input / output (I / O) interface 1305 is also connected to the bus 1304.

[0197] Connected to the I / O interface 1305 are an input section 1306 including a keyboard, a mouse, etc.; an output section 1307 including a display such as a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 1308 including a hard disk, etc.; and a communication section 1309 including a network interface card such as a LAN (Local Area Network) card, a modem, etc. The communication section 1309 performs communication processing via a network such as the Internet. A drive 1310 is also connected to the I / O interface 1305 as necessary. A removable recording medium 1311 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc. is attached to the drive 1310 as necessary, so that a computer program read therefrom is installed into the storage section 1308 as necessary.

[0198] In particular, in accordance with embodiments of the present application, the processes described above with reference to the flowcharts can be implemented as a computer software program. For example, embodiments of the present application include a computer program product comprising a computer program carried on a computer readable medium, the computer program containing program code for performing the methods illustrated by the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via the communication section 1309, and / or installed from the removable recording medium 1311. When the computer program is executed by the central processing unit (CPU) 1301, various functions defined in the systems of the present application are performed.

[0199] It should be noted that the computer-readable medium in the embodiments of the present application can be a computer-readable signal medium or a computer-readable storage medium or any combination thereof. The computer-readable storage medium may, for example, but is not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or apparatus, or any combination thereof. More specific examples of the computer-readable storage medium can include, but are not limited to, an electrical connection having one or more wires, a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a flash memory, an optical fiber, a portable compact disk read-only memory (Compact Disc Read-Only Memory, CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In the present application, the computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, device or apparatus. In the present application, the computer-readable signal medium can include a data signal carrying a computer-readable program code in a baseband or as a part of a carrier wave. Such a propagated data signal can take various forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination thereof. The computer-readable signal medium can also be any computer-readable medium other than the computer-readable storage medium, which can send, propagate or transmit a program for use by or in conjunction with an instruction execution system, device or apparatus. The program code contained on the computer-readable medium can be transmitted using any suitable medium, including but not limited to wireless, wired, or the like, or any suitable combination thereof.

[0200] The flowcharts and block diagrams in the drawings illustrate the possible implementation architectures, functions and operations of the systems, methods and computer program products according to various embodiments of the present application. In the flowcharts or block diagrams, each block can represent a module, a program segment or a part of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions noted in the blocks can occur in different orders than that shown in the drawings. For example, two blocks represented in succession can actually be executed substantially in parallel, and sometimes in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams or flowcharts, and the combination of blocks in the block diagrams or flowcharts, can be implemented by a dedicated hardware-based system for performing the specified functions or operations, or can be implemented by a combination of special-purpose hardware and computer instructions.

[0201] The units described in the embodiments of the present application can be implemented by software, or by hardware, or by a combination of software and hardware. The units described can also be located in a single processor. In some cases, the names of the units do not limit the units themselves.

[0202] As another aspect, the present application also provides a computer readable medium, which can be included in the electronic device described in the above embodiments, or can exist separately without being assembled into the electronic device. The computer readable medium carries one or more programs, which, when executed by the electronic device, cause the electronic device to implement the method described in the above embodiments.

[0203] It should be noted that although several modules or units for performing actions are mentioned in the above detailed description, the division is not mandatory. In fact, according to the embodiments of the present application, the features and functions of two or more modules or units described above can be embodied in one module or unit. Conversely, the features and functions of one module or unit described above can be further divided into several modules or units.

[0204] From the above description of the embodiments, those skilled in the art will readily appreciate that the example embodiments described herein can be implemented by software and / or by hardware coupled with software. Accordingly, the technical solutions according to the embodiments of the present application can be embodied in the form of a software product. The software product can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, or the like) or on a network, and includes several instructions to make a computing device (which can be a personal computer, a server, a touch terminal, or a network device, etc.) execute the methods according to the embodiments of the present application.

[0205] As used herein, "a plurality" means two or more. "And / or" describes the association relationship of associated objects, which means that there can be three relationships, for example, A and / or B can mean that there are three cases of A alone, A and B together, and B alone. The character " / " generally represents an "or" relationship between the associated objects before and after it.

[0206] Other embodiments of the present application will be apparent to those skilled in the art from consideration of the specification and practice of the embodiments disclosed herein. The present application is intended to cover any variations, uses, or adaptations of the application following the general principles thereof and including such departures from the present disclosure as come within known or customary practice in the art.

[0207] It is to be understood that the application is not limited to the precise construction already described above and shown in the drawings, and that various modifications and changes can be made by those skilled in the art without departing from the scope of the application. The scope of the application should only be limited by the claims appended hereto.

Claims

1. A method for login control of a game application, applied to a node in a blockchain network, the node being a server of the game application, and the node being configured to control user login to the game application, characterized in that, The method comprises: receiving a login request sent by a client, the login request comprising a user identifier; obtaining corresponding registration information of the user identifier from a blockchain, determining a current game limit duration corresponding to the user identifier based on a current system time and age information included in the registration information; and obtaining corresponding game records of a wallet address of the user from the blockchain, calculating an accumulated game duration of the user identifier within a set period of time based on the game records, the accumulated game duration comprising game duration of a user indicated by the user identifier on at least one game application accessed by the user in the blockchain network; if the accumulated game duration is not less than the current game limit duration, executing a first game control strategy to restrict the user indicated by the user identifier from logging in to the blockchain network by executing the first game control strategy; if the accumulated game duration is less than the current game limit duration, executing a second game control strategy to connect the client to the blockchain network by executing the second game control strategy, and associating and writing the wallet address of the user and game records of the user in the game application in the blockchain by logging in to the game application through the blockchain network. The method further comprises:

2. The method of claim 1, wherein, receiving a registration request sent by the client for a user to be registered; randomly generating a private key for the user to be registered according to the registration request; encrypting the private key by an elliptic curve encryption algorithm to obtain a public key; returning the generated private key and public key to the client, and the client logs in to the blockchain network through the public key and the private key. The login request indicates the private key and the public key of the user requesting to log in, and after receiving the login request sent by the client, the method further comprises:

3. The method of claim 2, wherein, matching and verifying the private key and the public key indicated by the login request; if the verification determines that the private key and the public key indicated by the login request match, the step of obtaining the corresponding registration information of the user identifier from the blockchain is executed; if the verification determines that the private key and the public key indicated by the login request do not match, the login request is rejected. After the private key is encrypted by the elliptic curve encryption algorithm to obtain the public key, the method further comprises:

4. The method of claim 2, wherein, performing a hash operation on the public key to obtain a wallet address of the user to be registered; associating and writing the registration information of the user to be registered with the wallet address in the blockchain, and synchronizing to other nodes in the blockchain network. The age information comprises a user registration age, and the registration information further comprises a registration time, the current game limit duration corresponding to the user identifier is determined based on the current system time and the age information included in the registration information, comprising:

5. The method of claim 1, wherein, calculating a time difference based on the registration time and the current system time; calculating a current age of the user indicated by the user identifier based on the time difference and the user registration age; determining a current game limit duration corresponding to the current age based on the current age. After the second game control strategy is executed, the method further comprises:

6. The method of claim 1, wherein, ​ After the client accesses the blockchain network, a game login request sent by the client is received, and the game login request indicates a target game application for which login is requested; The client is logged into the target game application according to the game login request.

7. The method of claim 6, wherein, The writing of the wallet address of the user into the blockchain in association with the game record of the user in the game application includes: According to the game exit instruction sent by the client, the game start time and the exit time of the client in the target game application are obtained; A game record is generated according to the user identifier, the game start time and the exit time; The generated game record is temporarily stored in a record pool of the blockchain network, so as to wait for the writing of the wallet address of the user and the generated game record into the blockchain in association.

8. The method of claim 1, wherein, The method further includes: Obtaining a to-be-processed game record from the record pool of the blockchain network; Filtering invalid game records in the to-be-processed game record to obtain game records to be written into the blockchain, the invalid game records being game records with a single game duration less than a set duration; Constructing a block according to the game records to be written into the blockchain; Linking the block to the blockchain and synchronizing in the blockchain network. 9.A login control apparatus of a game application, applied to a node in a blockchain network, the node being a server of the game application, and the node being configured to control user login to the game application, characterized in that, The apparatus includes: A receiving module configured to receive a login request sent by a client, the login request including a user identifier; A game limit duration determination module configured to obtain corresponding registration information from the blockchain according to the user identifier, determine a current game limit duration corresponding to the user identifier according to a current system time and age information included in the registration information; and An accumulated game duration determination module configured to obtain corresponding game records from the blockchain according to a wallet address of the user, calculate an accumulated game duration of the user identifier within a set period of time according to the game records, the accumulated game duration including game durations of a user indicated by the user identifier in at least one game application accessed by the blockchain network; A login limiting module configured to execute a first game control strategy if the accumulated game duration is not less than the current game limit duration, limit the user indicated by the user identifier from logging into the blockchain network by executing the first game control strategy, and execute a second game control strategy if the accumulated game duration is less than the current game limit duration, access the blockchain network by executing the second game control strategy, and log into a game application by accessing the blockchain network, and write the wallet address of the user into the blockchain in association with a game record of the user in the game application.

10. A computer readable medium having stored thereon a computer program, characterized in that, The computer program, when executed by a processor, implements the login control method of the game application according to any one of claims 1 to 8.

11. An electronic device, comprising: includes: One or more processors; A storage device configured to store one or more programs, when the one or more programs are executed by the one or more processors, cause the one or more processors to implement the login control method of the game application according to any one of claims 1 to 8.

12. A computer program product, characterised in that, The computer program product includes a computer program adapted to be loaded by a processor and execute the login control method of the game application as claimed in any one of claims 1 to 8.

Citation Information

Patent Citations

  • Method for logging in online game and system and login server

    CN101527722A

  • Control method and device for game application

    CN107137929A

  • Online game anti-addiction verification method

    CN107485858A

  • A wireless security authentication method based on a block chain technology

    CN109359464A