CN111614598A - Game processing method, device, electronic equipment and system based on block chain - Google Patents

Game processing method, device, electronic equipment and system based on block chain Download PDF

Info

Publication number
CN111614598A
CN111614598A CN201910134015.XA CN201910134015A CN111614598A CN 111614598 A CN111614598 A CN 111614598A CN 201910134015 A CN201910134015 A CN 201910134015A CN 111614598 A CN111614598 A CN 111614598A
Authority
CN
China
Prior art keywords
game
asset
information
user
server
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.)
Granted
Application number
CN201910134015.XA
Other languages
Chinese (zh)
Other versions
CN111614598B (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.)
Hainan Qukuai Feiyang Technology Co ltd
Original Assignee
Beijing Qukuai Yuanyang Technology 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 Beijing Qukuai Yuanyang Technology Co ltd filed Critical Beijing Qukuai Yuanyang Technology Co ltd
Priority to CN201910134015.XA priority Critical patent/CN111614598B/en
Publication of CN111614598A publication Critical patent/CN111614598A/en
Application granted granted Critical
Publication of CN111614598B publication Critical patent/CN111614598B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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
    • 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
    • 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/1097Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Finance (AREA)
  • Computer Security & Cryptography (AREA)
  • Strategic Management (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The application provides a game processing method, a game processing device, electronic equipment and a game processing system based on a block chain, which are applied to the technical field of the block chain. According to the method and the system, the asset information of the game user is stored in the blockchain, and the confirmation and distribution operation of the game asset information of the user is transferred to the blockchain, so that the centralized problem caused by the fact that the asset information of the game user is stored by a server of a game operator is avoided, the asset safety of the game user is improved, meanwhile, the server carries out corresponding processing on the game operation instruction of the game user through a game client in the game process, the smaller game delay of the online game is ensured, and the user experience is improved.

Description

Game processing method, device, electronic equipment and system based on block chain
Technical Field
The present application relates to the field of blockchain technology, and in particular, to a method, an apparatus, an electronic device and a system for processing a game based on a blockchain.
Background
The online game is an online game which uses the internet as a transmission medium, a game operator server and a user terminal as processing terminals, and a game client as an information interaction window and aims to realize leisure, communication and virtual achievement.
At present, in the running process of the network game, the interactive operation (such as recharging, transferring, game operation instructions) triggered by the user through the game client is completely processed and completed by the game server, that is, the user initiates an interactive request to the game server through the game client, and the game server returns interactive information to the game client after correspondingly processing the received interactive request. However, the existing method of processing the interactive request of the game client completely by the game server makes the operation of the game server a black box, the user cannot know the operation mechanism of the game, the game operator has absolute control right to the game account assets of the user, the game account assets of the user can be modified at will, and the user must be forced to trust the game operator. Therefore, in the existing network game running process, the game server completely processes the interactive operation of the game client, and the problems that the game server is seriously centralized in the network game running process and the security of the game account assets of the user is low exist.
Disclosure of Invention
The application provides a game processing method, a game processing device, electronic equipment and a game processing system based on a block chain, which are used for reducing centralization of a game server in the running process of an online game and improving the security of game account assets of a user, and adopt the following technical scheme:
in a first aspect, the present application provides a method for processing a game based on a blockchain, where the method is applied to the blockchain, and includes:
when receiving a query request aiming at the account information of a game user from a server, querying the account of the game user to obtain the account information, and feeding back the query result of the account information to the server, wherein the query request of the account information of the game user is generated by the server according to a login request triggered by system login of the game user through a game client;
and receiving asset settlement result information sent by the server, and performing asset allocation on corresponding accounts in the block chain according to the asset settlement result information, wherein the corresponding accounts in the block chain comprise accounts corresponding to the game users, and the asset settlement result information is determined by performing asset settlement on asset related record information corresponding to respective accounts of the game users and other users participating in the game together by the server.
In a second aspect, the present application provides a method for processing a game based on a blockchain, which is applied to a server, and includes:
receiving a game user login request sent by a game client, and sending a query request aiming at game user account information corresponding to the game user login request to a blockchain, wherein the game user login request is generated by a game user through system login of the game client;
when the received inquiry result of the account information of the game user fed back by the blockchain meets a preset threshold condition, determining that the login of the game user is successful;
receiving game operation instructions from game clients and other game clients participating in the game together, and performing corresponding processing according to the game operation instructions to update asset related record information of respective accounts of game users and other users participating in the game together;
and when the preset conditions are met, performing asset settlement on the assets of the respective accounts of the game users and other users participating in the game together according to the asset related record information of the respective accounts, and sending asset settlement result information to the block chain for asset allocation.
In a third aspect, a blockchain-based game processing system is provided, the system comprising:
a plurality of game clients, a blockchain, and a server;
any game client is used for sending a game user login request to the server;
the server is used for receiving a game user login request sent by any game client and sending a query request aiming at game user account information corresponding to the game user login request to the blockchain;
the block chain is used for inquiring the account of the game user when receiving an inquiry request aiming at the account information of the game user and sent by the server, and feeding back the account information inquiry result to the server;
the server is also used for determining that the login of the game user is successful when the received inquiry result of the game user account information fed back by the blockchain meets a preset threshold condition, receiving game operation instructions from any game client and other game clients participating in the game together, performing corresponding processing according to the game operation instructions to update the asset related record information of the respective account numbers of the game user and other users participating in the game together, performing asset settlement on the respective account numbers of the game user and other users participating in the game together according to the asset related record information of the respective account numbers when the preset condition is met, and sending asset settlement result information to the blockchain for asset allocation;
and the block chain is also used for receiving the asset settlement result information sent by the server and performing asset allocation on corresponding accounts in the block chain according to the asset settlement result information, wherein the accounts in the block chain comprise accounts corresponding to the game users.
In a fourth aspect, the present application provides a tile chain-based game processing apparatus, applied to a tile chain, the apparatus including:
the system comprises a first query module, a second query module and a server, wherein the first query module is used for querying an account of a game user to obtain account information when receiving a query request aiming at the account information of the game user from the server, and feeding back an account information query result to the server, and the query request of the account information of the game user is generated by the server according to a login request triggered by system login of the game user through a game client;
and the distribution module is used for receiving the asset settlement result information sent by the server and performing asset distribution on corresponding accounts in the block chain according to the asset settlement result information, wherein the corresponding accounts in the block chain comprise accounts corresponding to the game users, and the asset settlement result information is determined by performing asset settlement on asset related record information corresponding to respective account numbers of the game users and other users participating in the game together by the server.
In a fifth aspect, the present application provides a blockchain-based game processing apparatus applied to a server, the apparatus including:
the receiving and sending module is used for receiving a game user login request sent by a game client and sending a query request aiming at game user account information corresponding to the game user login request to the blockchain, wherein the game user login request is generated by a game user through system login of the game client;
the determining module is used for determining that the login of the game user is successful when the received inquiry result of the account information of the game user fed back by the blockchain meets a preset threshold condition;
the second updating module is used for receiving game operation instructions from the game client and other game clients participating in the game together and performing corresponding processing according to the game operation instructions so as to update the asset related record information of the respective accounts of the game users and other users participating in the game together;
and the settlement module is used for performing asset settlement on the respective account assets of the game users and other commonly participating game users according to the asset related record information of each account when a preset condition is met, and sending asset settlement result information to the block chain for asset allocation.
In a sixth aspect, the present application provides an electronic device comprising:
one or more processors;
a memory;
one or more application programs, wherein the one or more application programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs configured to: the block chain-based game processing method shown in the embodiment of the first aspect is performed.
In a seventh aspect, the present application provides an electronic device, including:
one or more processors;
a memory;
one or more application programs, wherein the one or more application programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs configured to: the block chain-based game processing method shown in the embodiment of the second aspect is executed.
In an eighth aspect, the present application provides a computer-readable storage medium on which a computer program is stored, which when executed by a processor, implements the blockchain-based game processing method shown in the embodiments of the first aspect of the present application.
In a ninth aspect, the present application provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the blockchain-based game processing method shown in the embodiments of the second aspect of the present application.
The application provides a game processing method, a device, electronic equipment and a system based on a block chain, compared with the prior art that a server completely processes interactive operation of a game client in the running process of a network game, in the application, when an inquiry request aiming at account information of a game user is received from the server, the account information of the game user is inquired to obtain account information, and an account information inquiry result is fed back to the server, the inquiry request of the account information of the game user is generated by the server according to a login request triggered by system login of the game user through the game client, asset settlement result information sent by the server is received, asset allocation is carried out on corresponding accounts in the block chain according to the asset settlement result information, the corresponding accounts in the block chain comprise accounts corresponding to the game user, and the asset settlement result information is obtained by the server through carrying out asset allocation on the account pairs of the game user and other commonly participating game users The corresponding asset-related record information is determined by performing asset settlement. According to the method and the system, the asset information of the game user is stored by the blockchain, the confirmation and distribution operation of the game asset information of the user is transferred to the blockchain, the centralization problem caused by the fact that the asset information of the game user is stored by a server of a game operator is avoided, the asset safety of the game user is improved, meanwhile, the server carries out corresponding processing on a game operation instruction of the game user through a game client in the game process, and therefore small game delay of online games is guaranteed, and user experience is improved.
Additional aspects and advantages of the present application will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the present application.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings used in the description of the embodiments of the present application will be briefly described below.
Fig. 1 is a schematic flowchart of a game processing method based on a blockchain according to an embodiment of the present disclosure;
fig. 2 is a schematic flowchart of another game processing method based on a blockchain according to an embodiment of the present application;
FIG. 3 is a block diagram of a blockchain-based game processing system according to an embodiment of the present invention;
FIG. 4 is a diagram illustrating an example of an interaction of a blockchain-based game processing system according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of a block chain-based game processing device according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of another block chain-based game processing device according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of another block chain-based game processing device according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure;
fig. 9 is a schematic structural diagram of another electronic device according to an embodiment of the present application.
Detailed Description
Reference will now be made in detail to the embodiments of the present application, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are exemplary only for the purpose of explaining the present application and are not to be construed as limiting the present invention.
As used herein, the singular forms "a", "an", "the" and "the" include plural referents unless the context clearly dictates otherwise. It will be further understood that the terms "comprises" and/or "comprising," when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof. It will be understood that when an element is referred to as being "connected" or "coupled" to another element, it can be directly connected or coupled to the other element or intervening elements may also be present. Further, "connected" or "coupled" as used herein may include wirelessly connected or wirelessly coupled. As used herein, the term "and/or" includes all or any element and all combinations of one or more of the associated listed items.
The following describes the technical solutions of the present application and how to solve the above technical problems with specific embodiments. The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments. Embodiments of the present application will be described below with reference to the accompanying drawings.
Example one
One embodiment of the present application provides a method for processing a game based on a blockchain, which is applied to the blockchain, as shown in fig. 1, and the method includes:
step S101, when receiving an inquiry request aiming at the account information of a game user from a server, inquiring the account of the game user to obtain the account information, and feeding back an account information inquiry result to the server, wherein the inquiry request of the account information of the game user is generated by the server according to a login request triggered by system login of the game user through a game client;
the block chain is a distributed account book, a decentralized protocol among network nodes of the block chain maintains a data chain consisting of continuous and growing ordered data blocks, each data block is internally provided with a timestamp and a pointer which point to the previous block, the data chain can safely store data, information in the blocks can not be forged and falsified, the trust cost in the society can be greatly reduced, and an internet value transmission mechanism is remodeled.
Specifically, the account information of the game user is stored in the corresponding block in the block chain, when the block chain receives a query request for the account information of the game user from the server, the account of the game user is queried through a corresponding method, and a query result of the queried account information is fed back to the server; wherein the server may be a server of a network game service provider.
Specifically, the query request of the account information of the game user can be generated by the server after receiving a login request of the game client, and specifically, the login request can be generated by the game user of the network game through a corresponding trigger action based on the mobile terminal or the PC terminal.
And step S102, receiving asset settlement result information sent by the server, and performing asset allocation on corresponding accounts in the block chain according to the asset settlement result information, wherein the corresponding accounts in the block chain comprise accounts corresponding to the game users, and the asset settlement result information is determined by performing asset settlement on asset related record information corresponding to respective accounts of the game users and other users participating in the game together by the server.
Specifically, the method may include that an intelligent contract preset in a block chain receives asset settlement result information sent by a server, and then calls a corresponding interface to perform asset allocation on a corresponding account in the block chain according to the asset settlement result information; wherein, the corresponding account in the blockchain includes but is not limited to an account corresponding to the game user, for example, the account in the blockchain may also include an account of the network game service provider; specifically, each game user participating in the network game corresponds to an account, and the account correspondingly stores asset related record information of the corresponding game user, wherein the asset related record information may be determined by the server according to a game operation instruction triggered by each game user participating in the game through the game client, and specifically, the asset settlement result information may be determined according to the asset related record information corresponding to each account.
The embodiment of the application provides a game processing method based on a block chain, compared with the prior art that a server is used for processing interactive operation of a game client completely in the running process of a network game, in the embodiment of the application, when an inquiry request aiming at account information of a game user is received from the server, the account information is obtained by inquiring the account of the game user, and an account information inquiry result is fed back to the server, the inquiry request of the account information of the game user is generated by the server according to a login request triggered by system login of the game user through the game client, asset settlement result information sent by the server is received, asset allocation is carried out on corresponding accounts in the block chain according to the asset settlement result information, the corresponding accounts in the block chain comprise accounts corresponding to the game user, and the asset settlement result information is obtained by the server through carrying out asset allocation on the corresponding accounts of the game user and other commonly participating game users The record information is determined by performing asset settlement. According to the method and the system, the asset information of the game user is stored by the blockchain, the confirmation and distribution operation of the game asset information of the user is transferred to the blockchain, the centralization problem caused by the fact that the asset information of the game user is stored by a server of a game operator is avoided, the asset safety of the game user is improved, meanwhile, the server carries out corresponding processing on a game operation instruction of the game user through a game client in the game process, and therefore small game delay of online games is guaranteed, and user experience is improved.
The embodiment of the present application provides a possible implementation manner, and further, the method further includes:
step S103 (not shown in the figure), receiving a transfer request for transferring money to an account of the game user, and updating account information of the game user according to asset change information carried in the transfer request, where the account information of the game user is stored in a corresponding block of the block chain.
Specifically, a preset intelligent contract in the block chain receives a transfer request for transferring to an account of the game user, and then a corresponding interface is called to update the account information of the game user according to asset change information carried by the transfer request; wherein the transfer request may be used to add assets to the game user to ensure that the game user meets the conditions for participating in the network game.
For the embodiment of the application, the asset information of the game user is stored in the block chain, and the operation of transferring accounts of the game user is transferred to the block chain, so that the asset safety of the game user is improved.
The embodiment of the application provides a possible implementation manner, wherein the transfer request is triggered by a game client corresponding to a game user and/or triggered by game clients corresponding to other game users.
Specifically, the transfer request may be triggered by a game client corresponding to the game user, for example, the game user charges money through the corresponding game client, or the transfer request may be triggered by a game client corresponding to another game user, for example, the other game user transfers the asset of the own account to the game user through the corresponding game client.
For the embodiment of the application, the transfer request of the game user can be initiated by the game user and/or other game users through the corresponding game client, so that the problem of determining the assets of the account of the game user is solved.
The embodiment of the present application provides a possible implementation manner, and step S101 includes:
step S1011 (not shown in the figure): determining asset information of an account of a game user based on a preset intelligent contract in the block chain;
step S1012 (not shown): and feeding back the asset information of the account of the determined game user to the server.
The intelligent block chain contract is a computer execution program with consensus constraint, and can accurately and automatically execute data in the contract. The data can not be deleted or modified, and can only be newly added, thereby ensuring the traceability of the history.
Specifically, the asset information of the account of the game user can be determined by calling a corresponding interface through a preset intelligent contract in the blockchain, and then the asset information of the account of the determined game user is fed back to the server through a corresponding information transmission method, wherein the asset information includes but is not limited to virtual game coins, virtual game equipment and grade information, and the game virtual coins can be obtained by the game user through recharging or through a virtual game equipment transaction or the like.
According to the embodiment of the application, the asset information of the account of the game user is determined through the intelligent contract preset in the block chain, and then the determined asset information of the account of the game user is fed back to the server, so that the problems of determination and feedback of the asset information of the account of the game user are solved, and a basis is provided for the server to perform subsequent operation according to the asset information of the account of the game user.
The embodiment of the present application provides a possible implementation manner, and specifically, the receiving asset settlement result information sent by the server in step S102 includes:
step S1021 (not shown in the figure), receiving asset settlement result information transmitted by the server when a predetermined condition is satisfied;
wherein the predetermined condition includes, but is not limited to, at least one of:
ending the game; at least one participating game user exits the game; a predetermined settlement time threshold is reached.
For the embodiment of the application, the block chain receives asset settlement result information sent by the server when a preset condition is met; the predetermined condition may be that the game is ended, for example, one game round is ended, or at least one user participating in the game quits the game, for example, the game user actively quits the game or a game role corresponding to the game user in the game dies, or a predetermined time threshold may be reached, for example, asset settlement result information is transmitted every two minutes.
For the embodiment of the application, the asset settlement result information for asset allocation received by the blockchain is sent by the server when the preset condition is met, so that the operation of blockchain asset allocation is executed when the corresponding condition is met, and the pressure of blockchain data processing is relieved.
The embodiment of the present application provides a possible implementation manner, and further, the method further includes:
step S104 (not shown in the figure), when receiving the asset information query request from the game client, querying the corresponding account according to the asset information query request to obtain the asset information, and feeding back the asset information obtained by the query to the game client.
Specifically, a game user can perform corresponding triggering operation through a game client to send an asset information query request to a blockchain, when a preset intelligent contract in the blockchain receives the asset information query request from the game client, a corresponding interface is called to query a corresponding account according to the asset information query request to obtain asset information, and the asset information obtained through query is fed back to the game client
The method and the device solve the problem of inquiry and determination of the asset information of the game user.
Example two
Another embodiment of the present application provides another blockchain-based game method applied to a server, as shown in fig. 2, the method including:
step S201, receiving a game user login request sent by a game client, and sending a query request aiming at game user account information corresponding to the game user login request to a blockchain, wherein the game user login request is generated by a game user through system login of the game client;
wherein the server may be a server of a corresponding network game service provider.
Specifically, when receiving a game user login request sent by a game client, the server sends an inquiry request for game user account information corresponding to the game user login request to the blockchain to verify whether the game user has login authority, where the game user login request may be generated by a game user performing system login through a game client installed on a corresponding terminal device.
Step S202, when the received inquiry result of the account information of the game user fed back by the blockchain meets a preset threshold value condition, determining that the login of the game user is successful;
specifically, when the received game user account information query result fed back by the blockchain meets a predetermined threshold condition, it is determined that the game user is logged in successfully, for example, the threshold condition may be that the number of virtual gaming chips carried by the account information query result is greater than 5, and as long as the number of virtual gaming chips in the game user account is greater than 5, the game user is allowed to log in to participate in the game.
Step S203, receiving game operation instructions from the game client and other game clients participating in the game together, and performing corresponding processing according to each game operation instruction to update the asset related record information of the respective accounts of the game user and other users participating in the game together;
specifically, the server may receive game operation instructions from the game client and other game clients participating in the game together in real time, wherein the game may be a gunfight game such as a royal glory, and the game operation instructions may be corresponding attack instructions, pickup equipment instructions, equipment purchasing instructions, and the like;
specifically, the server performs corresponding processing according to the received instruction to update the asset related record information of the respective accounts of the game user and the other users participating in the game together, for example, when the game user purchases equipment, the account thereof may record corresponding asset reduction information, and when the game user picks up the equipment, the account thereof may record corresponding asset increase information, wherein, the server may also perform comprehensive processing on each game instruction to update the asset related record information of the respective accounts of the game user and the other users participating in the game together, for example, a game role corresponding to a plurality of game users successfully attacks a game role corresponding to the other game users, and the server performs comprehensive processing on the operation instructions of the plurality of game users to determine the asset related record information of the respective accounts of the plurality of game users.
And step S204, when the preset conditions are met, performing asset settlement on the assets of the game users and the assets of other game users participating in the game together according to the asset related record information of each account, and sending asset settlement result information to the block chain for asset allocation.
Specifically, when a preset condition is met, the server performs asset settlement on respective account assets of game users and other users participating in the game together according to the asset related record information of each account, and sends asset settlement result information to a block chain for asset allocation; the asset settlement can be that the server performs asset increase and decrease operation according to the asset related record information of the account corresponding to a certain game user to determine the asset settlement result of the certain game user; wherein, the asset settlement can also comprise settlement of assets which should be distributed by the network game service provider and the corresponding miners in the block chain.
Compared with the prior art that the interactive operation of the game client is completely processed by the server in the running process of the online game, the game processing method based on the blockchain receives the login request of the game user sent by the game client and sends the query request aiming at the account information of the game user corresponding to the login request of the game user to the blockchain. The method comprises the steps that a game user login request is generated by a game user through system login of the game client, when a received inquiry result of game user account information fed back by a blockchain meets a preset threshold condition, the success of login of the game user is determined, game operation instructions from the game client and other game clients participating in the game together are received, corresponding processing is carried out according to the game operation instructions to update asset related record information of respective accounts of the game user and other users participating in the game together, when the preset condition is met, asset settlement is carried out on the respective accounts of the game user and other users participating in the game together according to the asset related record information of the respective accounts, and asset settlement result information is sent to the blockchain for asset allocation. In the embodiment of the application, the asset information of the game user is stored by the blockchain, and the confirmation and distribution operation of the game asset information of the user is transferred to the blockchain, so that the centralization problem caused by the storage of the asset information of the game user by a server of a game operator is avoided, the asset safety of the game user is improved, meanwhile, the server carries out corresponding processing on the game operation instruction of the game user through a game client in the game process, the smaller game delay of the online game is ensured, and the user experience is improved.
The embodiment of the present application provides a possible implementation manner, and specifically, step S202 includes:
step S2021 (not shown in the figure), when the asset information of the game user carried in the game user account information query result satisfies a preset threshold condition, determining that the login of the game user is successful.
Specifically, the game user account information query result carries asset information of the game user, and when the carried asset information meets a preset threshold value, if the asset value is greater than a preset threshold value 5, it is determined that the game user successfully logs in.
For the embodiment of the application, when the asset information of the game user meets the preset threshold condition, the successful login of the game user is determined, and the problem of judging the legality of the game user who logs in the game is solved.
The embodiment of the present application provides a possible implementation manner, wherein the predetermined condition includes at least one of the following:
ending the game;
at least one participating game user exits the game;
a predetermined settlement time threshold is reached.
Specifically, the predetermined condition may be that the game is ended, for example, one game round is ended, or at least one participant user quits the game, for example, the game user actively quits the game or a game role corresponding to the game user in the game dies, or a predetermined time threshold may be reached, for example, the asset settlement result information is preset to be sent every two minutes.
For the embodiment of the application, the server sends the asset settlement result information when the preset condition is met, and the operation of receiving the asset settlement result information and distributing the assets by the block chain does not need to be carried out in real time, so that the pressure of processing the data of the block chain is relieved.
EXAMPLE III
Yet another embodiment of the present application provides a blockchain-based game processing system, as shown in fig. 3, where the system 30 includes: a plurality of game clients 301, a blockchain server 302, and a server 303;
any game client 301 is used for sending a game user login request to the server 303;
the server 303 is configured to receive a game user login request sent by any game client, and send a query request for game user account information corresponding to the game user login request to the blockchain;
the block chain server 302 is used for inquiring the account of the game user when receiving an inquiry request aiming at the account information of the game user sent by the server, and feeding back the account information inquiry result to the server;
the server 303 is further configured to determine that the game user successfully logs in when the received query result of the game user account information fed back by the blockchain meets a predetermined threshold condition, receive game operation instructions from any game client and other game clients participating in the game together, perform corresponding processing according to the game operation instructions to update asset-related record information of respective account numbers of the game user and other users participating in the game together, perform asset settlement on the respective account numbers of the game user and other users participating in the game together according to the asset-related record information of the respective account numbers when the predetermined condition is met, and send asset settlement result information to the blockchain for asset allocation;
the blockchain server 302 is further configured to receive asset settlement result information sent by the server, and perform asset allocation on corresponding accounts in the blockchain according to the asset settlement result information, where the accounts in the blockchain include an account corresponding to the game user.
The embodiment of the application provides a game processing system based on a block chain, compared with the prior art that a server is used for processing interactive operation of a game client completely in the running process of a network game, in the embodiment of the application, when an inquiry request aiming at account information of a game user is received from the server, the account information is obtained by inquiring the account of the game user, and an account information inquiry result is fed back to the server, the inquiry request of the account information of the game user is generated by the server according to a login request triggered by system login of the game user through the game client, asset settlement result information sent by the server is received, asset allocation is carried out on corresponding accounts in the block chain according to the asset settlement result information, the corresponding accounts in the block chain comprise accounts corresponding to the game user, and the asset settlement result information is obtained by the server through carrying out asset allocation on corresponding account numbers of the game user and other commonly participating game users The record information is determined by performing asset settlement. According to the method and the system, the asset information of the game user is stored by the blockchain, the confirmation and distribution operation of the game asset information of the user is transferred to the blockchain, the centralization problem caused by the fact that the asset information of the game user is stored by a server of a game operator is avoided, the asset safety of the game user is improved, meanwhile, the server carries out corresponding processing on a game operation instruction of the game user through a game client in the game process, and therefore small game delay of online games is guaranteed, and user experience is improved.
The embodiment of the present application provides a game processing system based on a blockchain, which is suitable for the methods shown in the first embodiment and the second embodiment, and details are not repeated here.
The block chain server 302 is further configured to receive a transfer request for transferring to an account of the game user, update the account information of the game user according to asset change information carried in the transfer request, and store the account information of the game user in a corresponding block of the block chain.
For the embodiment of the application, the asset information of the game user is stored in the block chain, and the operation of transferring accounts of the game user is transferred to the block chain, so that the asset safety of the game user is improved.
The embodiment of the application provides a possible implementation manner, and the transfer request is triggered by any game client and/or other game clients.
For the embodiment of the application, the transfer request of the game user can be initiated by the game user and/or other game users through the corresponding game client, so that the problem of determining the assets of the account of the game user is solved.
The embodiment of the present application provides a possible implementation manner, and in particular, the blockchain server 302 is specifically configured to determine asset information of an account of the game user based on a preset intelligent contract in the blockchain, and specifically configured to feed back the determined asset information of the account of the game user to the server.
According to the embodiment of the application, the asset information of the account of the game user is determined through the intelligent contract preset in the block chain, and then the determined asset information of the account of the game user is fed back to the server, so that the problems of determination and feedback of the asset information of the account of the game user are solved, and a basis is provided for the server to perform subsequent operation according to the asset information of the account of the game user.
The embodiment of the present application provides a possible implementation manner, and the server 303 is specifically configured to determine that the login of the game user is successful when the asset information of the game user, which is carried in the game user account information query result, meets a preset threshold condition.
For the embodiment of the application, when the asset information of the game user meets the preset threshold condition, the successful login of the game user is determined, and the problem of judging the legality of the game user who logs in the game is solved.
The embodiment of the present application provides a possible implementation manner, wherein the predetermined condition includes at least one of the following:
ending the game;
at least one participating game user exits the game;
a predetermined settlement time threshold is reached.
For the embodiment of the application, the asset settlement result information for asset allocation received by the blockchain is sent by the server when the preset condition is met, so that the operation of blockchain asset allocation is executed when the corresponding condition is met, and the pressure of blockchain data processing is relieved.
The embodiment of the present application provides a possible implementation manner, and specifically, any one of the game clients 301 is further configured to send an asset information query request to the blockchain;
the blockchain server 302 is further configured to, when receiving an asset information query request from any one of the game clients, query a corresponding account according to the asset information query request to obtain asset information, and feed back the asset information obtained through the query to any one of the game clients.
The method and the device solve the problem of inquiry and determination of the asset information of the game user.
Figure 4 is an example of a timing diagram for a blockchain based game processing system according to an embodiment of the present application,
step S401, the game client initiates a transfer request to the blockchain, specifically, the transfer request may be a process in which the game user charges through the game client;
step S402, the block chain carries out corresponding processing according to the transfer request initiated by the game client, and asset information carried in the transfer request is stored in a corresponding block in the block chain;
step S403, the game user sends a login request to the server through the game client;
step S404, the server sends a game user account information inquiry request to the blockchain based on the received login request;
step S405, the block link receives a game user account information inquiry request sent by the server, inquires account information of a game user through a corresponding method, and feeds the account information back to the server;
step S406, the server determines whether the game user can log in the login verification information according to the account information fed back by the block chain, and feeds back the login verification information to the game client;
step S407, the game user sends a game operation instruction to the server through the game client;
step S408, the server processes the received game operation instruction, determines asset settlement result information of the game user according to the processing result, and sends the asset settlement result information to the block chain;
step S409, the blockchain distributes assets of corresponding game users based on the received asset settlement result information;
step S410, a game user sends an asset query request to a blockchain through a game client;
in step S411, the blockchain queries an account of the corresponding game user based on the received asset query request, and feeds back the queried asset information to the game client.
Example four
In another embodiment of the present application, there is provided a blockchain-based game processing apparatus, which is applied to a blockchain, and as shown in fig. 5, the apparatus 50 may include: a first query module 501 and a distribution module 502;
the first query module 501 is configured to, when receiving a query request for account information of a game user from a server, query an account of the game user to obtain the account information, and feed back an account information query result to the server, where the query request for account information of the game user is generated by the server according to a login request triggered by system login of the game user through a game client;
the allocating module 502 is configured to receive asset settlement result information sent by the server, and perform asset allocation on corresponding accounts in the block chain according to the asset settlement result information, where the corresponding accounts in the block chain include accounts corresponding to the game users, and the asset settlement result information is determined by performing asset settlement on asset related record information corresponding to respective accounts of the game users and other users participating in the game together by the server.
The embodiment of the application provides a game processing device based on a block chain, compared with the prior art that a server is used for processing interactive operation of a game client completely in the running process of a network game, in the embodiment of the application, when an inquiry request aiming at account information of a game user is received from the server, the account information is obtained by inquiring the account of the game user, and an account information inquiry result is fed back to the server, the inquiry request of the account information of the game user is generated by the server according to a login request triggered by system login of the game user through the game client, asset settlement result information sent by the server is received, asset allocation is carried out on corresponding accounts in the block chain according to the asset settlement result information, the corresponding accounts in the block chain comprise accounts corresponding to the game user, and the asset settlement result information is obtained by the server through carrying out asset allocation on corresponding accounts of the game user and other commonly participating game users The record information is determined by performing asset settlement. According to the method and the system, the asset information of the game user is stored by the blockchain, the confirmation and distribution operation of the game asset information of the user is transferred to the blockchain, the centralization problem caused by the fact that the asset information of the game user is stored by a server of a game operator is avoided, the asset safety of the game user is improved, meanwhile, the server carries out corresponding processing on a game operation instruction of the game user through a game client in the game process, and therefore small game delay of online games is guaranteed, and user experience is improved.
The block chain-based game processing apparatus of this embodiment can execute the block chain-based game processing method provided in the first embodiment of this application, and the implementation principles thereof are similar, and are not described herein again.
The embodiment of the present application further provides another game processing apparatus based on a blockchain, which is applied to the blockchain, as shown in fig. 6, the apparatus 60 may include: a first query module 601 and a distribution module 602;
the first query module 601 is configured to query an account of a game user when receiving a query request for account information of the game user from a server, and feed back a result of the query for the account information to the server, where the query request for the account information of the game user is generated by the server according to a login request triggered by system login of the game user through a game client;
wherein the first query module 601 in fig. 6 has the same or similar function as the first query module 501 in fig. 5.
The allocating module 602 is configured to receive asset settlement result information sent by the server, and perform asset allocation on corresponding accounts in the block chain according to the asset settlement result information, where the accounts in the block chain include accounts corresponding to the game users, and the asset settlement result information is determined by performing asset settlement on asset related record information corresponding to respective accounts of the game users and other users participating in the game together by the server.
Wherein the function of the assignment module 602 in fig. 6 is the same as or similar to the function of the assignment module 502 in fig. 5.
A possible implementation manner is provided in the embodiment of the present application, and further, the apparatus 60 further includes: the first updating module 603 is configured to receive a transfer request for transferring to an account of a game user, and update account information of the game user according to asset change information carried in the transfer request, where the account information of the game user is stored in a corresponding block of the block chain.
For the embodiment of the application, the asset information of the game user is stored in the block chain, and the operation of transferring accounts of the game user is transferred to the block chain, so that the asset safety of the game user is improved.
The embodiment of the application provides a possible implementation manner, wherein the transfer request is triggered by a game client corresponding to a game user and/or triggered by game clients corresponding to other game users.
For the embodiment of the application, the transfer request of the game user can be initiated by the game user and/or other game users through the corresponding game client, so that the problem of determining the assets of the account of the game user is solved.
The embodiment of the present application provides a possible implementation manner, and specifically, the first query module 601 is specifically configured to determine asset information of an account of a game user based on a preset intelligent contract in a block chain, and to feed back the determined asset information of the account of the game user to a server.
According to the embodiment of the application, the asset information of the account of the game user is determined through the intelligent contract preset in the block chain, and then the determined asset information of the account of the game user is fed back to the server, so that the problems of determination and feedback of the asset information of the account of the game user are solved, and a basis is provided for the server to perform subsequent operation according to the asset information of the account of the game user.
The embodiment of the present application provides a possible implementation manner, and specifically, the allocation module 602 is specifically configured to receive asset settlement result information sent by a server when a predetermined condition is met;
wherein the predetermined condition comprises at least one of:
ending the game;
at least one participating game user exits the game;
a predetermined settlement time threshold is reached.
For the embodiment of the application, the asset settlement result information for asset allocation received by the blockchain is sent by the server when the preset condition is met, so that the operation of blockchain asset allocation is executed when the corresponding condition is met, and the pressure of blockchain data processing is relieved.
The embodiment of the present application provides a possible implementation manner, and further, the apparatus 60 further includes:
the second query module 604 is configured to, when receiving an asset information query request from the game client, query the corresponding account according to the asset information query request to obtain asset information, and feed back the asset information obtained through the query to the game client.
The method and the device solve the problem of inquiry and determination of the asset information of the game user.
The embodiment of the application provides a game processing device based on a block chain, compared with the prior art that a server is used for processing interactive operation of a game client completely in the running process of a network game, in the embodiment of the application, when an inquiry request aiming at account information of a game user is received from the server, the account information is obtained by inquiring the account of the game user, and an account information inquiry result is fed back to the server, the inquiry request of the account information of the game user is generated by the server according to a login request triggered by system login of the game user through the game client, asset settlement result information sent by the server is received, asset allocation is carried out on corresponding accounts in the block chain according to the asset settlement result information, the corresponding accounts in the block chain comprise accounts corresponding to the game user, and the asset settlement result information is obtained by the server through carrying out asset allocation on corresponding accounts of the game user and other commonly participating game users The record information is determined by performing asset settlement. According to the method and the system, the asset information of the game user is stored by the blockchain, the confirmation and distribution operation of the game asset information of the user is transferred to the blockchain, the centralization problem caused by the fact that the asset information of the game user is stored by a server of a game operator is avoided, the asset safety of the game user is improved, meanwhile, the server carries out corresponding processing on a game operation instruction of the game user through a game client in the game process, and therefore small game delay of online games is guaranteed, and user experience is improved.
The block chain-based game processing device provided in the embodiment of the present application is applicable to the method in the first embodiment, and is not described herein again.
EXAMPLE five
Another embodiment of the present application provides another blockchain-based game processing apparatus, which is applied to a server, as shown in fig. 7, where the apparatus 70 includes:
the receiving and sending module 701 is configured to receive a game user login request sent by a game client, and send a query request for game user account information corresponding to the game user login request to a blockchain, where the game user login request is generated by a game user performing system login through the game client;
a determining module 702, configured to determine that the login of the game user is successful when the received query result of the account information of the game user fed back by the blockchain meets a predetermined threshold condition;
the second updating module 703 is configured to receive game operation instructions from the game client and other game clients participating in the game together, and perform corresponding processing according to each game operation instruction to update asset related record information of respective accounts of the game user and other users participating in the game together;
and the settlement module 704 is used for performing asset settlement on the respective account assets of the game users and other commonly participating game users according to the asset related record information of the respective accounts when a preset condition is met, and sending asset settlement result information to the block chain for asset allocation.
Compared with the prior art that the interactive operation of the game client is completely processed by the server in the running process of the network game, the game processing device based on the blockchain receives the login request of the game user sent by the game client and sends the inquiry request of the account information of the game user corresponding to the login request of the game user to the blockchain, wherein the login request of the game user is generated by the game user through the system login of the game client, and when the inquiry result of the account information of the game user fed back by the received blockchain meets the preset threshold condition, the successful login of the game user is determined, the game operation instructions from the game client and other game clients participating in the game together are received, and the corresponding processing is carried out according to the game operation instructions so as to update the asset related record information of the respective account numbers of the game user and other users participating in the game together, and when the preset conditions are met, performing asset settlement on the respective account assets of the game users and other commonly participating game users according to the asset related record information of the respective accounts, and sending asset settlement result information to the block chain for asset allocation. In the embodiment of the application, the asset information of the game user is stored by the blockchain, and the confirmation and distribution operation of the game asset information of the user is transferred to the blockchain, so that the centralization problem caused by the storage of the asset information of the game user by a server of a game operator is avoided, the asset safety of the game user is improved, meanwhile, the server carries out corresponding processing on the game operation instruction of the game user through a game client in the game process, the smaller game delay of the online game is ensured, and the user experience is improved.
The block chain-based game processing device provided in the embodiment of the present application is suitable for the method in the second embodiment, and is not described herein again.
The embodiment of the present application provides a possible implementation manner, and specifically, the determining module 702 is specifically configured to determine that the login of the game user is successful when the asset information of the game user, which is carried in the game user account information query result, meets a preset threshold condition.
For the embodiment of the application, when the asset information of the game user meets the preset threshold condition, the successful login of the game user is determined, and the problem of judging the legality of the game user who logs in the game is solved.
The embodiment of the present application provides a possible implementation manner, wherein the predetermined condition includes at least one of the following:
ending the game;
at least one participating game user exits the game;
a predetermined settlement time threshold is reached.
For the embodiment of the application, the server sends the asset settlement result information when the preset condition is met, and the operation of receiving the asset settlement result information and distributing the assets by the block chain does not need to be carried out in real time, so that the pressure of processing the data of the block chain is relieved.
EXAMPLE six
An embodiment of the present application provides an electronic device, as shown in fig. 8, an electronic device 80 shown in fig. 8 includes: a processor 8001 and memory 8003. Processor 8001 is coupled to memory 8003, such as via bus 8002. Further, the electronic device 80 may also include a transceiver 8004. In addition, in practical applications, the transceiver 8004 is not limited to one, and the structure of the electronic device 80 is not limited to the embodiment of the present application.
In this embodiment, the processor 8001 is applied to the embodiment of the present application, and is configured to implement the functions of the first query module and the distribution module shown in fig. 5 or fig. 6, and the functions of the first update module and the second query module shown in fig. 6. The transceiver 8004 includes a receiver and a transmitter.
Processor 8001 may be a CPU, general purpose processor, DSP, ASIC, FPGA or other programmable logic device, transistor logic device, hardware component, or any combination thereof. Which may implement or perform the various illustrative logical blocks, modules, and circuits described in connection with the disclosure. Processor 8001 may also be a combination that implements computing functionality, e.g., comprising one or more microprocessor combinations, DSP and microprocessor combinations, and so forth.
Bus 8002 may include a path to transfer information between the aforementioned components. The bus 8002 may be a PCI bus or an EISA bus, etc. The bus 8002 may be divided into an address bus, a data bus, a control bus, and the like. For ease of illustration, only one thick line is shown in FIG. 8, but this is not intended to represent only one bus or type of bus.
Memory 8003 may be, but is not limited to, ROM or other types of static storage devices that can store static information and instructions, RAM or other types of dynamic storage devices that can store information and instructions, EEPROM, CD-ROM or other optical disk storage, optical disk storage (including compact disk, laser disk, optical disk, digital versatile disk, blu-ray disk, etc.), magnetic disk storage media or other magnetic storage devices, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer.
The memory 8003 is used for storing application program codes for executing the scheme of the present application, and the execution is controlled by the processor 8001. The processor 8001 is configured to execute application program codes stored in the memory 8003 to implement the functions of the blockchain-based game processing apparatus provided by the embodiment shown in fig. 5 or fig. 6.
The embodiment of the application provides electronic equipment, compared with the prior art that interactive operation of a game client is completely processed by a server in the running process of a network game, in the embodiment of the application, account information is obtained by inquiring an account of a game user when an inquiry request aiming at the account information of the game user is received from the server, an account information inquiry result is fed back to the server, the inquiry request of the account information of the game user is generated by the server according to a login request triggered by system login of the game user through the game client, asset settlement result information sent by the server is received, asset allocation is carried out on corresponding accounts in a block chain according to the asset settlement result information, the corresponding accounts in the block chain comprise accounts corresponding to the game user, and the asset settlement result information is obtained by funding asset related record information corresponding to respective accounts of the game user and other commonly participating game users by the server And settlement. According to the method and the system, the asset information of the game user is stored by the blockchain, the confirmation and distribution operation of the game asset information of the user is transferred to the blockchain, the centralization problem caused by the fact that the asset information of the game user is stored by a server of a game operator is avoided, the asset safety of the game user is improved, meanwhile, the server carries out corresponding processing on a game operation instruction of the game user through a game client in the game process, and therefore small game delay of online games is guaranteed, and user experience is improved.
The embodiment of the present application provides a method for an electronic device to adapt to the first embodiment, which is not described herein again.
EXAMPLE seven
Another embodiment of the present application provides another electronic device, as shown in fig. 9, an electronic device 90 shown in fig. 9 includes: a processor 9001 and a memory 9003. Among other things, the processor 9001 and memory 9003 are coupled, such as via a bus 9002. Further, the electronic device 90 may also include a transceiver 9004. Note that the transceiver 9004 is not limited to one in practical use, and the structure of the electronic device 90 is not limited to the embodiment of the present application.
The processor 9001 is applied to the embodiment of the present application, and is configured to implement the functions of the receiving and sending module, the determining module, the second updating module, and the settlement module shown in fig. 7. The transceiver 9004 includes a receiver and a transmitter.
The processor 9001 may be a CPU, general purpose processor, DSP, ASIC, FPGA or other programmable logic device, transistor logic device, hardware component, or any combination thereof. Which may implement or perform the various illustrative logical blocks, modules, and circuits described in connection with the disclosure. The processor 9001 may also be a combination of computing functions, e.g., comprising one or more microprocessors, a combination of DSPs and microprocessors, or the like.
The bus 9002 may include a pathway to transfer information between the aforementioned components. The bus 9002 may be a PCI bus or an EISA bus, etc. The bus 9002 may be divided into an address bus, a data bus, a control bus, and the like. For ease of illustration, only one thick line is shown in FIG. 9, but this does not indicate only one bus or one type of bus.
The memory 9003 may be a ROM or other type of static storage device that may store static information and instructions, a RAM or other type of dynamic storage device that may store information and instructions, an EEPROM, a CD-ROM or other optical disk storage, optical disk storage (including compact disk, laser disk, optical disk, digital versatile disk, blu-ray disk, etc.), magnetic disk storage media or other magnetic storage devices, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer, but is not limited to.
The memory 9003 is used to store application code for performing aspects of the present application and is controlled by the processor 9001 for execution. The processor 9001 is operative to execute application program code stored in the memory 9003 to implement the functions of the blockchain based game processing apparatus provided by the embodiment shown in fig. 7.
Compared with the prior art that the interactive operation of the game client is completely processed by the server in the running process of the network game, the electronic equipment receives the login request of the game user sent by the game client and sends the query request of the account information of the game user corresponding to the login request of the game user to the blockchain, wherein the login request of the game user is generated by the game user through system login of the game client, and when the query result of the account information of the game user fed back by the received blockchain meets the preset threshold condition, the electronic equipment determines that the login of the game user is successful, receives the game operation instructions from the game client and other game clients participating in the game together, and performs corresponding processing according to the game operation instructions to update the asset related record information of the respective account numbers of the game user and other game users participating in the game together, and when the preset conditions are met, performing asset settlement on the respective account assets of the game users and other commonly participating game users according to the asset related record information of the respective accounts, and sending asset settlement result information to the block chain for asset allocation. In the embodiment of the application, the asset information of the game user is stored by the blockchain, and the confirmation and distribution operation of the game asset information of the user is transferred to the blockchain, so that the centralization problem caused by the storage of the asset information of the game user by a server of a game operator is avoided, the asset safety of the game user is improved, meanwhile, the server carries out corresponding processing on the game operation instruction of the game user through a game client in the game process, the smaller game delay of the online game is ensured, and the user experience is improved.
The embodiment of the present application provides a method for an electronic device to adapt to the second embodiment, which is not described herein again.
Example eight
The present application provides a computer-readable storage medium, on which a computer program is stored, and when the program is executed by a processor, the method shown in the above embodiments is implemented.
Compared with the prior art in which the interactive operation of the game client is completely processed by the server in the running process of the network game, the method provided by the embodiment of the application queries the account of the game user to obtain the account information and feeds back the account information query result to the server when the query request of the account information of the game user from the server is received, the query request of the account information of the game user is generated by the server according to the login request triggered by the system login of the game user through the game client, the asset settlement result information sent by the server is received, and the asset allocation is performed on the corresponding account in the block chain according to the asset settlement result information, the corresponding account in the block chain comprises the account corresponding to the game user, and the asset settlement result information is obtained by the server according to the asset related records corresponding to the account numbers of the game user and other commonly participating game users The information is determined by asset settlement. According to the method and the system, the asset information of the game user is stored by the blockchain, the confirmation and distribution operation of the game asset information of the user is transferred to the blockchain, the centralization problem caused by the fact that the asset information of the game user is stored by a server of a game operator is avoided, the asset safety of the game user is improved, meanwhile, the server carries out corresponding processing on a game operation instruction of the game user through a game client in the game process, and therefore small game delay of online games is guaranteed, and user experience is improved.
The embodiment of the present application provides a computer-readable storage medium suitable for the method in the first embodiment, which is not described herein again.
Example nine
Yet another embodiment of the present application provides another computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the method shown in the above-described embodiment.
Compared with the prior art in which the interactive operation of the game client is completely processed by the server in the running process of the network game, the embodiment of the application receives the login request of the game user sent by the game client and sends the query request of the account information of the game user corresponding to the login request of the game user to the blockchain, the login request of the game user is generated by the game user through the system login of the game client, when the query result of the account information of the game user fed back by the received blockchain meets the preset threshold condition, the successful login of the game user is determined, the game operation instructions from the game client and other game clients participating in the game together are received, and corresponding processing is carried out according to the game operation instructions to update the asset related record information of the respective accounts of the game user and other game users participating in the game together, and when the preset conditions are met, performing asset settlement on the respective account assets of the game users and other commonly participating game users according to the asset related record information of the respective accounts, and sending asset settlement result information to the block chain for asset allocation. In the embodiment of the application, the asset information of the game user is stored by the blockchain, and the confirmation and distribution operation of the game asset information of the user is transferred to the blockchain, so that the centralization problem caused by the storage of the asset information of the game user by a server of a game operator is avoided, the asset safety of the game user is improved, meanwhile, the server carries out corresponding processing on the game operation instruction of the game user through a game client in the game process, the smaller game delay of the online game is ensured, and the user experience is improved.
The embodiment of the present application provides a computer-readable storage medium suitable for the method of the second embodiment, which is not described herein again.
It should be understood that, although the steps in the flowcharts of the figures are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and may be performed in other orders unless explicitly stated herein. Moreover, at least a portion of the steps in the flow chart of the figure may include multiple sub-steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, which are not necessarily performed in sequence, but may be performed alternately or alternately with other steps or at least a portion of the sub-steps or stages of other steps.
The foregoing is only a partial embodiment of the present application, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present application, and these modifications and decorations should also be regarded as the protection scope of the present application.

Claims (16)

1. A game processing method based on a block chain is characterized by being applied to the block chain and comprising the following steps:
when receiving an inquiry request aiming at the account information of a game user from a server, inquiring the account of the game user to obtain the account information, and feeding back an inquiry result of the account information to the server, wherein the inquiry request of the account information of the game user is generated by the server according to a login request triggered by system login of the game user through a game client;
and receiving asset settlement result information sent by the server, and performing asset allocation on corresponding accounts in the block chain according to the asset settlement result information, wherein the corresponding accounts in the block chain comprise accounts corresponding to game users, and the asset settlement result information is determined by performing asset settlement on asset related record information corresponding to respective accounts of the game users and other commonly participating game users by the server.
2. The method of claim 1, further comprising:
receiving a transfer request for transferring to the account of the game user, and updating the account information of the game user according to asset change information carried by the transfer request, wherein the account information of the game user is stored in a corresponding block of the block chain.
3. The method of claim 2, wherein the transfer request is triggered by a game client corresponding to the game user and/or by a game client corresponding to another game user.
4. The method of claim 1, wherein the querying accounts of the game users and feeding back account information query results to the server comprises:
determining asset information of an account of the game user based on a preset intelligent contract in the blockchain;
and feeding back the determined asset information of the game user account to a server.
5. The method according to claim 1, wherein the receiving asset settlement result information sent by the server comprises:
receiving asset settlement result information sent by the server when a preset condition is met;
wherein the predetermined condition comprises at least one of:
ending the game;
at least one participating game user exits the game;
a predetermined settlement time threshold is reached.
6. The method of claim 1, further comprising:
and when an asset information query request from a game client is received, querying a corresponding account according to the asset information query request to acquire asset information, and feeding back the asset information acquired by query to the game client.
7. A game method based on a block chain is applied to a server and comprises the following steps:
receiving a game user login request sent by a game client, and sending a query request aiming at game user account information corresponding to the game user login request to a blockchain, wherein the game user login request is generated by a game user through system login of the game client;
when the received inquiry result of the game user account information fed back by the blockchain meets a preset threshold condition, determining that the game user is successfully logged in;
receiving game operation instructions from the game client and other game clients participating in the game together, and performing corresponding processing according to the game operation instructions to update the asset related record information of the respective accounts of the game user and other users participating in the game together;
and when the preset conditions are met, performing asset settlement on the respective account assets of the game user and other commonly participating game users according to the asset related record information of each account, and sending asset settlement result information to the block chain for asset allocation.
8. The method of claim 1, wherein determining that the game user login is successful when the received game user account information query result fed back by the blockchain meets a predetermined threshold condition comprises:
and when the asset information of the game user carried by the game user account information inquiry result meets a preset threshold condition, determining that the login of the game user is successful.
9. The method of claim 1, wherein the predetermined condition comprises at least one of:
ending the game;
at least one participating game user exits the game;
a predetermined settlement time threshold is reached.
10. A blockchain-based game processing system, the system comprising: a plurality of game clients, a blockchain, and a server;
any game client is used for sending a game user login request to the server;
the server is used for receiving a game user login request sent by any one of the game clients and sending a query request aiming at game user account information corresponding to the game user login request to the block chain;
the block chain is used for inquiring the account of the game user when receiving an inquiry request aiming at the account information of the game user, which is sent by the server, and feeding back an account information inquiry result to the server;
the server is further used for determining that the game user successfully logs in when the received query result of the game user account information fed back by the blockchain meets a preset threshold condition, receiving game operation instructions from any one game client and other game clients participating in the game together, performing corresponding processing according to the game operation instructions to update asset related record information of the respective accounts of the game user and other commonly participating game users, performing asset settlement on the respective accounts of the game user and other commonly participating game users according to the asset related record information of the respective accounts when the preset condition is met, and sending asset settlement result information to the blockchain for asset allocation;
the block chain is further used for receiving asset settlement result information sent by the server and performing asset allocation on corresponding accounts in the block chain according to the asset settlement result information, wherein the accounts in the block chain comprise accounts corresponding to game users.
11. A game processing device based on a block chain is characterized by comprising the following components:
the system comprises a first query module, a second query module and a server, wherein the first query module is used for querying an account of a game user to obtain account information when receiving a query request aiming at the account information of the game user from the server and feeding back the query result of the account information to the server, and the query request of the account information of the game user is generated by the server according to a login request triggered by system login of the game user through a game client;
and the distribution module is used for receiving the asset settlement result information sent by the server and performing asset distribution on corresponding accounts in the block chain according to the asset settlement result information, wherein the corresponding accounts in the block chain comprise accounts corresponding to game users, and the asset settlement result information is determined by performing asset settlement on asset related record information corresponding to respective accounts of the game users and other commonly participating game users by the server.
12. A game processing device based on a block chain is applied to a server and comprises:
the system comprises a receiving and sending module, a system management module and a block chain processing module, wherein the receiving and sending module is used for receiving a game user login request sent by a game client and sending a query request aiming at game user account information corresponding to the game user login request to the block chain, and the game user login request is generated by a game user through system login of the game client;
the determining module is used for determining that the game user successfully logs in when the received game user account information inquiry result fed back by the blockchain meets a preset threshold condition;
the second updating module is used for receiving game operation instructions from the game client and other game clients participating in the game together and performing corresponding processing according to the game operation instructions so as to update the asset related record information of the respective accounts of the game user and other users participating in the game together;
and the settlement module is used for performing asset settlement on the respective account assets of the game users and other users participating in the game together according to the asset related record information of each account when a preset condition is met, and sending asset settlement result information to the block chain for asset allocation.
13. An electronic device, comprising:
one or more processors;
a memory;
one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, the one or more programs configured to: executing the blockchain-based game processing method according to any one of claims 1 to 6.
14. An electronic device, comprising:
one or more processors;
a memory;
one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, the one or more programs configured to: executing the blockchain-based game processing method according to any one of claims 7 to 9.
15. A computer-readable storage medium for storing computer instructions which, when executed on a computer, cause the computer to perform the blockchain-based game processing method of any one of claims 1 to 6.
16. A computer-readable storage medium for storing computer instructions which, when executed on a computer, cause the computer to perform the blockchain-based game processing method of any one of the preceding claims 7 to 9.
CN201910134015.XA 2019-02-22 2019-02-22 Game processing method, device, electronic equipment and system based on block chain Active CN111614598B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910134015.XA CN111614598B (en) 2019-02-22 2019-02-22 Game processing method, device, electronic equipment and system based on block chain

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910134015.XA CN111614598B (en) 2019-02-22 2019-02-22 Game processing method, device, electronic equipment and system based on block chain

Publications (2)

Publication Number Publication Date
CN111614598A true CN111614598A (en) 2020-09-01
CN111614598B CN111614598B (en) 2022-09-09

Family

ID=72204509

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910134015.XA Active CN111614598B (en) 2019-02-22 2019-02-22 Game processing method, device, electronic equipment and system based on block chain

Country Status (1)

Country Link
CN (1) CN111614598B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108694500A (en) * 2018-04-26 2018-10-23 布比(北京)网络技术有限公司 A kind of digital asset circulation method and system based on block chain
CN109011584A (en) * 2018-06-22 2018-12-18 深圳市摩掌信息技术有限公司 A kind of method of commerce, device and the terminal device of the fictitious assets based on game
CN109173266A (en) * 2018-11-12 2019-01-11 网易(杭州)网络有限公司 Processing method, device, processor and the server of fictitious assets across game
US20190015740A1 (en) * 2017-07-11 2019-01-17 Jerry David Foley Mobile gaming and peer to peer gifting, receiving and donating platform using block chain integration of centralized or decentralized public ledgers for gaming elements to form, encrypt and distribute digital or crypto currency against server generated gaming
CN109271445A (en) * 2018-08-21 2019-01-25 平安科技(深圳)有限公司 Utilize the method, apparatus and electronic equipment of block chain storing data

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190015740A1 (en) * 2017-07-11 2019-01-17 Jerry David Foley Mobile gaming and peer to peer gifting, receiving and donating platform using block chain integration of centralized or decentralized public ledgers for gaming elements to form, encrypt and distribute digital or crypto currency against server generated gaming
CN108694500A (en) * 2018-04-26 2018-10-23 布比(北京)网络技术有限公司 A kind of digital asset circulation method and system based on block chain
CN109011584A (en) * 2018-06-22 2018-12-18 深圳市摩掌信息技术有限公司 A kind of method of commerce, device and the terminal device of the fictitious assets based on game
CN109271445A (en) * 2018-08-21 2019-01-25 平安科技(深圳)有限公司 Utilize the method, apparatus and electronic equipment of block chain storing data
CN109173266A (en) * 2018-11-12 2019-01-11 网易(杭州)网络有限公司 Processing method, device, processor and the server of fictitious assets across game

Also Published As

Publication number Publication date
CN111614598B (en) 2022-09-09

Similar Documents

Publication Publication Date Title
CN110428257B (en) Password cracking task processing method, equipment and storage medium
CN109246211B (en) Resource uploading and resource requesting method in block chain
CN108712488B (en) Data processing method and device based on block chain and block chain system
US20190268466A1 (en) Number portability information management system
CN108737534B (en) Block chain-based data transmission method and device and block chain system
CN105450730A (en) Method and apparatus for processing request from client
CN108710681B (en) File acquisition method, device, equipment and storage medium
CN105743947B (en) Resource sharing method and device
CN106878250B (en) Cross-application single-state login method and device
CN108768672B (en) Data processing method, device and storage medium
US20190372825A1 (en) Communication apparatus, communication method, and recording medium
CN107277188A (en) A kind of method, client, server and operation system for determining IP address attaching information
CN112565370B (en) Method and system for verifying calculation result based on wireless communication and block chain scene
CN111614598B (en) Game processing method, device, electronic equipment and system based on block chain
CN116055052A (en) Block chain-based data processing method, device, equipment and readable storage medium
CN116703601B (en) Data processing method, device, equipment and storage medium based on block chain network
US20230325833A1 (en) Blockchain-based data processing method and apparatus, device, storage medium, and program product
CN116633603A (en) Cross-platform service access method, device, equipment and storage medium
CN114554251B (en) Multimedia data requesting method and device, storage medium and electronic device
CN107979580B (en) A kind of access control method, device and server
CN114090604A (en) Request processing method and device
CN112506896B (en) Data deleting method and device and electronic equipment
CN110288356B (en) Payment service processing method, device, electronic equipment, storage medium and system
CN111738861A (en) Method and device for carrying out rights and interests accumulation through block chain
CN110585717A (en) Information processing method and device

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
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20201023

Address after: 571924 201, 2 / F, building A18, Hainan Ecological Software Park, hi tech industry demonstration zone, old town, Chengmai County, Hainan Province

Applicant after: Hainan qukuai Feiyang Technology Co.,Ltd.

Address before: 1217, 12 / F, building 2, No. 19, North Third Ring Road East, Chaoyang District, Beijing 100029

Applicant before: Beijing qukuai Yuanyang Technology Co.,Ltd.

GR01 Patent grant
GR01 Patent grant