WO2018145554A1 - Data processing method, related device and system, and computer readable storage medium - Google Patents

Data processing method, related device and system, and computer readable storage medium Download PDF

Info

Publication number
WO2018145554A1
WO2018145554A1 PCT/CN2018/072260 CN2018072260W WO2018145554A1 WO 2018145554 A1 WO2018145554 A1 WO 2018145554A1 CN 2018072260 W CN2018072260 W CN 2018072260W WO 2018145554 A1 WO2018145554 A1 WO 2018145554A1
Authority
WO
WIPO (PCT)
Prior art keywords
virtual object
data block
application
record
data
Prior art date
Application number
PCT/CN2018/072260
Other languages
French (fr)
Chinese (zh)
Inventor
郑博
刘日佳
陈谦
刘志斌
陈玲
Original Assignee
腾讯科技(深圳)有限公司
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 腾讯科技(深圳)有限公司 filed Critical 腾讯科技(深圳)有限公司
Publication of WO2018145554A1 publication Critical patent/WO2018145554A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/04Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks
    • H04L63/0428Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/40Support for services or applications
    • 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]

Definitions

  • the present invention relates to the field of data processing technologies, and in particular, to a data processing method, a related device, a system, and a computer readable storage medium.
  • the processing of generating and processing virtual objects is mainly managed by the operation server of the network application; for example, the operation server can be used by the user when the user completes an application event (such as completing a game task, killing a game monster, etc.)
  • the virtual object data rewarded by the application event is updated in the user data to realize the generation and distribution of the rewarded virtual object when the application event is completed; and when the virtual object transaction is performed between the users, the operation server may modify the transaction by both parties.
  • the virtual object data in the user data realizes the transaction of the virtual object.
  • the problem of the virtual object processing method is:
  • the operation server needs to record the user data related to all users and virtual objects in full.
  • the storage and operation pressure of the operation server is extremely high, which improves the resource overhead of the server.
  • the operation server is attacked.
  • the virtual objects such as virtual currency and virtual items owned by the user are part of the user's assets, and the security will be threatened. Therefore, the reliability of the virtual object processing method is low.
  • the embodiments of the present invention provide a data processing method, a related device, a system, and a computer readable storage medium, which can solve the problem of ensuring the security of user data related to a virtual object while reducing the resource overhead of the server.
  • the embodiment of the present invention provides the following technical solutions:
  • the first aspect of the embodiments of the present invention provides a data processing method, which is applied to a first application client, where the first application client is an application client for generating a virtual object, and the method includes:
  • the completion evidence includes: completing a record of completion of the application event by the first user and virtual object data associated with the application event;
  • the data block to which the signature information of the first user is added is broadcasted to a blockchain network, and the blockchain network accesses a plurality of application clients.
  • a second aspect of the embodiments of the present invention provides a data processing method, which is applied to a first application client, where the first application client is an application client for generating a virtual object, and the method includes:
  • the data block carries a transaction record of the first transaction, and indication information indicating virtual object data corresponding to the first transaction;
  • a third aspect of the embodiments of the present invention provides an application client, including:
  • the completion evidence obtaining module is configured to obtain evidence of completion of the application event, where the completion evidence includes: completing a record of completion of the application event by the first user and virtual object data associated with the application event;
  • a data block generating module configured to generate a data block corresponding to the virtual object data according to the completion evidence
  • a signature adding module configured to add the completion record, the indication information, and the signature information in the data block, where the indication information is used to identify the virtual object data
  • a first broadcast module configured to broadcast the data block to which the signature information of the first user is added to a blockchain network, where the blockchain network accesses multiple application clients.
  • a fourth aspect of the embodiments of the present invention provides an application client, including:
  • a transaction request obtaining module configured to acquire a transaction request of the first transaction
  • a generating module configured to generate, according to the transaction request, a data block corresponding to the first transaction; the data block carries a transaction record of the first transaction, and indication information indicating virtual object data corresponding to the first transaction;
  • a second broadcast module configured to broadcast the data block to a blockchain network.
  • a fifth aspect of the embodiments of the present invention provides a data processing system, including: an application server, an operation server, a database, and the application client described above.
  • a sixth aspect of the embodiments of the present invention provides an application client, including:
  • One or more processors, memory, bus system, and one or more programs the processor and the memory being coupled by the bus system; wherein the one or more programs are stored in the memory
  • the one or more programs include instructions that, when executed by the terminal device, cause the terminal device to perform the data processing method as described in the first aspect or the second aspect above.
  • a seventh aspect of the embodiments of the present invention provides a computer readable storage medium storing program instructions, and when the processor executes the stored program instructions, the data processing method shown in the first aspect or the second aspect shown above is executed.
  • the first application client when the first user completes the application event, the first application client may obtain the completion evidence of the first user completing the application event, and the completion evidence may indicate A user completes an application event and can obtain virtual object data that is rewarded by the application event, that is, the completion evidence includes: the first user completes the completion record of the application event, and the virtual associated with the application event Object data; thus, the first application client may generate a data block corresponding to the rewarded virtual object data according to the completion evidence, and carry the completion record in the data block, and indicate the virtual object
  • the indication information of the data the first application client may add the signature information corresponding to the first user to the data block, and then broadcast the data block to which the signature information is added to the blockchain network, so as to The application client in the blockchain network verifies the validity of the data block, and implements the virtual object by the blockchain technology.
  • the data processing method provided by the embodiment of the present invention can implement the generation of the virtual object according to the blockchain technology, and the generation of the virtual object is determined by the behavior of the user completing the application event, and the first user obtained by the user completing the application event completes the
  • the operation server no longer manages the generation of the virtual object, and the virtual object is in the application client, and the application server directly implements the mining of the data block corresponding to the virtual object data associated with the application event.
  • the generation and performance of data blocks greatly reduces the resource overhead of the server.
  • the data blocks can be distributed and stored in the application client of the blockchain network, effectively avoiding the intrusion or failure of the operation server.
  • the resulting loss of user assets greatly improves the reliability of virtual object processing.
  • FIG. 1 is a schematic structural diagram of a data processing system according to an embodiment of the present invention.
  • FIG. 2 is a flowchart of a data processing method according to an embodiment of the present invention.
  • FIG. 3 is a flowchart of a method for obtaining completion evidence according to an embodiment of the present invention
  • FIG. 4 is a signaling flowchart of a data processing method according to an embodiment of the present invention.
  • FIG. 5 is a schematic structural diagram of another data processing system according to an embodiment of the present disclosure.
  • FIG. 6 is another flowchart of a data processing method according to an embodiment of the present invention.
  • Figure 7 is a schematic diagram of generation of a main data block
  • FIG. 8 is still another flowchart of a data processing method according to an embodiment of the present invention.
  • FIG. 9 is a schematic diagram of generating a side data block
  • FIG. 10 is still another flowchart of a data processing method according to an embodiment of the present invention.
  • FIG. 11 is a structural block diagram of an application client according to an embodiment of the present invention.
  • FIG. 12 is another structural block diagram of an application client according to an embodiment of the present invention.
  • FIG. 13 is a structural block diagram of an application client according to an embodiment of the present invention.
  • FIG. 14 is still another structural block diagram of an application client according to an embodiment of the present invention.
  • FIG. 15 is a schematic structural diagram of a user equipment according to an embodiment of the present invention.
  • the data processing method provided by the embodiment of the present invention mainly implements processing of generating and processing virtual objects based on a blockchain (Blockchain or Block Chain) technology; it should be noted that the blockchain is a distributed database and a blockchain. Is a string of data blocks generated by cryptography, the blockchain is not stored in a specific location of the network, but is distributed by each client accessing the blockchain network, usually, each The client only stores the data blocks associated with itself, and the chain verifiable information between each data block;
  • the meaning of the blockchain is described above.
  • the blockchain technology is applied to implement virtual object generation and transaction processing, the existing blockchain technology is not directly copied, but is based on the network application.
  • the characteristics and system architecture are improved by corresponding means.
  • the specific application type of the network application is not limited in this embodiment.
  • the network application may be a game-related application, and an information-related application. Wait.
  • the embodiment of the present invention implements the processing of the virtual object in a network application such as a game by applying the blockchain technology, instead of directly copying the blockchain technology in a network application such as a game.
  • FIG. 1 is a schematic structural diagram of a data processing system according to an embodiment of the present invention.
  • the data processing system may include: multiple application clients 10, an operation server 20, an application server 30, and a database 40. ;
  • the application client 10 can be set on a user device such as a smart phone, a tablet computer, or a laptop computer to provide a local service for a web application such as a game.
  • An application client generally corresponds to one user (ie, an application client is generally operated by one user). ); application client such as game client;
  • the operation server 20 is no longer responsible for the generation, transaction, and the like of the virtual object in the embodiment of the present invention, but retains the modification of the application content, the release of the application event, and the like, thereby enabling the network virtual world ecology of the network application such as the game to be flexible. And persistent operation; operating servers such as game operation servers;
  • the application server 30 may be implemented by a separate server, or may be implemented by a server group composed of a plurality of servers, and may provide network services for network applications such as games; an application server such as a game server;
  • the database 40 is a network database for storing user data.
  • the database 40 can store state data of each user without storing the virtual object data of the user.
  • the virtual object data of the user refers to the number of virtual objects of various types that a user has, such as the number of virtual currencies possessed, the number of virtual items of each type, and the like.
  • the network application is used as a game network application.
  • the database is a game database.
  • the game database can store state data of each game player (such as game player level, attributes, etc.), and the game currency, game props, etc. owned by the game player.
  • the virtual object data is no longer stored in the game database; the database can be read and written by the operation server and the application server;
  • each application client is used as access nodes of the blockchain network, and multiple application clients can support the blockchain network, and the virtual object data of the user is in the form of data blocks.
  • Distributed storage in a blockchain network each application client generally only stores the corresponding data block of the virtual object data of its own user.
  • the data processing method provided by the embodiment of the present invention is introduced from the perspective of the first application client, and the first application client may be as shown in FIG. 1 .
  • Any application client in the data processing system that needs to generate a virtual object, and the first application client can be operated by the first user;
  • FIG. 2 is a flowchart of a data processing method according to an embodiment of the present invention. The method is applicable to a first application client. Referring to FIG. 2, the method may include:
  • step S100 the first application client obtains the completion evidence of the first user completing the application event when the first user completes the application event; the completion evidence includes: the first user completes the completion record of the application event, And virtual object data associated with the application event.
  • the application event such as an application task
  • an event of a rewarded virtual object is associated with an event of a rewarded virtual object, and the completion progress of the application event is affected by the application behavior of the user;
  • the specific type of the application event and the virtual object data of the associated reward may be set according to actual conditions such as operation. ;
  • the application event may be a game task, the game task is associated with the rewarded game currency, and when the game task is completed, the associated game currency may be awarded to the user who completed the game task; the user may pass the game client Control the behavior of the game to gradually complete the game task; correspondingly, the application event can be completed, for example, the game client completes the game task and kills the game monster under the influence of the user's game behavior.
  • the first application client may obtain the completion evidence of the first user completing the application event, so as to perform the data block based on the completion evidence of the application event by the first user.
  • the completing, by the first user, the completion record of the application event may include: the first user completing the behavior record and/or the result record of the application event; that is, the embodiment of the present invention may be corresponding to the process of completing the application event by the first user.
  • the behavior record, or the form of the result record of the first user completing the application event represents the completion record; the completion record of the first user completing the application event may be determined by the first application client, or may be determined by the application server. Send to the first application client.
  • the virtual object data associated with the application event may represent a virtual object of the application event association reward, such as indicating the type and quantity of the virtual object required to be awarded to the first user when the first user completes the application event, that is, the virtual object data may describe The type and number of virtual objects associated with the application event (such as completing an application event, which may be rewarding a certain amount of virtual currency, and/or a certain number of virtual items, etc.);
  • the virtual object data associated with the application event may be set according to actual conditions such as operations.
  • the first application client may determine the virtual object data associated with the application event by applying an event configuration file (using an application event as an example, applying an event configuration file, such as a task configuration file, etc.); the application event configuration file may record There is a completion requirement of the application event, a completion reward (the associated virtual object data may be carried in the completion reward), and the like; the application event configuration file may be stored locally in the first application client, or may be the first application client in the application server. Obtained when receiving an application event that needs to be completed interactively;
  • an event configuration file using an application event as an example, applying an event configuration file, such as a task configuration file, etc.
  • the application event configuration file may record There is a completion requirement of the application event, a completion reward (the associated virtual object data may be carried in the completion reward), and the like; the application event configuration file may be stored locally in the first application client, or may be the first application client in the application server. Obtained when receiving an application event that needs to be completed interactively;
  • the first application client may send a notification that the first user completes the application event to the application server, and the application server may be configured according to the first user, or randomly, or according to the application event. Determining the associated virtual object data, determining the virtual object data associated with the application event, and then notifying the first application client, so that the first application client determines the virtual object data associated with the application event.
  • Step S110 The first application client generates a data block corresponding to the virtual object data according to the completion evidence, and carries the completion record in the data block, and indicates indication information of the virtual object data. .
  • one data block can correspond to any type and any number of virtual objects, for example, one data block can correspond to any number of virtual currencies;
  • the completion evidence is used as the zero-knowledge proof generated by the data block, and the first application client may be triggered to generate the data block;
  • the data block should correspond to the virtual object data (ie, the type and number of virtual objects corresponding to the generated data block, corresponding to the virtual object data associated with the application event), that is, although the data block can correspond to Any type and any number of virtual objects, but the first application client can only generate data blocks corresponding to the virtual object data rewarded by the completion of the application event under the normal processing logic;
  • the manner of generating the data block may include a process for the hash of the previous data block, and the construction of the hash tree.
  • the embodiment of the present invention may apply any technology that can generate the data block;
  • the generated data block should carry the completion record of the first user completing the application event, and the indication information indicating the virtual object data associated with the application event, so as to be used by other application clients. The end can verify the data block.
  • the indication information indicating the virtual object data may be the virtual object data itself, or may be a corresponding identifier of the virtual object data, and the corresponding identifier can match the virtual object data.
  • Step S120 The first application client adds signature information of the first user to the data block.
  • the signature information corresponding to the first user may uniquely identify the first user, and may be regarded as the identity identifier of the first user, by adding the signature information corresponding to the first user to the generated data block, The generated data block is added to the label of the first user.
  • Step S130 The first application client broadcasts the data block to which the signature information is added to the blockchain network; the blockchain network accesses multiple application clients.
  • the application client is used as an access node of the blockchain network, and multiple application clients may form a blockchain network; after the first application client generates the data block, the data block may be added to the blockchain, and the data is The validity of the block needs to be recognized by other application clients in the blockchain network. Therefore, after the first application client generates the data block, it needs to be broadcasted to the blockchain network, and the data block is used by other application clients. Validity is verified.
  • the first application client may obtain the completion evidence of the first user completing the application event, and the completion evidence may indicate that the first user completes the application.
  • the event, and the virtual object data that is rewarded by the application event, that is, the completion evidence includes: the first user completes the completion record of the application event, and the virtual object data associated with the application event;
  • An application client may generate a data block corresponding to the rewarded virtual object data according to the completion evidence, and carry the completion record and the indication information indicating the virtual object data in the data block;
  • the first application client may add the signature information corresponding to the first user to the data block, and then broadcast the data block to which the signature information is added to the blockchain network, so as to be in the blockchain network.
  • the application client verifies the validity of the data block, and implements the virtual object generation by the blockchain technology.
  • the data processing method provided by the embodiment of the present invention can implement the generation of the virtual object according to the blockchain technology, and the generation of the virtual object is determined by the behavior of the user completing the application event, and the first user obtained by the user completing the application event completes the
  • the operation server no longer manages the generation of the virtual object, and the virtual object is in the application client, and the application server directly implements the mining of the data block corresponding to the virtual object data associated with the application event.
  • the generation and performance of data blocks greatly reduces the resource overhead of the server.
  • the data blocks can be distributed and stored in the application client of the blockchain network, effectively avoiding the intrusion or failure of the operation server.
  • the resulting loss of user assets greatly improves the reliability of virtual object processing.
  • the generation of the virtual object (such as the generation of a new virtual currency and a new virtual item) is triggered by the user completing the behavior of the application event; the first application client or the application server may be built in
  • the application event completion judgment logic determines whether the first user completes the application event and obtains the rewarded virtual object, so that when the first user completes the application event, the first application client can obtain the first generation of the subsequent trigger data block generation.
  • the user completes the completion evidence of the application event, and the completion evidence includes: the first user completes the completion record of the application event, and the virtual object data associated with the application event;
  • the completion of the completion of the application event by the first user may indicate that the first user completes the application event and obtains evidence of the corresponding virtual object reward;
  • the completion record of the first user completing the application event may include: the first user Complete the behavior record and/or result record of the application event;
  • the behavior record of the first user completing the application event may be that the recorded first user completes the corresponding behavior record in the process of the application event (that is, the first user completes the corresponding behavior in the application event process to indicate that the first user completes the application.
  • the result of the event for example, the behavior record of the first user killing the game monster, etc., the behavior record may be determined by the first application client, or may be sent by the application server to the first application client;
  • the result record of the first user completing the application event may be the recorded result state of the first user completing the application event; for example, the answer of a certain question answered by the first user, the result of killing the game monster, etc.; the result record may be An application client determines itself, and may also be sent to the first application client after the application server determines.
  • the completion record of the first user to complete the application event may further include: a description content of the application event; the description content of the application event may be delivered by the application server to the first application client; When the client receives the application event, the first application client may obtain the description content from the application server; taking the application event as an application task as an example, and the description content of the application event, such as the task content introduction.
  • FIG. 3 is a flowchart of an optional method for obtaining completion evidence of the first user completing the application event, where the method is applicable to the first application client.
  • the method may include:
  • Step S200 The first application client acquires virtual object data associated with the application event when the first user completes the application event.
  • the virtual object data associated with the application event may be pre-set, or may be selected by the user, or randomly determined by the application server, and may be determined according to the virtual object reward rule set by the application event; for example, the application event is completed in the first user.
  • the application server may notify the first application client to complete the virtual object data corresponding to the reward of the application event.
  • the first application client may further obtain the description content of the application event
  • the description content of the application event may be obtained by the first application client when the application event is received (for example, the first user receives the game task), and the application event is an application task, and the first user may use the first application client.
  • the application refreshes the application task and collects it, so as to obtain the description content of the application event delivered by the application server.
  • the first application client may obtain an application event delivered by the application server when the first user completes the application event (such as killing the monster).
  • Descriptive content obviously, for the application event of the nature of the task, the description content of the application event delivered by the application server may be obtained when the first application client completes the application event;
  • the content of the application event is determined by the first application client or by the application server, which can be determined by the actual application design.
  • the first application client may send a notification that the first user completes the application event to the server when the first user completes the application event, so that the application server may determine the virtual object data associated with the application event. Sending, by the application server, the virtual object data associated with the application event to the first application client;
  • the application server may also determine the description content of the application event at the same time, and send the description content of the application event to the first application client at the same time.
  • Step S210 Acquire a behavior record and/or a result record of the first user completing the application event.
  • Step S220 Determine, according to the virtual object data associated with the application event, and the behavior record and/or the result record, the completion evidence of the first user completing the application event.
  • the completion evidence may further include a description content of the application event; and the virtual object data associated with the application event, and the behavior record and/or result record may be determined according to the description content of the application event.
  • a user completes the completion evidence of the application event.
  • the first application client broadcasts the data block to the blockchain network
  • other application clients in the blockchain network can directly complete the record based on the data block (the completion record can be completed by the first user)
  • the behavior record and/or result record of the event; or, the description content of the application event, and the behavior record and/or result record composition, and the virtual object data associated with the application event verify the validity of the data block, and prevent the data area Block forgery and tampering without requiring the first application client to provide additional information to other application clients in the blockchain network to verify the validity of the data block.
  • the data block can be broadcasted through an automatic broadcast mechanism of the blockchain network, for example, the first application client that generates the data block can be broadcasted first, and then Through the broadcast of other application clients, it gradually spreads to the entire blockchain network.
  • an application client in the blockchain network can verify whether the data block sent by the other application client to the blockchain network is valid; the verification manner may be: after the data block is obtained, the parsing data block carries Completing the record, determining whether the application event can be completed using the completion record according to the application event processing logic, and determining whether the application event is completed using the completion record, determining whether the completion reward of the application event corresponds to the virtual object data If the completion reward of the application event corresponds to the virtual object data, it is determined that the data block verification is valid; if any one of the determination results in the process is negative, the data block may be determined to be invalid;
  • the completion event record of the application event carried in the data block may be processed according to the application event processing logic.
  • the completion process of simulating the application application event is completed, and if the simulation result is that the completion event can complete the application event, and the completion reward of the application event corresponds to the virtual object data carried in the data block, the data block verification may be determined. effective.
  • FIG. 4 is a signaling flow of a data processing method provided by an embodiment of the present invention, where the process may include:
  • Step S10 The first application client sends a notification that the first user completes the application event to the application server when the first user completes the application event.
  • Step S11 The application server determines virtual object data associated with the application event, and generates a pair of public and private keys corresponding to the application event.
  • Step S12 The application server delivers the virtual object data associated with the application event and the private key to the first application client.
  • Step S13 The first application client obtains a behavior record and/or a result record of the first user completing the application event.
  • the behavior record and/or the result record of the first user completing the application event may be synchronously carried in the content sent by the application server in step S12, or may be determined by the first application client.
  • Step S14 The first application client signs the behavior record and/or the result record using the private key.
  • Step S15 The first application client determines, according to the virtual object data, the behavior record and/or the result record signed by the private key, that the first user completes the completion evidence of the application event.
  • the application server may further determine the description content of the application event and send it to the first application client, so that the first application client may use the description content of the application event, the virtual object data, and use the private
  • the behavior record and/or result record of the key signature determines the completion evidence of the first user completing the application event.
  • Step S16 The first application client generates a data block corresponding to the virtual object data according to the completion evidence, and carries the behavior record signed by the private key in the data block and/ Or a result record, and indication information indicating the virtual object data.
  • the data block may further carry a description content of the application event.
  • Step S17 The first application client adds signature information corresponding to the first user to the data block.
  • Step S18 The first application client broadcasts the data block to which the signature information is added to the blockchain network.
  • Step S19 The second application client receives the data block that the first application client broadcasts to the blockchain network.
  • the second application client may be any application client except the first application client in the blockchain network, and the second application client may receive the first application client broadcast to the blockchain network.
  • the data block; the second application client can correspond to the second user.
  • Step S20 The second application client parses the received data block, acquires the behavior record and/or result record signed by the private key, and indicates indication information of the virtual object data.
  • the second application client may obtain the description content of the application event by parsing the received data block.
  • Step S21 The second application client requests the application server for the public key corresponding to the application event.
  • Step S22 The application server delivers the public key corresponding to the application event to the second application client.
  • Step S23 The second application client uses the public key to unlock the behavior record and/or the result record signed by the private key, to obtain a behavior record and/or a result record of the first user completing the application event.
  • Step S24 The second application client records the completion process of the simulated application event according to the behavior record and/or the result, and if the simulation result is that the behavior record and/or the result record can complete the application event, and the application event is completed and rewarded Corresponding to the virtual object data, determining that the data block is valid.
  • the behavior record corresponding to the process of completing the application event by the first user may be obtained, or Completing a result record of the application event (such as an answer to a puzzle, etc.); based on the resulting behavior record or result record, the second application client can simulate the behavior record and/or result based on application event processing logic (eg, game logic) It is recorded whether the application event can be completed, and when the simulation result is YES, it is judged whether the completion reward of the application event corresponds to the virtual object data, thereby realizing verification of the data block.
  • application event processing logic eg, game logic
  • the data block may be determined to be invalid.
  • the data block may be further broadcasted in the blockchain network, so that more application clients verify the data block; If the application client verifies that the data block is valid, the data block may be added to the blockchain; if the second application client verifies that the data block is invalid, the data block may be discarded, and the invalid data block is discarded.
  • Will not be part of the blockchain that is, the invalid data block that has not been verified will be treated as invalid block by the blockchain network.
  • the virtual object represented in it does not have practical effect in network applications such as games, and cannot pass. The transaction is in circulation.
  • the first application client can also verify that the second application client broadcasts to the data block in the blockchain network, and the data block that the second application client broadcasts to the blockchain network can carry the second user to complete.
  • the process of verifying the data block associated with the application event and the indication information of the virtual object data associated with the application event completed by the second user may be similar to the content shown in FIG. 4; the specific optional process may be :
  • the first application client receives the data block propagated in the blockchain network;
  • the data block carries a private key corresponding to the application event completed by the second user, and the signed second user completes the behavior record of the application event and / or result record, and indication information indicating virtual object data associated with the application event completed by the second user;
  • the first application client parses the received data block, obtains the behavior record and/or result record signed by the private key, and indicates the indication information of the virtual object data;
  • the first application client requests the application server to correspond to the public key corresponding to the application event completed by the second user;
  • the first application client uses the obtained public key to unlock the behavior record and/or the result record signed by the private key, and obtains the behavior record and/or result record of the second user completing the application event.
  • the first application client records the completion process of the simulated application event according to the obtained behavior record and/or result, and verifies the validity of the received data block according to the simulation result;
  • the simulation result is that the obtained behavior record and/or result record can complete the application event, and the completion reward of the application event corresponds to the virtual object data, determining the data that the second application client broadcasts to the blockchain network The block is valid;
  • the second application client may be determined.
  • the data block broadcast to the blockchain network is invalid.
  • the process that the first application client broadcasts the data block to the blockchain network for data block verification may be regarded as a broadcast and distributed verification process, that is, the first application client generates a certain After the data block, it can be broadcast to the neighboring application client (usually through p2p, etc.), and then the application client receiving the data block will verify the data block, and the verification result and the data area will be verified.
  • the block is further broadcasted until it spreads to the full blockchain network (generally, as long as five application clients can pass the verification of the data block, it can be considered that the data block can be recognized by the full blockchain network. ).
  • the virtual object can be divided into two types: a virtual currency and a virtual item.
  • the generated data block corresponding to the virtual currency can be regarded as a main data block, and the generated virtual item corresponds to the virtual item.
  • the data block can be regarded as a side data block; correspondingly, the block chain can be divided into a main block chain and a side block chain, and the corresponding structure can be as shown in FIG. 5, and it is worth noting that the main block chain and the side are
  • the application clients in the blockchain are basically the same, except that the virtual blocks represented by the data blocks in the main blockchain and the sideblockchain are different;
  • the embodiment of the present invention does not need to generate an equivalent virtual item; but for the side data block corresponding to the newly generated virtual item, it needs to be generated equivalent to the newly generated virtual item.
  • the virtual currency corresponds to the main data block and is locked to ensure that the virtual currency blockchain (ie, the main blockchain) can satisfy the amount of virtual money required for virtual item exchange.
  • the virtual currency can be considered as a form of the first type of virtual object
  • the virtual item (such as virtual props, virtual resources, virtual equipment, etc.) can be considered as a form of the second type of virtual object, and the following is for generating the first
  • the main data block of a type of virtual object and the data processing method of the side data block of the second type of virtual object are introduced;
  • virtual currency is only an optional form of the first type of virtual object.
  • the virtual item is only an optional form of the second type of virtual object.
  • the first type of virtual The specific form of the object and the specific form of the second type of virtual object can be adjusted; it is generally believed that the first type of virtual object has a purchase attribute in the network virtual world ecology constructed by the network application, and the second type of virtual object can be purchased.
  • FIG. 6 is another flowchart of a data processing method according to an embodiment of the present disclosure. The method may be applied to a first application client. Referring to FIG. 6, the method may include:
  • Step S300 The first application client determines the virtual object data associated with the application event when the first user completes the application event.
  • Step S310 The first application client determines that the virtual object type of the virtual object data is a first type of virtual object, and obtains completion evidence that the first user completes the application event; the completion evidence includes: the first user Completing the completion record of the application event and the virtual object data of the first type of virtual object associated with the application event.
  • Step S320 The first application client generates a main data block corresponding to the virtual object data of the first type of virtual object according to the completion evidence, and carries the completed record in the main data block, and Indicates indication information of virtual object data of the first type of virtual object.
  • Step S330 The first application client adds signature information corresponding to the first user to the primary data block.
  • Step S340 The first application client broadcasts the main data block to which the signature information is added to the main blockchain network.
  • the manner of verifying the main data block in the main blockchain network is similar to the principle shown in FIG. 4, and can be referred to.
  • the game client completes a game task, and the reward of the game task is 100 virtual gold coins, and the game client can determine after completing the game task.
  • the virtual object associated with the game task is a virtual gold coin (ie, the virtual object type of the virtual object data associated with the game task is a first type of virtual object, and the virtual gold coin is a form of the first type of virtual object), thereby acquiring the game client. Completion of the completion evidence of the game task;
  • the completion evidence includes: a completion record of the game client completing the game task, and a 100 virtual gold coin associated with the game task; and the game client may generate a main data block corresponding to 100 virtual gold coins according to the completion evidence, and The data block carries the completion record, and the indication information indicating that the main data block corresponds to 100 virtual gold coins; the game client adds the main data block to the signature information corresponding to the user of the game client, and then broadcasts to the main block. Chain the network so that other game clients can verify the validity of the main data block.
  • the method can include:
  • Step S400 The first application client determines the virtual object data associated with the application event when the first user completes the application event.
  • Step S410 The first application client determines that the virtual object type of the virtual object data is a second type of virtual object, and determines a virtual object of the first type of virtual object corresponding to the virtual object data of the second type of virtual object. Data; and determining that the first user completed the completion of the application event and the evidence accompanying the generation of the primary data block.
  • the completion evidence includes: the first user completes the completion record of the application event, and the virtual object data of the second type of virtual object associated with the application event; the evidence generated by the primary data block includes: The virtual object data of the first type of virtual object.
  • the client When the first application client completes an application event, and the type of the virtual object data of the application event association reward is the second type of virtual object, in addition to generating the virtual object data corresponding to the second type virtual object of the application event association reward.
  • the main data block corresponding to the virtual object data of the first type virtual object is also generated; if the game client completes a game task, and the reward of the game task is a game prop, the first application
  • the client In addition to generating a side data block corresponding to the game item, the client also needs to determine the game currency equivalent to the game item, and simultaneously generate a main data block corresponding to the game currency;
  • the virtual object data of the first type of virtual object may represent a first type of virtual object equivalent to the second type of virtual object associated with the application event; for example, an application event
  • the associated reward is a virtual item (a form of the second type of virtual object)
  • the equivalent currency of the virtual item is 100 virtual gold coins (a form of the first type of virtual object)
  • the virtual item corresponding to the virtual item is generated.
  • the side data block it is also required to generate a main data block corresponding to 100 virtual gold coins.
  • Step S420 The first application client generates a side data block corresponding to the virtual object data of the second type virtual object according to the completion evidence, and carries the completed record in the side data block, and And indicating indication information of the virtual object data of the second type of virtual object; and generating a main data block corresponding to the virtual object data of the first type of virtual object according to the generated evidence along the main data block,
  • the main data block carries indication information indicating virtual object data of the first type of virtual object.
  • Step S430 The first application client adds signature information corresponding to the first user to the side data block.
  • Step S440 The first application client broadcasts the side data block to which the signature information is added to the side block chain network; and locks the main data block to the main blockchain network.
  • the main data block is an equivalent data block generated by the side data block
  • only the side data block is verified, and the main data block is locked to the main area.
  • the locked main data block is released until the second type of virtual object represented by the side data block is traded.
  • the game client completes a game task, and the reward of the game task is a game prop, and the game client can determine after completing the game task.
  • the virtual object associated with the game task association reward is a game prop (ie, the virtual object type of the virtual object data associated with the game task is a second type of virtual object, and the game prop is a form of the second type of virtual object), so that the game client can determine
  • the equivalent game currency of the game item if the equivalent game currency is 100 virtual gold coins, the game client may generate the completion evidence of the first user completing the application event, and generate evidence along with the main data block;
  • the completion evidence is used to indicate that the game client completes the completion record of the game task, and the game task is associated with the rewarded game item; the main data block is accompanied by the generated evidence for representing the equivalent 100 virtual gold coin corresponding to the game item associated with the game task. ;
  • the game client may generate a side data block corresponding to the game item according to the completion evidence, and carry the completion record in the side data block, and indicate the instruction information of the game item corresponding to the side data block, and further After adding the signature information of the user corresponding to the game client to the opposite data block, broadcast to the side blockchain, so that other game clients can verify the validity of the side data block;
  • the game client may generate a main data block corresponding to 100 virtual gold coins according to the generated evidence along the main data block, and carry indication information indicating that the main data block corresponds to 100 virtual gold coins in the main data block;
  • the main data block is locked into the main blockchain until the virtual item represented by the side data block is traded, and the main data block is released from the main blockchain.
  • the embodiment of the present invention may automatically lock the main data block on the main chain (main block chain) by using a side chain (side block chain) mechanism, and then unlock the main data block after being released.
  • the second type of virtual object and/or the first type of virtual object are used to synthesize a new second type of virtual object, which may be considered as one type of application event; but the side data corresponding to the new second type of virtual object
  • the generation of the block needs to be accompanied by the side data block corresponding to the original second type virtual object, and/or the invalidity of the main data block corresponding to the original first type virtual object;
  • the first application client when it completes the application event, it may also determine that the completion of the application event is accompanied by an invalid data block (may be a primary data block corresponding to the first type of virtual object, or may be a second type of virtual object corresponding to The side data block, depending on the execution requirements of the application event, and invalidate the determined data block.
  • an invalid data block may be a primary data block corresponding to the first type of virtual object, or may be a second type of virtual object corresponding to The side data block, depending on the execution requirements of the application event, and invalidate the determined data block.
  • the data processing method provided by the embodiment of the present invention is introduced in the above, and the data processing method provided by the embodiment of the present invention is introduced from the perspective of the transaction of the virtual object; the data processing method described below is established. Based on the blockchain technique described above, the generation of virtual objects is performed.
  • FIG. 10 is still another flowchart of a data processing method according to an embodiment of the present disclosure.
  • the method may be applied to a first application client.
  • the method may include:
  • Step S500 Acquire a transaction request of the first transaction.
  • the transaction request may be a transaction request of the first user of the first application client; or may be a transaction request that is broadcasted by the other application client to the blockchain network, that is, when the user of the other application client performs the first transaction.
  • the other application client may broadcast the transaction request of the first transaction to the blockchain network.
  • the first application client obtains the transaction request, the corresponding data block may be generated based on the transaction request.
  • Step S510 Generate a data block corresponding to the first transaction according to the transaction request; the data block carries a transaction record of the first transaction, and indication information indicating virtual object data corresponding to the first transaction.
  • the embodiment of the present invention does not modify the virtual currency in the user data according to the transaction request to implement the transaction; instead, the data block corresponding to the transaction is generated. Adding the data block corresponding to the transaction to the blockchain, that is, when the transaction is implemented, the blockchain does not modify the data block that has been generated and added, but adds a new one at the end of the blockchain. The data block corresponding to the transaction;
  • the transaction record of the first transaction may record the user involved in the first transaction, the transaction item of the first transaction, the currency, etc., and may record the key data involved in the transaction of the first transaction.
  • Step S520 Broadcast the data block to the blockchain network.
  • the first transaction may be a transaction for purchasing a game item. If the game item needs to consume 100 gold coins, the first application client obtains the transaction request, and determines that the first user corresponding to the transaction request uses 100 gold coins to purchase the game. a transaction record of the item; thereby generating a data block corresponding to the first transaction according to the transaction request, and carrying the transaction record and the consumption of 100 gold coins corresponding to the first transaction in the data block, and obtaining the instruction information of the game item;
  • the first transaction may be a transaction request for the first user to sell the game item.
  • the first application client may obtain a transaction request and determine the first corresponding to the transaction request.
  • the user sells the game props to obtain a transaction record of 100 gold coins; thereby generating a data block corresponding to the first transaction, and carrying the transaction record and the indication indicating the first transaction corresponding to the 100th gold coin in the data block, and the instruction of the sold game props information;
  • the first transaction may also be a transaction of virtual goods and virtual goods, or simply transfer virtual gold coins, simply transfer virtual items, etc.
  • the processing principle of these types of transactions and the above description are based on transaction requests to generate corresponding data. Blocks are propagated to the blockchain network, and other application clients verify the validity of the data blocks;
  • embodiments of the present invention can support transactions between users, transactions between users and game systems, and the like.
  • the application client in the blockchain network can verify whether the data block is valid.
  • the specific verification principle is similar to that described in FIG. 4 above, and may be based on the application client.
  • the transaction record in the data block whether the simulation transaction can be completed, and when the transaction can be completed, it is judged whether the virtual object data corresponding to the data block is consistent with the transaction and realized;
  • the application client in the blockchain network records the transaction process according to the transaction record in the data block, and judges that the transaction can be completed, and the virtual object data corresponding to the data block matches the transaction, it is determined that the data block is valid. .
  • the first application client may obtain the private key corresponding to the first transaction (the first transaction may correspond to a pair of private key and public key pair allocated by the application server), and use the private key for the transaction record of the first transaction. Signing and carrying in the data block; thereby transmitting the transaction record carrying the private key signature and the data block indicating the indication information of the virtual object data corresponding to the first transaction to the blockchain network;
  • the public key corresponding to the first transaction is used to unlock, and the transaction record signed by the private key is used to simulate the completion process of the first transaction according to the transaction record, if the simulation result is
  • the transaction record can complete the first transaction, and the virtual object data corresponding to the data block matches the first transaction, and the data block is determined to be valid.
  • the first application client can verify the data block propagated in the blockchain network; if the first application client receives the data block corresponding to the second transaction propagated in the blockchain network, the first application client The terminal may parse the received data block, obtain a public key corresponding to the second transaction, and use the obtained public key to unlock the transaction record of the second transaction signed by the private key;
  • the first application client may simulate the completion process of the second transaction according to the obtained transaction record, thereby verifying the validity of the received data block according to the simulation result;
  • the simulation result is that the obtained transaction record can complete the second transaction, and the virtual object data corresponding to the data block matches the second transaction, it can be determined that the received data block is valid.
  • the transaction may not be completed after the transaction process is simulated; and/or, the virtual object data corresponding to the data block does not match the transaction, Then it can be determined that the data block is invalid.
  • the data block shown in FIG. 10 may be a primary data block or a side data block.
  • the side data block corresponding to the initial transaction corresponds to The second type of virtual object data
  • the corresponding primary data block of the first type of virtual object is still locked (ie, representing the equivalent virtual currency, etc.
  • the main data block of the virtual object is in the locked state
  • the virtual object data corresponding to the first transaction is the second type of virtual object data corresponding to the side data block of the initial transaction, and the corresponding locked state is required.
  • the main data block is released to ensure sufficient currency in the virtual world of the network.
  • the equivalence relationship between the second type of virtual object corresponding to the side data block and the first type of virtual object corresponding to the main data block may be set by the operation server according to actual conditions; for example, the game network application is taken as an example.
  • the operation server can control the release of virtual currency and virtual items by adjusting and releasing game tasks, by adjusting the virtual currency, the virtual item consumption when the player participates in the game, and the exchange relationship between the virtual currency and the virtual item (a kind of correspondence relationship) ) to control the ecology of the virtual world of the network.
  • processing of virtual objects such as virtual money, virtual items (virtual items, virtual resources), and the like are managed by a blockchain, and a block chain of a second type of virtual object such as a virtual item is virtualized.
  • the side chain of the blockchain of the first type of virtual object such as currency ensures that the conversion relationship between the virtual item and the virtual currency is certain; the user's behavior in the game (for example, completing the task) can create a new data block ( The main data block, and/or the side data block), if the new data block represents a virtual item (corresponding side data block), an equal amount of virtual currency (corresponding to the main data block) is also created. Both can be exchanged freely, thus ensuring the stability of the currency;
  • the generation of the new data block depends on the application behavior of the application client (such as the player's game behavior). Once the application behavior is triggered, the data block of the virtual object such as the virtual currency and the virtual item of the event association reward is applied.
  • the application behavior that is created and triggers the completion of the application event is determined by the application operator; therefore, although the application operator can still adjust the application content and the exchange relationship between the item currency, it cannot directly modify the user data. It realizes the generation and transaction of virtual objects such as virtual currency and virtual items, which reduces the server resource overhead. At the same time, distributed data block storage improves the security and reliability of user assets.
  • the advantages of the embodiments of the present invention include at least:
  • the data blocks corresponding to the user's virtual currency and virtual items are distributedly stored in the entire blockchain network, and must be modified by most application clients to be recorded, and the data blocks are forged or falsified privately. It can be avoided to ensure the security of the game, the security and reliability of the user's assets; and the distributed storage of the blockchain network can effectively avoid the interruption of the game service caused by a single point of failure, and improve the reliability of the network application services such as games. Sex.
  • the application client provided by the embodiment of the present invention is described below with the generated role of the virtual object.
  • the application client described below can refer to the data processing method described above.
  • FIG. 11 is a structural block diagram of an application client according to an embodiment of the present invention.
  • the application client may include:
  • the completion evidence obtaining module 100 is configured to: when the first user completes the application event, obtain the completion evidence of the first user completing the application event; the completion evidence includes: the first user completing the completion record of the application event, And virtual object data associated with the application event;
  • the data block generating module 110 is configured to generate, according to the completion evidence, a data block corresponding to the virtual object data, and carry the completed record in the data block, and indicate an indication of the virtual object data. information;
  • a signature adding module 120 configured to add the completion record, the indication information, and the signature information in the data block, where the indication information is used to identify the virtual object data;
  • the first broadcast module 130 is configured to broadcast the data block to which the signature information of the first user is added to a blockchain network, where the blockchain network accesses multiple application clients.
  • the completing, by the first user, the completion record of the application event comprises: the first user completing the behavior record and/or the result record of the application event.
  • the completion evidence obtaining module 100 is configured to obtain the evidence that the first user completes the application event, and specifically includes:
  • the completion evidence is determined based on the virtual object data and the behavior record and/or result record signed using the private key.
  • the completion evidence obtaining module 100 is configured to obtain a behavior record and/or a result record of the first user completing the application event, and specifically includes:
  • the completion record of the first user completing the application event further includes: a description content of the application event.
  • FIG. 12 shows another structure of the application client provided by the embodiment of the present invention.
  • the application client shown in FIG. 12 can be regarded as the first application client described above (any one of the systems needs to generate a virtual
  • the application client of the object, as shown in FIG. 11 and FIG. 12, the application client may further include:
  • a first validity verification module 140 configured to receive the data block that is propagated in the blockchain network, where the data block carries a behavior record and/or a result record of a second user completing an application event, and an indication The indication information of the virtual object data associated with the application event completed by the second user; wherein the behavior record and/or the result record is signed with a private key corresponding to the application event completed by the second user; and the received data block is parsed Obtaining the behavior record and/or result record signed by using the private key, and indicating the indication information; requesting, by the application server, a public key corresponding to an application event completed by the second user; using the acquired Destroying the behavior record and/or result record signed by the private key to obtain the behavior record and/or result record of the second user completing the application event; recording and/or according to the behavior The result records a completion process of the simulated application event to obtain a simulation result; verifying the validity of the received data block based on the simulation result, wherein if The result is that the obtained behavior record
  • the completion evidence includes: completing, by the first user, a completion record of the application event, and the application event Virtual object data of the associated first type virtual object;
  • the data block generating module 110 is configured to generate a main data block corresponding to the virtual object data of the first type of virtual object according to the completion evidence, and complete the record, the indication information, and the The signature information is added in the main data block.
  • the completion evidence includes: completing, by the first user, a completion record of the application event, and the application event Virtual object data of the associated second type of virtual object;
  • the data block generation module 110 can also be used to:
  • the primary data block companion generating evidence includes: virtual object data of the first type of virtual object.
  • the signature adding module 120 is further configured to: generate, according to the completion evidence, a side data block corresponding to the virtual object data of the second type virtual object, and in the side data area
  • the block carries the completion record, and indication information indicating virtual object data of the second type of virtual object
  • the data block generation module is further configured to generate and cooperate according to the generated evidence along the main data block
  • the signature adding module 120 is further configured to: add signature information corresponding to the first user to the side data block;
  • the first broadcast module is configured to broadcast the data block to which the signature information is added to the blockchain network, and specifically includes:
  • the application client can also be used to:
  • the main data block is locked to the main blockchain network until the second type of virtual object corresponding to the side data block is traded, and the locked main data block is released.
  • the application client provided by the embodiment of the present invention is introduced from the transaction role of the virtual object.
  • the application client described below can refer to the content of the data processing method described above.
  • FIG. 13 is a structural block diagram of an application client according to an embodiment of the present invention.
  • the application client may include:
  • a transaction request obtaining module 200 configured to acquire a transaction request of the first transaction
  • a generating module 210 configured to generate, according to the transaction request, a data block corresponding to the first transaction; the data block carries a transaction record of the first transaction, and indication information indicating virtual object data corresponding to the first transaction;
  • the second broadcast module 220 is configured to broadcast the data block to the blockchain network.
  • FIG. 14 is a block diagram showing another structure of the application client according to the embodiment of the present invention.
  • the application client may further include:
  • the private key signing module 230 is configured to obtain a private key corresponding to the first transaction from the application server; the application server allocates a corresponding pair of public and private keys for the first transaction; and uses the transaction record of the first transaction The private key is signed and carried in the data block;
  • the second validity verification module 240 is configured to receive a data block corresponding to the second transaction propagated in the blockchain network, where the data block carries a transaction record of the second transaction, and the virtual object data corresponding to the second transaction is indicated.
  • the indication information wherein the transaction record of the second transaction is signed by the private key corresponding to the second transaction; obtaining the public key corresponding to the second transaction, and using the obtained public key, unlocking the transaction of the second transaction signed by the private key Recording; simulating the completion process of the second transaction according to the obtained transaction record, and verifying the validity of the data block corresponding to the second transaction according to the simulation result.
  • the private key signature module 230 and the second validity verification module 240 may alternatively or in combination be applied in the application client shown in FIG.
  • the application client may be further configured to: correspond to the side data block The main data block in the locked state is released.
  • the embodiment of the present invention further provides a data processing system, which may include: an application server, an operation server, a database, and the application client described above; the structure of the data processing system may be as shown in FIG. 1 .
  • the specific structure of the user equipment is exemplified from the perspective of the physical hardware.
  • the application client shown above is disposed on the user equipment shown in this embodiment.
  • the user equipment includes: a radio frequency (RF) circuit 1510, a memory 1520, an input unit 1530, a display unit 1540, a sensor 1550, an audio circuit 1560, a wireless fidelity (WiFi) module 1570, a processor 1580, And power supply 1590 and other components.
  • RF radio frequency
  • the user equipment structure shown in FIG. 15 does not constitute a limitation to the user equipment, and may include more or less components than those illustrated, or a combination of certain components, or different component arrangements.
  • the RF circuit 1510 can be used for receiving and transmitting signals during the transmission or reception of information or during a call. Specifically, after receiving the downlink information of the base station, the processing is processed by the processor 1580. In addition, the data designed for the uplink is sent to the base station.
  • RF circuit 1510 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like.
  • LNA Low Noise Amplifier
  • RF circuitry 1510 can also communicate with the network and other devices via wireless communication.
  • the above wireless communication may use any communication standard or protocol, including but not limited to Global System of Mobile communication (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (Code Division). Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), E-mail, Short Messaging Service (SMS), and the like.
  • GSM Global System of Mobile communication
  • GPRS General Packet Radio Service
  • CDMA Code Division Multiple Access
  • WCDMA Wideband Code Division Multiple Access
  • LTE Long Term Evolution
  • E-mail Short Messaging Service
  • the memory 1520 can be used to store software programs and modules, and the processor 1580 executes various functional applications and data processing of the user equipment by running software programs and modules stored in the memory 1520.
  • the memory 1520 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application required for at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may be stored according to Data created by the use of user equipment (such as audio data, phone book, etc.).
  • memory 1520 can include high speed random access memory, and can also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
  • the input unit 1530 can be configured to receive input numeric or character information and to generate key signal inputs related to user settings and function controls of the user device.
  • the input unit 1530 may include a touch panel 1531 and other input devices 1532.
  • the touch panel 1531 also referred to as a touch screen, can collect touch operations on or near the user (such as the user using a finger, a stylus, or the like on the touch panel 1531 or near the touch panel 1531. Operation), and drive the corresponding connecting device according to a preset program.
  • the touch panel 1531 may include two parts: a touch detection device and a touch controller.
  • the touch detection device detects the touch orientation of the user, and detects a signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts the touch information into contact coordinates, and sends the touch information.
  • the processor 1580 is provided and can receive commands from the processor 1580 and execute them.
  • the touch panel 1531 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves.
  • the input unit 1530 may also include other input devices 1532.
  • other input devices 1532 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), trackballs, mice, joysticks, and the like.
  • the display unit 1540 can be used to display information input by the user or information provided to the user as well as various menus of the user device.
  • the display unit 1540 can include a display panel 1541.
  • the display panel 1541 can be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like.
  • the touch panel 1531 may cover the display panel 1541. After the touch panel 1531 detects a touch operation on or near the touch panel 1531, the touch panel 1531 transmits to the processor 1580 to determine the type of the touch event, and then the processor 1580 according to the touch event. The type provides a corresponding visual output on display panel 1541.
  • the touch panel 1531 and the display panel 1541 are used as two independent components to implement input and input functions of the user device, in some embodiments, the touch panel 1531 and the display panel 1541 may be integrated. The input and output functions of the user device are implemented.
  • the user device may also include at least one type of sensor 1550, such as a light sensor, motion sensor, and other sensors.
  • the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 1541 according to the brightness of the ambient light, and the proximity sensor may close the display panel 1541 when the user equipment moves to the ear. / or backlight.
  • the accelerometer sensor can detect the magnitude of acceleration in all directions (usually three axes). When it is stationary, it can detect the magnitude and direction of gravity.
  • An audio circuit 1560, a speaker 1561, and a microphone 1562 can provide an audio interface between the user and the user device.
  • the audio circuit 1560 can transmit the converted electrical data of the received audio data to the speaker 1561, and convert it into a sound signal output by the speaker 1561.
  • the microphone 1562 converts the collected sound signal into an electrical signal, and the audio circuit 1560. After receiving, it is converted into audio data, and then processed by the audio data output processor 1580, transmitted to the other user equipment via the RF circuit 1510, or outputted to the memory 1520 for further processing.
  • WiFi is a short-range wireless transmission technology
  • the user equipment can help users to send and receive emails, browse web pages, and access streaming media through the WiFi module 1570, which provides users with wireless broadband Internet access.
  • FIG. 15 shows the WiFi module 1570, it can be understood that it does not belong to the essential configuration of the user equipment, and may be omitted as needed within the scope of not changing the essence of the invention.
  • the processor 1580 is a control center for the user equipment, connecting various portions of the entire user equipment using various interfaces and lines, by running or executing software programs and/or modules stored in the memory 1520, and recalling data stored in the memory 1520.
  • the user equipment is subjected to various functions and processing data to perform overall monitoring of the user equipment.
  • the processor 1580 may include one or more processing units; preferably, the processor 1580 may integrate an application processor and a modem processor, where the application processor mainly processes an operating system, a user interface, an application, and the like.
  • the modem processor primarily handles wireless communications. It will be appreciated that the above described modem processor may also not be integrated into the processor 1580.
  • the user equipment also includes a power source 1590 (such as a battery) that supplies power to the various components.
  • a power source 1590 such as a battery
  • the power source can be logically coupled to the processor 1580 via a power management system to manage functions such as charging, discharging, and power management through the power management system.
  • the user equipment may further include a camera, a Bluetooth module, and the like, and details are not described herein again.
  • the embodiment further provides a computer readable storage medium storing program instructions, wherein the processor executes the stored program instructions to perform the method as described above.
  • the steps of a method or algorithm described in connection with the embodiments disclosed herein can be implemented directly in hardware, a software module executed by a processor, or a combination of both.
  • the software module can be placed in random access memory (RAM), memory, read only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or technical field. Any other form of storage medium known.

Abstract

Embodiments of the present invention provide a data processing method, a related device and system, and a computer readable storage medium. The method comprises: when a first user completes an application event, an application client obtains completion evidence that the first user completes the application event, the completion evidence comprising a completion record that the first user completes the application event, and virtual object data associated with the application event; generate a data block corresponding to the virtual object data according to the completion evidence, and carry the completion record and indication information indicating the virtual object data in the data block; adding signature information of the first user to the data block; and broadcasting the data block to which the signature information is added to a block chain network, the block chain network being accessed from a plurality of application clients. The embodiments of the present invention can implement virtual object processing with relatively high reliability and relatively low server resource overhead.

Description

数据处理方法、相关设备、系统以及计算机可读存储介质Data processing method, related device, system, and computer readable storage medium
本申请要求于2017年2月8日提交中国专利局,申请号为201710069478.3,发明名称为“一种数据处理方法、应用客户端及系统”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application filed on February 8, 2017, the Chinese Patent Office, the application number is 201710069478.3, the invention name is "a data processing method, application client and system", the entire contents of which are incorporated by reference. In this application.
技术领域Technical field
本发明涉及数据处理技术领域,具体涉及数据处理方法、相关设备、系统以及计算机可读存储介质。The present invention relates to the field of data processing technologies, and in particular, to a data processing method, a related device, a system, and a computer readable storage medium.
背景技术Background technique
游戏等网络应用日益的流行,这类网络应用为实现网络虚拟世界的生态构建,往往需要涉及虚拟货币(如游戏货币)、虚拟物品(如游戏装备、道具等)等虚拟对象的处理,虚拟对象的处理如虚拟对象的生成、交易等。Online games such as games are becoming more and more popular. In order to realize the ecological construction of the virtual world of the network, such network applications often need to deal with virtual objects such as virtual currency (such as game currency) and virtual objects (such as game equipment, props, etc.), virtual objects. The processing is such as the generation of virtual objects, transactions, and the like.
目前虚拟对象的生成、交易等处理,主要由网络应用的运营服务器进行管理;例如,运营服务器可在用户完成某一应用事件(比如完成游戏任务、击杀游戏怪物等)时,在该用户的用户数据中更新应用事件完成所奖励的虚拟对象数据,实现应用事件完成时,所奖励的虚拟对象的生成和发放;而在用户之间进行虚拟对象的交易时,运营服务器可通过修改交易双方的用户数据中的虚拟对象数据,实现虚拟对象的交易。At present, the processing of generating and processing virtual objects is mainly managed by the operation server of the network application; for example, the operation server can be used by the user when the user completes an application event (such as completing a game task, killing a game monster, etc.) The virtual object data rewarded by the application event is updated in the user data to realize the generation and distribution of the rewarded virtual object when the application event is completed; and when the virtual object transaction is performed between the users, the operation server may modify the transaction by both parties. The virtual object data in the user data realizes the transaction of the virtual object.
可见,目前虚拟对象的处理,主要受运营服务器管控,由运营服务器修改用户数据完成,这种虚拟对象处理方式存在的问题是:It can be seen that the processing of the virtual object is mainly controlled by the operation server, and the user data is modified by the operation server. The problem of the virtual object processing method is:
运营服务器需要对所有用户与虚拟对象相关的用户数据进行全量记录,运营服务器的存储和运算压力极大,提升了服务器的资源开销;The operation server needs to record the user data related to all users and virtual objects in full. The storage and operation pressure of the operation server is extremely high, which improves the resource overhead of the server.
目前运营服务器被攻击的情况时有发生,一旦运营服务器被攻击入侵或者被攻击后发生故障,则用户所拥有的虚拟货币、虚拟物品等虚拟对象作为用户资产的一部分,其安全性将受到威胁,因此虚拟对象处理方式的可靠性较低。At present, the operation server is attacked. When the operation server is attacked or invaded by the attack, the virtual objects such as virtual currency and virtual items owned by the user are part of the user's assets, and the security will be threatened. Therefore, the reliability of the virtual object processing method is low.
发明内容Summary of the invention
有鉴于此,本发明实施例提供数据处理方法、相关设备、系统以及计算机可读存储介质,其能够解决如何在降低服务器的资源开销的情况下,保证虚拟对象相关的用户数据的安全。In view of this, the embodiments of the present invention provide a data processing method, a related device, a system, and a computer readable storage medium, which can solve the problem of ensuring the security of user data related to a virtual object while reducing the resource overhead of the server.
为实现上述目的,本发明实施例提供如下技术方案:To achieve the above objective, the embodiment of the present invention provides the following technical solutions:
本发明实施例第一方面提供了一种数据处理方法,应用于第一应用客户端,所述第一应用客户端为用于生成虚拟对象的应用客户端,所述方法包括:The first aspect of the embodiments of the present invention provides a data processing method, which is applied to a first application client, where the first application client is an application client for generating a virtual object, and the method includes:
获取应用事件的完成证据,所述完成证据包括:第一用户完成所述应用事件的完成记录以及所述应用事件关联的虚拟对象数据;Obtaining evidence of completion of the application event, the completion evidence includes: completing a record of completion of the application event by the first user and virtual object data associated with the application event;
根据所述完成证据,生成所述虚拟对象数据对应的数据区块;Generating, according to the completion evidence, a data block corresponding to the virtual object data;
将所述完成记录、指示信息以及签名信息添加在所述数据区块中,所述指示信息用于标识所述虚拟对象数据;Adding the completion record, the indication information, and the signature information in the data block, where the indication information is used to identify the virtual object data;
将添加有所述第一用户的签名信息的所述数据区块广播到区块链网络,所述区块链网络接入有多个应用客户端。The data block to which the signature information of the first user is added is broadcasted to a blockchain network, and the blockchain network accesses a plurality of application clients.
本发明实施例第二方面提供了一种数据处理方法,应用于第一应用客户端,所述第一应用客户端为用于生成虚拟对象的应用客户端,所述方法包括:A second aspect of the embodiments of the present invention provides a data processing method, which is applied to a first application client, where the first application client is an application client for generating a virtual object, and the method includes:
获取第一交易的交易请求;Obtaining a transaction request for the first transaction;
根据所述交易请求生成第一交易对应的数据区块;所述数据区块携带有第一交易的交易记录,以及指示第一交易对应的虚拟对象数据的指示信息;Generating, according to the transaction request, a data block corresponding to the first transaction; the data block carries a transaction record of the first transaction, and indication information indicating virtual object data corresponding to the first transaction;
将所述数据区块广播到区块链网络。Broadcasting the data block to a blockchain network.
本发明实施例第三方面提供了一种应用客户端,包括:A third aspect of the embodiments of the present invention provides an application client, including:
完成证据获取模块,用于获取应用事件的完成证据,所述完成证据包括:第一用户完成所述应用事件的完成记录以及所述应用事件关联的虚拟对象数据;The completion evidence obtaining module is configured to obtain evidence of completion of the application event, where the completion evidence includes: completing a record of completion of the application event by the first user and virtual object data associated with the application event;
数据区块生成模块,用于根据所述完成证据,生成所述虚拟对象数据对应的数据区块;a data block generating module, configured to generate a data block corresponding to the virtual object data according to the completion evidence;
签名添加模块,用于为将所述完成记录、指示信息以及所述签名信息添加在所述数据区块中,所述指示信息用于标识所述虚拟对象数据;a signature adding module, configured to add the completion record, the indication information, and the signature information in the data block, where the indication information is used to identify the virtual object data;
第一广播模块,用于将添加有所述第一用户的签名信息的所述数据区块广播到区块链网络,所述区块链网络接入有多个应用客户端。And a first broadcast module, configured to broadcast the data block to which the signature information of the first user is added to a blockchain network, where the blockchain network accesses multiple application clients.
本发明实施例第四方面提供了一种应用客户端,包括:A fourth aspect of the embodiments of the present invention provides an application client, including:
交易请求获取模块,用于获取第一交易的交易请求;a transaction request obtaining module, configured to acquire a transaction request of the first transaction;
生成模块,用于根据所述交易请求生成第一交易对应的数据区块;所述数据区块携带有第一交易的交易记录,以及指示第一交易对应的虚拟对象数据的指示信息;a generating module, configured to generate, according to the transaction request, a data block corresponding to the first transaction; the data block carries a transaction record of the first transaction, and indication information indicating virtual object data corresponding to the first transaction;
第二广播模块,用于将所述数据区块广播到区块链网络。a second broadcast module, configured to broadcast the data block to a blockchain network.
本发明实施例第五方面提供了一种数据处理系统,包括:应用服务器,运营服务器,数据库,上述所述的应用客户端。A fifth aspect of the embodiments of the present invention provides a data processing system, including: an application server, an operation server, a database, and the application client described above.
本发明实施例第六方面提供了一种应用客户端,包括:A sixth aspect of the embodiments of the present invention provides an application client, including:
一个或多个处理器、存储器、总线系统、以及一个或多个程序,所述处理器和所述存储器通过所述总线系统相连;其中所述一个或多个程序被存储在所述存储器中,所述一个或多个程序包括指令,所述指令当被所述终端设备执行时使所述终端设备执行如上述第一方面或第二方面所示的数据处理方法。One or more processors, memory, bus system, and one or more programs, the processor and the memory being coupled by the bus system; wherein the one or more programs are stored in the memory The one or more programs include instructions that, when executed by the terminal device, cause the terminal device to perform the data processing method as described in the first aspect or the second aspect above.
本发明实施例第七方面提供了一种计算机可读存储介质,存储有程序指令,处理器执行所存储的程序指令时执行上述所示的第一方面或第二方面所示的数据处理方法。A seventh aspect of the embodiments of the present invention provides a computer readable storage medium storing program instructions, and when the processor executes the stored program instructions, the data processing method shown in the first aspect or the second aspect shown above is executed.
基于上述技术方案,本发明实施例提供的数据处理方法中,第一应用客户端在第一用户完成应用事件时,可以获取第一用户完成所述应用事件的完成证据,该完成证据可以表示第一用户完成了应用事件,并能够获得到该应用事件所奖励的虚拟对象数据,即所述完成证据包括:所述第一用户完成所述应用事件的完成记录,以及所述应用事件关联的虚拟对象数据;从而第一应用客户端可根据所述完成证据,生成与所奖励的虚拟对象数据对应的数据区块,并在所述数据区块中携带所述完成记录,及指示所述虚拟对象数据的指示信息;进而第一应用客户端可为所述数据区块添加所述第一用户对应的签名信息,再将添加有所述签名信息的数据区块广播到区块链网络,以便区块链网络中的应用客户端验证所述数据区块的有效性,以区块链技术实现虚拟对象的生成。Based on the foregoing technical solution, in the data processing method provided by the embodiment of the present invention, when the first user completes the application event, the first application client may obtain the completion evidence of the first user completing the application event, and the completion evidence may indicate A user completes an application event and can obtain virtual object data that is rewarded by the application event, that is, the completion evidence includes: the first user completes the completion record of the application event, and the virtual associated with the application event Object data; thus, the first application client may generate a data block corresponding to the rewarded virtual object data according to the completion evidence, and carry the completion record in the data block, and indicate the virtual object The indication information of the data; the first application client may add the signature information corresponding to the first user to the data block, and then broadcast the data block to which the signature information is added to the blockchain network, so as to The application client in the blockchain network verifies the validity of the data block, and implements the virtual object by the blockchain technology. .
本发明实施例提供的数据处理方法,可根据区块链技术实现虚拟对象的生成,虚拟对象的生成由用户完成应用事件的行为决定,并以用户完成应用事件所获取的第一用户完成所述应用事件的完成证据,在应用客户端本地实现应用事件关联的虚拟对象数据对应的数据区块的挖掘;在本发明实施例中,运营服 务器不再管理虚拟对象的生成,虚拟对象在应用客户端通过数据区块的形式生成和表现,极大的降低了服务器的资源开销;同时,数据区块可分布式的存储在区块链网络的应用客户端中,有效避免了运营服务器被入侵或故障,所造成的用户资产损失,极大的提高了虚拟对象处理的可靠性。The data processing method provided by the embodiment of the present invention can implement the generation of the virtual object according to the blockchain technology, and the generation of the virtual object is determined by the behavior of the user completing the application event, and the first user obtained by the user completing the application event completes the In the embodiment of the present invention, the operation server no longer manages the generation of the virtual object, and the virtual object is in the application client, and the application server directly implements the mining of the data block corresponding to the virtual object data associated with the application event. The generation and performance of data blocks greatly reduces the resource overhead of the server. At the same time, the data blocks can be distributed and stored in the application client of the blockchain network, effectively avoiding the intrusion or failure of the operation server. The resulting loss of user assets greatly improves the reliability of virtual object processing.
附图说明DRAWINGS
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据提供的附图获得其他的附图。In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the embodiments or the description of the prior art will be briefly described below. Obviously, the drawings in the following description are only It is an embodiment of the present invention, and those skilled in the art can obtain other drawings according to the provided drawings without any creative work.
图1为本发明实施例提供的数据处理系统的架构示意图;1 is a schematic structural diagram of a data processing system according to an embodiment of the present invention;
图2为本发明实施例提供的数据处理方法的流程图;2 is a flowchart of a data processing method according to an embodiment of the present invention;
图3为本发明实施例提供的获取完成证据的方法流程图;FIG. 3 is a flowchart of a method for obtaining completion evidence according to an embodiment of the present invention;
图4为本发明实施例提供的数据处理方法的信令流程图;4 is a signaling flowchart of a data processing method according to an embodiment of the present invention;
图5为本发明实施例提供的数据处理系统的另一架构示意图;FIG. 5 is a schematic structural diagram of another data processing system according to an embodiment of the present disclosure;
图6为本发明实施例提供的数据处理方法的另一流程图;FIG. 6 is another flowchart of a data processing method according to an embodiment of the present invention;
图7为主数据区块的生成示意图;Figure 7 is a schematic diagram of generation of a main data block;
图8为本发明实施例提供的数据处理方法的再一流程图;FIG. 8 is still another flowchart of a data processing method according to an embodiment of the present invention;
图9为侧数据区块的生成示意图;9 is a schematic diagram of generating a side data block;
图10为本发明实施例提供的数据处理方法的又一流程图;FIG. 10 is still another flowchart of a data processing method according to an embodiment of the present invention;
图11为本发明实施例提供的应用客户端的结构框图;FIG. 11 is a structural block diagram of an application client according to an embodiment of the present invention;
图12为本发明实施例提供的应用客户端的另一结构框图;FIG. 12 is another structural block diagram of an application client according to an embodiment of the present invention;
图13为本发明实施例提供的应用客户端的再一结构框图;FIG. 13 is a structural block diagram of an application client according to an embodiment of the present invention;
图14为本发明实施例提供的应用客户端的又一结构框图;FIG. 14 is still another structural block diagram of an application client according to an embodiment of the present invention;
图15为本发明实施例提供的用户设备的一结构示意图。FIG. 15 is a schematic structural diagram of a user equipment according to an embodiment of the present invention.
具体实施方式detailed description
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是 全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
本发明实施例提供的数据处理方法,主要基于区块链(Blockchain或Block chain)技术实现虚拟对象的生成、交易等处理;需要说明的是,区块链是一种分布式数据库,区块链是一串使用密码学方法相关联产生的数据区块,区块链并非存储于网络的某一具体位置,而是由接入区块链网络的每一个客户端分布式存储,通常,每个客户端只存储与自己相关的数据区块,以及每个数据区块之间的链式可验证信息;The data processing method provided by the embodiment of the present invention mainly implements processing of generating and processing virtual objects based on a blockchain (Blockchain or Block Chain) technology; it should be noted that the blockchain is a distributed database and a blockchain. Is a string of data blocks generated by cryptography, the blockchain is not stored in a specific location of the network, but is distributed by each client accessing the blockchain network, usually, each The client only stores the data blocks associated with itself, and the chain verifiable information between each data block;
上文描述的了区块链的含义,本发明实施例应用区块链技术实现虚拟对象的生成、交易等处理时,并不是直接将现有的区块链技术进行复制,而是基于网络应用的特性和系统架构,进行了相应的手段适配改进,本实施例对所述网络应用的具体应用类型不做限定,例如所述网络应用可为与游戏相关的应用,与信息交互相关的应用等。The meaning of the blockchain is described above. When the blockchain technology is applied to implement virtual object generation and transaction processing, the existing blockchain technology is not directly copied, but is based on the network application. The characteristics and system architecture are improved by corresponding means. The specific application type of the network application is not limited in this embodiment. For example, the network application may be a game-related application, and an information-related application. Wait.
即本发明实施例是通过应用区块链技术,在游戏等类型的网络应用中实现虚拟对象的处理,而不是直接在游戏等类型的网络应用中进行区块链技术的复制。That is, the embodiment of the present invention implements the processing of the virtual object in a network application such as a game by applying the blockchain technology, instead of directly copying the blockchain technology in a network application such as a game.
可选的,图1示出了本发明实施例提供的数据处理系统的架构示意图,参照图1,该数据处理系统可以包括:多个应用客户端10,运营服务器20,应用服务器30,数据库40;Optionally, FIG. 1 is a schematic structural diagram of a data processing system according to an embodiment of the present invention. Referring to FIG. 1, the data processing system may include: multiple application clients 10, an operation server 20, an application server 30, and a database 40. ;
其中,应用客户端10可以设置于智能手机、平板电脑、笔记本电脑等用户设备上,为游戏等网络应用提供本地服务,一个应用客户端一般对应一个用户(即一个应用客户端一般由一个用户操作);应用客户端如游戏客户端;The application client 10 can be set on a user device such as a smart phone, a tablet computer, or a laptop computer to provide a local service for a web application such as a game. An application client generally corresponds to one user (ie, an application client is generally operated by one user). ); application client such as game client;
运营服务器20在本发明实施例中不再负责虚拟对象的生成、交易等处理,但保留了对应用内容的修改,应用事件的发布等能力,从而使得游戏等网络应用的网络虚拟世界生态能够弹性化、持久化运行;运营服务器如游戏运营服务器;The operation server 20 is no longer responsible for the generation, transaction, and the like of the virtual object in the embodiment of the present invention, but retains the modification of the application content, the release of the application event, and the like, thereby enabling the network virtual world ecology of the network application such as the game to be flexible. And persistent operation; operating servers such as game operation servers;
应用服务器30可以由单独的服务器实现,也可以由多台服务器组成的服务器群组实现,可以为游戏等网络应用提供网络服务;应用服务器如游戏服务 器;The application server 30 may be implemented by a separate server, or may be implemented by a server group composed of a plurality of servers, and may provide network services for network applications such as games; an application server such as a game server;
数据库40为存储用户数据的网络数据库,在本发明实施例中,数据库40可存储各个用户的状态数据,而不再存储用户的虚拟对象数据。其中,用户的虚拟对象数据是指,一用户具有的各类型虚拟对象的数量,比如具有的虚拟货币数量,具有的各个类型的虚拟物品的数量等。The database 40 is a network database for storing user data. In the embodiment of the present invention, the database 40 can store state data of each user without storing the virtual object data of the user. The virtual object data of the user refers to the number of virtual objects of various types that a user has, such as the number of virtual currencies possessed, the number of virtual items of each type, and the like.
本实施例以网络应用为游戏网络应用为例,数据库如游戏数据库,游戏数据库可以存储各个游戏玩家的状态数据(比如游戏玩家等级、属性等),而游戏玩家所拥有的游戏货币、游戏道具等虚拟对象数据不再在游戏数据库中存储;数据库可以被运营服务器和应用服务器所读写;In this embodiment, the network application is used as a game network application. The database is a game database. The game database can store state data of each game player (such as game player level, attributes, etc.), and the game currency, game props, etc. owned by the game player. The virtual object data is no longer stored in the game database; the database can be read and written by the operation server and the application server;
在本发明实施例中,多个应用客户端作为区块链网络的接入节点,多个应用客户端可支撑起区块链网络,且用户的虚拟对象数据以数据区块的形式,在区块链网络中分布式存储,各个应用客户端一般只存储自身用户的虚拟对象数据相应的数据区块。In the embodiment of the present invention, multiple application clients are used as access nodes of the blockchain network, and multiple application clients can support the blockchain network, and the virtual object data of the user is in the form of data blocks. Distributed storage in a blockchain network, each application client generally only stores the corresponding data block of the virtual object data of its own user.
基于图1所示数据处理系统,以虚拟对象的生成为例,下面站在第一应用客户端的角度,对本发明实施例提供的数据处理方法进行介绍,第一应用客户端可以是图1所示数据处理系统中任一需生成虚拟对象的应用客户端,第一应用客户端可由第一用户所操作;Based on the data processing system shown in FIG. 1 , the data processing method provided by the embodiment of the present invention is introduced from the perspective of the first application client, and the first application client may be as shown in FIG. 1 . Any application client in the data processing system that needs to generate a virtual object, and the first application client can be operated by the first user;
图2为本发明实施例提供的数据处理方法的流程图,该方法可应用于第一应用客户端,参照图2,该方法可以包括:2 is a flowchart of a data processing method according to an embodiment of the present invention. The method is applicable to a first application client. Referring to FIG. 2, the method may include:
步骤S100、第一应用客户端在第一用户完成应用事件时,获取第一用户完成所述应用事件的完成证据;所述完成证据包括:所述第一用户完成所述应用事件的完成记录,以及所述应用事件关联的虚拟对象数据。In step S100, the first application client obtains the completion evidence of the first user completing the application event when the first user completes the application event; the completion evidence includes: the first user completes the completion record of the application event, And virtual object data associated with the application event.
应用事件如应用任务等设定的关联有奖励的虚拟对象的事件,应用事件的完成进度受用户的应用行为影响;应用事件的具体类型以及关联奖励的虚拟对象数据可以根据运营等实际情况设定;The application event, such as an application task, is associated with an event of a rewarded virtual object, and the completion progress of the application event is affected by the application behavior of the user; the specific type of the application event and the virtual object data of the associated reward may be set according to actual conditions such as operation. ;
以游戏网络应用为例,应用事件可以如游戏任务,游戏任务关联有奖励的游戏货币,且在游戏任务完成时,所关联的游戏货币可奖励给完成游戏任务的 用户;用户可以通过游戏客户端控制游戏行为,以逐步的完成游戏任务;相应的,应用事件完成可以如,游戏客户端在用户的游戏行为的影响下,完成了游戏任务,击杀了游戏怪物等。Taking the game web application as an example, the application event may be a game task, the game task is associated with the rewarded game currency, and when the game task is completed, the associated game currency may be awarded to the user who completed the game task; the user may pass the game client Control the behavior of the game to gradually complete the game task; correspondingly, the application event can be completed, for example, the game client completes the game task and kills the game monster under the influence of the user's game behavior.
第一应用客户端在第一用户完成应用事件后,可以获取到第一用户完成所述应用事件的完成证据,以便于后续基于第一用户完成所述应用事件的完成证据,进行数据区块的生成;第一用户完成所述应用事件的完成证据可以表示第一用户完成了该应用事件,并能够获得到该应用事件所关联奖励的虚拟对象;具体的,第一用户完成所述应用事件的完成证据可以包括:所述第一用户完成所述应用事件的完成记录,以及所述应用事件关联的虚拟对象数据;After the first user completes the application event, the first application client may obtain the completion evidence of the first user completing the application event, so as to perform the data block based on the completion evidence of the application event by the first user. Generating; completing the evidence that the first user completes the application event may indicate that the first user completes the application event and can obtain a virtual object that is associated with the reward of the application event; specifically, the first user completes the application event Completing the evidence may include: completing, by the first user, a completion record of the application event, and virtual object data associated with the application event;
可选的,第一用户完成所述应用事件的完成记录可以包括:第一用户完成应用事件的行为记录和/或结果记录;即本发明实施例可以通过第一用户完成应用事件的过程所对应的行为记录,或者,第一用户完成应用事件的结果记录的形式表示所述完成记录;第一用户完成应用事件的完成记录可以由第一应用客户端自确定,也可以由应用服务器确定后下发至第一应用客户端。Optionally, the completing, by the first user, the completion record of the application event may include: the first user completing the behavior record and/or the result record of the application event; that is, the embodiment of the present invention may be corresponding to the process of completing the application event by the first user. The behavior record, or the form of the result record of the first user completing the application event represents the completion record; the completion record of the first user completing the application event may be determined by the first application client, or may be determined by the application server. Send to the first application client.
应用事件关联的虚拟对象数据,可以表示应用事件关联奖励的虚拟对象,如表示了第一用户完成应用事件时,所需奖励给第一用户的虚拟对象类型及数量,即虚拟对象数据可以描述了应用事件关联的虚拟对象的类型和数量(比如完成一个应用事件,可以是奖励一定数量的虚拟货币,和/或,一定数量的虚拟物品等);The virtual object data associated with the application event may represent a virtual object of the application event association reward, such as indicating the type and quantity of the virtual object required to be awarded to the first user when the first user completes the application event, that is, the virtual object data may describe The type and number of virtual objects associated with the application event (such as completing an application event, which may be rewarding a certain amount of virtual currency, and/or a certain number of virtual items, etc.);
可选的,应用事件关联的虚拟对象数据可以根据运营等实际情况设定。Optionally, the virtual object data associated with the application event may be set according to actual conditions such as operations.
可选的,第一应用客户端可以通过应用事件配置文件(以应用事件为任务为例,应用事件配置文件如任务配置文件等),确定应用事件关联的虚拟对象数据;应用事件配置文件可以记录有应用事件的完成要求,完成奖励(完成奖励中可以携带关联的虚拟对象数据)等;该应用事件配置文件可以存储在第一应用客户端本地,也可以是第一应用客户端在与应用服务器交互领取需完成的应用事件时获取;Optionally, the first application client may determine the virtual object data associated with the application event by applying an event configuration file (using an application event as an example, applying an event configuration file, such as a task configuration file, etc.); the application event configuration file may record There is a completion requirement of the application event, a completion reward (the associated virtual object data may be carried in the completion reward), and the like; the application event configuration file may be stored locally in the first application client, or may be the first application client in the application server. Obtained when receiving an application event that needs to be completed interactively;
可选的,在第一用户完成应用事件后,第一应用客户端可以向应用服务器发送第一用户完成应用事件的通知,应用服务器可以根据第一用户的选择,或 者随机,或者根据应用事件设定关联的虚拟对象数据,确定所述应用事件关联的虚拟对象数据,然后通知给第一应用客户端,以使得第一应用客户端确定所述应用事件关联的虚拟对象数据。Optionally, after the first user completes the application event, the first application client may send a notification that the first user completes the application event to the application server, and the application server may be configured according to the first user, or randomly, or according to the application event. Determining the associated virtual object data, determining the virtual object data associated with the application event, and then notifying the first application client, so that the first application client determines the virtual object data associated with the application event.
步骤S110、第一应用客户端根据所述完成证据,生成所述虚拟对象数据对应的数据区块,并在所述数据区块中携带所述完成记录,及指示所述虚拟对象数据的指示信息。Step S110: The first application client generates a data block corresponding to the virtual object data according to the completion evidence, and carries the completion record in the data block, and indicates indication information of the virtual object data. .
可选的,一个数据区块可以对应任意类型及任意数量的虚拟对象,如一个数据区块可以对应任意数量的虚拟货币;Optionally, one data block can correspond to any type and any number of virtual objects, for example, one data block can correspond to any number of virtual currencies;
第一应用客户端在获取到第一用户完成所述应用事件的完成证据后,所述完成证据作为数据区块生成的零知识证明,可以触发第一应用客户端生成数据区块;但所生成的数据区块应与所述虚拟对象数据对应(即所生成的数据区块对应的虚拟对象的类型及数量,可以与所述应用事件关联的虚拟对象数据相应),即虽然数据区块可以对应任意类型及任意数量的虚拟对象,但第一应用客户端在正常处理逻辑下,只能生成与完成应用事件所奖励的虚拟对象数据对应的数据区块;After the first application client obtains the completion evidence of the application event, the completion evidence is used as the zero-knowledge proof generated by the data block, and the first application client may be triggered to generate the data block; The data block should correspond to the virtual object data (ie, the type and number of virtual objects corresponding to the generated data block, corresponding to the virtual object data associated with the application event), that is, although the data block can correspond to Any type and any number of virtual objects, but the first application client can only generate data blocks corresponding to the virtual object data rewarded by the completion of the application event under the normal processing logic;
数据区块的生成方式可以包括对于先前数据区块的散列,以及散列树的构造等过程,对于如何生成数据区块,本发明实施例可以应用任意的可生成数据区块的技术;但为便于后续验证所生成的数据区块的有效性,所生成的数据区块中应携带第一用户完成应用事件的完成记录,及指示应用事件关联的虚拟对象数据的指示信息,以便其他应用客户端可验证该数据区块。The manner of generating the data block may include a process for the hash of the previous data block, and the construction of the hash tree. For how to generate the data block, the embodiment of the present invention may apply any technology that can generate the data block; In order to facilitate the subsequent verification of the validity of the generated data block, the generated data block should carry the completion record of the first user completing the application event, and the indication information indicating the virtual object data associated with the application event, so as to be used by other application clients. The end can verify the data block.
可选的,指示虚拟对象数据的指示信息可以是虚拟对象数据本身,也可以是虚拟对象数据的一个对应标识,该对应标识能够匹配出所述虚拟对象数据。Optionally, the indication information indicating the virtual object data may be the virtual object data itself, or may be a corresponding identifier of the virtual object data, and the corresponding identifier can match the virtual object data.
步骤S120、第一应用客户端为所述数据区块添加所述第一用户的签名信息。Step S120: The first application client adds signature information of the first user to the data block.
所述第一用户对应的签名信息可以唯一标识第一用户,可以认为是所述第一用户的身份标识,通过为所生成的数据区块添加所述第一用户对应的签名信息,可以使得所生成的数据区块添加上所述第一用户的标签。The signature information corresponding to the first user may uniquely identify the first user, and may be regarded as the identity identifier of the first user, by adding the signature information corresponding to the first user to the generated data block, The generated data block is added to the label of the first user.
步骤S130、第一应用客户端将添加有所述签名信息的数据区块广播到区 块链网络;所述区块链网络接入有多个应用客户端。Step S130: The first application client broadcasts the data block to which the signature information is added to the blockchain network; the blockchain network accesses multiple application clients.
应用客户端作为区块链网络的接入节点,多个应用客户端可以构成区块链网络;第一应用客户端生成数据区块后,可将数据区块添加到区块链中,且数据区块的有效性,需要区块链网络中的其他应用客户端认可,因此第一应用客户端在生成数据区块后,需要广播到区块链网络中,由其他应用客户端对数据区块的有效性进行验证。The application client is used as an access node of the blockchain network, and multiple application clients may form a blockchain network; after the first application client generates the data block, the data block may be added to the blockchain, and the data is The validity of the block needs to be recognized by other application clients in the blockchain network. Therefore, after the first application client generates the data block, it needs to be broadcasted to the blockchain network, and the data block is used by other application clients. Validity is verified.
本发明实施例提供的数据处理方法中,第一应用客户端在第一用户完成应用事件时,可以获取第一用户完成所述应用事件的完成证据,该完成证据可以表示第一用户完成了应用事件,并能够获得到该应用事件所奖励的虚拟对象数据,即所述完成证据包括:所述第一用户完成所述应用事件的完成记录,以及所述应用事件关联的虚拟对象数据;从而第一应用客户端可根据所述完成证据,生成与所奖励的虚拟对象数据对应的数据区块,并在所述数据区块中携带所述完成记录,及指示所述虚拟对象数据的指示信息;进而第一应用客户端可为所述数据区块添加所述第一用户对应的签名信息,再将添加有所述签名信息的数据区块广播到区块链网络,以便区块链网络中的应用客户端验证所述数据区块的有效性,以区块链技术实现虚拟对象的生成。In the data processing method provided by the embodiment of the present invention, when the first user completes the application event, the first application client may obtain the completion evidence of the first user completing the application event, and the completion evidence may indicate that the first user completes the application. The event, and the virtual object data that is rewarded by the application event, that is, the completion evidence includes: the first user completes the completion record of the application event, and the virtual object data associated with the application event; An application client may generate a data block corresponding to the rewarded virtual object data according to the completion evidence, and carry the completion record and the indication information indicating the virtual object data in the data block; The first application client may add the signature information corresponding to the first user to the data block, and then broadcast the data block to which the signature information is added to the blockchain network, so as to be in the blockchain network. The application client verifies the validity of the data block, and implements the virtual object generation by the blockchain technology.
本发明实施例提供的数据处理方法,可根据区块链技术实现虚拟对象的生成,虚拟对象的生成由用户完成应用事件的行为决定,并以用户完成应用事件所获取的第一用户完成所述应用事件的完成证据,在应用客户端本地实现应用事件关联的虚拟对象数据对应的数据区块的挖掘;在本发明实施例中,运营服务器不再管理虚拟对象的生成,虚拟对象在应用客户端通过数据区块的形式生成和表现,极大的降低了服务器的资源开销;同时,数据区块可分布式的存储在区块链网络的应用客户端中,有效避免了运营服务器被入侵或故障,所造成的用户资产损失,极大的提高了虚拟对象处理的可靠性。The data processing method provided by the embodiment of the present invention can implement the generation of the virtual object according to the blockchain technology, and the generation of the virtual object is determined by the behavior of the user completing the application event, and the first user obtained by the user completing the application event completes the In the embodiment of the present invention, the operation server no longer manages the generation of the virtual object, and the virtual object is in the application client, and the application server directly implements the mining of the data block corresponding to the virtual object data associated with the application event. The generation and performance of data blocks greatly reduces the resource overhead of the server. At the same time, the data blocks can be distributed and stored in the application client of the blockchain network, effectively avoiding the intrusion or failure of the operation server. The resulting loss of user assets greatly improves the reliability of virtual object processing.
本发明实施例提供的数据处理方法中,虚拟对象的生成(如新的虚拟货币、新的虚拟物品的生成),由用户完成应用事件的行为触发;第一应用客户端或者应用服务器可通过内置的应用事件完成判断逻辑,判断第一用户是否完成应用事件并得到所奖励的虚拟对象,从而在第一用户完成应用事件时,第一应用 客户端可获取到后续触发数据区块生成的第一用户完成所述应用事件的完成证据,该完成证据包括:所述第一用户完成所述应用事件的完成记录,以及所述应用事件关联的虚拟对象数据;In the data processing method provided by the embodiment of the present invention, the generation of the virtual object (such as the generation of a new virtual currency and a new virtual item) is triggered by the user completing the behavior of the application event; the first application client or the application server may be built in The application event completion judgment logic determines whether the first user completes the application event and obtains the rewarded virtual object, so that when the first user completes the application event, the first application client can obtain the first generation of the subsequent trigger data block generation. The user completes the completion evidence of the application event, and the completion evidence includes: the first user completes the completion record of the application event, and the virtual object data associated with the application event;
即第一用户完成所述应用事件的完成证据可以表示第一用户完成应用事件并获得相应虚拟对象奖励的证据;可选的,第一用户完成所述应用事件的完成记录可以包含:第一用户完成应用事件的行为记录和/或结果记录;That is, the completion of the completion of the application event by the first user may indicate that the first user completes the application event and obtains evidence of the corresponding virtual object reward; optionally, the completion record of the first user completing the application event may include: the first user Complete the behavior record and/or result record of the application event;
第一用户完成应用事件的行为记录可以是,所记录的第一用户完成应用事件过程中对应的行为记录(即可通过第一用户完成应用事件过程中对应的行为,来表示第一用户完成应用事件的结果);比如第一用户击杀游戏怪物的行为记录等,该行为记录可以由第一应用客户端自确定,也可以是应用服务器确定后下发给第一应用客户端;The behavior record of the first user completing the application event may be that the recorded first user completes the corresponding behavior record in the process of the application event (that is, the first user completes the corresponding behavior in the application event process to indicate that the first user completes the application. The result of the event; for example, the behavior record of the first user killing the game monster, etc., the behavior record may be determined by the first application client, or may be sent by the application server to the first application client;
第一用户完成应用事件的结果记录可以是,所记录的第一用户完成应用事件的结果状态;比如第一用户回答的某一题目的答案,击杀游戏怪物的结果等;该结果记录可由第一应用客户端自确定,也可以是应用服务器确定后下发给第一应用客户端。The result record of the first user completing the application event may be the recorded result state of the first user completing the application event; for example, the answer of a certain question answered by the first user, the result of killing the game monster, etc.; the result record may be An application client determines itself, and may also be sent to the first application client after the application server determines.
可选的,第一用户完成所述应用事件的完成记录还可以包含:应用事件的描述内容;应用事件的描述内容可以由应用服务器下发至第一应用客户端;如可以是在第一应用客户端领取应用事件时,第一应用客户端可从应用服务器获取所述描述内容;以应用事件为应用任务为例,应用事件的描述内容如任务内容介绍等。Optionally, the completion record of the first user to complete the application event may further include: a description content of the application event; the description content of the application event may be delivered by the application server to the first application client; When the client receives the application event, the first application client may obtain the description content from the application server; taking the application event as an application task as an example, and the description content of the application event, such as the task content introduction.
可选的,图3示出了获取第一用户完成所述应用事件的完成证据的可选方法流程图,该方法可应用于第一应用客户端,参照图3,该方法可以包括:Optionally, FIG. 3 is a flowchart of an optional method for obtaining completion evidence of the first user completing the application event, where the method is applicable to the first application client. Referring to FIG. 3, the method may include:
步骤S200、第一应用客户端在第一用户完成应用事件时,获取所述应用事件关联的虚拟对象数据。Step S200: The first application client acquires virtual object data associated with the application event when the first user completes the application event.
应用事件关联的虚拟对象数据可以是预设定的,也可能是用户选择的,或者应用服务器随机确定的,具体可以根据应用事件设定的虚拟对象奖励规则确定;如在第一用户完成应用事件时,应用服务器可通知第一应用客户端,完成 应用事件对应奖励的虚拟对象数据。The virtual object data associated with the application event may be pre-set, or may be selected by the user, or randomly determined by the application server, and may be determined according to the virtual object reward rule set by the application event; for example, the application event is completed in the first user. The application server may notify the first application client to complete the virtual object data corresponding to the reward of the application event.
可选的,第一应用客户端还可以获取所述应用事件的描述内容;Optionally, the first application client may further obtain the description content of the application event;
可选的,应用事件的描述内容可能是第一应用客户端在领取应用事件(如第一用户领取游戏任务)时获得,以应用事件为应用任务为例,第一用户可通过第一应用客户端刷新应用任务并进行领取,从而获取到应用服务器下发的应用事件的描述内容。Optionally, the description content of the application event may be obtained by the first application client when the application event is received (for example, the first user receives the game task), and the application event is an application task, and the first user may use the first application client. The application refreshes the application task and collects it, so as to obtain the description content of the application event delivered by the application server.
可选的,对于一些非任务性质的应用事件,比如击杀怪物等,第一应用客户端可以在第一用户完成应用事件时(如击杀怪物时),获取应用服务器下发的应用事件的描述内容;显然,对于任务性质的应用事件,也可以是在第一应用客户端完成应用事件时,获取应用服务器下发的应用事件的描述内容;Optionally, for some non-task application events, such as killing a monster, the first application client may obtain an application event delivered by the application server when the first user completes the application event (such as killing the monster). Descriptive content; obviously, for the application event of the nature of the task, the description content of the application event delivered by the application server may be obtained when the first application client completes the application event;
应用事件的描述内容是由第一应用客户端自确定,还是由应用服务器下发,可使实际的应用设计而定。The content of the application event is determined by the first application client or by the application server, which can be determined by the actual application design.
可选的,在一种实现方式下,第一应用客户端可在第一用户完成应用事件时,向服务器发送第一用户完成应用事件的通知,从而应用服务器可确定应用事件关联的虚拟对象数据,应用服务器将所述应用事件关联的虚拟对象数据发送给第一应用客户端;Optionally, in an implementation manner, the first application client may send a notification that the first user completes the application event to the server when the first user completes the application event, so that the application server may determine the virtual object data associated with the application event. Sending, by the application server, the virtual object data associated with the application event to the first application client;
可选的,应用服务器还可同时的确定应用事件的描述内容,将应用事件的描述内容同时的发送给第一应用客户端。Optionally, the application server may also determine the description content of the application event at the same time, and send the description content of the application event to the first application client at the same time.
步骤S210、获取第一用户完成应用事件的行为记录和/或结果记录。Step S210: Acquire a behavior record and/or a result record of the first user completing the application event.
步骤S220、根据所述应用事件关联的虚拟对象数据,及,所述行为记录和/或结果记录,确定第一用户完成所述应用事件的完成证据。Step S220: Determine, according to the virtual object data associated with the application event, and the behavior record and/or the result record, the completion evidence of the first user completing the application event.
可选的,所述完成证据还可以包含应用事件的描述内容;即可根据应用事件的描述内容,所述应用事件关联的虚拟对象数据,及,所述行为记录和/或结果记录,确定第一用户完成所述应用事件的完成证据。Optionally, the completion evidence may further include a description content of the application event; and the virtual object data associated with the application event, and the behavior record and/or result record may be determined according to the description content of the application event. A user completes the completion evidence of the application event.
后续,第一应用客户端将数据区块广播到区块链网络后,区块链网络中的其他应用客户端可直接基于数据区块中携带的完成记录(完成记录可以由第一用户完成应用事件的行为记录和/或结果记录;或者,应用事件的描述内容,及该行为记录和/或结果记录构成),以及应用事件关联的虚拟对象数据,验证 数据区块的有效性,防止数据区块的伪造和篡改,而不需要第一应用客户端向区块链网络中的其他应用客户端提供其他信息,来验证数据区块的有效性。Subsequently, after the first application client broadcasts the data block to the blockchain network, other application clients in the blockchain network can directly complete the record based on the data block (the completion record can be completed by the first user) The behavior record and/or result record of the event; or, the description content of the application event, and the behavior record and/or result record composition, and the virtual object data associated with the application event, verify the validity of the data block, and prevent the data area Block forgery and tampering without requiring the first application client to provide additional information to other application clients in the blockchain network to verify the validity of the data block.
可选的,第一应用客户端生成数据区块后,可通过区块链网络的自动广播机制进行数据区块的广播,如可先由生成数据区块的第一应用客户端进行广播,再通过其他应用客户端的广播,逐渐扩散到整个区块链网络中。Optionally, after the first application client generates the data block, the data block can be broadcasted through an automatic broadcast mechanism of the blockchain network, for example, the first application client that generates the data block can be broadcasted first, and then Through the broadcast of other application clients, it gradually spreads to the entire blockchain network.
可选的,区块链网络中的一应用客户端可验证另一应用客户端发送至区块链网络的数据区块是否有效;验证方式可以是获取数据区块后,解析数据区块中携带的完成记录,根据应用事件处理逻辑,判断使用所述完成记录是否可完成应用事件,若判断使用所述完成记录可完成应用事件,则判断应用事件的完成奖励,是否与所述虚拟对象数据对应,若应用事件的完成奖励与所述虚拟对象数据对应,则确定数据区块验证有效;若这个过程中存在任意一个判断结果为否,则可确定数据区块无效;Optionally, an application client in the blockchain network can verify whether the data block sent by the other application client to the blockchain network is valid; the verification manner may be: after the data block is obtained, the parsing data block carries Completing the record, determining whether the application event can be completed using the completion record according to the application event processing logic, and determining whether the application event is completed using the completion record, determining whether the completion reward of the application event corresponds to the virtual object data If the completion reward of the application event corresponds to the virtual object data, it is determined that the data block verification is valid; if any one of the determination results in the process is negative, the data block may be determined to be invalid;
即区块链网络中的一应用客户端获取到另一应用客户端发送至区块链网络的数据区块后,可通过数据区块中携带的应用事件的完成记录,根据应用事件处理逻辑,以所述完成记录模拟应用事件的完成过程,如果模拟结果为所述完成记录能够完成应用事件,且应用事件的完成奖励与数据区块中携带的虚拟对象数据对应,则可确定数据区块验证有效。That is, after an application client in the blockchain network obtains a data block sent by another application client to the blockchain network, the completion event record of the application event carried in the data block may be processed according to the application event processing logic. The completion process of simulating the application application event is completed, and if the simulation result is that the completion event can complete the application event, and the completion reward of the application event corresponds to the virtual object data carried in the data block, the data block verification may be determined. effective.
可选的,图4示出了本发明实施例提供的数据处理方法的信令流程,该流程可以包括:Optionally, FIG. 4 is a signaling flow of a data processing method provided by an embodiment of the present invention, where the process may include:
步骤S10、第一应用客户端在第一用户完成应用事件时,向应用服务器发送第一用户完成应用事件的通知。Step S10: The first application client sends a notification that the first user completes the application event to the application server when the first user completes the application event.
步骤S11、应用服务器确定所述应用事件关联的虚拟对象数据,并生成与所述应用事件相对应的一对公钥和私钥。Step S11: The application server determines virtual object data associated with the application event, and generates a pair of public and private keys corresponding to the application event.
步骤S12、应用服务器将所述应用事件关联的虚拟对象数据,和所述私钥下发至第一应用客户端。Step S12: The application server delivers the virtual object data associated with the application event and the private key to the first application client.
步骤S13、第一应用客户端获取第一用户完成应用事件的行为记录和/或结果记录。Step S13: The first application client obtains a behavior record and/or a result record of the first user completing the application event.
可选的,第一用户完成应用事件的行为记录和/或结果记录可以同步携带在步骤S12应用服务器所下发的内容中,也可以第一应用客户端自确定。Optionally, the behavior record and/or the result record of the first user completing the application event may be synchronously carried in the content sent by the application server in step S12, or may be determined by the first application client.
步骤S14、第一应用客户端将所述行为记录和/或结果记录使用所述私钥进行签名。Step S14: The first application client signs the behavior record and/or the result record using the private key.
步骤S15、第一应用客户端根据所述虚拟对象数据,及,使用所述私钥签名的所述行为记录和/或结果记录,确定第一用户完成所述应用事件的完成证据。Step S15: The first application client determines, according to the virtual object data, the behavior record and/or the result record signed by the private key, that the first user completes the completion evidence of the application event.
可选的,应用服务器还可以确定应用事件的描述内容并下发给第一应用客户端,从而第一应用客户端可根据应用事件的描述内容,所述虚拟对象数据,及,使用所述私钥签名的所述行为记录和/或结果记录,确定第一用户完成所述应用事件的完成证据。Optionally, the application server may further determine the description content of the application event and send it to the first application client, so that the first application client may use the description content of the application event, the virtual object data, and use the private The behavior record and/or result record of the key signature determines the completion evidence of the first user completing the application event.
步骤S16、第一应用客户端根据所述完成证据,生成所述虚拟对象数据对应的数据区块,并在所述数据区块中携带所述使用所述私钥签名的所述行为记录和/或结果记录,及指示所述虚拟对象数据的指示信息。Step S16: The first application client generates a data block corresponding to the virtual object data according to the completion evidence, and carries the behavior record signed by the private key in the data block and/ Or a result record, and indication information indicating the virtual object data.
可选的,所述数据区块中还可携带应用事件的描述内容。Optionally, the data block may further carry a description content of the application event.
步骤S17、第一应用客户端为所述数据区块添加所述第一用户对应的签名信息。Step S17: The first application client adds signature information corresponding to the first user to the data block.
步骤S18、第一应用客户端将添加有所述签名信息的数据区块广播到区块链网络。Step S18: The first application client broadcasts the data block to which the signature information is added to the blockchain network.
步骤S19、第二应用客户端接收所述第一应用客户端广播到区块链网络的数据区块。Step S19: The second application client receives the data block that the first application client broadcasts to the blockchain network.
可选的,第二应用客户端可以是区块链网络中除第一应用客户端外的任一应用客户端,第二应用客户端可接收到第一应用客户端广播到区块链网络中数据区块;第二应用客户端可对应第二用户。Optionally, the second application client may be any application client except the first application client in the blockchain network, and the second application client may receive the first application client broadcast to the blockchain network. The data block; the second application client can correspond to the second user.
步骤S20、第二应用客户端解析所接收的数据区块,获取所述使用所述私钥签名的所述行为记录和/或结果记录,及指示所述虚拟对象数据的指示信息。Step S20: The second application client parses the received data block, acquires the behavior record and/or result record signed by the private key, and indicates indication information of the virtual object data.
可选的,第二应用客户端通过解析所接收的数据区块,还可能获取到应用事件的描述内容。Optionally, the second application client may obtain the description content of the application event by parsing the received data block.
步骤S21、第二应用客户端向应用服务器请求所述应用事件相应的公钥。Step S21: The second application client requests the application server for the public key corresponding to the application event.
步骤S22、应用服务器将与所述应用事件相应的公钥下发至所述第二应用客户端。Step S22: The application server delivers the public key corresponding to the application event to the second application client.
步骤S23、第二应用客户端使用所述公钥,解开使用所述私钥签名的行为记录和/或结果记录,得到第一用户完成应用事件的行为记录和/或结果记录。Step S23: The second application client uses the public key to unlock the behavior record and/or the result record signed by the private key, to obtain a behavior record and/or a result record of the first user completing the application event.
步骤S24、第二应用客户端根据所述行为记录和/或结果记录模拟应用事件的完成过程,如果模拟结果为所述行为记录和/或结果记录能够完成应用事件,且应用事件的完成奖励与所述虚拟对象数据对应,确定所述数据区块有效。Step S24: The second application client records the completion process of the simulated application event according to the behavior record and/or the result, and if the simulation result is that the behavior record and/or the result record can complete the application event, and the application event is completed and rewarded Corresponding to the virtual object data, determining that the data block is valid.
第二应用客户端解开使用私钥签名的行为记录和/或结果记录后,可以获得包含第一用户完成应用事件的过程对应的行为记录(如击杀游戏怪物需要的行为操作等),或完成应用事件的结果记录(如谜题的答案等);根据所得到的行为记录或结果记录,第二应用客户端可根据应用事件处理逻辑(如游戏逻辑)模拟所述行为记录和/或结果记录是否能够完成应用事件,并在模拟结果为是时,判断应用事件的完成奖励与所述虚拟对象数据是否对应,从而实现数据区块的验证。After the second application client unlocks the behavior record and/or the result record signed by the private key, the behavior record corresponding to the process of completing the application event by the first user (such as the behavior operation required to kill the game monster, etc.) may be obtained, or Completing a result record of the application event (such as an answer to a puzzle, etc.); based on the resulting behavior record or result record, the second application client can simulate the behavior record and/or result based on application event processing logic (eg, game logic) It is recorded whether the application event can be completed, and when the simulation result is YES, it is judged whether the completion reward of the application event corresponds to the virtual object data, thereby realizing verification of the data block.
可选的,如果所述行为记录和/或结果记录不能够完成应用事件,和/或,所述应用事件的完成奖励与所述虚拟对象数据不对应,则可确定所述数据区块无效。Optionally, if the behavior record and/or result record cannot complete the application event, and/or the completion reward of the application event does not correspond to the virtual object data, the data block may be determined to be invalid.
可选的,第二应用客户端验证该数据区块后,可将该数据区块进一步放入区块链网络中广播,以使更多的应用客户端对该数据区块进行验证;如果第二应用客户端验证该数据区块有效,则可将该数据区块加入到区块链;如果第二应用客户端验证该数据区块无效,则可丢弃该数据区块,无效的数据区块将不作为区块链的一部分,即未通过验证的无效数据区块会被区块链网络视作无效区块对待,其中表示的虚拟对象在游戏等网络应用中不具有实际作用,也无法通过交易进行流通。Optionally, after the second application client verifies the data block, the data block may be further broadcasted in the blockchain network, so that more application clients verify the data block; If the application client verifies that the data block is valid, the data block may be added to the blockchain; if the second application client verifies that the data block is invalid, the data block may be discarded, and the invalid data block is discarded. Will not be part of the blockchain, that is, the invalid data block that has not been verified will be treated as invalid block by the blockchain network. The virtual object represented in it does not have practical effect in network applications such as games, and cannot pass. The transaction is in circulation.
相应的,第一应用客户端也可验证第二应用客户端广播到区块链网络中的数据区块,第二应用客户端广播到区块链网络中的数据区块可以携带第二用户完成应用事件的完成记录,及指示第二用户完成的应用事件关联的虚拟对象数 据的指示信息,第一应用客户端验证数据区块的过程可与图4所示内容类似;具体可选过程可以为:Correspondingly, the first application client can also verify that the second application client broadcasts to the data block in the blockchain network, and the data block that the second application client broadcasts to the blockchain network can carry the second user to complete. The process of verifying the data block associated with the application event and the indication information of the virtual object data associated with the application event completed by the second user may be similar to the content shown in FIG. 4; the specific optional process may be :
第一应用客户端接收区块链网络中传播的数据区块;所述数据区块中携带有使用第二用户完成的应用事件对应的私钥,签名的第二用户完成应用事件的行为记录和/或结果记录,及指示第二用户完成的应用事件关联的虚拟对象数据的指示信息;The first application client receives the data block propagated in the blockchain network; the data block carries a private key corresponding to the application event completed by the second user, and the signed second user completes the behavior record of the application event and / or result record, and indication information indicating virtual object data associated with the application event completed by the second user;
第一应用客户端解析所接收的数据区块,获取该使用私钥签名的行为记录和/或结果记录,及指示该虚拟对象数据的指示信息;The first application client parses the received data block, obtains the behavior record and/or result record signed by the private key, and indicates the indication information of the virtual object data;
第一应用客户端向应用服务器请求第二用户完成的应用事件相应的公钥;The first application client requests the application server to correspond to the public key corresponding to the application event completed by the second user;
第一应用客户端使用所获取的公钥,解开使用该私钥签名的行为记录和/或结果记录,得到第二用户完成应用事件的行为记录和/或结果记录。The first application client uses the obtained public key to unlock the behavior record and/or the result record signed by the private key, and obtains the behavior record and/or result record of the second user completing the application event.
第一应用客户端根据所得到的行为记录和/或结果记录模拟应用事件的完成过程,根据模拟结果验证所接收的数据区块的有效性;The first application client records the completion process of the simulated application event according to the obtained behavior record and/or result, and verifies the validity of the received data block according to the simulation result;
一方面,如果模拟结果为所得到的行为记录和/或结果记录能够完成应用事件,且应用事件的完成奖励与该虚拟对象数据对应,确定该第二应用客户端广播到区块链网络的数据区块有效;In one aspect, if the simulation result is that the obtained behavior record and/or result record can complete the application event, and the completion reward of the application event corresponds to the virtual object data, determining the data that the second application client broadcasts to the blockchain network The block is valid;
另一方面,如果模拟结果为所得到的行为记录和/或结果记录不能够完成应用事件,和/或,应用事件的完成奖励与所述虚拟对象数据不对应,则可确定第二应用客户端广播到区块链网络的数据区块无效。On the other hand, if the simulation result is that the obtained behavior record and/or result record cannot complete the application event, and/or the completion reward of the application event does not correspond to the virtual object data, the second application client may be determined. The data block broadcast to the blockchain network is invalid.
可选的,第一应用客户端将数据区块广播到区块链网络中以进行数据区块验证的过程,可以认为是一个广播和分布式的验证过程,即第一应用客户端生成某个数据区块后,可将其广播给临近的应用客户端(通常会通过p2p等方式),然后接收到该数据区块的应用客户端会对数据区块进行验证,将验证结果和该数据区块进一步进行广播,直到扩散到全区块链网络(一般而言,只要有5个应用客户端能够通过该数据区块的验证,可视为该数据区块能够得到全区块链网络的认可)。Optionally, the process that the first application client broadcasts the data block to the blockchain network for data block verification may be regarded as a broadcast and distributed verification process, that is, the first application client generates a certain After the data block, it can be broadcast to the neighboring application client (usually through p2p, etc.), and then the application client receiving the data block will verify the data block, and the verification result and the data area will be verified. The block is further broadcasted until it spreads to the full blockchain network (generally, as long as five application clients can pass the verification of the data block, it can be considered that the data block can be recognized by the full blockchain network. ).
可选的,虚拟对象可以分为虚拟货币和虚拟物品两类,在本发明实施例中, 所生成的与虚拟货币相应的数据区块可以认为是主数据区块,所生成的与虚拟物品相应的数据区块可以认为是侧数据区块;相应的,区块链可以分为主区块链和侧区块链,相应结构可以如图5所示,值得注意的是主区块链和侧区块链中的应用客户端基本相同,只是主区块链和侧区块链中数据区块表示的虚拟对象不同;Optionally, the virtual object can be divided into two types: a virtual currency and a virtual item. In the embodiment of the present invention, the generated data block corresponding to the virtual currency can be regarded as a main data block, and the generated virtual item corresponds to the virtual item. The data block can be regarded as a side data block; correspondingly, the block chain can be divided into a main block chain and a side block chain, and the corresponding structure can be as shown in FIG. 5, and it is worth noting that the main block chain and the side are The application clients in the blockchain are basically the same, except that the virtual blocks represented by the data blocks in the main blockchain and the sideblockchain are different;
对于新生成的虚拟货币对应的主数据区块,本发明实施例不需要生成等价的虚拟物品;但对于新生成的虚拟物品对应的侧数据区块,需要生成与新生成的虚拟物品等价的虚拟货币对应的主数据区块并锁定,以保证虚拟货币区块链(即主区块链)能够满足虚拟物品交换时所需的虚拟货币量。For the main data block corresponding to the newly generated virtual currency, the embodiment of the present invention does not need to generate an equivalent virtual item; but for the side data block corresponding to the newly generated virtual item, it needs to be generated equivalent to the newly generated virtual item. The virtual currency corresponds to the main data block and is locked to ensure that the virtual currency blockchain (ie, the main blockchain) can satisfy the amount of virtual money required for virtual item exchange.
可选的,虚拟货币可以认为是第一类虚拟对象的一种形式,虚拟物品(如虚拟道具、虚拟资源、虚拟装备等)可以认为是第二类虚拟对象的一种形式,下面针对生成第一类虚拟对象的主数据区块,及第二类虚拟对象的侧数据区块的数据处理方法进行介绍;Optionally, the virtual currency can be considered as a form of the first type of virtual object, and the virtual item (such as virtual props, virtual resources, virtual equipment, etc.) can be considered as a form of the second type of virtual object, and the following is for generating the first The main data block of a type of virtual object and the data processing method of the side data block of the second type of virtual object are introduced;
值得注意的是,虚拟货币仅是第一类虚拟对象的可选形式,虚拟物品仅是第二类虚拟对象的可选形式,根据网络应用所构建的网络虚拟世界生态的不同,第一类虚拟对象的具体形式和第二类虚拟对象的具体形式可以进行调整;一般认为,第一类虚拟对象在网络应用所构建的网络虚拟世界生态中具有购买属性,可以购买第二类虚拟对象。It is worth noting that virtual currency is only an optional form of the first type of virtual object. The virtual item is only an optional form of the second type of virtual object. According to the difference of the network virtual world ecology constructed by the network application, the first type of virtual The specific form of the object and the specific form of the second type of virtual object can be adjusted; it is generally believed that the first type of virtual object has a purchase attribute in the network virtual world ecology constructed by the network application, and the second type of virtual object can be purchased.
图6为本发明实施例提供的数据处理方法的另一流程图,该方法可应用于第一应用客户端,参照图6,该方法可以包括:FIG. 6 is another flowchart of a data processing method according to an embodiment of the present disclosure. The method may be applied to a first application client. Referring to FIG. 6, the method may include:
步骤S300、第一应用客户端在第一用户完成应用事件时,确定所述应用事件关联的虚拟对象数据。Step S300: The first application client determines the virtual object data associated with the application event when the first user completes the application event.
步骤S310、第一应用客户端如果确定所述虚拟对象数据的虚拟对象类型为第一类虚拟对象,获取第一用户完成所述应用事件的完成证据;所述完成证据包括:所述第一用户完成所述应用事件的完成记录,以及所述应用事件关联的第一类虚拟对象的虚拟对象数据。Step S310: The first application client determines that the virtual object type of the virtual object data is a first type of virtual object, and obtains completion evidence that the first user completes the application event; the completion evidence includes: the first user Completing the completion record of the application event and the virtual object data of the first type of virtual object associated with the application event.
步骤S320、第一应用客户端根据所述完成证据,生成与所述第一类虚拟对象的虚拟对象数据对应的主数据区块;并在所述主数据区块中携带所述完成 记录,及指示所述第一类虚拟对象的虚拟对象数据的指示信息。Step S320: The first application client generates a main data block corresponding to the virtual object data of the first type of virtual object according to the completion evidence, and carries the completed record in the main data block, and Indicates indication information of virtual object data of the first type of virtual object.
步骤S330、第一应用客户端为所述主数据区块添加所述第一用户对应的签名信息。Step S330: The first application client adds signature information corresponding to the first user to the primary data block.
步骤S340、第一应用客户端将添加有所述签名信息的主数据区块广播到主区块链网络。Step S340: The first application client broadcasts the main data block to which the signature information is added to the main blockchain network.
可选的,主区块链网络中的验证主数据区块的方式,与图4所示原理类似,可参照。Optionally, the manner of verifying the main data block in the main blockchain network is similar to the principle shown in FIG. 4, and can be referred to.
基于图6所示方法,以游戏网络应用为例,如图7所示,游戏客户端完成一游戏任务,且游戏任务的奖励为100虚拟金币,则游戏客户端在完成游戏任务后,可确定游戏任务关联奖励的虚拟对象为虚拟金币(即游戏任务关联的虚拟对象数据的虚拟对象类型为第一类虚拟对象,虚拟金币为第一类虚拟对象的一种形式),从而获取到游戏客户端完成所述游戏任务的完成证据;Based on the method shown in FIG. 6 , taking the game network application as an example, as shown in FIG. 7 , the game client completes a game task, and the reward of the game task is 100 virtual gold coins, and the game client can determine after completing the game task. The virtual object associated with the game task is a virtual gold coin (ie, the virtual object type of the virtual object data associated with the game task is a first type of virtual object, and the virtual gold coin is a form of the first type of virtual object), thereby acquiring the game client. Completion of the completion evidence of the game task;
该完成证据包括:游戏客户端完成游戏任务的完成记录,以及游戏任务关联奖励的100虚拟金币;进而游戏客户端可根据该完成证据,生成与100虚拟金币对应的主数据区块,并在主数据区块中携带所述完成记录,以及指示主数据区块对应100虚拟金币的指示信息;游戏客户端将该主数据区块添加游戏客户端的用户对应的签名信息后,可广播到主区块链网络中,以便其他游戏客户端验证该主数据区块的有效性。The completion evidence includes: a completion record of the game client completing the game task, and a 100 virtual gold coin associated with the game task; and the game client may generate a main data block corresponding to 100 virtual gold coins according to the completion evidence, and The data block carries the completion record, and the indication information indicating that the main data block corresponds to 100 virtual gold coins; the game client adds the main data block to the signature information corresponding to the user of the game client, and then broadcasts to the main block. Chain the network so that other game clients can verify the validity of the main data block.
以第二类虚拟对象的侧数据区块的生成为例,图8示出了本发明实施例提供的数据处理方法的再一流程,该方法可应用于第一应用客户端,参照图8,该方法可以包括:For example, the process of the data processing method of the embodiment of the present invention is further illustrated. The method can include:
步骤S400、第一应用客户端在第一用户完成应用事件时,确定所述应用事件关联的虚拟对象数据。Step S400: The first application client determines the virtual object data associated with the application event when the first user completes the application event.
步骤S410、第一应用客户端如果确定所述虚拟对象数据的虚拟对象类型为第二类虚拟对象,确定与所述第二类虚拟对象的虚拟对象数据对应的,第一类虚拟对象的虚拟对象数据;并确定第一用户完成所述应用事件的完成证据,以及主数据区块伴随生成证据。Step S410: The first application client determines that the virtual object type of the virtual object data is a second type of virtual object, and determines a virtual object of the first type of virtual object corresponding to the virtual object data of the second type of virtual object. Data; and determining that the first user completed the completion of the application event and the evidence accompanying the generation of the primary data block.
其中,所述完成证据包括:所述第一用户完成所述应用事件的完成记录,以及所述应用事件关联的第二类虚拟对象的虚拟对象数据;所述主数据区块伴随生成证据包括:所述第一类虚拟对象的虚拟对象数据。The completion evidence includes: the first user completes the completion record of the application event, and the virtual object data of the second type of virtual object associated with the application event; the evidence generated by the primary data block includes: The virtual object data of the first type of virtual object.
在第一应用客户端完成一应用事件,且应用事件关联奖励的虚拟对象数据的类型为第二类虚拟对象时,除需要生成与应用事件关联奖励的第二类虚拟对象的虚拟对象数据对应的侧数据区块外,还需生成等价的第一类虚拟对象的虚拟对象数据对应的主数据区块;如游戏客户端完成一游戏任务,且游戏任务的奖励为游戏道具时,第一应用客户端除生成该游戏道具对应的侧数据区块外,还需确定该游戏道具等价的游戏货币,同时生成该游戏货币对应的主数据区块;When the first application client completes an application event, and the type of the virtual object data of the application event association reward is the second type of virtual object, in addition to generating the virtual object data corresponding to the second type virtual object of the application event association reward. In addition to the side data block, the main data block corresponding to the virtual object data of the first type virtual object is also generated; if the game client completes a game task, and the reward of the game task is a game prop, the first application In addition to generating a side data block corresponding to the game item, the client also needs to determine the game currency equivalent to the game item, and simultaneously generate a main data block corresponding to the game currency;
与所述第二类虚拟对象的虚拟对象数据对应的,第一类虚拟对象的虚拟对象数据,可以表示与应用事件关联奖励的第二类虚拟对象等价的第一类虚拟对象;如应用事件关联奖励的是一个虚拟道具(第二类虚拟对象的一种形式),该虚拟道具的等价货币为100虚拟金币(第一类虚拟对象的一种形式),则在生成该虚拟道具对应的侧数据区块时,还需伴随生成100虚拟金币对应的主数据区块。Corresponding to the virtual object data of the second type of virtual object, the virtual object data of the first type of virtual object may represent a first type of virtual object equivalent to the second type of virtual object associated with the application event; for example, an application event The associated reward is a virtual item (a form of the second type of virtual object), and the equivalent currency of the virtual item is 100 virtual gold coins (a form of the first type of virtual object), and the virtual item corresponding to the virtual item is generated. When the side data block is used, it is also required to generate a main data block corresponding to 100 virtual gold coins.
步骤S420、第一应用客户端根据所述完成证据,生成与所述第二类虚拟对象的虚拟对象数据对应的侧数据区块,并在所述侧数据区块中携带所述完成记录,及指示所述第二类虚拟对象的虚拟对象数据的指示信息;及根据所述主数据区块伴随生成证据,生成与所述第一类虚拟对象的虚拟对象数据对应的主数据区块,所述主数据区块中携带有指示所述第一类虚拟对象的虚拟对象数据的指示信息。Step S420: The first application client generates a side data block corresponding to the virtual object data of the second type virtual object according to the completion evidence, and carries the completed record in the side data block, and And indicating indication information of the virtual object data of the second type of virtual object; and generating a main data block corresponding to the virtual object data of the first type of virtual object according to the generated evidence along the main data block, The main data block carries indication information indicating virtual object data of the first type of virtual object.
步骤S430、第一应用客户端为所述侧数据区块添加所述第一用户对应的签名信息。Step S430: The first application client adds signature information corresponding to the first user to the side data block.
步骤S440、第一应用客户端将添加有所述签名信息的侧数据区块广播到侧区块链网络;并将所述主数据区块锁定到主区块链网络。Step S440: The first application client broadcasts the side data block to which the signature information is added to the side block chain network; and locks the main data block to the main blockchain network.
可选的,在验证数据区块时,由于主数据区块是伴随侧数据区块生成的等价数据区块,因此仅对侧数据区块进行验证,而主数据区块则锁定到主区块链 网络中,直至该侧数据区块表示的第二类虚拟对象被交易时,才对锁定的主数据区块进行释放。Optionally, when verifying the data block, since the main data block is an equivalent data block generated by the side data block, only the side data block is verified, and the main data block is locked to the main area. In the blockchain network, the locked main data block is released until the second type of virtual object represented by the side data block is traded.
基于图8所示方法,以游戏网络应用为例,如图9所示,游戏客户端完成一游戏任务,且游戏任务的奖励为一个游戏道具,则游戏客户端在完成游戏任务后,可确定游戏任务关联奖励的虚拟对象为游戏道具(即游戏任务关联的虚拟对象数据的虚拟对象类型为第二类虚拟对象,游戏道具为第二类虚拟对象的一种形式),从而游戏客户端可确定该游戏道具的等价游戏货币,如等价的游戏货币为100虚拟金币,则游戏客户端可生成第一用户完成所述应用事件的完成证据,和主数据区块伴随生成证据;Based on the method shown in FIG. 8 , taking the game network application as an example, as shown in FIG. 9 , the game client completes a game task, and the reward of the game task is a game prop, and the game client can determine after completing the game task. The virtual object associated with the game task association reward is a game prop (ie, the virtual object type of the virtual object data associated with the game task is a second type of virtual object, and the game prop is a form of the second type of virtual object), so that the game client can determine The equivalent game currency of the game item, if the equivalent game currency is 100 virtual gold coins, the game client may generate the completion evidence of the first user completing the application event, and generate evidence along with the main data block;
该完成证据用于表示游戏客户端完成游戏任务的完成记录,以及游戏任务关联奖励的游戏道具;该主数据区块伴随生成证据用于表示游戏任务关联奖励的游戏道具对应的等价100虚拟金币;The completion evidence is used to indicate that the game client completes the completion record of the game task, and the game task is associated with the rewarded game item; the main data block is accompanied by the generated evidence for representing the equivalent 100 virtual gold coin corresponding to the game item associated with the game task. ;
从而游戏客户端可根据该完成证据,生成与该游戏道具对应的侧数据区块,并在侧数据区块中携带所述完成记录,以及指示侧数据区块对应的游戏道具的指示信息,进而对侧数据区块添加游戏客户端对应的用户的签名信息后,广播到侧区块链,以便其他游戏客户端验证该侧数据区块的有效性;Therefore, the game client may generate a side data block corresponding to the game item according to the completion evidence, and carry the completion record in the side data block, and indicate the instruction information of the game item corresponding to the side data block, and further After adding the signature information of the user corresponding to the game client to the opposite data block, broadcast to the side blockchain, so that other game clients can verify the validity of the side data block;
同时,游戏客户端可根据主数据区块伴随生成证据,生成与100虚拟金币对应的主数据区块,并在主数据区块中携带指示主数据区块对应100虚拟金币的指示信息;进而将主数据区块锁定到主区块链中,直至所述侧数据区块表示的虚拟道具被交易时,从主区块链中释放出该主数据区块。At the same time, the game client may generate a main data block corresponding to 100 virtual gold coins according to the generated evidence along the main data block, and carry indication information indicating that the main data block corresponds to 100 virtual gold coins in the main data block; The main data block is locked into the main blockchain until the virtual item represented by the side data block is traded, and the main data block is released from the main blockchain.
可选的,本发明实施例可利用侧链(侧区块链)机制,自动锁定主链(主区块链)上的主数据区块,直至主数据区块释放后,解除锁定。Optionally, the embodiment of the present invention may automatically lock the main data block on the main chain (main block chain) by using a side chain (side block chain) mechanism, and then unlock the main data block after being released.
可选的,利用第二类虚拟对象和/或第一类虚拟对象,合成新的第二类虚拟对象,可以认为是应用事件的一种;只不过新的第二类虚拟对象对应的侧数据块的生成,需要伴随着原有的第二类虚拟对象对应的侧数据区块,和/或原有的第一类虚拟对象对应的主数据区块的无效;Optionally, the second type of virtual object and/or the first type of virtual object are used to synthesize a new second type of virtual object, which may be considered as one type of application event; but the side data corresponding to the new second type of virtual object The generation of the block needs to be accompanied by the side data block corresponding to the original second type virtual object, and/or the invalidity of the main data block corresponding to the original first type virtual object;
相应的,第一应用客户端在完成应用事件时,还可以确定完成应用事件伴随无效的数据区块(可能是第一类虚拟对象对应的主数据区块,也可能是第二 类虚拟对象对应的侧数据区块,具体可视应用事件执行要求而定),并对所确定的数据区块进行无效处理。Correspondingly, when the first application client completes the application event, it may also determine that the completion of the application event is accompanied by an invalid data block (may be a primary data block corresponding to the first type of virtual object, or may be a second type of virtual object corresponding to The side data block, depending on the execution requirements of the application event, and invalidate the determined data block.
上文以虚拟对象的生成方面,对本发明实施例提供的数据处理方法进行了介绍;下面将从虚拟对象的交易角度,对本发明实施例提供的数据处理方法进行介绍;下文描述的数据处理方法建立在上文描述的以区块链技术进行虚拟对象的生成的基础上。The data processing method provided by the embodiment of the present invention is introduced in the above, and the data processing method provided by the embodiment of the present invention is introduced from the perspective of the transaction of the virtual object; the data processing method described below is established. Based on the blockchain technique described above, the generation of virtual objects is performed.
图10为本发明实施例提供的数据处理方法的又一流程图,该方法可应用于第一应用客户端,参照图10,该方法可以包括:FIG. 10 is still another flowchart of a data processing method according to an embodiment of the present disclosure. The method may be applied to a first application client. Referring to FIG. 10, the method may include:
步骤S500、获取第一交易的交易请求。Step S500: Acquire a transaction request of the first transaction.
可选的,交易请求可以是关于第一应用客户端的第一用户的交易请求;也可能是其他应用客户端广播到区块链网络中的交易请求,即其他应用客户端的用户进行第一交易时,其他应用客户端可将第一交易的交易请求广播到区块链网络中,当第一应用客户端获取到该交易请求时,可基于交易请求进行相应数据区块的生成。Optionally, the transaction request may be a transaction request of the first user of the first application client; or may be a transaction request that is broadcasted by the other application client to the blockchain network, that is, when the user of the other application client performs the first transaction. The other application client may broadcast the transaction request of the first transaction to the blockchain network. When the first application client obtains the transaction request, the corresponding data block may be generated based on the transaction request.
步骤S510、根据所述交易请求生成第一交易对应的数据区块;所述数据区块携带有第一交易的交易记录,以及指示第一交易对应的虚拟对象数据的指示信息。Step S510: Generate a data block corresponding to the first transaction according to the transaction request; the data block carries a transaction record of the first transaction, and indication information indicating virtual object data corresponding to the first transaction.
区别于现有修改数据库中的用户数据进行交易的方式,本发明实施例并不是根据交易请求,对用户数据中的虚拟货币等进行修改,来实现交易;而是通过生成交易对应的数据区块,将交易对应的数据区块添加到区块链中,即在进行交易实现时,区块链是不会对已经生成和加入的数据区块进行修改,而是在区块链的末尾添加新的与交易对应的数据区块;Different from the existing method of modifying the user data in the database for the transaction, the embodiment of the present invention does not modify the virtual currency in the user data according to the transaction request to implement the transaction; instead, the data block corresponding to the transaction is generated. Adding the data block corresponding to the transaction to the blockchain, that is, when the transaction is implemented, the blockchain does not modify the data block that has been generated and added, but adds a new one at the end of the blockchain. The data block corresponding to the transaction;
可选的,第一交易的交易记录可以记录第一交易涉及的用户,第一交易的交易物品、货币等,可以对第一交易的交易关键涉及的关键数据的记录。Optionally, the transaction record of the first transaction may record the user involved in the first transaction, the transaction item of the first transaction, the currency, etc., and may record the key data involved in the transaction of the first transaction.
步骤S520、将所述数据区块广播到区块链网络。Step S520: Broadcast the data block to the blockchain network.
可选的,第一交易可能是购买游戏道具的交易,如该游戏道具需要消耗100金币,则第一应用客户端获取到交易请求,并确定交易请求所对应的第一 用户使用100金币购买游戏道具的交易记录;从而根据交易请求,生成第一交易对应的数据区块,并在数据区块中携带交易记录和指示第一交易对应的消耗100金币,及获得游戏道具的指示信息;Optionally, the first transaction may be a transaction for purchasing a game item. If the game item needs to consume 100 gold coins, the first application client obtains the transaction request, and determines that the first user corresponding to the transaction request uses 100 gold coins to purchase the game. a transaction record of the item; thereby generating a data block corresponding to the first transaction according to the transaction request, and carrying the transaction record and the consumption of 100 gold coins corresponding to the first transaction in the data block, and obtaining the instruction information of the game item;
可选的,第一交易可能是第一用户销售游戏道具的交易请求,如该游戏道具的售价为100金币,则第一应用客户端可获取交易请求,并确定交易请求所对应的第一用户销售游戏道具获得100金币的交易记录;从而生成第一交易对应的数据区块,并在数据区块中携带交易记录和指示第一交易对应的获得100金币,及销售出的游戏道具的指示信息;Optionally, the first transaction may be a transaction request for the first user to sell the game item. If the price of the game item is 100 gold coins, the first application client may obtain a transaction request and determine the first corresponding to the transaction request. The user sells the game props to obtain a transaction record of 100 gold coins; thereby generating a data block corresponding to the first transaction, and carrying the transaction record and the indication indicating the first transaction corresponding to the 100th gold coin in the data block, and the instruction of the sold game props information;
显然,第一交易还可能是虚拟物品与虚拟物品的交易,或者单纯的转让虚拟金币,单纯的转让虚拟物品等,这些类型的交易的处理原理与上述描述,都是根据交易请求生成相应的数据区块,并传播到区块链网络中,由其他应用客户端验证数据区块的有效性实现;Obviously, the first transaction may also be a transaction of virtual goods and virtual goods, or simply transfer virtual gold coins, simply transfer virtual items, etc. The processing principle of these types of transactions and the above description are based on transaction requests to generate corresponding data. Blocks are propagated to the blockchain network, and other application clients verify the validity of the data blocks;
可选的,本发明实施例可支持用户之间的交易,用户与游戏系统之间的交易等。Optionally, embodiments of the present invention can support transactions between users, transactions between users and game systems, and the like.
可选的,交易对应数据区块广播到区块链网络后,可由区块链网络中的应用客户端验证数据区块是否有效,具体验证原理与前文图4描述类似,可以是应用客户端根据数据区块中的交易记录,模拟交易是否能够完成,并在交易能够完成时,判断数据区块所对应的虚拟对象数据是否与交易相符和实现;Optionally, after the transaction corresponding data block is broadcasted to the blockchain network, the application client in the blockchain network can verify whether the data block is valid. The specific verification principle is similar to that described in FIG. 4 above, and may be based on the application client. The transaction record in the data block, whether the simulation transaction can be completed, and when the transaction can be completed, it is judged whether the virtual object data corresponding to the data block is consistent with the transaction and realized;
即如果区块链网络中的应用客户端根据数据区块中的交易记录,模拟交易过程后,判断交易能够完成,且数据区块所对应的虚拟对象数据与交易相符,则确定数据区块有效。That is, if the application client in the blockchain network records the transaction process according to the transaction record in the data block, and judges that the transaction can be completed, and the virtual object data corresponding to the data block matches the transaction, it is determined that the data block is valid. .
具体的,第一应用客户端可获取第一交易对应的私钥(第一交易可以对应有由应用服务器分配的一对私钥和公钥对),将第一交易的交易记录使用该私钥进行签名并携带在数据区块中;从而将携带使用该私钥签名的交易记录,及指示第一交易对应的虚拟对象数据的指示信息的数据区块发送到区块链网络中;Specifically, the first application client may obtain the private key corresponding to the first transaction (the first transaction may correspond to a pair of private key and public key pair allocated by the application server), and use the private key for the transaction record of the first transaction. Signing and carrying in the data block; thereby transmitting the transaction record carrying the private key signature and the data block indicating the indication information of the virtual object data corresponding to the first transaction to the blockchain network;
从而由其他应用客户端接收到数据区块后,通过第一交易对应的公钥解开,使用该私钥签名的交易记录,根据所述交易记录模拟第一交易的完成过程, 如果模拟结果为所述交易记录能够完成第一交易,且数据区块所对应的虚拟对象数据与第一交易相符,确定该数据区块有效。Therefore, after receiving the data block by the other application client, the public key corresponding to the first transaction is used to unlock, and the transaction record signed by the private key is used to simulate the completion process of the first transaction according to the transaction record, if the simulation result is The transaction record can complete the first transaction, and the virtual object data corresponding to the data block matches the first transaction, and the data block is determined to be valid.
相应的,第一应用客户端可验证区块链网络中传播的数据区块;如第一应用客户端接收到区块链网络中传播的第二交易对应的数据区块,则第一应用客户端可解析所接收的数据区块,获取第二交易对应的公钥,使用所获取的公钥,解开使用私钥签名的第二交易的交易记录;Correspondingly, the first application client can verify the data block propagated in the blockchain network; if the first application client receives the data block corresponding to the second transaction propagated in the blockchain network, the first application client The terminal may parse the received data block, obtain a public key corresponding to the second transaction, and use the obtained public key to unlock the transaction record of the second transaction signed by the private key;
第一应用客户端可根据所得到的交易记录模拟第二交易的完成过程,从而根据模拟结果验证所接收的数据区块的有效性;The first application client may simulate the completion process of the second transaction according to the obtained transaction record, thereby verifying the validity of the received data block according to the simulation result;
如果模拟结果为所得到的交易记录能够完成第二交易,且数据区块对应的虚拟对象数据与第二交易相符,则可确定所接收的数据区块有效。If the simulation result is that the obtained transaction record can complete the second transaction, and the virtual object data corresponding to the data block matches the second transaction, it can be determined that the received data block is valid.
可选的,如果区块链网络中的应用客户端根据数据区块中的交易记录,模拟交易过程后,判断交易不能完成;和/或,数据区块所对应的虚拟对象数据与交易不符,则可确定数据区块无效。Optionally, if the application client in the blockchain network records the transaction process according to the transaction record in the data block, the transaction may not be completed after the transaction process is simulated; and/or, the virtual object data corresponding to the data block does not match the transaction, Then it can be determined that the data block is invalid.
可选的,图10所示数据区块可以是主数据区块,也可以是侧数据区块;需要注意的是,如果第一交易对应的虚拟对象数据为,初次交易的侧数据区块对应的第二类虚拟对象数据,因为初次进行交易的第二类虚拟对象数据,所对应的等价第一类虚拟对象的主数据区块仍处于锁定状态(即表示等价的虚拟货币等第一类虚拟对象的主数据区块,处于锁定状态),则在第一交易对应的虚拟对象数据为,初次交易的侧数据区块对应的第二类虚拟对象数据时,需要将对应的处于锁定状态的主数据区块进行释放,以保证网络虚拟世界的通货量充足。Optionally, the data block shown in FIG. 10 may be a primary data block or a side data block. It should be noted that if the virtual object data corresponding to the first transaction is, the side data block corresponding to the initial transaction corresponds to The second type of virtual object data, because the second type of virtual object data for the first transaction, the corresponding primary data block of the first type of virtual object is still locked (ie, representing the equivalent virtual currency, etc. If the main data block of the virtual object is in the locked state, the virtual object data corresponding to the first transaction is the second type of virtual object data corresponding to the side data block of the initial transaction, and the corresponding locked state is required. The main data block is released to ensure sufficient currency in the virtual world of the network.
如果第一交易对应的虚拟对象数据已经进行过交易,则对应的主数据区块已经被释放,此时不再需要涉及主数据区块的是否,可以相对独立地进行双向交易;If the virtual object data corresponding to the first transaction has been traded, the corresponding main data block has been released, and at this time, it is no longer necessary to involve the main data block, and the two-way transaction can be performed relatively independently;
可选的,侧数据区块对应的第二类虚拟对象,与主数据区块对应的第一类虚拟对象的等价关系,可以由运营服务器根据实际情况设定;如以游戏网络应用为例,运营服务器可通过调整和发布游戏任务来控制虚拟货币和虚拟物品的 发布,通过调整玩家参与游戏时的虚拟货币、虚拟物品消耗,以及,虚拟货币和虚拟物品的兑换关系(对应关系的一种),来控制网络虚拟世界的生态。Optionally, the equivalence relationship between the second type of virtual object corresponding to the side data block and the first type of virtual object corresponding to the main data block may be set by the operation server according to actual conditions; for example, the game network application is taken as an example. The operation server can control the release of virtual currency and virtual items by adjusting and releasing game tasks, by adjusting the virtual currency, the virtual item consumption when the player participates in the game, and the exchange relationship between the virtual currency and the virtual item (a kind of correspondence relationship) ) to control the ecology of the virtual world of the network.
本发明实施例提供的数据处理方法中,虚拟货币、虚拟物品(虚拟道具,虚拟资源)等虚拟对象的处理由区块链管理,且虚拟物品等第二类虚拟对象的区块链,作为虚拟货币等第一类虚拟对象的区块链的侧链,保证了虚拟物品与虚拟货币之间的换算关系是一定的;用户在游戏中的行为(例如完成任务)可以创造新的数据区块(主数据区块,和/或,侧数据区块),如果新的数据区块表示虚拟物品(对应侧数据区块),则等量的虚拟货币(对应主数据区块)也被创造出来,两者可以自由兑换,从而保证了通货的稳定;In the data processing method provided by the embodiment of the present invention, processing of virtual objects such as virtual money, virtual items (virtual items, virtual resources), and the like are managed by a blockchain, and a block chain of a second type of virtual object such as a virtual item is virtualized. The side chain of the blockchain of the first type of virtual object such as currency ensures that the conversion relationship between the virtual item and the virtual currency is certain; the user's behavior in the game (for example, completing the task) can create a new data block ( The main data block, and/or the side data block), if the new data block represents a virtual item (corresponding side data block), an equal amount of virtual currency (corresponding to the main data block) is also created. Both can be exchanged freely, thus ensuring the stability of the currency;
而新数据区块的产生依赖于应用客户端的应用行为(如玩家的游戏行为),这些应用行为一旦触发应用事件完成,则应用事件关联奖励的虚拟货币、虚拟物品等虚拟对象的数据区块则被创造出来,而触发应用事件完成的应用行为是由应用运营方所决定的;因此,应用运营方虽然仍可以调整应用内容,以及物品货币之间的兑换关系,但却无法直接通过修改用户数据,实现虚拟货币、虚拟物品等虚拟对象的生成和交易,降低了服务器资源开销;同时,分布式的数据区块存储,提升了用户资产的安全、可靠性。The generation of the new data block depends on the application behavior of the application client (such as the player's game behavior). Once the application behavior is triggered, the data block of the virtual object such as the virtual currency and the virtual item of the event association reward is applied. The application behavior that is created and triggers the completion of the application event is determined by the application operator; therefore, although the application operator can still adjust the application content and the exchange relationship between the item currency, it cannot directly modify the user data. It realizes the generation and transaction of virtual objects such as virtual currency and virtual items, which reduces the server resource overhead. At the same time, distributed data block storage improves the security and reliability of user assets.
基于上述描述的数据处理方式,本发明实施例的优点至少包括:Based on the data processing manner described above, the advantages of the embodiments of the present invention include at least:
通过将运营方控制的网络虚拟世界经济生态进行去中心化,使得运营方无法直接干涉网络虚拟世界的经济系统数值,而只能通过对玩家行为机制的改变来间接控制网络虚拟世界的经济系统,使得网络虚拟世界的公平性得到了保证,同时降低了服务器资源开销;。By decentralizing the virtual world economic ecology controlled by the operator, the operator cannot directly interfere with the economic system value of the virtual world of the network, but can only indirectly control the economic system of the virtual world of the network by changing the behavior mechanism of the player. The fairness of the virtual world of the network is guaranteed, and the server resource overhead is reduced.
用户的虚拟货币、虚拟物品对应的数据区块分布式地存储在整个区块链网络当中,必须是大多数应用客户端认同的修改才会被记录在案,私自伪造或篡改数据区块的情况得以避免,保证了游戏的安全性,用户资产的安全、可靠性;并且区块链网络分布式的存储可以有效避免单点故障带来的游戏服务的中断,提升了游戏等网络应用服务的可靠性。The data blocks corresponding to the user's virtual currency and virtual items are distributedly stored in the entire blockchain network, and must be modified by most application clients to be recorded, and the data blocks are forged or falsified privately. It can be avoided to ensure the security of the game, the security and reliability of the user's assets; and the distributed storage of the blockchain network can effectively avoid the interruption of the game service caused by a single point of failure, and improve the reliability of the network application services such as games. Sex.
下面以虚拟对象的生成角色,对本发明实施例提供的应用客户端进行介 绍,下文描述的应用客户端可与上文描述的数据处理方法相互对应参照。The application client provided by the embodiment of the present invention is described below with the generated role of the virtual object. The application client described below can refer to the data processing method described above.
图11为本发明实施例提供的应用客户端的结构框图,参照图11,该应用客户端可以包括:FIG. 11 is a structural block diagram of an application client according to an embodiment of the present invention. Referring to FIG. 11, the application client may include:
完成证据获取模块100,用于在第一用户完成应用事件时,获取第一用户完成所述应用事件的完成证据;所述完成证据包括:所述第一用户完成所述应用事件的完成记录,以及所述应用事件关联的虚拟对象数据;The completion evidence obtaining module 100 is configured to: when the first user completes the application event, obtain the completion evidence of the first user completing the application event; the completion evidence includes: the first user completing the completion record of the application event, And virtual object data associated with the application event;
数据区块生成模块110,用于根据所述完成证据,生成所述虚拟对象数据对应的数据区块,并在所述数据区块中携带所述完成记录,及指示所述虚拟对象数据的指示信息;The data block generating module 110 is configured to generate, according to the completion evidence, a data block corresponding to the virtual object data, and carry the completed record in the data block, and indicate an indication of the virtual object data. information;
签名添加模块120,用于为将所述完成记录、指示信息以及所述签名信息添加在所述数据区块中,所述指示信息用于标识所述虚拟对象数据;a signature adding module 120, configured to add the completion record, the indication information, and the signature information in the data block, where the indication information is used to identify the virtual object data;
第一广播模块130,用于将添加有所述第一用户的签名信息的所述数据区块广播到区块链网络,所述区块链网络接入有多个应用客户端。The first broadcast module 130 is configured to broadcast the data block to which the signature information of the first user is added to a blockchain network, where the blockchain network accesses multiple application clients.
可选的,所述第一用户完成所述应用事件的完成记录包括:第一用户完成应用事件的行为记录和/或结果记录。Optionally, the completing, by the first user, the completion record of the application event comprises: the first user completing the behavior record and/or the result record of the application event.
可选的,完成证据获取模块100,用于获取第一用户完成所述应用事件的完成证据,具体包括:Optionally, the completion evidence obtaining module 100 is configured to obtain the evidence that the first user completes the application event, and specifically includes:
向应用服务器发送用于指示所述应用事件完成的应用事件通知;Sending an application event notification for indicating that the application event is completed to the application server;
获取所述应用服务器发送的所述应用事件关联的虚拟对象数据,及所述应用事件相对应的私钥;其中,所述应用服务器为所述应用事件分配有相对应的一对公钥和所述私钥;Acquiring the virtual object data associated with the application event sent by the application server, and the private key corresponding to the application event; wherein the application server allocates a corresponding pair of public keys and the same for the application event Private key
获取所述行为记录和/或结果记录;Obtaining the behavior record and/or result record;
将所述行为记录和/或结果记录使用所述私钥进行签名;Recording the behavior record and/or result record using the private key;
根据所述虚拟对象数据及使用所述私钥签名的所述行为记录和/或结果记录,确定所述完成证据。The completion evidence is determined based on the virtual object data and the behavior record and/or result record signed using the private key.
可选的,完成证据获取模块100,用于获取第一用户完成应用事件的行为记录和/或结果记录,具体包括:Optionally, the completion evidence obtaining module 100 is configured to obtain a behavior record and/or a result record of the first user completing the application event, and specifically includes:
获取所述应用服务器发送的所述行为记录和/或结果记录;Obtaining the behavior record and/or result record sent by the application server;
或,获取所述应用客户端自确定的所述行为记录和/或结果记录。Or obtaining the behavior record and/or result record determined by the application client.
可选的,所述第一用户完成所述应用事件的完成记录还包括:所述应用事件的描述内容。Optionally, the completion record of the first user completing the application event further includes: a description content of the application event.
可选的,图12示出了本发明实施例提供的应用客户端的另一结构,图12所示的应用客户端可以认为是前文描述的第一应用客户端(系统中任意的一个需要生成虚拟对象的应用客户端),结合图11和图12所示,该应用客户端还可以包括:Optionally, FIG. 12 shows another structure of the application client provided by the embodiment of the present invention. The application client shown in FIG. 12 can be regarded as the first application client described above (any one of the systems needs to generate a virtual The application client of the object, as shown in FIG. 11 and FIG. 12, the application client may further include:
第一有效性验证模块140,用于接收所述区块链网络中传播的所述数据区块,所述数据区块携带有第二用户完成应用事件的行为记录和/或结果记录,及指示第二用户完成的应用事件关联的虚拟对象数据的指示信息;其中,所述行为记录和/或结果记录使用第二用户完成的应用事件对应的私钥签名;解析所接收的所述数据区块,获取使用所述私钥签名的所述行为记录和/或结果记录,及指示所述指示信息;向所述应用服务器请求所述第二用户完成的应用事件相应的公钥;使用所获取的所述公钥,解开使用所述私钥签名的行为记录和/或结果记录,得到所述第二用户完成应用事件的所述行为记录和/或结果记录;根据所述行为记录和/或结果记录模拟应用事件的完成过程以得到模拟结果;根据所述模拟结果验证所接收的所述数据区块的有效性,其中,如果所述模拟结果为所得到的所述行为记录和/或结果记录能够完成应用事件,且所述应用事件的完成奖励与所述虚拟对象数据对应,确定所接收的数据区块有效;如果所述模拟结果为所得到的所述行为记录和/或结果记录不能够完成应用事件,和/或,所述应用事件的完成奖励与所述虚拟对象数据不对应,则确定所接收的数据区块无效。a first validity verification module 140, configured to receive the data block that is propagated in the blockchain network, where the data block carries a behavior record and/or a result record of a second user completing an application event, and an indication The indication information of the virtual object data associated with the application event completed by the second user; wherein the behavior record and/or the result record is signed with a private key corresponding to the application event completed by the second user; and the received data block is parsed Obtaining the behavior record and/or result record signed by using the private key, and indicating the indication information; requesting, by the application server, a public key corresponding to an application event completed by the second user; using the acquired Destroying the behavior record and/or result record signed by the private key to obtain the behavior record and/or result record of the second user completing the application event; recording and/or according to the behavior The result records a completion process of the simulated application event to obtain a simulation result; verifying the validity of the received data block based on the simulation result, wherein if The result is that the obtained behavior record and/or result record can complete the application event, and the completion reward of the application event corresponds to the virtual object data, and the received data block is determined to be valid; if the simulation result is If the obtained behavior record and/or result record cannot complete the application event, and/or the completion reward of the application event does not correspond to the virtual object data, it is determined that the received data block is invalid.
可选的,如果所述应用事件关联的虚拟对象数据的虚拟对象类型为第一类虚拟对象,所述完成证据包括:所述第一用户完成所述应用事件的完成记录,以及所述应用事件关联的第一类虚拟对象的虚拟对象数据;Optionally, if the virtual object type of the virtual object data associated with the application event is a first type of virtual object, the completion evidence includes: completing, by the first user, a completion record of the application event, and the application event Virtual object data of the associated first type virtual object;
相应的,数据区块生成模块110,用于根据所述完成证据,生成与所述第一类虚拟对象的虚拟对象数据对应的主数据区块,将所述完成记录、所述指示信息以及所述签名信息添加在所述主数据区块中。Correspondingly, the data block generating module 110 is configured to generate a main data block corresponding to the virtual object data of the first type of virtual object according to the completion evidence, and complete the record, the indication information, and the The signature information is added in the main data block.
可选的,如果所述应用事件关联的虚拟对象数据的虚拟对象类型为第二类虚拟对象,所述完成证据包括:所述第一用户完成所述应用事件的完成记录,以及所述应用事件关联的第二类虚拟对象的虚拟对象数据;Optionally, if the virtual object type of the virtual object data associated with the application event is a second type of virtual object, the completion evidence includes: completing, by the first user, a completion record of the application event, and the application event Virtual object data of the associated second type of virtual object;
所述数据区块生成模块110还可用于:The data block generation module 110 can also be used to:
确定与所述第二类虚拟对象的虚拟对象数据对应的,第一类虚拟对象的虚拟对象数据;Determining virtual object data of the first type of virtual object corresponding to the virtual object data of the second type of virtual object;
确定所述主数据区块伴随生成证据,所述主数据区块伴随生成证据包括:所述第一类虚拟对象的虚拟对象数据。Determining that the primary data block is accompanied by generating evidence, the primary data block companion generating evidence includes: virtual object data of the first type of virtual object.
在此基础上,进一步,所述签名添加模块120还可用于:根据所述完成证据,生成与所述第二类虚拟对象的虚拟对象数据对应的侧数据区块,并在所述侧数据区块中携带所述完成记录,及指示所述第二类虚拟对象的虚拟对象数据的指示信息;所述数据区块生成模块还用于,根据所述主数据区块伴随生成证据,生成与所述第一类虚拟对象的虚拟对象数据对应的所述主数据区块,所述主数据区块中携带有指示所述第一类虚拟对象的虚拟对象数据的指示信息;On the basis of the above, the signature adding module 120 is further configured to: generate, according to the completion evidence, a side data block corresponding to the virtual object data of the second type virtual object, and in the side data area The block carries the completion record, and indication information indicating virtual object data of the second type of virtual object; the data block generation module is further configured to generate and cooperate according to the generated evidence along the main data block The main data block corresponding to the virtual object data of the first type of virtual object, the main data block carrying the indication information indicating the virtual object data of the first type of virtual object;
具体的,所述签名添加模块120还用于,为所述侧数据区块添加所述第一用户对应的签名信息;Specifically, the signature adding module 120 is further configured to: add signature information corresponding to the first user to the side data block;
所述第一广播模块,用于将添加有所述签名信息的数据区块广播到区块链网络,具体包括:The first broadcast module is configured to broadcast the data block to which the signature information is added to the blockchain network, and specifically includes:
将添加有所述签名信息的侧数据区块广播到侧区块链网络;Broadcasting the side data block to which the signature information is added to the side block chain network;
应用客户端还可用于:The application client can also be used to:
将所述主数据区块锁定到主区块链网络,直至所述侧数据区块对应的第二类虚拟对象被交易时,解除所锁定的主数据区块。The main data block is locked to the main blockchain network until the second type of virtual object corresponding to the side data block is traded, and the locked main data block is released.
下面从虚拟对象的交易角色,对本发明实施例提供的应用客户端进行介绍,下文描述的应用客户端可与上文描述的数据处理方法内容相互对应参照。The application client provided by the embodiment of the present invention is introduced from the transaction role of the virtual object. The application client described below can refer to the content of the data processing method described above.
图13为本发明实施例提供的应用客户端的再一结构框图,参照图13,该应用客户端可以包括:FIG. 13 is a structural block diagram of an application client according to an embodiment of the present invention. Referring to FIG. 13, the application client may include:
交易请求获取模块200,用于获取第一交易的交易请求;a transaction request obtaining module 200, configured to acquire a transaction request of the first transaction;
生成模块210,用于根据所述交易请求生成第一交易对应的数据区块;所述数据区块携带有第一交易的交易记录,以及指示第一交易对应的虚拟对象数据的指示信息;a generating module 210, configured to generate, according to the transaction request, a data block corresponding to the first transaction; the data block carries a transaction record of the first transaction, and indication information indicating virtual object data corresponding to the first transaction;
第二广播模块220,用于将所述数据区块广播到区块链网络。The second broadcast module 220 is configured to broadcast the data block to the blockchain network.
可选的,图14示出了本发明实施例提供的应用客户端的又一结构框图,结合图13和图14所示,该应用客户端还可以包括:Optionally, FIG. 14 is a block diagram showing another structure of the application client according to the embodiment of the present invention. As shown in FIG. 13 and FIG. 14, the application client may further include:
私钥签名模块230,用于从应用服务器获取第一交易对应的私钥;所述应用服务器为第一交易分配有相对应的一对公钥和私钥;将第一交易的交易记录使用该私钥进行签名,并携带在所述数据区块中;The private key signing module 230 is configured to obtain a private key corresponding to the first transaction from the application server; the application server allocates a corresponding pair of public and private keys for the first transaction; and uses the transaction record of the first transaction The private key is signed and carried in the data block;
第二有效性验证模块240,用于接收区块链网络中传播的第二交易对应的数据区块,该数据区块携带有第二交易的交易记录,及指示第二交易对应的虚拟对象数据的指示信息;其中,第二交易的交易记录使用第二交易对应的私钥签名;获取第二交易对应的公钥,使用所获取的公钥,解开使用私钥签名的第二交易的交易记录;根据所得到的交易记录模拟第二交易的完成过程,根据模拟结果验证第二交易对应的数据区块的有效性。The second validity verification module 240 is configured to receive a data block corresponding to the second transaction propagated in the blockchain network, where the data block carries a transaction record of the second transaction, and the virtual object data corresponding to the second transaction is indicated. The indication information; wherein the transaction record of the second transaction is signed by the private key corresponding to the second transaction; obtaining the public key corresponding to the second transaction, and using the obtained public key, unlocking the transaction of the second transaction signed by the private key Recording; simulating the completion process of the second transaction according to the obtained transaction record, and verifying the validity of the data block corresponding to the second transaction according to the simulation result.
可选的,私钥签名模块230和第二有效性验证模块240可择一,或者结合应用在图13所示应用客户端中。Optionally, the private key signature module 230 and the second validity verification module 240 may alternatively or in combination be applied in the application client shown in FIG.
可选的,如果第一交易对应的虚拟对象数据为,初次交易的侧数据区块对应的第二类虚拟对象数据;则所述应用客户端还可用于:将该侧数据区块所对应的处于锁定状态的主数据区块进行释放。Optionally, if the virtual object data corresponding to the first transaction is the second type of virtual object data corresponding to the side data block of the initial transaction, the application client may be further configured to: correspond to the side data block The main data block in the locked state is released.
本发明实施例还提供一种数据处理系统,该数据处理系统可以包括:应用服务器,运营服务器,数据库,上述所述的应用客户端;该数据处理系统的结构可以如图1所示。The embodiment of the present invention further provides a data processing system, which may include: an application server, an operation server, a database, and the application client described above; the structure of the data processing system may be as shown in FIG. 1 .
以下结合图15所示,从实体硬件的角度对用户设备的具体结构进行示例性说明,其中,上述所示的所述应用客户端设置于本实施例所示的用户设备上。As shown in FIG. 15 , the specific structure of the user equipment is exemplified from the perspective of the physical hardware. The application client shown above is disposed on the user equipment shown in this embodiment.
所述用户设备包括:射频(Radio Frequency,RF)电路1510、存储器1520、 输入单元1530、显示单元1540、传感器1550、音频电路1560、无线保真(wireless fidelity,WiFi)模块1570、处理器1580、以及电源1590等部件。本领域技术人员可以理解,图15中示出的用户设备结构并不构成对用户设备的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。The user equipment includes: a radio frequency (RF) circuit 1510, a memory 1520, an input unit 1530, a display unit 1540, a sensor 1550, an audio circuit 1560, a wireless fidelity (WiFi) module 1570, a processor 1580, And power supply 1590 and other components. It will be understood by those skilled in the art that the user equipment structure shown in FIG. 15 does not constitute a limitation to the user equipment, and may include more or less components than those illustrated, or a combination of certain components, or different component arrangements.
下面结合图15对用户设备的各个构成部件进行具体的介绍:The following describes the components of the user equipment in detail with reference to FIG. 15:
RF电路1510可用于收发信息或通话过程中,信号的接收和发送,特别地,将基站的下行信息接收后,给处理器1580处理;另外,将设计上行的数据发送给基站。通常,RF电路1510包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器(Low Noise Amplifier,LNA)、双工器等。此外,RF电路1510还可以通过无线通信与网络和其他设备通信。上述无线通信可以使用任一通信标准或协议,包括但不限于全球移动通讯系统(Global System of Mobile communication,GSM)、通用分组无线服务(General Packet Radio Service,GPRS)、码分多址(Code Division Multiple Access,CDMA)、宽带码分多址(Wideband Code Division Multiple Access,WCDMA)、长期演进(Long Term Evolution,LTE)、电子邮件、短消息服务(Short Messaging Service,SMS)等。The RF circuit 1510 can be used for receiving and transmitting signals during the transmission or reception of information or during a call. Specifically, after receiving the downlink information of the base station, the processing is processed by the processor 1580. In addition, the data designed for the uplink is sent to the base station. Generally, RF circuit 1510 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like. In addition, RF circuitry 1510 can also communicate with the network and other devices via wireless communication. The above wireless communication may use any communication standard or protocol, including but not limited to Global System of Mobile communication (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (Code Division). Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), E-mail, Short Messaging Service (SMS), and the like.
存储器1520可用于存储软件程序以及模块,处理器1580通过运行存储在存储器1520的软件程序以及模块,从而执行用户设备的各种功能应用以及数据处理。存储器1520可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据用户设备的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器1520可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The memory 1520 can be used to store software programs and modules, and the processor 1580 executes various functional applications and data processing of the user equipment by running software programs and modules stored in the memory 1520. The memory 1520 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application required for at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may be stored according to Data created by the use of user equipment (such as audio data, phone book, etc.). Moreover, memory 1520 can include high speed random access memory, and can also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
输入单元1530可用于接收输入的数字或字符信息,以及产生与用户设备的用户设置以及功能控制有关的键信号输入。具体地,输入单元1530可包括触控面板1531以及其他输入设备1532。触控面板1531,也称为触摸屏,可收 集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板1531上或在触控面板1531附近的操作),并根据预先设定的程式驱动相应的连接装置。可选的,触控面板1531可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器1580,并能接收处理器1580发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板1531。除了触控面板1531,输入单元1530还可以包括其他输入设备1532。具体地,其他输入设备1532可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。The input unit 1530 can be configured to receive input numeric or character information and to generate key signal inputs related to user settings and function controls of the user device. Specifically, the input unit 1530 may include a touch panel 1531 and other input devices 1532. The touch panel 1531, also referred to as a touch screen, can collect touch operations on or near the user (such as the user using a finger, a stylus, or the like on the touch panel 1531 or near the touch panel 1531. Operation), and drive the corresponding connecting device according to a preset program. Optionally, the touch panel 1531 may include two parts: a touch detection device and a touch controller. Wherein, the touch detection device detects the touch orientation of the user, and detects a signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts the touch information into contact coordinates, and sends the touch information. The processor 1580 is provided and can receive commands from the processor 1580 and execute them. In addition, the touch panel 1531 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves. In addition to the touch panel 1531, the input unit 1530 may also include other input devices 1532. Specifically, other input devices 1532 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), trackballs, mice, joysticks, and the like.
显示单元1540可用于显示由用户输入的信息或提供给用户的信息以及用户设备的各种菜单。显示单元1540可包括显示面板1541,可选的,可以采用液晶显示器(Liquid Crystal Display,LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板1541。进一步的,触控面板1531可覆盖显示面板1541,当触控面板1531检测到在其上或附近的触摸操作后,传送给处理器1580以确定触摸事件的类型,随后处理器1580根据触摸事件的类型在显示面板1541上提供相应的视觉输出。虽然在图15中,触控面板1531与显示面板1541是作为两个独立的部件来实现用户设备的输入和输入功能,但是在某些实施例中,可以将触控面板1531与显示面板1541集成而实现用户设备的输入和输出功能。The display unit 1540 can be used to display information input by the user or information provided to the user as well as various menus of the user device. The display unit 1540 can include a display panel 1541. Alternatively, the display panel 1541 can be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like. Further, the touch panel 1531 may cover the display panel 1541. After the touch panel 1531 detects a touch operation on or near the touch panel 1531, the touch panel 1531 transmits to the processor 1580 to determine the type of the touch event, and then the processor 1580 according to the touch event. The type provides a corresponding visual output on display panel 1541. Although in FIG. 15 , the touch panel 1531 and the display panel 1541 are used as two independent components to implement input and input functions of the user device, in some embodiments, the touch panel 1531 and the display panel 1541 may be integrated. The input and output functions of the user device are implemented.
用户设备还可包括至少一种传感器1550,比如光传感器、运动传感器以及其他传感器。具体地,光传感器可包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板1541的亮度,接近传感器可在用户设备移动到耳边时,关闭显示面板1541和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别用户设备姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲 击)等;至于用户设备还可配置的陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器,在此不再赘述。The user device may also include at least one type of sensor 1550, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 1541 according to the brightness of the ambient light, and the proximity sensor may close the display panel 1541 when the user equipment moves to the ear. / or backlight. As a kind of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in all directions (usually three axes). When it is stationary, it can detect the magnitude and direction of gravity. It can be used to identify the posture of user equipment (such as horizontal and vertical screen switching, Related games, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tapping), etc.; as for the gyroscope, barometer, hygrometer, thermometer, infrared sensor and other sensors that can be configured by the user equipment, here No longer.
音频电路1560、扬声器1561,传声器1562可提供用户与用户设备之间的音频接口。音频电路1560可将接收到的音频数据转换后的电信号,传输到扬声器1561,由扬声器1561转换为声音信号输出;另一方面,传声器1562将收集的声音信号转换为电信号,由音频电路1560接收后转换为音频数据,再将音频数据输出处理器1580处理后,经RF电路1510以发送给比如另一用户设备,或者将音频数据输出至存储器1520以便进一步处理。An audio circuit 1560, a speaker 1561, and a microphone 1562 can provide an audio interface between the user and the user device. The audio circuit 1560 can transmit the converted electrical data of the received audio data to the speaker 1561, and convert it into a sound signal output by the speaker 1561. On the other hand, the microphone 1562 converts the collected sound signal into an electrical signal, and the audio circuit 1560. After receiving, it is converted into audio data, and then processed by the audio data output processor 1580, transmitted to the other user equipment via the RF circuit 1510, or outputted to the memory 1520 for further processing.
WiFi属于短距离无线传输技术,用户设备通过WiFi模块1570可以帮助用户收发电子邮件、浏览网页和访问流式媒体等,它为用户提供了无线的宽带互联网访问。虽然图15示出了WiFi模块1570,但是可以理解的是,其并不属于用户设备的必须构成,完全可以根据需要在不改变发明的本质的范围内而省略。WiFi is a short-range wireless transmission technology, and the user equipment can help users to send and receive emails, browse web pages, and access streaming media through the WiFi module 1570, which provides users with wireless broadband Internet access. Although FIG. 15 shows the WiFi module 1570, it can be understood that it does not belong to the essential configuration of the user equipment, and may be omitted as needed within the scope of not changing the essence of the invention.
处理器1580是用户设备的控制中心,利用各种接口和线路连接整个用户设备的各个部分,通过运行或执行存储在存储器1520内的软件程序和/或模块,以及调用存储在存储器1520内的数据,执行用户设备的各种功能和处理数据,从而对用户设备进行整体监控。可选的,处理器1580可包括一个或多个处理单元;优选的,处理器1580可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器1580中。The processor 1580 is a control center for the user equipment, connecting various portions of the entire user equipment using various interfaces and lines, by running or executing software programs and/or modules stored in the memory 1520, and recalling data stored in the memory 1520. The user equipment is subjected to various functions and processing data to perform overall monitoring of the user equipment. Optionally, the processor 1580 may include one or more processing units; preferably, the processor 1580 may integrate an application processor and a modem processor, where the application processor mainly processes an operating system, a user interface, an application, and the like. The modem processor primarily handles wireless communications. It will be appreciated that the above described modem processor may also not be integrated into the processor 1580.
用户设备还包括给各个部件供电的电源1590(比如电池),优选的,电源可以通过电源管理系统与处理器1580逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。The user equipment also includes a power source 1590 (such as a battery) that supplies power to the various components. Preferably, the power source can be logically coupled to the processor 1580 via a power management system to manage functions such as charging, discharging, and power management through the power management system.
尽管未示出,用户设备还可以包括摄像头、蓝牙模块等,在此不再赘述。Although not shown, the user equipment may further include a camera, a Bluetooth module, and the like, and details are not described herein again.
本实施例还提供了一种计算机可读存储介质,存储有程序指令,其中,所述处理器执行所存储的程序指令时执行如上述所示的所述的方法。The embodiment further provides a computer readable storage medium storing program instructions, wherein the processor executes the stored program instructions to perform the method as described above.
本说明书中各个实施例采用递进的方式描述,每个实施例重点说明的都是 与其他实施例的不同之处,各个实施例之间相同相似部分互相参见即可。对于实施例公开的装置而言,由于其与实施例公开的方法相对应,所以描述的比较简单,相关之处参见方法部分说明即可。The various embodiments in the present specification are described in a progressive manner, and each embodiment focuses on differences from other embodiments, and the same similar parts between the various embodiments may be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.
专业人员还可以进一步意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、计算机软件或者二者的结合来实现,为了清楚地说明硬件和软件的可互换性,在上述说明中已经按照功能一般性地描述了各示例的组成及步骤。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。A person skilled in the art will further appreciate that the elements and algorithm steps of the various examples described in connection with the embodiments disclosed herein can be implemented in electronic hardware, computer software or a combination of both, in order to clearly illustrate the hardware and software. Interchangeability, the composition and steps of the various examples have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the solution. A person skilled in the art can use different methods for implementing the described functions for each particular application, but such implementation should not be considered to be beyond the scope of the present invention.
结合本文中所公开的实施例描述的方法或算法的步骤可以直接用硬件、处理器执行的软件模块,或者二者的结合来实施。软件模块可以置于随机存储器(RAM)、内存、只读存储器(ROM)、电可编程ROM、电可擦除可编程ROM、寄存器、硬盘、可移动磁盘、CD-ROM、或技术领域内所公知的任意其它形式的存储介质中。The steps of a method or algorithm described in connection with the embodiments disclosed herein can be implemented directly in hardware, a software module executed by a processor, or a combination of both. The software module can be placed in random access memory (RAM), memory, read only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or technical field. Any other form of storage medium known.
对所公开的实施例的上述说明,使本领域专业技术人员能够实现或使用本发明。对这些实施例的多种修改对本领域的专业技术人员来说将是显而易见的,本文中所定义的一般原理可以在不脱离本发明的核心思想或范围的情况下,在其它实施例中实现。因此,本发明将不会被限制于本文所示的这些实施例,而是要符合与本文所公开的原理和新颖特点相一致的最宽的范围。The above description of the disclosed embodiments enables those skilled in the art to make or use the invention. Various modifications to these embodiments are obvious to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the invention. Therefore, the present invention is not to be limited to the embodiments shown herein, but the scope of the invention is to be accorded

Claims (28)

  1. 一种数据处理方法,其特征在于,应用于第一应用客户端,所述第一应用客户端为用于生成虚拟对象的应用客户端,所述方法包括:A data processing method is applied to a first application client, where the first application client is an application client for generating a virtual object, and the method includes:
    获取应用事件的完成证据,所述完成证据包括:第一用户完成所述应用事件的完成记录以及所述应用事件关联的虚拟对象数据;Obtaining evidence of completion of the application event, the completion evidence includes: completing a record of completion of the application event by the first user and virtual object data associated with the application event;
    根据所述完成证据,生成所述虚拟对象数据对应的数据区块;Generating, according to the completion evidence, a data block corresponding to the virtual object data;
    将所述完成记录、指示信息以及签名信息添加在所述数据区块中,所述指示信息用于标识所述虚拟对象数据;Adding the completion record, the indication information, and the signature information in the data block, where the indication information is used to identify the virtual object data;
    将添加有所述第一用户的签名信息的所述数据区块广播到区块链网络,所述区块链网络接入有多个应用客户端。The data block to which the signature information of the first user is added is broadcasted to a blockchain network, and the blockchain network accesses a plurality of application clients.
  2. 根据权利要求1所述的数据处理方法,其特征在于,所述完成记录包括如下所示的至少一项:The data processing method according to claim 1, wherein said completion record comprises at least one of the following:
    所述应用事件的行为记录、结果记录以及所述应用事件的描述内容。The behavior record of the application event, the result record, and the description content of the application event.
  3. 根据权利要求2所述的数据处理方法,其特征在于,所述获取应用事件的完成证据包括:The data processing method according to claim 2, wherein the obtaining evidence of completion of the application event comprises:
    向应用服务器发送用于指示所述应用事件完成的应用事件通知;Sending an application event notification for indicating that the application event is completed to the application server;
    获取所述应用服务器发送的所述应用事件关联的虚拟对象数据,及所述应用事件相对应的私钥;其中,所述应用服务器为所述应用事件分配有相对应的一对公钥和所述私钥;Acquiring the virtual object data associated with the application event sent by the application server, and the private key corresponding to the application event; wherein the application server allocates a corresponding pair of public keys and the same for the application event Private key
    获取所述行为记录和/或结果记录;Obtaining the behavior record and/or result record;
    将所述行为记录和/或结果记录使用所述私钥进行签名;Recording the behavior record and/or result record using the private key;
    根据所述虚拟对象数据及使用所述私钥签名的所述行为记录和/或结果记录,确定所述完成证据。The completion evidence is determined based on the virtual object data and the behavior record and/or result record signed using the private key.
  4. 根据权利要求3所述的数据处理方法,其特征在于,所述获取所述行为记录和/或结果记录包括:The data processing method according to claim 3, wherein the obtaining the behavior record and/or the result record comprises:
    获取所述应用服务器发送的所述行为记录和/或结果记录;Obtaining the behavior record and/or result record sent by the application server;
    或,获取所述第一应用客户端确定的所述行为记录和/或结果记录。Or acquiring the behavior record and/or result record determined by the first application client.
  5. 根据权利要求1所述的数据处理方法,其特征在于,所述方法还包括:The data processing method according to claim 1, wherein the method further comprises:
    接收所述区块链网络中传播的所述数据区块,所述数据区块携带有第二用户完成应用事件的行为记录和/或结果记录,及指示第二用户完成的应用事件关联的虚拟对象数据的指示信息;其中,所述行为记录和/或结果记录使用第二用户完成的应用事件对应的私钥签名;Receiving, by the data block, the data block that is propagated in the blockchain network, where the data block carries a behavior record and/or a result record of a second user completing an application event, and a virtual object associated with an application event that is completed by the second user. The indication information of the object data; wherein the behavior record and/or the result record is signed with a private key corresponding to the application event completed by the second user;
    解析所接收的所述数据区块,获取使用所述私钥签名的所述行为记录和/或结果记录,及指示所述指示信息;Parsing the received data block, obtaining the behavior record and/or result record signed using the private key, and indicating the indication information;
    向所述应用服务器请求所述第二用户完成的应用事件相应的公钥;Requesting, by the application server, a public key corresponding to the application event completed by the second user;
    使用所获取的所述公钥,解开使用所述私钥签名的行为记录和/或结果记录,得到所述第二用户完成应用事件的所述行为记录和/或结果记录;Using the obtained public key, undoing the behavior record and/or result record signed by the private key, and obtaining the behavior record and/or result record of the second user completing the application event;
    根据所述行为记录和/或结果记录模拟应用事件的完成过程以得到模拟结果;Completing a simulation application event completion process according to the behavior record and/or result to obtain a simulation result;
    根据所述模拟结果验证所接收的所述数据区块的有效性。The validity of the received data block is verified based on the simulation result.
  6. 根据权利要求5所述的数据处理方法,其特征在于,所述根据所述模拟结果验证所接收的所述数据区块的有效性包括:The data processing method according to claim 5, wherein the verifying the validity of the received data block according to the simulation result comprises:
    如果所述模拟结果为所得到的所述行为记录和/或结果记录能够完成应用事件,且所述应用事件的完成奖励与所述虚拟对象数据对应,确定所接收的数据区块有效;If the simulation result is that the obtained behavior record and/or result record can complete an application event, and the completion reward of the application event corresponds to the virtual object data, determining that the received data block is valid;
    如果所述模拟结果为所得到的所述行为记录和/或结果记录不能够完成应用事件,和/或,所述应用事件的完成奖励与所述虚拟对象数据不对应,则确定所接收的数据区块无效。Determining the received data if the simulation result is that the obtained behavior record and/or result record cannot complete the application event, and/or the completion reward of the application event does not correspond to the virtual object data The block is invalid.
  7. 根据权利要求1所述的数据处理方法,其特征在于,如果所述应用事件关联的虚拟对象数据的虚拟对象类型为第一类虚拟对象,所述完成证据包括:所述第一用户完成所述应用事件的完成记录,以及所述应用事件关联的第一类虚拟对象的虚拟对象数据;The data processing method according to claim 1, wherein if the virtual object type of the virtual object data associated with the application event is a first type of virtual object, the completion evidence comprises: the first user completing the a completion record of the application event, and virtual object data of the first type of virtual object associated with the application event;
    所述根据所述完成证据,生成所述虚拟对象数据对应的数据区块包括:And generating, according to the completion evidence, the data block corresponding to the virtual object data includes:
    根据所述完成证据,生成与所述第一类虚拟对象的虚拟对象数据对应的主数据区块。And generating, according to the completion evidence, a main data block corresponding to the virtual object data of the first type of virtual object.
  8. 根据权利要求7所述的方法,其特征在于,所述将所述完成记录、指 示信息以及所述签名信息添加在所述数据区块中包括:The method of claim 7, wherein the adding the completion record, the indication information, and the signature information to the data block comprises:
    将所述完成记录、所述指示信息以及所述签名信息添加在所述主数据区块中。The completion record, the indication information, and the signature information are added in the main data block.
  9. 根据权利要求7或8所述的数据处理方法,其特征在于,如果所述应用事件关联的虚拟对象数据的虚拟对象类型为第二类虚拟对象,所述完成证据包括:所述第一用户完成所述应用事件的完成记录,以及所述应用事件关联的第二类虚拟对象的虚拟对象数据;The data processing method according to claim 7 or 8, wherein if the virtual object type of the virtual object data associated with the application event is a second type of virtual object, the completion evidence comprises: the first user completing a completion record of the application event, and virtual object data of the second type of virtual object associated with the application event;
    所述方法还包括:The method further includes:
    确定与所述第二类虚拟对象的虚拟对象数据对应的,第一类虚拟对象的虚拟对象数据;Determining virtual object data of the first type of virtual object corresponding to the virtual object data of the second type of virtual object;
    确定所述主数据区块伴随生成证据,所述主数据区块伴随生成证据包括:所述第一类虚拟对象的虚拟对象数据。Determining that the primary data block is accompanied by generating evidence, the primary data block companion generating evidence includes: virtual object data of the first type of virtual object.
  10. 根据权利要求9所述的数据处理方法,其特征在于,所述将所述完成记录、指示信息以及所述签名信息添加在所述数据区块中包括:The data processing method according to claim 9, wherein the adding the completion record, the indication information, and the signature information to the data block comprises:
    根据所述完成证据,生成与所述第二类虚拟对象的虚拟对象数据对应的侧数据区块,并在所述侧数据区块中携带所述完成记录,及指示所述第二类虚拟对象的虚拟对象数据的指示信息;And generating, according to the completion evidence, a side data block corresponding to the virtual object data of the second type of virtual object, and carrying the completion record in the side data block, and indicating the second type of virtual object Indication information of virtual object data;
    所述方法还包括:The method further includes:
    根据所述主数据区块伴随生成证据,生成与所述第一类虚拟对象的虚拟对象数据对应的所述主数据区块,所述主数据区块中携带有指示所述第一类虚拟对象的虚拟对象数据的指示信息。And generating, according to the generated data, the main data block corresponding to the virtual object data of the first type of virtual object, where the main data block carries the virtual object indicating the first type The indication of the virtual object data.
  11. 根据权利要求10所述的数据处理方法,其特征在于,所述为所述数据区块添加所述第一用户的签名信息包括:The data processing method according to claim 10, wherein the adding the signature information of the first user to the data block comprises:
    为所述侧数据区块添加所述第一用户对应的签名信息;Adding signature information corresponding to the first user to the side data block;
    所述将添加有所述签名信息的数据区块广播到区块链网络包括:The broadcasting the data block to which the signature information is added to the blockchain network includes:
    将添加有所述签名信息的侧数据区块广播到侧区块链网络;Broadcasting the side data block to which the signature information is added to the side block chain network;
    所述方法还包括:The method further includes:
    将所述主数据区块锁定到主区块链网络,直至所述侧数据区块对应的第二 类虚拟对象被交易时,解除所锁定的主数据区块。The main data block is locked to the main blockchain network until the second type of virtual object corresponding to the side data block is traded, and the locked main data block is released.
  12. 一种数据处理方法,其特征在于,应用于第一应用客户端,所述第一应用客户端为用于生成虚拟对象的应用客户端,所述方法包括:A data processing method is applied to a first application client, where the first application client is an application client for generating a virtual object, and the method includes:
    获取第一交易的交易请求;Obtaining a transaction request for the first transaction;
    根据所述交易请求生成第一交易对应的数据区块;所述数据区块携带有第一交易的交易记录,以及指示第一交易对应的虚拟对象数据的指示信息;Generating, according to the transaction request, a data block corresponding to the first transaction; the data block carries a transaction record of the first transaction, and indication information indicating virtual object data corresponding to the first transaction;
    将所述数据区块广播到区块链网络。Broadcasting the data block to a blockchain network.
  13. 根据权利要求12所述的数据处理方法,其特征在于,所述方法还包括:The data processing method according to claim 12, wherein the method further comprises:
    从应用服务器获取第一交易对应的私钥;所述应用服务器为第一交易分配有相对应的一对公钥和私钥;Obtaining, from the application server, a private key corresponding to the first transaction; the application server assigning a corresponding pair of public and private keys to the first transaction;
    将所述第一交易的交易记录使用所述私钥进行签名,并携带在所述数据区块中。Transaction records of the first transaction are signed using the private key and carried in the data block.
  14. 根据权利要求12所述的数据处理方法,其特征在于,所述方法还包括:The data processing method according to claim 12, wherein the method further comprises:
    接收所述区块链网络中传播的第二交易对应的数据区块,所述第二交易对应的数据区块携带有第二交易的交易记录,及指示第二交易对应的虚拟对象数据的指示信息;其中,第二交易的交易记录使用第二交易对应的私钥签名;Receiving a data block corresponding to the second transaction that is propagated in the blockchain network, where the data block corresponding to the second transaction carries a transaction record of the second transaction, and an indication indicating the virtual object data corresponding to the second transaction Information; wherein the transaction record of the second transaction is signed using a private key corresponding to the second transaction;
    获取第二交易对应的公钥,使用所获取的公钥,解开使用私钥签名的第二交易的交易记录;Obtaining a public key corresponding to the second transaction, and using the obtained public key, unlocking the transaction record of the second transaction signed by the private key;
    根据所得到的交易记录模拟第二交易的完成过程以得到模拟结果;Simulating the completion process of the second transaction based on the obtained transaction record to obtain a simulation result;
    根据所述模拟结果验证所述第二交易对应的数据区块的有效性。Validating the validity of the data block corresponding to the second transaction according to the simulation result.
  15. 根据权利要求12所述的数据处理方法,其特征在于,如果所述第一交易对应的虚拟对象数据为,初次交易的侧数据区块对应的第二类虚拟对象数据,所述方法还包括:The data processing method according to claim 12, wherein if the virtual object data corresponding to the first transaction is the second type of virtual object data corresponding to the side data block of the initial transaction, the method further comprises:
    将所述侧数据区块所对应的处于锁定状态的主数据区块进行释放。The main data block in the locked state corresponding to the side data block is released.
  16. 一种应用客户端,其特征在于,包括:An application client, comprising:
    完成证据获取模块,用于获取应用事件的完成证据,所述完成证据包括: 第一用户完成所述应用事件的完成记录以及所述应用事件关联的虚拟对象数据;The completion evidence obtaining module is configured to obtain the completion evidence of the application event, where the completion evidence includes: the first user completing the completion record of the application event and the virtual object data associated with the application event;
    数据区块生成模块,用于根据所述完成证据,生成所述虚拟对象数据对应的数据区块;a data block generating module, configured to generate a data block corresponding to the virtual object data according to the completion evidence;
    签名添加模块,用于为将所述完成记录、指示信息以及所述签名信息添加在所述数据区块中,所述指示信息用于标识所述虚拟对象数据;a signature adding module, configured to add the completion record, the indication information, and the signature information in the data block, where the indication information is used to identify the virtual object data;
    第一广播模块,用于将添加有所述第一用户的签名信息的所述数据区块广播到区块链网络,所述区块链网络接入有多个应用客户端。And a first broadcast module, configured to broadcast the data block to which the signature information of the first user is added to a blockchain network, where the blockchain network accesses multiple application clients.
  17. 根据权利要求16所述的应用客户端,其特征在于,所述完成记录包括如下所示的至少一项:所述应用事件的行为记录、结果记录以及所述应用事件的描述内容,所述完成证据获取模块,用于获取第一用户完成所述应用事件的完成证据,具体包括:The application client according to claim 16, wherein the completion record comprises at least one of the following: a behavior record of the application event, a result record, and a description content of the application event, the completion The evidence obtaining module is configured to obtain evidence that the first user completes the application event, and specifically includes:
    向应用服务器发送用于指示所述应用事件完成的应用事件通知;Sending an application event notification for indicating that the application event is completed to the application server;
    获取所述应用服务器发送的所述应用事件关联的虚拟对象数据,及所述应用事件相对应的私钥;其中,所述应用服务器为所述应用事件分配有相对应的一对公钥和所述私钥;Acquiring the virtual object data associated with the application event sent by the application server, and the private key corresponding to the application event; wherein the application server allocates a corresponding pair of public keys and the same for the application event Private key
    获取所述行为记录和/或结果记录;Obtaining the behavior record and/or result record;
    将所述行为记录和/或结果记录使用所述私钥进行签名;Recording the behavior record and/or result record using the private key;
    根据所述虚拟对象数据及使用所述私钥签名的所述行为记录和/或结果记录,确定所述完成证据。The completion evidence is determined based on the virtual object data and the behavior record and/or result record signed using the private key.
  18. 根据权利要求17所述的应用客户端,其特征在于,所述完成证据获取模块还包括:The application client according to claim 17, wherein the completion evidence obtaining module further comprises:
    获取所述应用服务器发送的所述行为记录和/或结果记录;Obtaining the behavior record and/or result record sent by the application server;
    或,获取所述第一应用客户端确定的所述行为记录和/或结果记录。Or acquiring the behavior record and/or result record determined by the first application client.
  19. 根据权利要求16所述的应用客户端,其特征在于,所述应用客户端还包括:The application client according to claim 16, wherein the application client further comprises:
    第一有效性验证模块,用于接收所述区块链网络中传播的所述数据区块,所述数据区块携带有第二用户完成应用事件的行为记录和/或结果记录,及指 示第二用户完成的应用事件关联的虚拟对象数据的指示信息;其中,所述行为记录和/或结果记录使用第二用户完成的应用事件对应的私钥签名;解析所接收的所述数据区块,获取使用所述私钥签名的所述行为记录和/或结果记录,及指示所述指示信息;向所述应用服务器请求所述第二用户完成的应用事件相应的公钥;使用所获取的所述公钥,解开使用所述私钥签名的行为记录和/或结果记录,得到所述第二用户完成应用事件的所述行为记录和/或结果记录;根据所述行为记录和/或结果记录模拟应用事件的完成过程以得到模拟结果;根据所述模拟结果验证所接收的所述数据区块的有效性,其中,如果所述模拟结果为所得到的所述行为记录和/或结果记录能够完成应用事件,且所述应用事件的完成奖励与所述虚拟对象数据对应,确定所接收的数据区块有效;如果所述模拟结果为所得到的所述行为记录和/或结果记录不能够完成应用事件,和/或,所述应用事件的完成奖励与所述虚拟对象数据不对应,则确定所接收的数据区块无效。a first validity verification module, configured to receive the data block that is propagated in the blockchain network, where the data block carries a behavior record and/or a result record of a second user completing an application event, and an indication The indication information of the virtual object data associated with the application event completed by the second user; wherein the behavior record and/or the result record is signed with a private key corresponding to the application event completed by the second user; and the received data block is parsed, Obtaining the behavior record and/or result record signed by using the private key, and indicating the indication information; requesting, by the application server, a public key corresponding to an application event completed by the second user; using the acquired location Declaring a public key, undoing a behavior record and/or a result record signed using the private key, obtaining the behavior record and/or result record of the second user completing an application event; recording and/or result according to the behavior Recording a completion process of the simulated application event to obtain a simulation result; verifying the validity of the received data block based on the simulation result, wherein if the mode The result is that the obtained behavior record and/or result record can complete the application event, and the completion reward of the application event corresponds to the virtual object data, and the received data block is determined to be valid; if the simulation result is If the obtained behavior record and/or result record cannot complete the application event, and/or the completion reward of the application event does not correspond to the virtual object data, it is determined that the received data block is invalid.
  20. 根据权利要求16所述的应用客户端,其特征在于,如果所述应用事件关联的虚拟对象数据的虚拟对象类型为第一类虚拟对象,所述完成证据包括:所述第一用户完成所述应用事件的完成记录,以及所述应用事件关联的第一类虚拟对象的虚拟对象数据;所述数据区块生成模块具体用于:根据所述完成证据,生成与所述第一类虚拟对象的虚拟对象数据对应的主数据区块,将所述完成记录、所述指示信息以及所述签名信息添加在所述主数据区块中。The application client according to claim 16, wherein if the virtual object type of the virtual object data associated with the application event is a first type of virtual object, the completion evidence comprises: the first user completing the a completion record of the application event, and virtual object data of the first type of virtual object associated with the application event; the data block generation module is specifically configured to: generate, according to the completion evidence, the virtual object of the first type The main data block corresponding to the virtual object data adds the completion record, the indication information, and the signature information to the main data block.
  21. 根据权利要求19或20所述的应用客户端,其特征在于,如果所述应用事件关联的虚拟对象数据的虚拟对象类型为第二类虚拟对象,所述完成证据包括:所述第一用户完成所述应用事件的完成记录,以及所述应用事件关联的第二类虚拟对象的虚拟对象数据;所述数据区块生成模块还用于:The application client according to claim 19 or 20, wherein if the virtual object type of the virtual object data associated with the application event is a second type of virtual object, the completion evidence includes: the first user completes a completion record of the application event, and virtual object data of the second type of virtual object associated with the application event; the data block generation module is further configured to:
    确定与所述第二类虚拟对象的虚拟对象数据对应的,第一类虚拟对象的虚拟对象数据;Determining virtual object data of the first type of virtual object corresponding to the virtual object data of the second type of virtual object;
    确定所述主数据区块伴随生成证据,所述主数据区块伴随生成证据包括:所述第一类虚拟对象的虚拟对象数据。Determining that the primary data block is accompanied by generating evidence, the primary data block companion generating evidence includes: virtual object data of the first type of virtual object.
  22. 根据权利要求21所述的应用客户端,其特征在于,所述签名添加模 块还用于,根据所述完成证据,生成与所述第二类虚拟对象的虚拟对象数据对应的侧数据区块,并在所述侧数据区块中携带所述完成记录,及指示所述第二类虚拟对象的虚拟对象数据的指示信息;所述数据区块生成模块还用于,根据所述主数据区块伴随生成证据,生成与所述第一类虚拟对象的虚拟对象数据对应的所述主数据区块,所述主数据区块中携带有指示所述第一类虚拟对象的虚拟对象数据的指示信息。The application client according to claim 21, wherein the signature adding module is further configured to generate a side data block corresponding to the virtual object data of the second type virtual object according to the completion evidence, And performing, in the side data block, the completion record, and indication information indicating virtual object data of the second type of virtual object; the data block generation module is further configured to: according to the main data block Accompving the generated evidence, generating the main data block corresponding to the virtual object data of the first type of virtual object, where the main data block carries indication information indicating virtual object data of the first type of virtual object .
  23. 根据权利要求22所述的应用客户端,其特征在于,所述签名添加模块具体包括:The application client according to claim 22, wherein the signature adding module specifically includes:
    为所述侧数据区块添加所述第一用户对应的签名信息;Adding signature information corresponding to the first user to the side data block;
    所述第一广播模块,用于将添加有所述签名信息的数据区块广播到区块链网络,具体包括:The first broadcast module is configured to broadcast the data block to which the signature information is added to the blockchain network, and specifically includes:
    将添加有所述签名信息的侧数据区块广播到侧区块链网络;Broadcasting the side data block to which the signature information is added to the side block chain network;
    应用客户端还可用于:The application client can also be used to:
    将所述主数据区块锁定到主区块链网络,直至所述侧数据区块对应的第二类虚拟对象被交易时,解除所锁定的主数据区块。The main data block is locked to the main blockchain network until the second type of virtual object corresponding to the side data block is traded, and the locked main data block is released.
  24. 一种应用客户端,其特征在于,包括:An application client, comprising:
    交易请求获取模块,用于获取第一交易的交易请求;a transaction request obtaining module, configured to acquire a transaction request of the first transaction;
    生成模块,用于根据所述交易请求生成第一交易对应的数据区块;所述数据区块携带有第一交易的交易记录,以及指示第一交易对应的虚拟对象数据的指示信息;a generating module, configured to generate, according to the transaction request, a data block corresponding to the first transaction; the data block carries a transaction record of the first transaction, and indication information indicating virtual object data corresponding to the first transaction;
    第二广播模块,用于将所述数据区块广播到区块链网络。a second broadcast module, configured to broadcast the data block to a blockchain network.
  25. 根据权利要求24所述的应用客户端,其特征在于,如果第一交易对应的虚拟对象数据为,初次交易的侧数据区块对应的第二类虚拟对象数据;The application client according to claim 24, wherein if the virtual object data corresponding to the first transaction is the second type of virtual object data corresponding to the side data block of the initial transaction;
    所述应用客户端还可用于:将该侧数据区块所对应的处于锁定状态的主数据区块进行释放。The application client may be further configured to: release the main data block in the locked state corresponding to the side data block.
  26. 一种数据处理系统,其特征在于,包括:应用服务器,运营服务器,数据库,权利要求16-25任一项所述的应用客户端。A data processing system, comprising: an application server, an operation server, a database, and an application client according to any one of claims 16-25.
  27. 一种用户设备,其特征在于,包括:A user equipment, comprising:
    一个或多个处理器、存储器、总线系统、以及一个或多个程序,所述处理器和所述存储器通过所述总线系统相连;One or more processors, memories, bus systems, and one or more programs, the processors and the memory being coupled by the bus system;
    其中所述一个或多个程序被存储在所述存储器中,所述一个或多个程序包括指令,所述指令当被所述终端设备执行时使所述终端设备执行如权利要求1至15任一项所述的方法。Wherein the one or more programs are stored in the memory, the one or more programs comprising instructions that, when executed by the terminal device, cause the terminal device to perform any of claims 1 to 15 One of the methods described.
  28. 一种计算机可读存储介质,存储有程序指令,其特征在于,处理器执行所存储的程序指令时执行根据权利要求1至15中任一项所述的方法。A computer readable storage medium storing program instructions, wherein the processor executes the stored program instructions to perform the method of any one of claims 1-15.
PCT/CN2018/072260 2017-02-08 2018-01-11 Data processing method, related device and system, and computer readable storage medium WO2018145554A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710069478.3 2017-02-08
CN201710069478.3A CN107979585B (en) 2017-02-08 2017-02-08 Data processing method, application client and system

Publications (1)

Publication Number Publication Date
WO2018145554A1 true WO2018145554A1 (en) 2018-08-16

Family

ID=62004208

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/072260 WO2018145554A1 (en) 2017-02-08 2018-01-11 Data processing method, related device and system, and computer readable storage medium

Country Status (2)

Country Link
CN (3) CN107979585B (en)
WO (1) WO2018145554A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110245185A (en) * 2019-05-21 2019-09-17 平安普惠企业管理有限公司 Data processing method, terminal device and computer storage medium based on alliance's chain
CN111008184A (en) * 2019-12-04 2020-04-14 北京搜狐新媒体信息技术有限公司 Data analysis method, device, server and storage medium
CN111507706A (en) * 2019-01-31 2020-08-07 华为技术有限公司 Data browsing and storing method and device, computer equipment and storage medium

Families Citing this family (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108629694B (en) * 2018-05-16 2021-04-30 北京京东尚科信息技术有限公司 Risk control system and method, and computer-readable storage medium
CN109224453B (en) * 2018-06-28 2021-07-09 平安科技(深圳)有限公司 Game supervision method and system, computer equipment and computer-readable storage medium
CN109348451A (en) * 2018-08-09 2019-02-15 北京邮电大学 The storage method and device of vehicle auxiliary transmission record
CN110868372B (en) * 2018-08-27 2022-05-31 中兴通讯股份有限公司 Block chain-based method and device for enhancing northbound interface security
CN111213134A (en) * 2018-09-19 2020-05-29 因特比有限公司 Method and system for performing hyper-convergence using blockchains
CN109432780B (en) * 2018-09-29 2021-08-31 杭州复杂美科技有限公司 Game deployment method based on parallel chain, game method, game device and storage medium
CN109377223B (en) * 2018-10-18 2021-07-27 李玥 Method and system for managing network security event handling process based on block chain technology
CN109377366B (en) * 2018-10-23 2021-07-20 杭州能链科技有限公司 Block chain-based evidence-based processing method and device and storage medium
CN109410007B (en) * 2018-10-30 2021-05-11 杭州复杂美科技有限公司 Jigsaw puzzle game method, system, equipment and storage medium
CN109636362A (en) * 2018-11-14 2019-04-16 深圳前海达闼云端智能科技有限公司 Virtual asset transaction method and device and block chain network node
CN109731328A (en) * 2018-12-29 2019-05-10 杭州趣链科技有限公司 A kind of block chain game data storage method based on BaaS
CN109872223B (en) * 2019-02-12 2021-05-28 百度在线网络技术(北京)有限公司 Virtual article transaction method, device, equipment and storage medium
CN110798529B (en) * 2019-11-06 2022-05-13 腾讯科技(深圳)有限公司 Data processing method, block chain link point equipment and computer storage medium
CN111478959A (en) * 2020-04-02 2020-07-31 深圳市九九八八网络科技有限公司 Distributed storage method for game transaction platform
CN111617469B (en) * 2020-06-04 2023-09-26 广州西山居网络科技有限公司 Game data processing method and device
CN113177820B (en) * 2021-04-25 2023-01-17 中国联合网络通信集团有限公司 Resource processing method and system
CN113438293A (en) * 2021-06-22 2021-09-24 深圳壹账通智能科技有限公司 Service system, method, device and storage medium based on block chain

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150363783A1 (en) * 2014-06-16 2015-12-17 Bank Of America Corporation Cryptocurrency risk detection system
CN105912618A (en) * 2016-04-07 2016-08-31 浙江万马新能源有限公司 Block chain based charging pile charging transaction communication method and device
US20160371679A1 (en) * 2014-04-28 2016-12-22 WageCan Inc. Virtual currency transaction through payment card
CN106326752A (en) * 2016-08-13 2017-01-11 深圳市樊溪电子有限公司 Program-controlled encrypted file storage system for block chain and method thereof
CN106341421A (en) * 2016-10-31 2017-01-18 杭州云象网络技术有限公司 Block chain technology based data exchange method

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150046337A1 (en) * 2013-08-06 2015-02-12 Chin-hao Hu Offline virtual currency transaction
CN103927659A (en) * 2014-04-18 2014-07-16 刘志望 Immediate transfer and secure payment method of virtual currency
CN104320262B (en) * 2014-11-05 2017-07-21 中国科学院合肥物质科学研究院 The method and system of client public key address binding, retrieval and the verification of account book technology are disclosed based on encryption digital cash
US9967334B2 (en) * 2015-03-02 2018-05-08 Dell Products Lp Computing device configuration and management using a secure decentralized transaction ledger
CN105488665A (en) * 2015-11-25 2016-04-13 布比(北京)网络技术有限公司 Decentralized transaction method
CN105427104A (en) * 2015-12-08 2016-03-23 布比(北京)网络技术有限公司 Method and method for handling digital assets by means of distributed general ledger
CN105573828B (en) * 2015-12-17 2019-04-12 布比(北京)网络技术有限公司 A kind of operation processing method and device
CN106022681A (en) * 2016-05-13 2016-10-12 杭州云象网络技术有限公司 Logistics tracking method based on block chain

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160371679A1 (en) * 2014-04-28 2016-12-22 WageCan Inc. Virtual currency transaction through payment card
US20150363783A1 (en) * 2014-06-16 2015-12-17 Bank Of America Corporation Cryptocurrency risk detection system
CN105912618A (en) * 2016-04-07 2016-08-31 浙江万马新能源有限公司 Block chain based charging pile charging transaction communication method and device
CN106326752A (en) * 2016-08-13 2017-01-11 深圳市樊溪电子有限公司 Program-controlled encrypted file storage system for block chain and method thereof
CN106341421A (en) * 2016-10-31 2017-01-18 杭州云象网络技术有限公司 Block chain technology based data exchange method

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111507706A (en) * 2019-01-31 2020-08-07 华为技术有限公司 Data browsing and storing method and device, computer equipment and storage medium
CN111507706B (en) * 2019-01-31 2024-04-26 华为技术有限公司 Method, device, computer equipment and storage medium for browsing and storing data
CN110245185A (en) * 2019-05-21 2019-09-17 平安普惠企业管理有限公司 Data processing method, terminal device and computer storage medium based on alliance's chain
CN111008184A (en) * 2019-12-04 2020-04-14 北京搜狐新媒体信息技术有限公司 Data analysis method, device, server and storage medium
CN111008184B (en) * 2019-12-04 2023-09-08 北京搜狐新媒体信息技术有限公司 Data analysis method, device, server and storage medium

Also Published As

Publication number Publication date
CN110365686A (en) 2019-10-22
CN107979585B (en) 2020-08-04
CN110365686B (en) 2020-10-27
CN107979585A (en) 2018-05-01
CN110351285B (en) 2020-07-24
CN110351285A (en) 2019-10-18

Similar Documents

Publication Publication Date Title
WO2018145554A1 (en) Data processing method, related device and system, and computer readable storage medium
TWI713855B (en) Certificate management method and system
CN111612168B (en) Management method and related device for machine learning task
WO2018177124A1 (en) Service processing method and device, data sharing system and storage medium
WO2019158001A1 (en) Blockchain generating method, and related device and system
CN108696514B (en) Resource collection task management method, device, storage medium and system
US8433656B1 (en) Group licenses for virtual objects in a distributed virtual world
WO2019042274A1 (en) Resource transfer method and apparatus, and storage medium
CN109768977A (en) Streaming medium data processing method, device and relevant device and medium
CN111340482B (en) Conflict detection method, device, node equipment and storage medium
CN111339181B (en) Block storage method, block storage device, node equipment and storage medium
CN110585698B (en) Virtual asset transaction method and related device
CN111450538A (en) Virtual item transfer system, method, device, equipment and medium
CN110430194A (en) A kind of method of Information Authentication, the method and device of chess and card Information Authentication
WO2018082560A1 (en) Account number registration method, related device, and system
CN110581891A (en) Game data processing method, device, equipment and storage medium based on block chain
CN111667371B (en) Resource aggregation method, system, device and storage medium based on block chain
WO2018233584A1 (en) Method, device, computer apparatus, and storage medium for transferring account value
CN110601858A (en) Certificate management method and device
CN110201400A (en) Game item method of commerce, transaction terminal and storage medium based on block chain
CN111212074B (en) Blockchain-based qualification identification method, device, equipment and storage medium
CN110490590A (en) Activation record querying method, device, equipment and storage medium based on block chain
CN111760296B (en) Team forming processing method, device, terminal, server and storage medium
JP6046893B2 (en) Communication system, communication terminal, information processing method, and program
CN114092101B (en) Transaction verification method and device, storage medium and electronic equipment

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18751013

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18751013

Country of ref document: EP

Kind code of ref document: A1