CN110598481A - Data storage method, device, equipment and storage medium - Google Patents

Data storage method, device, equipment and storage medium Download PDF

Info

Publication number
CN110598481A
CN110598481A CN201910934209.8A CN201910934209A CN110598481A CN 110598481 A CN110598481 A CN 110598481A CN 201910934209 A CN201910934209 A CN 201910934209A CN 110598481 A CN110598481 A CN 110598481A
Authority
CN
China
Prior art keywords
game
list
data
blockchain network
determining
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.)
Pending
Application number
CN201910934209.8A
Other languages
Chinese (zh)
Inventor
贺星
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201910934209.8A priority Critical patent/CN110598481A/en
Publication of CN110598481A publication Critical patent/CN110598481A/en
Pending legal-status Critical Current

Links

Classifications

    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/70Game security or game management aspects
    • A63F13/71Game security or game management aspects using secure communication between game devices and game servers, e.g. by encrypting game data or authenticating players
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/70Game security or game management aspects
    • A63F13/77Game security or game management aspects involving data related to game devices or game servers, e.g. configuration data, software version or amount of memory
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/64Protecting data integrity, e.g. using checksums, certificates or signatures

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Multimedia (AREA)
  • Business, Economics & Management (AREA)
  • General Business, Economics & Management (AREA)
  • Theoretical Computer Science (AREA)
  • Bioethics (AREA)
  • General Health & Medical Sciences (AREA)
  • Computer Hardware Design (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Health & Medical Sciences (AREA)
  • Storage Device Security (AREA)

Abstract

The invention provides a data storage method, a device, equipment and a storage medium; the method comprises the following steps: acquiring game data generated by a game client; determining target parameters contained in the game data; wherein the target parameter can adjust the score of the user in the game; and updating the game list currently stored in the block chain network according to the target parameters. According to the invention, the game list is stored in the block chain network, and when the game list needs to be updated, the game list in the block chain network is updated, so that the safety, the authenticity and the non-falsification of the game list are ensured.

Description

Data storage method, device, equipment and storage medium
Technical Field
The present invention relates to a block chain technology, and in particular, to a data storage method, apparatus, device, and storage medium.
Background
Most of game list data are stored by a server of a developer, and because of the limit of research and development strength of the developer, the game list data of some games are lost and the game list is tampered due to the fact that a player digs a bug; in this way, the server designed by the game developer stores the game list, and the security, authenticity and tampering of the game list cannot be guaranteed. When the game list data is tampered, the word of mouth of the game is spoiled, and the life cycle of the game is directly influenced.
Disclosure of Invention
Embodiments of the present invention provide a data storage method, apparatus, device, and storage medium, which can improve security, authenticity, and tamper-proof of a game list.
The technical scheme of the embodiment of the invention is realized as follows:
in a first aspect, an embodiment of the present invention provides a data storage method, including:
acquiring game data generated by a game client;
determining target parameters contained in the game data; wherein the target parameter can adjust the score of the user in the game;
and updating the game list currently stored in the block chain network according to the target parameters.
In a second aspect, an embodiment of the present invention provides a data storage device, including:
the first acquisition module is used for acquiring game data generated by a game client;
a first determining module, configured to determine a target parameter included in the game data; wherein the target parameter can adjust the score of the user in the game;
and the first updating module is used for updating the game list currently stored in the block chain network according to the target parameters.
In a third aspect, an embodiment of the present invention provides a data storage device, including:
a memory for storing executable instructions;
and the processor is used for realizing the method provided by the embodiment of the invention when executing the executable instructions stored in the memory.
In a fourth aspect, an embodiment of the present invention provides a storage medium storing executable instructions for causing a processor to implement a method provided by an embodiment of the present invention when executed.
The embodiment of the invention has the following beneficial effects: after the game server obtains a target parameter capable of adjusting the score of the user in the game, updating a game list currently stored in the blockchain network based on the target parameter; therefore, the game list is stored in the block chain network, and when the game list needs to be updated, the game list in the block chain network is updated, so that the safety, the authenticity and the falsification of the game list are ensured.
Drawings
FIG. 1 is a schematic block diagram of a data storage system according to an embodiment of the present invention;
fig. 2A is a functional architecture diagram of a blockchain network 200 according to an embodiment of the present invention;
FIG. 2B is a schematic structural diagram of a system for data storage according to an embodiment of the present invention;
FIG. 3 is a schematic flow chart of an alternative data storage method according to an embodiment of the present invention;
FIG. 4A is a flow chart illustrating another implementation of a data storage method according to an embodiment of the present invention;
FIG. 4B is a flow chart illustrating another implementation of the data storage method according to the embodiment of the present invention;
FIG. 4C is a flow chart illustrating a further implementation of the data storage method according to an embodiment of the present invention;
FIG. 5 is a flow chart illustrating another implementation of a data storage method according to an embodiment of the present invention;
FIG. 6 is a schematic structural diagram of storing a game list according to an embodiment of the present invention;
FIG. 7 is a block diagram of a framework for implementing a data storage method according to an embodiment of the present invention;
FIG. 8 is a schematic diagram of an application scenario of the data storage method according to the embodiment of the present invention;
FIG. 9 is an interaction diagram of an implementation flow of a data storage method according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the present invention will be further described in detail with reference to the accompanying drawings, the described embodiments should not be construed as limiting the present invention, and all other embodiments obtained by a person of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.
In the following description, reference is made to "some embodiments" which describe a subset of all possible embodiments, but it is understood that "some embodiments" may be the same subset or different subsets of all possible embodiments, and may be combined with each other without conflict.
Where similar language of "first/second" appears in the application document, and the description below is added, where the terms "first \ second \ third" are used merely to distinguish between similar objects and do not denote a particular order or importance to the objects, it is to be understood that "first \ second \ third" may be interchanged with a particular sequence or order as permitted, such that embodiments of the invention described herein may be practiced in other than the sequence illustrated or described herein.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. The terminology used herein is for the purpose of describing embodiments of the invention only and is not intended to be limiting of the invention.
Before further detailed description of the embodiments of the present invention, terms and expressions mentioned in the embodiments of the present invention are explained, and the terms and expressions mentioned in the embodiments of the present invention are applied to the following explanations.
1) Transactions (transactions), equivalent to the computer term "Transaction," include operations that need to be committed to a blockchain network for execution and do not refer solely to transactions in the context of commerce, which embodiments of the present invention follow in view of the convention colloquially used in blockchain technology.
For example, a deployment (deployment) transaction is used to install a specified smart contract to a node in a blockchain network and is ready to be invoked; the Invoke (Invoke) transaction is used to append records of the transaction in the blockchain by invoking the smart contract and to perform operations on the state database of the blockchain, including update operations (including adding, deleting, and modifying key-value pairs in the state database) and query operations (i.e., querying key-value pairs in the state database).
2) A Block chain (Block chain) is an encrypted, chained transaction storage structure formed of blocks (blocks).
For example, the header of each block may include hash values of all transactions in the block, and also include hash values of all transactions in the previous block, so as to achieve tamper resistance and forgery resistance of the transactions in the block based on the hash values; newly generated transactions, after being filled into the tiles and passing through the consensus of nodes in the blockchain network, are appended to the end of the blockchain to form a chain growth.
3) A Block chain Network (Block chain Network) incorporates new blocks into a set of nodes of a Block chain in a consensus manner.
4) Ledger (legger) is a general term for blockchains (also called Ledger data) and state databases synchronized with blockchains.
Wherein, the blockchain records the transaction in the form of a file in a file system; the state database records the transactions in the blockchain in the form of different types of Key (Key) Value pairs for supporting fast query of the transactions in the blockchain.
5) Intelligent Contracts (Smart Contracts), also known as chain codes (chaincodes) or application codes, are programs deployed in nodes of a blockchain network, and the nodes execute the intelligent Contracts called in received transactions to perform operations of updating or querying key-value data of the account database.
6) Consensus (Consensus), a process in a blockchain network, is used to agree on transactions in a block among a plurality of nodes involved, the agreed block is to be appended to the end of the blockchain, and the mechanisms for achieving Consensus include Proof of workload (PoW, Proof of Work), Proof of rights and interests (PoS, Proof of equity (DPoS), Proof of granted of shares (DPoS), Proof of Elapsed Time (PoET, Proof of Elapsed Time), and so on.
7) The game list is generally set in the game and used for showing the ranking of the ability of a certain aspect of a game player in a game server, and the game player can intentionally pursue high ranking in the game list in order to show the own game ability, so that the ranking of the game list can be improved by keeping time or purchasing game props.
Referring to fig. 1, fig. 1 is a schematic diagram of an architecture of a data storage system provided in an embodiment of the present invention, which includes a blockchain network 200 (exemplarily shown to include a node 210-1 to a node 210-3), a blockchain management platform 300, a game system 400 (exemplarily shown to include a game server 600-2, a game client 600-1 and a graphical interface 610-1 thereof belonging to the game system 400), and the following description is separately provided.
The type of blockchain network 200 is flexible and may be, for example, any of a public chain, a private chain, or a federation chain. Taking a public chain as an example, electronic devices of any business entity, such as a user client and a server, can access the blockchain network 200 without authorization; taking a federation chain as an example, an electronic device (e.g., a client/server) hosted by a service entity after being authorized may access the blockchain network 200, and at this time, become a special type of node in the blockchain network 200, i.e., a client node.
Note that the client node may provide only functionality that supports the initiation of transactions by the business entity (e.g., for uplink storage of data or for querying of data on the chain), and may be implemented by default or selectively (e.g., depending on the specific business requirements of the business entity) for the functionality of the conventional (native) node 210 of the blockchain network 200, such as the ranking functionality, consensus services, ledger functionality, etc., described below. Therefore, the data and the service processing logic of the service subject can be migrated into the block chain network 200 to the maximum extent, and the credibility and traceability of the data and service processing process are realized through the block chain network 200.
Blockchain network 200 receives transactions submitted by client nodes (e.g., game client 600-1 and game client 600-2 shown in fig. 1 as belonging to game system 400) from different business entities (e.g., game system 400 shown in fig. 1), performs the transactions to update or query the ledger, and displays various intermediate or final results of performing the transactions at the client's user interface (e.g., graphical interface 610-1 of game client 600-1). It is to be understood that, in the above, the blockchain network 200 receiving the transaction and executing the transaction specifically refers to the native node 210 in the blockchain network 200, and of course, when the client node of the service subject has the function (e.g., the consensus function, the ledger function) of the native node 210 in the blockchain network 200, the corresponding client node may also be included.
An exemplary application of the blockchain network is described below, taking as an example the case that a game list of a game is stored in the blockchain network to improve the security of the list data.
Referring to fig. 1, a plurality of business entities involved in a game system, such as a game client 600-1 and a game server 600-2, can access a blockchain network 200 by both the game client 600-1 and the game server 600-2 after obtaining authorization of a blockchain management platform 300.
A game player of the game system 400 logs in the game system 400 in the graphical interface 610-1 of the client 600-1, generates game data, and transmits the game data to the game server 600-2, the game server 600-2 generates an update request for updating the game list when determining that the game data includes a target parameter, transmits the target parameter carried with the update request to the blockchain management platform 300, generates a transaction corresponding to the updated game list by the blockchain management platform 300 according to the update request and the target parameter, specifies an intelligent contract to be called for realizing the updating of the game list and a parameter transferred to the intelligent contract in the transaction, and the transaction also carries a digital signature signed by the game system 400 (for example, a summary of the transaction is encrypted by using a private key in a digital certificate of the game system 400), and broadcasts the transaction to the blockchain network 200.
When the node 210 in the blockchain network 200 receives the transaction, the digital signature carried by the transaction is verified, after the digital signature is successfully verified, whether the game system 400 has the transaction right is determined according to the identity of the game system 400 carried in the transaction, and the transaction failure is caused by any verification judgment of the digital signature and the right verification. After successful verification, node 210 signs its own digital signature (e.g., by encrypting the digest of the transaction using the private key of node 210-1) and continues to broadcast in blockchain network 200.
After the node 210 with the sorting function in the blockchain network 200 receives the transaction successfully verified, the transaction is filled into a new block and broadcasted to the node providing the consensus service in the blockchain network 200.
The node 210 providing the consensus service in the blockchain 200 performs the consensus process on the new block to reach agreement, the node 210 providing the ledger function appends the new block to the tail of the blockchain, and performs the transaction in the new block: and for the transaction of submitting and updating the currently stored game list, updating the score of each user in the currently stored game list in the account database, and returning an updating result, namely the updated game list.
It is to be appreciated that the ability of a business entity (e.g., a game player) to query the blockchain network 200 for the type of updated game list can be achieved by restricting the authority of transactions that the business entity can initiate, for example, when the game system 400 has the authority to initiate a transaction to query the updated game list, a game player of the game system 400 can input a list acquisition request in the graphical interface 610-1 of the client 600-1 and generate a transaction broadcast by the blockchain management platform 300 to the blockchain network 200 for querying the updated game list to acquire the updated game list from the blockchain network 200.
An exemplary functional architecture of a blockchain network provided by an embodiment of the present invention is described below, referring to fig. 2A, fig. 2A is a functional architecture schematic diagram of a blockchain network 200 provided by an embodiment of the present invention, which includes an application layer 201, a consensus layer 202, a network layer 203, a data layer 204, and a resource layer 205, which are described below respectively.
The resource layer 205 encapsulates computing, storage, and communication resources that implement each node 210 in the blockchain network 200, such as computing, storage, and communication resources in computers, servers/clusters, and clouds, abstracts and provides a uniform interface to the data layer 204 to shield the underlying hardware implementing the resource layer 205 from differences.
The computing resources include various forms of processors such as a Central Processing Unit (CPU), an Application Specific Integrated Circuit (ASIC), and a Field-Programmable Gate Array (FPGA).
The storage resources include various types of storage media such as various volatile memories and nonvolatile memories. The nonvolatile Memory may be a Read Only Memory (ROM) or a Programmable Read-Only Memory (PROM). Volatile Memory can be Random Access Memory (RAM), which acts as external cache Memory.
The communication resources include various links for communication between nodes 210 of the blockchain network, between the blockchain network 200 and the traffic master.
The data layer 204 encapsulates various data structures that implement the ledger, including blockchains implemented in files in a file system, state databases of the key-value type, and presence certificates (e.g., hash trees of transactions in blocks).
The network layer 203 encapsulates the functions of a Point-to-Point (P2P) network protocol, a data propagation mechanism and a data verification mechanism, an access authentication mechanism and service agent identity management.
Wherein the P2P network protocol implements communication between nodes 210 in the blockchain network 200, the data propagation mechanism ensures propagation of transactions in the blockchain network 200, and the data verification mechanism implements reliability of data transmission between nodes 210 based on cryptography methods (e.g., digital certificates, digital signatures, public/private key pairs); the access authentication mechanism is used for authenticating the identity of the service subject added into the block chain network 200 according to an actual service scene, and endowing the service subject with the authority of accessing the block chain network 200 when the authentication is passed; the business entity identity management is used to store the identity of the business entity that is allowed to access blockchain network 200, as well as the permissions (e.g., the types of transactions that can be initiated).
The consensus layer 202 encapsulates the functions of the mechanism for the nodes 210 in the blockchain network 200 to agree on a block (i.e., a consensus mechanism), transaction management, and ledger management.
The consensus mechanism comprises consensus algorithms such as POS, POW and DPOS, and the pluggable consensus algorithm is supported.
The transaction management is configured to verify a digital signature carried in the transaction received by the node 210, verify identity information of the service entity, and determine whether the node has an authority to perform the transaction (read related information from the identity management of the service entity) according to the identity information; for the service agents authorized to access the blockchain network 200, the service agents all have digital certificates issued by the certificate authority, and the service agents sign the submitted transactions by using private keys in the digital certificates of the service agents, so that the legal identities of the service agents are declared.
Account book management: for maintaining block chains and ledger databases. For the block with the consensus, adding the block to the tail of the block chain; and executing the transaction in the block which obtains the consensus, updating the key-value pairs in the state database when the transaction comprises an updating operation, inquiring the key-value pairs in the account book database when the transaction comprises an inquiring operation, and returning an inquiring result to the business body. The method supports query operations of multiple dimensions of the account book database, and comprises the following steps: querying the chunk based on the chunk sequence number (e.g., hash value of the transaction); inquiring the block according to the block hash value; inquiring a block according to the transaction serial number; inquiring the transaction according to the transaction serial number; inquiring account data of a business main body according to an account (serial number) of the business main body; and inquiring the block chain in the channel according to the channel name.
The application layer 201 encapsulates various services that the blockchain network can implement, including tracing, crediting, and verifying transactions.
Referring to fig. 2B, fig. 2B is a schematic structural diagram of a data storage system according to an embodiment of the present invention, and the game system 400 shown in fig. 2 includes: at least one processor 410, memory 450, at least one network interface 420, and a user interface 430. The various components in the gaming system 400 are coupled together by a bus system 440. It is understood that the bus system 440 is used to enable communications among the components. The bus system 440 includes a power bus, a control bus, and a status signal bus in addition to a data bus. For clarity of illustration, however, the various buses are labeled as bus system 440 in fig. 2.
The processor 410 may be an integrated circuit chip having signal processing capabilities such as a general purpose processor, a digital signal processor, or other programmable logic device, discrete gate or transistor logic, discrete hardware components, etc., wherein the general purpose processor may be a microprocessor or any conventional processor, etc.
The user interface 430 includes one or more output devices 431, including one or more speakers and/or one or more visual displays, that enable the presentation of media content. The user interface 430 also includes one or more input devices 432, including user interface components that facilitate user input, in some examples, a keyboard, a mouse, a microphone, a touch screen display, a camera, other input buttons and controls.
The memory 450 may be removable, non-removable, or a combination thereof. Exemplary hardware terminals include solid state memory, hard disk drives, optical disk drives, and the like. Memory 450 optionally includes one or more storage terminals physically located remote from processor 410.
The memory 450 includes either volatile memory or nonvolatile memory, and may include both volatile and nonvolatile memory. The nonvolatile Memory may be a Read Only Memory (ROM), and the volatile Memory may be a Random Access Memory (RAM). The memory 450 described in embodiments of the invention is intended to comprise any suitable type of memory.
In some embodiments, memory 450 is capable of storing data, examples of which include programs, modules, and data structures, or a subset or superset thereof, to support various operations, as exemplified below.
An operating system 451, including system programs for handling various basic system services and performing hardware-related tasks, such as a framework layer, a core library layer, a driver layer, etc., for implementing various basic services and handling hardware-based tasks;
a network communication module 452 for communicating to other computing terminals via one or more (wired or wireless) network interfaces 420, exemplary network interfaces 420 including: bluetooth, wireless compatibility authentication, and Universal Serial Bus (USB), etc.;
a presentation module 453 for enabling presentation of information (e.g., user interfaces for operating peripherals and displaying content and information) via one or more output devices 431 (e.g., display screens, speakers, etc.) associated with user interface 430;
an input processing module 454 for detecting one or more user inputs or interactions from one of the one or more input devices 432 and translating the detected inputs or interactions.
In some embodiments, the apparatus provided by the embodiments of the present invention may be implemented in software, and fig. 2 shows a view update server 455 stored in the memory 450, which may be software in the form of programs and plug-ins, and the like, and includes the following software modules: a first obtaining module 4551, a first determining module 4552 and a first updating module 4553; these modules are logical and thus may be combined or further split according to the functionality implemented. The functions of the respective modules will be explained below.
In other embodiments, the apparatus provided in the embodiments of the present invention may be implemented in hardware, and for example, the apparatus provided in the embodiments of the present invention may be a processor in the form of a hardware decoding processor, which is programmed to execute the view updating method provided in the embodiments of the present invention, for example, the processor in the form of the hardware decoding processor may be one or more Application Specific Integrated Circuits (ASICs), DSPs, Programmable Logic Devices (PLDs), Complex Programmable Logic Devices (CPLDs), Field-Programmable Gate arrays (FPGAs), or other electronic components. .
An exemplary application of the data storage device provided by the embodiment of the present invention is described below, and the data storage device provided by the embodiment of the present invention may be implemented as various types of clients such as a notebook computer, a tablet computer, a desktop computer, a set-top box, a mobile device (e.g., a mobile phone, a portable music player, a personal digital assistant, a dedicated messaging device, and a portable game device), and may also be implemented as a server. In the following, an exemplary application will be explained when the device is implemented as a server.
The data storage method provided by the embodiment of the present invention will be described in conjunction with exemplary applications and implementations of the data storage device provided by the embodiment of the present invention.
Referring to fig. 3, fig. 3 is an alternative flow chart of the data storage method provided by the embodiment of the invention, which is applied to a game server and will be described with reference to the steps shown in fig. 3.
Step S301, obtaining game data generated by the game client.
In some embodiments, the step S301 is implemented by the game server, that is, the game server obtains the game data generated by the game client. The game data is any data of the player in the game process, such as account information, level information of the game role, equipment information, equipment transaction data information, behavior data generated by the game user in the game process, confrontation data or interaction data of the game player in the game process, and the like. The game client is a client of any game and comprises: a game client for a game of the confrontational type, or a game of the non-confrontational type.
Step S302, determining target parameters included in the game data.
In some embodiments, the target parameter is capable of adjusting the score a user gets in a game. If the game is a confrontational game, the target parameter may be a confrontational parameter that adjusts a combat force value of a game character corresponding to the user. And if the game type is a non-antagonistic game, the target parameter is a passing parameter for adjusting the current level of the user in the game.
Step S303, updating the game list currently stored in the block chain network according to the target parameters.
In some embodiments, the update to the game list currently stored in the blockchain network may be implemented by the game server, and the game list may also be updated by the blockchain network.
In the embodiment of the invention: after the game server obtains a target parameter capable of adjusting the score of the user in the game, updating a game list currently stored in the blockchain network based on the target parameter; therefore, the game list is stored in the block chain network, and when the game list needs to be updated, the game list in the block chain network is updated, so that the safety, the authenticity and the falsification of the game list are ensured.
In some embodiments, in order to accurately determine whether the game data includes the target parameter, the step S302 may be implemented by the following steps, referring to fig. 4A, where fig. 4A is a schematic flow chart of another implementation of the data storage method according to an embodiment of the present invention, and the following description is made with reference to fig. 3:
step S401, determining the game type of the game data.
In one specific example, the game types include confrontational games, such as killer games and the like; or non-competing games, such as board games or passing games, and the like.
Step S402, if the game data contains target data matched with the game type, determining that the game data contains the target parameters.
In some embodiments, if the game type is a resistant game, the determining that the target parameter is included in the game data comprises: determining the target parameter as a fighting force value of a game role in the antagonistic game, and extracting the fighting force value from the game data; for example, the blood volume, magic power or strength value, etc. representing the game role corresponding to the user. If the game type is a nonreactive game, the determining that the target parameter is included in the game data includes: and determining the target parameter as a clearance value for adjusting the current level of the user in the nonreactive game, and extracting the clearance value from the game data. For example, the override values include: data of the ability improvement of the player (for example, jumping behavior in the game or completing a level set in the game in the related game), or interaction data between two users, and the like.
In some embodiments, the update to the game list may be accomplished in two ways:
the first method is as follows: the game server may be adopted to directly update the game list stored in the blockchain, and the step S303 may be implemented by the following steps, referring to fig. 4B, where fig. 4B is a schematic flow chart of another implementation of the data storage method according to an embodiment of the present invention, and the following description is made with reference to fig. 3:
step S421, request the currently stored game list from the blockchain network.
In some embodiments, because the game list is stored in the blockchain network, when the game list needs to be updated, the game server requests the currently stored game list from the blockchain network to acquire the currently stored game list.
In step S422, list data of each game account in the currently stored game list is determined.
In some embodiments, the listing data includes a ranking for each player and a score each player receives in a game. For example, the listing data for the confrontational class game includes a ranking for each player and a fighting force value for each player's corresponding character in the game; the list data of the chess and card games comprises: a rank of each player and a current score of each player.
Step S423, determining an updated game list based on the target parameters and the list data of each game account.
In some embodiments, based on the target parameters and the list data for each game account, re-adjusting the ranking of each player in the currently stored game list or adjusting only the score of each player in the currently stored game list; thus, the resulting updated ranking of players in the game list may be the same or different than the ranking of players in the currently stored game list.
Step S424, sending the updated game list to the block chain network, so as to update the currently stored game list.
In some embodiments, the updated game list is stored in the blockchain network after it is formed to ensure the security of the game list. For the countermeasure game, for example, the target parameter is a parameter capable of improving a fighting force value representing a game character of the player, based on which, the fighting force value of the game character corresponding to the game account of the player in the currently stored game list is updated, and the ranking of each game account in the currently stored game list is adjusted.
In a second way, in order to further improve the security of the game list and prevent the game list from being tampered with, the game list is updated by using the blockchain network, and the step S303 may be implemented by the following steps, referring to fig. 4C, where fig. 4C is a schematic flow diagram of another implementation of the data storage method according to the embodiment of the present invention, and the following description is performed with reference to fig. 3:
step S431, generating an update request carrying the target parameter.
In some embodiments, the game server determines whether the game data includes the target parameter, and if the game data includes the target parameter, generates an update request requesting to update the game list.
If the game data does not contain the target parameters, the game data is stored in a server of the game, or the game data is stored in a node of the blockchain network, wherein the point of the user in the game is not stored.
Step S432, sending the update request to a blockchain network, so that the blockchain network updates the currently stored game list according to the target parameter.
In some embodiments, the game server sends an update request carrying the target parameter to the blockchain network; after receiving the updating request, the block chain network updates the currently stored game list according to the target parameter; therefore, the game list is updated by adopting the block chain network, so that malicious tampering of the game list can be avoided, the safety of the game list is improved, and better game experience is brought to players.
In some embodiments, in order to realize that when the player wants to view the game list at the game client, the game list is obtained from the blockchain, so that the game lists obtained by any client are the same, after step S432, the method further includes the following steps, referring to fig. 5, where fig. 5 is a schematic flow chart of another implementation of the data storage method according to the embodiment of the present invention, and the following description is made in conjunction with fig. 4C:
step S501, a list acquisition request sent by a game client is received.
In some embodiments, the server receives the list acquisition request sent by the game client and sends the list acquisition request to the blockchain network.
Step S502, in response to the list obtaining request, obtaining an updated game list from the block chain network.
In some embodiments, after receiving the list acquisition request, the blockchain network feeds back the currently stored latest game list to the game server, and thus feeds back the updated game list to the game server.
Step S503, feeding back the updated game list to the game clients, so that the game lists acquired by any one of the game clients are the same.
In some embodiments, the game server feeds back the received updated game list to the game clients, so that any game client acquires the game list from the blockchain network when needing to acquire the game list, and the game lists acquired by any game client are the same, that is, the game lists pulled by the clients from the blockchain are consistent.
In other embodiments, after the game list is updated, the updated game list is stored in the node storing the current game list in the block chain network, and the updated game list is shared with other nodes in the block chain, so that the game lists searched by the client from any one node are the same. In this way, when a modification request for modifying the game list sent by the game client is received, each node in the block chain is adopted to verify the modification request in response to the modification request; if the modification request passes the verification of at least M nodes, modifying the game list currently stored in the block chain according to the modification request; wherein M is an integer greater than or equal to a number threshold; for example, verification is performed based on the identification information of the list data in the game list, and if the list data carries specific identification information, the verification is determined to be passed, and if the list data does not carry specific identification information, the verification is not passed. Therefore, any modification of the list data in the blockchain network can be inquired and verified in each blockchain node, so that the security of the game list data is ensured and the game list data is not tampered.
In the following, an exemplary application of the embodiments of the present invention in a practical application scenario will be described.
In some embodiments, most of the game list data is stored by the server of the developer, see fig. 6, fig. 6 is a schematic structural diagram of storing the game list according to the embodiment of the present invention, and the game client 61 writes the list data in the game data generated by the game client 61 into the game list server 601 (i.e., the server autonomously developed by the game developer) through the game server 62; the game client 61 can also read the game list data from the game list server 601; the game clients 63 and 64 write the list data in the game data generated by the game clients 63 and 64 into the game list server 601 (i.e., a server autonomously developed by a game developer) through the game server 65; the game clients 63 and 64 may also read game list data from the game list server 601. However, the research and development strength of the developers determines the security degree of the game list data, occasionally, the game list data of some games are lost in the game list server 601 which is independently researched and developed by the game developers, and the game list is tampered due to the fact that the player finds a bug, so that the game list server 601 stores the game list data, and the security, the authenticity and the non-tampering of the game list cannot be well guaranteed. When the game list data is tampered, the word of mouth of the game is spoiled, and the life cycle of the game is directly influenced. Moreover, once a game is exploded, a large number of players are certainly introduced, players of game studios and game guild are also introduced, the value of the game list is continuously amplified for the players, once a bug is found by a game cheater, the data of the game list can be falsified, and the non-falsification of the game list is broken. In addition, with the increase of game players, the deployment of game servers is expanded. When a single game list server cannot bear list requirements of all players, increasing the game list servers can reduce the consistency of list data on each server.
In order to solve the above problem, an embodiment of the present invention provides a data storage method, in which a capability value of a certain aspect of a game player is written into a block chain, and authenticity and non-tamper property of a game list are ensured by the block chain.
According to the embodiment of the invention, when the list data are written in the game, the list data are written into the block chain, and then when each game server needs to pull the list data for display, the list data are pulled from the block chain network in a unified manner. As shown in fig. 7, the list data generated by the game clients corresponding to the game players 71 to 77 and capable of improving the game ability value is written into the block chain, so as to finally provide the game players with the fighting ability value of each game player as shown in fig. 7, i.e., the game list 701 showing the fighting ability values of the respective game players. In the game list 701, the fighting force value of the game player 71 is 19000; the fighting force value of game player 72 is 18000; the fighting power value of game player 73 is 17000; the fighting power value of game player 74 is 16000; the fighting force value of game player 75 is 15000; the fighting power value of game player 76 is 14000 and that of game player 77 is 13000; therefore, the writing safety of the game list data is ensured, and meanwhile, the game list data is pulled from the block chain, so that the game lists seen by all players are consistent, and meanwhile, the decentralization characteristic of the block chain can be ensured, and the non-tamper property of the game lists can be ensured. Meanwhile, a game list design scheme based on a block chain is adopted, so that great assistance is provided for game public praise, and the life cycle of the game is prolonged.
Fig. 8 is a schematic view of an application scenario of the data storage method according to the embodiment of the present invention, and the following description is made with reference to fig. 8:
first, after the game client 81 logs in the game server 82, if the game client 81 needs to update the list data, it issues a request to write the list data to the blockchain network 83. After the game clients 84 and 85 log in to the game server 86, if the game clients 84 and 85 need to update the list data, a request for writing the list data is initiated to the blockchain network 83.
Then, any modification of the list data in the blockchain network 83 can be inquired and verified in each blockchain node, so that the security of the game list data is ensured and the game list data is not tampered.
Finally, when the game client 81, 84 or 85 needs to show the game list data, a pulling request is sent to the blockchain network 83, and each game client pulls the list data from the blockchain network 83; therefore, the consistency of the list data pulled by each game client from the block chain network is ensured.
Fig. 9 is a schematic flow chart of an implementation of the data storage method according to the embodiment of the present invention, and the following description is made with reference to fig. 9:
in step S901, the game client a reports game data generated by any operation on the game interface to the game server a.
In some embodiments, the game data generated by the game client a is reported to the game server a. The game data is any game data generated by a game player in the process of playing the game at the game client.
In step S902, the game server a determines whether the game data includes the target parameter, so as to verify the validity of the game data.
In some embodiments, the step S902 may be understood as that the game server a performs validity check on the game data reported by the game client a, and updates the value of the game player a corresponding to the game data if the game data passes the check of the game server a. Taking the game of the confrontational class as an example, the game server a determines whether the game data can improve the battle effectiveness of the player. If the game server A determines that the game data can improve the fighting capacity of the player, sending an updating request for updating the game list to the blockchain network; and sharing game data generated by the game client a to improve the player's fighting power to another game server B of the game, so that the game server B sends a notification message to the game client B to notify the client B that the game has generated a new transaction. If game server A determines that the game data cannot improve the player's fighting ability, the game data is autonomously saved.
In step S903, in response to the update request, the blockchain network updates the game list according to the target parameter carried in the update request, and returns the information that the update is completed to the game server a.
In some embodiments, after the blockchain network processes the game list update data, each blockchain network node synchronously updates the game list to the latest game list. In this way, the game lists stored by each tile link point remain consistent so that the game lists seen by each game player are the same.
In step S904, the game client B sends a list acquisition request to the game server B.
In step S905, in response to the list acquisition request, the game server B sends the list acquisition request to the blockchain network.
In step S906, in response to the list acquisition request, the blockchain network returns the updated game list to the game server B.
In step S907, the game server B returns the updated game list to the game client B.
In some embodiments, the game clients of other players may each pull the latest game list from the blockchain network on the respective servers. Therefore, all game lists can be checked and cannot be tampered, meanwhile, due to the characteristics of decentralization and the like of the block chain, the game public praise is greatly benefited, and positive feedback is provided for game development.
Continuing with the exemplary structure of the data storage device 455 provided by the embodiments of the present invention as implemented as software modules, in some embodiments, as shown in fig. 2, the software modules stored in the data storage device 455 of the memory 2140 may include:
a first obtaining module 4551, configured to obtain game data generated by a game client;
a first determining module 4552, configured to determine a target parameter included in the game data; wherein the target parameter can adjust the score of the user in the game;
the first updating module 4553 is configured to update the game list currently stored in the blockchain network according to the target parameter.
In some embodiments, the first determining module 4552 is further configured to:
determining a game type to which the game data belongs;
and if the game data contains target data matched with the game type, determining that the game data contains the target parameters.
In some embodiments, if the game type is an antagonistic game, the first determining module 4552 is further configured to: determining the target parameter as a fighting force value representing a game role of a user, and extracting the fighting force value from the game data;
if the game type is a nonreactive game, the first determining module 4552 is further configured to: and determining the target parameter as a clearance value for adjusting the current level of the user in the game, and extracting the clearance value from the game data.
In some embodiments, the first updating module 4553 is further configured to:
requesting a currently stored game list from the blockchain network;
determining list data of each game account in the currently stored game list;
determining an updated game list based on the target parameters and the list data of each game account;
and sending the updated game list to the block chain network so as to update the currently stored game list.
In some embodiments, the first updating module 4553 is further configured to:
generating an updating request carrying the target parameter;
and sending the updating request to a blockchain network so that the blockchain network updates the currently stored game list according to the target parameters.
In some embodiments, the first updating module 4553 is further configured to:
receiving a list acquisition request sent by a game client;
responding to the list acquisition request, and acquiring an updated game list from the block chain network;
and feeding back the updated game list to the game client so as to enable the game lists acquired by any game client to be the same.
In some embodiments, the first updating module 4553 is further configured to:
and storing the updated game list in a node storing the current game list in the block chain network, and sharing the updated game list to other nodes in the block chain.
In some embodiments, the first updating module 4553 is further configured to:
receiving a modification request for modifying the game list sent by the game client;
in response to the modification request, validating the modification request with each node in the blockchain;
if the modification request passes the verification of at least M nodes, modifying the game list currently stored in the block chain according to the modification request; wherein M is an integer greater than or equal to the number threshold.
Embodiments of the present invention provide a storage medium having stored thereon executable instructions that, when executed by a processor, cause the processor to perform a method provided by embodiments of the present invention, for example, the method shown in fig. 3.
In some embodiments, the storage medium may be memory such as FRAM, ROM, PROM, EPROM, EEPROM, flash memory, magnetic surface memory, optical disk, or CD-ROM; or may be various devices including one or any combination of the above memories.
In some embodiments, executable instructions may be written in any form of programming language (including compiled or interpreted languages), in the form of programs, software modules, scripts or code, and may be deployed in any form, including as a stand-alone program or as a module, component, subroutine, or other unit suitable for use in a computing environment.
By way of example, executable instructions may correspond, but do not necessarily have to correspond, to files in a file system, and may be stored in a portion of a file that holds other programs or data, such as in one or more scripts in a hypertext markup Language (HTML) document, in a single file dedicated to the program in question, or in multiple coordinated files (e.g., files that store one or more modules, sub-programs, or portions of code).
By way of example, executable instructions may be deployed to be executed on one computing device or on multiple computing devices at one site or distributed across multiple sites and interconnected by a communication network.
In summary, in the process of updating the game list stored in the blockchain network according to the embodiment of the present invention, first, the game data generated by the game client is acquired; then, determining target parameters contained in the game data; wherein the target parameter can adjust the score of the user in the game; and finally, updating the game list currently stored in the block chain network according to the target parameters. Therefore, the game list is stored in the block chain network, and when the game list needs to be updated, the game list in the block chain network is updated, so that the safety, the authenticity and the falsification of the game list are ensured.
The above description is only an example of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, and improvement made within the spirit and scope of the present invention are included in the protection scope of the present invention.

Claims (10)

1. A method of storing data, comprising:
acquiring game data generated by a game client;
determining target parameters contained in the game data; wherein the target parameter can adjust the score of the user in the game;
and updating the game list currently stored in the block chain network according to the target parameters.
2. The method of claim 1, wherein said determining target parameters contained in said game data comprises:
determining a game type to which the game data belongs;
and if the game data contains target data matched with the game type, determining that the game data contains the target parameters.
3. The method of claim 2, wherein if the game type is a resistant game, the determining that the target parameter is included in the game data comprises: determining the target parameter as a fighting force value of a game role in the antagonistic game, and extracting the fighting force value from the game data;
if the game type is a nonreactive game, the determining that the target parameter is included in the game data includes: and determining the target parameter as a clearance value for adjusting the current level of the user in the nonreactive game, and extracting the clearance value from the game data.
4. The method of claim 1, wherein updating the game list currently stored in the blockchain network according to the target parameter comprises:
requesting a currently stored game list from the blockchain network;
determining list data of each game account in the currently stored game list;
determining an updated game list based on the target parameters and the list data of each game account;
and sending the updated game list to the block chain network so as to update the currently stored game list.
5. The method of claim 1, wherein updating the game list currently stored in the blockchain network according to the target parameter comprises:
generating an updating request carrying the target parameter;
and sending the updating request to the blockchain network so that the blockchain network updates the currently stored game list according to the target parameters.
6. The method of claim 5, wherein after sending the update request to a blockchain network to cause the blockchain network to update the currently stored game list according to the target parameters carried in the update request, the method further comprises:
receiving a list acquisition request sent by a game client;
responding to the list acquisition request, and acquiring an updated game list from the block chain network;
and feeding back the updated game list to the game client so as to enable the game lists acquired by any game client to be the same.
7. The method of claim 1, wherein after the updating the game list currently stored in the blockchain network according to the target parameter, the method further comprises:
and storing the updated game list in a node storing the current game list in the block chain network, and sharing the updated game list to other nodes in the block chain.
8. A data storage device, comprising:
the first acquisition module is used for acquiring game data generated by a game client;
a first determining module, configured to determine a target parameter included in the game data; wherein the target parameter can adjust the score of the user in the game;
and the first updating module is used for updating the game list currently stored in the block chain network according to the target parameters.
9. An apparatus for data storage, comprising:
a memory for storing executable instructions;
a processor for implementing the method of any one of claims 1 to 7 when executing executable instructions stored in the memory.
10. A storage medium having stored thereon executable instructions for causing a processor to perform the method of any one of claims 1 to 7 when executed.
CN201910934209.8A 2019-09-29 2019-09-29 Data storage method, device, equipment and storage medium Pending CN110598481A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910934209.8A CN110598481A (en) 2019-09-29 2019-09-29 Data storage method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910934209.8A CN110598481A (en) 2019-09-29 2019-09-29 Data storage method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN110598481A true CN110598481A (en) 2019-12-20

Family

ID=68864730

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910934209.8A Pending CN110598481A (en) 2019-09-29 2019-09-29 Data storage method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110598481A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111111212A (en) * 2019-12-26 2020-05-08 上海米哈游网络科技股份有限公司 Storage method, device, equipment and storage medium for game data of player
CN114550390A (en) * 2022-02-16 2022-05-27 湖南省金河计算机科技有限公司 POS all-in-one wisdom system based on block chain

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6405478B1 (en) * 2018-01-16 2018-10-17 メタップス・プラス・インコーポレイテッドMetaps Plus Inc. Distributed ledger device and distributed ledger method for adjustment of blockchain-based game difficulty
CN109224453A (en) * 2018-06-28 2019-01-18 平安科技(深圳)有限公司 Game monitoring and managing method, system and computer equipment, computer readable storage medium
US20190028264A1 (en) * 2017-07-20 2019-01-24 International Business Machines Corporation Game data offloading to a blockchain
CN109481936A (en) * 2018-10-26 2019-03-19 咪咕文化科技有限公司 A kind of block chain accounting nodes selection method, device and computer readable storage medium
CN110201400A (en) * 2019-05-21 2019-09-06 深圳创维-Rgb电子有限公司 Game item method of commerce, transaction terminal and storage medium based on block chain

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190028264A1 (en) * 2017-07-20 2019-01-24 International Business Machines Corporation Game data offloading to a blockchain
JP6405478B1 (en) * 2018-01-16 2018-10-17 メタップス・プラス・インコーポレイテッドMetaps Plus Inc. Distributed ledger device and distributed ledger method for adjustment of blockchain-based game difficulty
CN109224453A (en) * 2018-06-28 2019-01-18 平安科技(深圳)有限公司 Game monitoring and managing method, system and computer equipment, computer readable storage medium
CN109481936A (en) * 2018-10-26 2019-03-19 咪咕文化科技有限公司 A kind of block chain accounting nodes selection method, device and computer readable storage medium
CN110201400A (en) * 2019-05-21 2019-09-06 深圳创维-Rgb电子有限公司 Game item method of commerce, transaction terminal and storage medium based on block chain

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111111212A (en) * 2019-12-26 2020-05-08 上海米哈游网络科技股份有限公司 Storage method, device, equipment and storage medium for game data of player
CN111111212B (en) * 2019-12-26 2024-02-02 上海米哈游网络科技股份有限公司 Storage method, device and equipment for player game data and storage medium
CN114550390A (en) * 2022-02-16 2022-05-27 湖南省金河计算机科技有限公司 POS all-in-one wisdom system based on block chain

Similar Documents

Publication Publication Date Title
CN110532323B (en) Student identity information processing method and device in block chain network, electronic equipment and storage medium
JP7030981B2 (en) Asset management methods and equipment, and electronic devices
JP7382108B2 (en) Efficient verification for blockchain
US10678597B2 (en) Event-driven blockchain workflow processing
JP7350845B2 (en) Blockchain notification board that stores blockchain resources
Jeon et al. Dr. Android and Mr. Hide: fine-grained permissions in android applications
JP6061364B2 (en) Cloud-assisted methods and services for application security verification
CN111144881A (en) Selective access to asset transfer data
TWI706284B (en) Software interface for smart contracts
US20230090296A1 (en) Transaction verification of a transaction based on a blockchain network
CN112506747B (en) Business process monitoring method and device, electronic equipment and storage medium
US8528061B1 (en) Secure systems, software, and methods for verifying user-agent string by interrogation
CN102316152B (en) Distributed Services empowerment management
CN110569643A (en) traffic management method and device based on block chain network
CN110674128A (en) On-chain remediation of block chains
CN111562970A (en) Container instance creating method and device, electronic equipment and storage medium
CN110544042A (en) Book management method and device based on block chain network
CN110598481A (en) Data storage method, device, equipment and storage medium
CN112925589A (en) Calling method and device of expansion interface
US20170279777A1 (en) File signature system and method
CN111182529A (en) Police application processing method and device, electronic equipment and storage medium
CN117501656A (en) Decentralised identity with user biometric
KR102164779B1 (en) Blockchains with modifiable recorded transactions
CN111178896A (en) Bus taking payment method, device and storage medium
CN114391146A (en) Storing programs on blockchains

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