[go: up one dir, main page]

CN120030579A - A data processing method, device, equipment and medium based on blockchain - Google Patents

A data processing method, device, equipment and medium based on blockchain Download PDF

Info

Publication number
CN120030579A
CN120030579A CN202311575196.2A CN202311575196A CN120030579A CN 120030579 A CN120030579 A CN 120030579A CN 202311575196 A CN202311575196 A CN 202311575196A CN 120030579 A CN120030579 A CN 120030579A
Authority
CN
China
Prior art keywords
game
asset
virtual
virtual game
assets
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202311575196.2A
Other languages
Chinese (zh)
Inventor
范滔
蓝虎
许士涛
佘仕好
高聪
梁作栋
莫洋
黄桂鸿
张慧
陈自民
卢江玮
秦波
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN202311575196.2A priority Critical patent/CN120030579A/en
Publication of CN120030579A publication Critical patent/CN120030579A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/62Protecting access to data via a platform, e.g. using keys or access control rules
    • G06F21/6218Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/70Game security or game management aspects
    • A63F13/79Game security or game management aspects involving player-related data, e.g. identities, accounts, preferences or play histories
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/64Protecting data integrity, e.g. using checksums, certificates or signatures

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Hardware Design (AREA)
  • Multimedia (AREA)
  • Health & Medical Sciences (AREA)
  • Bioethics (AREA)
  • General Health & Medical Sciences (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Business, Economics & Management (AREA)
  • General Business, Economics & Management (AREA)
  • Databases & Information Systems (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

本申请公开了一种基于区块链的数据处理方法、装置、设备及介质,方法包括:获取与第一游戏对象相关联的游戏资产客户端发送的资产兑换交易;资产兑换交易包括第一资产兑换交易;基于第一资产兑换交易调用部署在区块链上的第一资产业务合约,对第一游戏对象和第二游戏对象进行权限验证,得到第一权限验证结果;在第一权限验证结果指示第一游戏对象在第一虚拟游戏中持有第一游戏资产,且第二游戏对象在第二虚拟游戏中持有第二游戏资产时,通过第一资产业务合约,将第一游戏对象在第一虚拟游戏中的第一游戏资产,兑换为第二游戏对象在第二虚拟游戏中的第二游戏资产。采用本申请,可以实现虚拟游戏资产在不同虚拟游戏之间互通。

The present application discloses a data processing method, device, equipment and medium based on blockchain, the method comprising: obtaining an asset exchange transaction sent by a game asset client associated with a first game object; the asset exchange transaction comprises a first asset exchange transaction; based on the first asset exchange transaction, calling a first asset business contract deployed on the blockchain, performing authority verification on the first game object and the second game object, and obtaining a first authority verification result; when the first authority verification result indicates that the first game object holds a first game asset in the first virtual game, and the second game object holds a second game asset in the second virtual game, the first game asset of the first game object in the first virtual game is exchanged for the second game asset of the second game object in the second virtual game through the first asset business contract. By adopting the present application, virtual game assets can be interoperable between different virtual games.

Description

Data processing method, device, equipment and medium based on block chain
Technical Field
The present application relates to the field of blockchain technologies, and in particular, to a blockchain-based data processing method, apparatus, device, and medium.
Background
With the continuous development of computer technology, virtual games have become an important entertainment mode in people's daily lives. Currently, in various virtual games, virtual game assets are limited to use within a single virtual game, which greatly limits the liquidity of the virtual game assets so that game objects have a low ability to dominate the virtual game assets held by themselves.
Disclosure of Invention
The embodiment of the application provides a data processing method, device, equipment and medium based on a blockchain, which can realize intercommunication of virtual game assets among different virtual games and promote the dominance of game objects on the virtual game assets.
In one aspect, an embodiment of the present application provides a blockchain-based data processing method, the method being performed by a blockchain node in a blockchain network, a blockchain corresponding to the blockchain network having stored thereon virtual game assets associated with a virtual game, the virtual game including a first virtual game and a second virtual game, the first virtual game being different from the second virtual game, the virtual game assets including a first virtual game asset associated with the first virtual game and a second virtual game asset associated with the second virtual game, the method comprising:
Acquiring an asset exchange transaction sent by a game asset client associated with a first game object, wherein the asset exchange transaction comprises a first asset exchange transaction, wherein the first asset exchange transaction is used for exchanging a first game asset of the first game object in a first virtual game for a second game asset of a second game object in a second virtual game;
invoking a first asset business contract deployed on the blockchain based on a first asset exchange transaction, and performing authority verification on the first game object and the second game object to obtain a first authority verification result;
When the first authority verification result indicates that the first game object holds a first game asset in the first virtual game and the second game object holds a second game asset in the second virtual game, exchanging the first game asset of the first game object in the first virtual game for the second game asset of the second game object in the second virtual game through the first asset business contract.
In one aspect, an embodiment of the present application provides a blockchain-based data processing device, the device operating on a blockchain node in a blockchain network, the blockchain corresponding to the blockchain network storing virtual game assets associated with a virtual game, the virtual game including a first virtual game and a second virtual game, the first virtual game being different from the second virtual game, the virtual game assets including a first virtual game asset associated with the first virtual game and a second virtual game asset associated with the second virtual game, the device comprising:
the system comprises a transaction acquisition module, an asset exchange transaction module, a transaction processing module and a transaction processing module, wherein the transaction acquisition module is used for acquiring an asset exchange transaction sent by a game asset client associated with a first game object, wherein the asset exchange transaction comprises a first asset exchange transaction, the first asset exchange transaction refers to a transaction for exchanging a first game asset of the first game object in a first virtual game for a second game asset of a second game object in a second virtual game, the first game asset is an asset in the first virtual game asset, the second game asset is an asset in the second virtual game asset, and the first game object is different from the second game object;
the first verification module is used for calling a first asset business contract deployed on the blockchain based on a first asset exchange transaction, and carrying out authority verification on a first game object and a second game object to obtain a first authority verification result;
And the first exchange module is used for exchanging the first game asset of the first game object in the first virtual game into the second game asset of the second game object in the second virtual game through the first asset business contract when the first authority verification result indicates that the first game object holds the first game asset in the first virtual game and the second game object holds the second game asset in the second virtual game.
The virtual game assets include a first type of game asset, a second type of game asset, and a third type of game asset, the virtual game assets are created by game objects associated with the virtual game through asset business contracts deployed on the blockchain, the first virtual game asset includes one or more of the first type of game asset, the second type of game asset, and the third type of game asset associated with the first virtual game, the second virtual game asset includes one or more of the first type of game asset, the second type of game asset, and the third type of game asset associated with the second virtual game, the game objects include game offering objects and game service objects, the first game object is a game offering object or a game service object associated with the first virtual game, and the second game object is a game offering object or a game service object associated with the second virtual game.
The first asset exchange transaction carries first asset association data associated with a first game asset and a second game asset and first signature information of a first game object, wherein the first signature information is obtained by signing the first asset association data through first private key information of the first game object;
the first verification module includes:
the first signature verification unit is used for obtaining first public key information corresponding to the first private key information when the first signature information is obtained from the first asset exchange transaction, and carrying out signature verification on the first signature information through the first public key information to obtain a first signature verification result;
The first comparison unit is used for calling a first asset service contract deployed on the blockchain to acquire a first asset holding object address corresponding to the first game asset and a second asset holding object address corresponding to the second game asset when the first signature verification result indicates that signature verification is successful, comparing the first asset holding object address with a first account address used by the first game object in the first virtual game, comparing the second asset holding object address with a second account address used by the second game object in the second virtual game, and determining that the first game object holds the first game asset in the first virtual game and the second game object holds the second game asset in the second virtual game when the first asset holding object address is the same as the first account address and the second asset holding object address is the same as the second account address;
And a first determining unit for holding the first game asset in the first virtual game with the first game object and holding the second game asset in the second virtual game with the second game object as a result of the first authority verification.
The first game asset is a first type game asset used for being exchanged through a general asset in a first virtual game, and the number of the first game asset is the first asset number;
The first redemption module includes:
The first computing unit is used for acquiring a first exchange proportion between the first game asset and the universal asset and a second exchange proportion between the second game asset and the universal asset through the first asset business contract, computing the asset quantity of the universal asset exchanged through the first game asset with the first asset quantity according to the first exchange proportion, taking the computed asset quantity as a second asset quantity, computing the asset quantity of the second game asset exchanged through the universal asset with the second asset quantity according to the second exchange proportion, and taking the computed asset quantity as a third asset quantity;
And a first exchange unit configured to send, in the first virtual game, the first game asset having the first asset number to the second game object when the first game asset having the first asset number held by the first game object is destroyed, and send, in the second virtual game, the second game asset having the third asset number to the first game object when the second game asset having the third asset number held by the second game object is destroyed, if the asset number of the second game asset held by the second game object in the second virtual game is greater than or equal to the third asset number.
The first game asset is a third type game asset acquired by a first game object in a first virtual game, and the second game asset is a third type game asset acquired by a second game object in a second virtual game;
The first redemption module includes:
And a second exchange unit for changing the asset holding object of the first game asset from the first game object to the second game object in the first virtual game and changing the asset holding object of the second game asset from the second game object to the first game object in the second virtual game by the first asset business contract.
The first game asset is a third type game asset acquired by a first game object in a first virtual game, the second game asset is a third type game asset acquired by a second game object in a second virtual game, the first asset business contract is used for indicating that the first game asset is redeemed through a first target game asset with the fourth asset number associated with the first virtual game and is used for indicating that the second game asset is redeemed through a second target game asset with the fifth asset number associated with the second virtual game;
The first redemption module includes:
The second calculation unit is used for obtaining a third exchange proportion between the first target game asset and the universal asset and a fourth exchange proportion between the second target game asset and the universal asset through the first asset business contract, calculating the asset number of the universal asset obtained through the exchange of the first target game asset with the fourth asset number according to the third exchange proportion, taking the calculated asset number as a sixth asset number, and calculating the asset number of the second target game asset obtained through the exchange of the universal asset with the sixth asset number according to the fourth exchange proportion, and taking the calculated asset number as a seventh asset number;
And a third exchange unit configured to change the asset-holding object of the first game asset from the first game object to the second game object in the first virtual game and change the asset-holding object of the second game asset from the second game object to the first game object in the second virtual game if the seventh asset number is equal to or greater than the fifth asset number.
The first game asset is a first type game asset which is used for being exchanged through a general asset in a first virtual game, the second game asset is a third type game asset which is acquired by a second game object in a second virtual game, the first asset business contract is used for indicating that the second game asset is exchanged through a third target game asset which is associated with the second virtual game and has eighth asset quantity, and the third target game asset is a first type game asset which is used for being exchanged through the general asset in the second virtual game;
The first redemption module includes:
A third calculation unit for obtaining a fifth exchange ratio between the third target game asset and the universal asset and a sixth exchange ratio between the first game asset and the universal asset through the first asset business contract, calculating an asset number of the universal asset exchanged through the third target game asset having the eighth asset number according to the fifth exchange ratio, taking the calculated asset number as a ninth asset number, and calculating an asset number of the first game asset exchanged through the universal asset having the ninth asset number according to the sixth exchange ratio, taking the calculated asset number as a tenth asset number;
And a fourth exchange unit configured to send the first game asset having the tenth asset number to the second game object when the first game asset having the tenth asset number held by the first game object is destroyed in the first virtual game if the asset number of the first game asset held by the first game object is greater than or equal to the tenth asset number, and change the asset holding object of the second game asset from the second game object to the first game object in the second virtual game.
The first game asset is a first type game asset or a second type game asset acquired by a first game object in a first virtual game, and the second game asset is a third type game asset acquired by a second game object in a second virtual game;
The first redemption module includes:
And a fifth exchange unit configured to send, in the first virtual game, the first game asset having the eleventh asset number to the second game object when the first game asset having the eleventh asset number held by the first game object is destroyed by the first asset service contract, and change the asset holding object of the second game asset from the second game object to the first game object in the second virtual game, if the asset number of the first game asset held by the first game object in the first virtual game is greater than or equal to the eleventh asset number.
The first game asset is a third type game asset acquired by a first game object in a first virtual game, the second game asset is a first type game asset used for being exchanged through a general asset in a second virtual game, the first asset business contract is used for indicating that the first game asset is exchanged through a fourth target game asset with twelfth asset quantity associated with the first virtual game, and the fourth target game asset is a first type game asset used for being exchanged through the general asset in the first virtual game;
The first redemption module includes:
A fourth calculation unit for obtaining a seventh conversion ratio between the fourth target game asset and the universal asset and an eighth conversion ratio between the second game asset and the universal asset through the first asset business contract, calculating an asset number of the universal asset converted through the fourth target game asset having the twelfth asset number according to the seventh conversion ratio, taking the calculated asset number as a thirteenth asset number, and calculating an asset number of the second game asset converted through the universal asset having the thirteenth asset number according to the eighth conversion ratio, taking the calculated asset number as a fourteenth asset number;
A sixth exchange unit configured to change, in the first virtual game, the asset-holding object of the first game asset from the first game object to the second game object if the asset number of the second game asset held by the second game object in the second virtual game is greater than or equal to the fourteenth asset number, and to send, in the second virtual game, the second game asset having the fourteenth asset number to the first game object when the second game asset having the fourteenth asset number held by the second game object is destroyed.
The first game asset is a third type game asset acquired by a first game object in a first virtual game, and the second game asset is a first type game asset or a second type game asset acquired by a second game object in a second virtual game;
The first redemption module includes:
A seventh exchange unit configured to change, in the first virtual game, an asset-holding object of the first game asset from the first game object to the second game object by the first asset service contract if the asset number of the second game asset held by the second game object in the second virtual game is greater than or equal to the fifteenth asset number, and to send the second game asset having the fifteenth asset number to the first game object when the second game asset having the fifteenth asset number held by the second game object is destroyed in the second virtual game.
The first game assets are first type game assets used for being exchanged through the universal assets in the first virtual game, and the number of the first game assets is sixteenth asset number; the second game asset is a second type game asset used for being exchanged through a fifth target game asset in the second virtual game;
The first redemption module includes:
A fifth calculation unit for acquiring a ninth exchange ratio between the first game asset and the universal asset, a tenth exchange ratio between the fifth target game asset and the universal asset, and an eleventh exchange ratio between the second game asset and the fifth target game asset through the first asset business contract, calculating an asset number of the universal asset exchanged through the first game asset with a sixteenth asset number according to the ninth exchange ratio, taking the calculated asset number as a seventeenth asset number, and calculating an asset number of the fifth target game asset exchanged through the universal asset with a seventeenth asset number according to the tenth exchange ratio, taking the calculated asset number as an eighteenth asset number, and calculating an asset number of the second game asset exchanged through the fifth target game asset with an eighteenth asset number according to the eleventh exchange ratio, taking the calculated asset number as a nineteenth asset number;
And an eighth exchange unit configured to send, in the first virtual game, the first game asset having the sixteenth asset number to the second game object when the first game asset having the sixteenth asset number held by the first game object is destroyed, and send, in the second virtual game, the second game asset having the nineteenth asset number to the first game object when the second game asset having the nineteenth asset number held by the second game object is destroyed, if the asset number of the second game asset held by the second game object is greater than or equal to the nineteenth asset number.
The first game assets are second-type game assets acquired by the first game object in the first virtual game, and the number of the first game assets is twenty-th; the first asset business contract is used for indicating the second game asset to be obtained through the first game asset exchange;
The first redemption module includes:
a sixth calculation unit for obtaining a twelfth exchange ratio between the first game asset and the second game asset through the first asset business contract, calculating an asset number of the second game asset exchanged through the first game asset having the twentieth asset number according to the twelfth exchange ratio, and taking the calculated asset number as the twenty-first asset number;
A ninth exchange unit configured to send, in the first virtual game, the first game asset having the twenty-first asset number to the second game object when the first game asset having the twenty-first asset number held by the first game object is destroyed, and send, in the second virtual game, the second game asset having the twenty-first asset number to the first game object when the second game asset having the twenty-first asset number held by the second game object is destroyed, if the asset number of the second game asset held by the second game object in the second virtual game is greater than or equal to the twenty-first asset number.
Wherein the asset redemption transaction includes a second asset redemption transaction, the second asset redemption transaction being a transaction for redeeming a third game asset of the first game object in the first virtual game for a fourth game asset of the first game object in the second virtual game, the third game asset being an asset in the first virtual game asset, the fourth game asset being an asset in the second virtual game asset, the apparatus further comprising:
the second verification module is used for calling a second asset business contract deployed on the blockchain based on a second asset exchange transaction, and performing authority verification on the first game object to obtain a second authority verification result;
And the second exchange module is used for exchanging the third game asset of the first game object in the first virtual game into the fourth game asset of the first game object in the second virtual game through the second asset business contract when the second authority verification result indicates that the first game object holds the third game asset in the first virtual game and the first game object holds the fourth game asset in the second virtual game.
The second asset exchange transaction carries second asset association data associated with a third game asset and a fourth game asset and second signature information of the first game object, wherein the second signature information is obtained by signing the second asset association data through second private key information of the first game object;
The second verification module includes:
The second signature verification unit is used for obtaining second public key information corresponding to second private key information when second signature information is obtained from second asset exchange transaction, and carrying out signature verification on the second signature information through the second public key information to obtain a second signature verification result;
the second comparison unit is used for calling a second asset business contract deployed on the blockchain to acquire a third asset holding object address corresponding to a third game asset and a fourth asset holding object address corresponding to a fourth game asset when the second signature verification result indicates that signature verification is successful, comparing the third asset holding object address with a third account address used by the first game object in the first virtual game, comparing the fourth asset holding object address with a fourth account address used by the first game object in the second virtual game, and determining that the first game object holds the third game asset in the first virtual game and the first game object holds the fourth game asset in the second virtual game when the third asset holding object address is the same as the third account address and the fourth asset holding object address is the same as the fourth account address;
And a second determining unit for holding the third game asset in the first virtual game with the first game object, and holding the fourth game asset in the second virtual game with the first game object as a second authority verification result.
In one aspect, a computer device is provided, including a processor and a memory;
the processor is connected to the memory, wherein the memory is configured to store a computer program, and when the computer program is executed by the processor, the computer device is caused to execute the method provided by the embodiment of the application.
In one aspect, the present application provides a computer readable storage medium storing a computer program adapted to be loaded and executed by a processor, so that a computer device having the processor performs the method provided by the embodiment of the present application.
In one aspect, embodiments of the present application provide a computer program product or computer program comprising computer instructions stored in a computer-readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device performs the method provided by the embodiment of the present application.
In the embodiment of the application, a virtual game asset associated with a virtual game is stored on a blockchain corresponding to a blockchain network, the virtual game comprises a first virtual game and a second virtual game, the first virtual game is different from the second virtual game, the virtual game asset comprises a first virtual game asset associated with the first virtual game and a second virtual game asset associated with the second virtual game, a blockchain node in the blockchain network can acquire an asset exchange transaction sent by a game asset client associated with a first game object, the asset exchange transaction comprises a first asset exchange transaction, the first asset exchange transaction refers to a transaction for exchanging a first game object in the first virtual game for a second game object in the second virtual game, the first game asset is an asset in the first virtual game asset, the second game asset is an asset in the second virtual game asset, the first game object is different from the second game object, the blockchain node can acquire a first asset exchange transaction arranged on the blockchain, the first game object can be held in the first game asset game, the first game object can be verified by the first game asset exchange transaction, and the second game object can be held in the second game object when the first game object is verified in the second game, and the first game object is verified. It can be seen that the embodiments of the present application provide a blockchain-based cross-game asset interworking scheme, which can bind virtual game assets associated with different virtual games to a blockchain, so that any game object (such as the first game object described above) can exchange virtual game assets (such as a first game asset of a first game object) to virtual game assets of another virtual game (such as a second game asset of a second game object) by sending asset exchange transactions (such as the first asset exchange transactions described above) to blockchain links, calling related asset service contracts (such as the first asset service contracts) deployed on the blockchain, and exchanging virtual game assets (such as the first game asset of the first game object in the first virtual game) in a specified virtual game to virtual game assets (such as the second game asset of the second game object in the second virtual game) in a manner that the virtual game assets can be interworked between different virtual games, thereby improving the dominance of the game object to the virtual game assets.
Drawings
In order to more clearly illustrate the embodiments of the application or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, it being obvious that the drawings in the following description are only some embodiments of the application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic diagram of a system architecture according to an embodiment of the present application;
FIG. 2 is a schematic diagram of a data processing scenario based on a blockchain according to an embodiment of the present application;
FIG. 3 is a flowchart illustrating a block chain based data processing method according to an embodiment of the present application;
FIG. 4 is a second flow chart of a block chain based data processing method according to an embodiment of the present application;
FIG. 5 is a schematic diagram of an architecture of a cross-game asset interworking system provided by an embodiment of the present application;
FIG. 6 is a schematic diagram of a block chain based data processing apparatus according to an embodiment of the present application;
Fig. 7 is a schematic structural diagram of a computer device according to an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present application, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
Referring to fig. 1, fig. 1 is a schematic diagram of a system architecture according to an embodiment of the application. As shown in fig. 1, the system architecture may include a blockchain network 100 as well as a cluster of terminals. The terminal cluster may include a plurality of terminal devices (may be abbreviated as terminals), and the number of the terminal devices included in the terminal cluster is not limited in the embodiment of the present application. For example, the terminal clusters may specifically include terminal device 200a, terminal device 200b, terminal device 200c, terminal device 200n, wherein a communication connection may exist between the terminal clusters, e.g., a communication connection exists between terminal device 200a and terminal device 200b, and a communication connection exists between terminal device 200a and terminal device 200 c. The communication connection is not limited to a connection manner, and may be directly or indirectly connected through a wired communication manner, may be directly or indirectly connected through a wireless communication manner, or may be other manners, which are not limited herein.
The terminal device may be an intelligent terminal such as a smart phone, a tablet computer, a notebook computer, a desktop computer, a palm computer, a mobile internet device (mobile INTERNET DEVICE, MID), a wearable device (e.g., a smart watch, a smart helmet, etc.), an intelligent computer, an intelligent home, an intelligent vehicle, etc. It should be appreciated that each terminal device in the terminal cluster shown in fig. 1 may be equipped with a client that, when operating in each terminal device, may interact with the blockchain network 100 shown in fig. 1 and described above, respectively. The client may be a financial client (e.g., an asset client, a payment client, a shopping client), an entertainment client (e.g., a game client, a live client, a small-scale client), a multimedia client (e.g., a video client, a music client), a vehicle client, a smart home client, a browser, or the like, which has a function of displaying data information such as text, image, video, and audio. The client may be a stand-alone client, or may be an embedded sub-client integrated into a certain client (e.g., a game client, etc.), which is not limited herein. Taking a game client as an example, the terminal device 200a may perform data transmission with other terminal devices and the blockchain network 100 through the game client that the terminal device 200a may run, for example, the terminal device 200a may participate in the same virtual game with the other terminal devices through the game client, or may acquire an on-chain game service provided by the blockchain network 100 (for example, acquire virtual game assets stored on a chain).
The terminal device may be divided into two terminal types according to its operation modes, for convenience of distinction, where the terminal device with the first terminal type (may also be referred to as a desktop terminal device or a terminal device facing the desktop) refers to a terminal device that mainly performs interactive operations such as mouse clicking, keyboard input, etc., and any client running on the terminal device may generally support opening one or more windows (i.e. support multi-page display) at the same time, so that the terminal device has a feature of performing interaction with a window as a dimension, the terminal device with the first terminal type may include a notebook computer, a desktop computer, a smart computer, a part of a tablet computer (such as a Surface Pro of microsoft, which may operate with an external keyboard and a mouse), etc., and the terminal device with the second terminal type (may also be referred to as a non-desktop terminal device) refers to a terminal device that mainly performs interactive operations such as clicking or sliding with a user's hand, etc., and any client running on the terminal device may generally only open one window (i.e. support a single-page display), the terminal device with the first terminal type may include a notebook computer, a desktop computer, a smart computer, a part of a smart phone (e.g. a smart phone, a mobile phone, a portable device, etc.), a portable device, etc. Based on this, the embodiments of the present application may also divide clients installed and running on different terminal types into two client types, where a client type of a client installed and running on a terminal device having a first terminal type may be referred to as a first client type (i.e., a desktop-oriented client, may also be referred to as a non-mobile terminal, such as a computer terminal), a client type of a client installed and running on a terminal device having a second terminal type may be referred to as a second client type (i.e., a mobile terminal, such as a mobile phone terminal), and there may be a certain difference in page layout and interaction manner for two different client types of the same application. The method provided by the application is suitable for all client types, so that all embodiments of the application do not limit the terminal types of the related terminal equipment, do not limit the client types of the related clients, and do not distinguish and describe the differences of page layout and interaction modes of different client types.
It can be appreciated that the blockchain (Blockchain) is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, consensus mechanism, encryption algorithm, and the like, and is mainly used for sorting data according to time sequence, encrypting the data into an account book, so that the account book cannot be tampered and forged, and simultaneously performing verification, storage and update of the data. A blockchain is a chain of blocks each holding certain information that are linked into a chain according to the respective time sequence of generation. A blockchain is essentially a de-centralized database in which each node stores one and the same blockchain. The entire blockchain is secure as long as one node in the entire database is operational. The blockchain network 100 as shown in fig. 1 may be applied to a blockchain system, which refers to a system for data sharing between blockchain nodes, where the blockchain network 100 may be deployed with a plurality of blockchain nodes (which may be simply referred to as nodes), where there will be no limit on the number of blockchain nodes deployed in the blockchain network 100. For example, as shown in fig. 1, blockchain network 100 may specifically include nodes 100a, 100b, 100c, 100d, & gt, 100m. The blockchain nodes may be servers in the access blockchain network or terminals in the access blockchain network, and the specific form of the blockchain nodes is not limited herein, and each blockchain node may include a hardware layer, a middle layer, an operating system layer and an application layer. Any of the terminal devices in the terminal cluster described above may be communicatively coupled to any of the blockchain link points in the blockchain network 100, such as between the terminal device 200a and the node 100 a. The communication connection is not limited to a connection manner, and may be directly or indirectly connected through a wired communication manner, may be directly or indirectly connected through a wireless communication manner, or may be other manners, which are not limited herein.
The server may be an independent physical server, a server cluster or a distributed system formed by a plurality of physical servers, or a cloud server providing a cloud database, cloud service, cloud computing, cloud functions, cloud storage, network service, cloud communication, middleware service, domain name service, security service, CDN, basic cloud computing service such as big data and an artificial intelligence platform.
It should be noted that, in the embodiment of the present application, the blockchain network may be a layered structure or a single-layer structure, and the specific structure of the blockchain network is not limited herein.
For example, optionally, for a blockchain network having a hierarchical structure, the blockchain network 100 shown in fig. 1 may be further divided into a traffic network (i.e., witness network) and a core consensus network, with the traffic network and the core consensus network being independent of each other. Wherein both the traffic network and the core consensus network may deploy a plurality of nodes, the number of deployed nodes in both networks will not be limited here. For example, the traffic network may include nodes 100a, 100b, and 100c shown in fig. 1, and the core consensus network may include nodes 100d, 100e, 100m shown in fig. 1. The node in the service network may be referred to as a service node, where the service node is mainly configured to execute a transaction service to obtain transaction data associated with the transaction service, and perform clear synchronization of the data in time. It will be appreciated that the service node need not participate in the accounting consensus, but can obtain the block header data and the block data visible to the partial authorization from the core consensus network by means of identity authentication. The service Node may be a Full Node (Full Node) containing a complete blockchain database, or may be a lightweight Node (LIGHTWEIGHT NODE) storing a part of data in the blockchain database, and such Node may complete transaction Verification by means of "Simplified Payment Verification (SPV)", so may also be referred to as an SPV Node, and the type of the service Node will not be limited herein. Similarly, nodes in the core consensus network may be referred to as consensus nodes (i.e., billing nodes), where the consensus nodes may operate with a blockchain consensus protocol. The common node may be a full-scale node including a complete blockchain database, and may participate in checking, broadcasting transaction data and blockinformation, and may discover and maintain connections with other nodes. In addition, optionally, the service network and the core consensus network can be isolated by a routing network (i.e. a routing proxy layer), for example, the peer-to-peer network can be layered by a routing node in the routing network, so as to form a layered structure of "service network-core consensus network", and further improve confidentiality and security of data on the blockchain. The number of routing nodes in the routing network may be one or more, which is not limited herein.
It will be appreciated that the traffic network and the core consensus network may be in different network environments, for example, in some embodiments, the traffic nodes may be deployed in a traffic network that is in a public network, while the consensus nodes running the blockchain consensus protocol may be deployed in a private core consensus network, both of which may interact through routing boundaries. In this case, since the core consensus network is in a relatively secure private cloud, the mutual access of the core consensus network has a consensus mechanism to ensure security without adding additional identity management and network control, and the service node is in a public network and may be accessed by other uncertain network terminals, so that the behavior of the service node and other possible nodes accessing the core consensus network needs to be strictly controlled. Alternatively, in other embodiments, the service node and the consensus node may directly perform data transmission without passing through the routing node, which is not limited herein.
As another example, alternatively to a blockchain network having a single layer structure, the blockchain network 100 shown in fig. 1 may include consensus nodes that participate in the consensus and common nodes that do not participate in the consensus, but may help propagate blockand voting messages, and status of mutual synchronization, etc. For example, the nodes 100a, 100b, 100c and 100d in fig. 1 may be regarded as common nodes, and the remaining nodes are regarded as normal nodes, where the number of common nodes and the number of normal nodes are not limited.
It will be appreciated that Smart contracts (Smart contracts) may be deployed in the blockchain system, which may be understood as a type of code that each node of the blockchain (e.g., a common node) may understand and execute, and may execute any logic and obtain results. In practice, the smart contracts may be managed and used by transactions on the blockchain, each transaction corresponding to one RPC (Remote Procedure Call) request to the blockchain system. For example, a user (e.g., a user requesting to perform a transaction service) may invoke a related service contract already deployed on a blockchain (e.g., a blockchain corresponding to the blockchain network 100) by initiating a contract invocation request (also referred to as a transaction service request) through a client on a terminal device (e.g., the terminal device 200 a) that the user holds. One or more intelligent contracts may be included in the blockchain system, the intelligent contracts may be distinguished by contract identification, and the contract identification of the intelligent contract may be carried in a contract call request initiated by the client, so as to specify the intelligent contract that the blockchain needs to run. The contract identification may include, but is not limited to, a contract identification number of an intelligent contract (i.e., contract ID, abbreviation for ID Identity document), a contract name, a contract address, a contract function name (which may also be referred to as a contract method name), etc., and the specific form of the contract identification will not be limited herein.
It will be appreciated that embodiments of the present application relate to virtual games (which may be referred to simply as games), which refer to a type of game that is controlled by a computer program as it is generated by a computer. With the rapid development of computer technology, the content of virtual games is gradually enriched, the variety is gradually increased, the plots of the virtual games are also more and more complex, and the game pictures are more and more lifelike, so as to provide better game experience for game players. A gamer herein may refer to any user who uses a terminal device (e.g., a personal computer, a smart phone, or a wearable device, etc.) to play any virtual game. The embodiment of the application can divide the virtual games into different game types according to different classification dimensions. Wherein:
The virtual games are classified according to the game operation mode, and can be classified into a mobile game, a client game, a web game, a Cloud game, and the like. ① The mobile phone game can be simply called as a hand game, and is a game running on the smart phone, and the mobile phone game can be operated on the smart phone by downloading and installing an installation package of the mobile phone game on the smart phone. ② The client game may be referred to simply as an end game, which is a game that runs on a smart computer, and may be operated by requiring a package of games to be downloaded and installed on the smart computer (e.g., a personal computer). ③ The web game may be called web (World Wide Web) game or web game (page game for short), which is a network online game that operates on the game after the web page of the game is opened based on the browser. ④ In the running mode of the cloud game, the cloud game does not run in terminal equipment (such as a smart phone, a personal computer or wearable equipment and the like) held by a game player, but runs in a cloud server, the cloud server renders a game scene into an audio and video stream, and the cloud server transmits the rendered audio and video stream to the terminal equipment of the game player through a network, so that the terminal equipment can directly play the audio and video stream. Based on the above description, the cloud game has the advantages that the requirements on the computing and processing capacity of the terminal equipment held by the game player are not high, the suitability of hardware and the like are not required to be considered in the development of the cloud game, and the cloud game gradually realizes the large-scale development.
The virtual games are classified according to Game play, and may be classified into Role-playing games (RPG), shooting games, action games (ACT), and the like. ① In a multiplayer online role playing game, a game player can improve the game ability (such as antagonism ability or blood return ability) of the game role by completing game tasks set by the game player or buying virtual articles sold, so as to realize better interaction with the game roles controlled by other game players in a game virtual space. ② Shooting games include First-person shooting games (FPS), third-person shooting games (Third-Personal Shooting, TPS), or multiplayer online tactical competition games (Multiplayer Online Battle Arena, MOBA), among others. The first-person shooting game is a shooting game in which a game player can play a game at a first-person viewing angle, and a screen of a virtual scene in the game is a screen in which the virtual scene is observed at the first-person viewing angle. The third person-scale shooting game is a shooting game in which a game player plays a game through a third person-scale viewing angle, and the picture of the virtual scene in the game is a picture in which the virtual scene is observed at the third person-scale viewing angle. The multi-player online tactical competitive game is a competitive game in which a plurality of game players can form the same game group or game battle online to play a competitive game. ③ Action games are games in which game players control game characters and eliminate enemies or ensure passing of the games in various ways, and often do not pursue story lines deliberately, and the design subject is for common game players, and the action games are popular games with the aim of pure entertainment and recreation.
Among other things, the above-mentioned game characters may include avatars in virtual games for representing game players and avatars controlled by non-game players for interacting with game players (such as may be controlled by the game AI (i.e., abbreviation of ARTIFICIAL INTELLIGENCE) or the system). These avatars are the avatars of various avatars and avatars that may interact in a virtual game, or movable objects in a virtual game. For example, the movable object is a virtual character or a virtual animal displayed in any virtual scene provided by the virtual game (for example, the virtual scene may be a simulation environment for the real world, a semi-simulation and semi-fictional virtual environment, or a purely fictional virtual environment; the virtual scene may be any one of a two-dimensional virtual scene, a 2.5-dimensional virtual scene, or a three-dimensional virtual scene).
It should be noted that the above is only a few exemplary game classification manners given by the embodiments of the present application, and the embodiments of the present application do not limit the types of virtual games.
It will be appreciated that as virtual games continue to evolve, a number of virtual game assets (also referred to as game assets or game resources) associated with the virtual games are accumulated, where virtual game assets refer to assets or resources that can be used in the virtual games that can be used to enhance the game capabilities (e.g., countermeasure capabilities, defensive capabilities, or blood return capabilities, etc.) of the game character. Virtual game assets can be divided into different asset types, i.e., homogenized game assets and non-homogenized game assets, by asset characteristics.
The method is characterized in that the method comprises the steps of providing a virtual game asset, wherein the virtual game asset is characterized by interchangeability, uniformity, separability, convenience and the like in the virtual game, the interchangeability refers to the fact that the homogenized game asset can be interchanged with the same type of homogenized game asset, for example, one bean in the virtual game can be interchanged with another bean, the asset identification is different and the value cannot be influenced, the uniformity refers to the fact that all the same type of homogenized game asset has the same specification, the separability refers to the fact that the homogenized game asset can be divided into smaller units, the value is equal, the convenience refers to the fact that the homogenized game asset is easy to split and exchange, and therefore in the transaction, only the number of assets for which the homogenized game asset is in need to be paid attention is generally, the value of the asset can be changed according to the time interval of the transaction, but the essence of the asset is not changed. For example, the homogenized game assets may include, but are not limited to, game diamonds, gold seeds, shoe-shaped gold, gold beans, energy values, experience values, points, electronic red bags, vouchers, coupons, etc., which may be game assets directly redeemed/purchased by a recharge general purpose asset (which may be referred to as primary homogenized game assets, simply primary game assets), and the redemption ratio between each primary homogenized game asset and the general purpose asset is fixed (e.g., 1/1 redemption), so that when a game player recharge a certain number of general purpose assets, a corresponding number of primary homogenized game assets may be sent to the game player based on the redemption ratio between the general purpose asset and the primary homogenized game asset, or game assets that may not be directly redeemed/purchased by the recharge general purpose asset (which may be referred to as secondary homogenized game assets, simply secondary game assets), such as game assets that may be obtained by completing a game mission of virtual game setting, system direct issuing, or winning a prize. Where universal assets refer to assets that are used for shopping in real life, various legal assets may be included, and the type of universal asset is not limited herein.
Wherein, the non-homogeneous game assets refer to virtual game assets with characteristics of uniqueness, inseparability, theft prevention and the like in the virtual game, wherein the uniqueness refers to that each non-homogeneous game asset is unique and different from the same kind of non-homogeneous game asset, the inseparability refers to that each non-homogeneous game asset is inseparable, the basic unit is one asset, the theft prevention refers to that each non-homogeneous game asset has the uniqueness and comprises identification information recorded in an intelligent contract thereof and cannot be directly replaced by another non-homogeneous game asset, the unique property of the non-homogeneous game asset enables the non-homogeneous game asset to be hooked with a specific virtual game asset in general, and the ownership (or the ownership and the ownership) of digital objects (such as game skins) in the virtual game can be proved, so that the ownership of the non-homogeneous game asset is usually required to be focused in transactions. For example, non-homogenized game assets may include, but are not limited to, game gear, game props, game skins, game materials, game pets, game skills, gifts, greeting cards, game grades, titles, nameplates, music/sound effects in a game, voice packs, icons, fonts, expressions, special effects, and the like. The embodiment of the application does not limit the type of the asset.
It will be appreciated that embodiments of the present application provide a cross-game gaming asset interworking scheme based on blockchains, i.e., virtual gaming assets can be transferred between different virtual games by binding all virtual gaming assets associated with the different virtual games to the blockchain. Wherein, according to different asset characteristics, the virtual game assets stored on the blockchain can be divided into three types, which can be respectively called a first type game asset, a second type game asset and a third type game asset for convenience of distinction. For example, for a primary homogenized game asset in a virtual game, the primary homogenized game asset may be published in a chain in the form of a first type of game asset, i.e., each primary homogenized game asset (e.g., game diamonds that are directly redeemable for a top-up universal asset) is stored as a first type of game asset on a blockchain. For another example, for a two-level homogenized game asset in a virtual game, the two-level homogenized game asset may be published in a chain in the form of a second type of game asset, i.e., each two-level homogenized game asset (e.g., credits automatically issued by the system when an online game duration reaches a specified duration) is stored as one second type of game asset on a blockchain. As another example, for non-homogenized game assets in a virtual game, the game assets may be published on a chain in the form of third-type game assets, i.e., each non-homogenized game asset (such as game skin) is stored as a third-type game asset on a blockchain. Wherein each virtual game asset may have its unique asset identification (e.g., an ID of the virtual game asset may be generated by an identification generation rule specified in a blockchain-related protocol standard), one asset identification may be used to uniquely identify a corresponding one of the virtual game assets on the chain. For a third type of game asset, its metadata may also be stored on the blockchain, which may include ownership, author, creation time, and other detailed information, among others. Thus, through the blockchain, the game object can exchange the virtual game asset held in a certain virtual game into the virtual game asset in another virtual game at any time, thereby realizing the inter-game asset intercommunication.
It will be appreciated that for a second type of game asset and a third type of game asset that may not be directly redeemable through a top-up universal asset, the price may be determined by the market, e.g., the price of the game skin may be self-specified by an official game facilitator, who may then act as a seller to sell its own game skin to the game player.
The embodiment of the application can support the realization of a cross-game asset intercommunication scheme through any blockchain platform, and any user can issue various virtual game assets on the blockchain efficiently, reliably and at low cost based on the standard specified by the blockchain platform.
It will be appreciated that embodiments of the present application relate to a game asset client, where the game asset client may be operable on a terminal device, as a tool for managing and storing virtual game assets, e.g., virtual game assets may be transferred to other accounts based on the game asset client, and virtual game assets transferred to other accounts may be received based on the game asset client, for example. The game asset client may be a hardware device or a software program. When the game asset client is running on any one of the terminal devices (e.g., terminal device 200 a) in the terminal cluster as shown in fig. 1, data interactions may occur between the game asset client and the blockchain points in blockchain network 100. For example, the game asset client may send the transaction requiring uplink to the blockchain nodes (e.g., consensus nodes) in the blockchain network 100, and finally each blockchain node verifies whether the transaction execution results are consistent (i.e., consensus is performed), and if so, the transaction execution results may be stored in the respective local ledgers and returned to the game asset client. The game asset client may include, but is not limited to, a standalone client, an applet running as a subroutine in a client (such as a game client), a web application or an extension opened through a browser, etc., and the embodiments of the application are not limited to the type of game asset client.
It will be appreciated that the game asset client, which may also be referred to as an object key management tool, may be used to configure and store account addresses and key information for game objects. Wherein an account address may be used to uniquely identify a game object on the blockchain. The key information may include private key information and public key information of the game object, and the corresponding game asset client may be used with the private key information, so that careful storage of the private key information is required. Alternatively, the corresponding public key information and account address may be generated by private key information.
For ease of understanding, embodiments of the present application may refer collectively to physical objects (e.g., individual users, enterprise users, institutions, etc.) associated with a virtual game as game objects, where game objects may include game providing objects, such as game facilitators, game developers, game operators, etc., and game service objects, such as game players, that provide virtual game services.
The embodiment of the application relates to asset circulation among different virtual games, for convenience of distinguishing and description, any one virtual game can be called a first virtual game, another virtual game which performs cross-game asset intercommunication with the first virtual game is called a second virtual game, the first virtual game is different from the second virtual game, and the type of the first virtual game and the type of the second virtual game are not limited. Accordingly, the virtual game assets associated with the first virtual game may be collectively referred to as first virtual game assets, and the virtual game assets associated with the second virtual game may be collectively referred to as second virtual game assets, neither the type of the first virtual game assets nor the type of the second virtual game assets being limited herein. Further, any game object associated with a first virtual game may be referred to as a first game object, which may provide an object or game service object for a game associated with the first virtual game, and a virtual game asset held by the first game object in the first virtual game may be referred to as a first game asset, which is an asset in the first virtual game asset, without limitation. Similarly, any game object associated with a second virtual game may be referred to as a second game object, which may provide an object or game service object for a game associated with the second virtual game, and a virtual game asset held by the second game object in the second virtual game may be referred to as a second game asset, which is an asset in the second virtual game asset, without limitation. Wherein the first game object is different from the second game object.
It will be appreciated that embodiments of the present application may enable inter-game asset interworking with smart contracts (the code of the smart contract is disclosed) with confidence, and that anyone may create his own smart contract to enable interchange of any kind of game asset. The embodiment of the application can be used for collectively calling related intelligent contracts as asset business contracts, and can be deployed on a blockchain, and the specific content and the number of the asset business contracts deployed on the chain are not limited.
In the embodiment of the application, a blockchain node in a blockchain network can acquire asset exchange transactions sent by a game asset client associated with a first game object, wherein the asset exchange transactions comprise first asset exchange transactions, the first asset exchange transactions refer to first game assets used for holding the first game object in a first virtual game and exchanged for second game assets held by a second game object in a second virtual game, the first game assets are assets in the first virtual game asset, the second game assets are assets in the second virtual game asset, the first game object is different from the second game object, the blockchain node can conduct authority verification on the first game object and the second game object based on a first asset exchange transaction to obtain a first authority verification result, and when the first authority verification result indicates that the first game object holds the first game asset in the first virtual game and the second game object holds the second game asset in the second virtual game, the first game object can be converted into a second game asset through the first asset game service, and the blockchain node can conduct authority verification on the first game object and the second game object in the second virtual game asset.
Therefore, the embodiment of the application provides a cross-game asset intercommunication scheme based on the blockchain, which can bind virtual game assets associated with different virtual games on the blockchain, so that any game object can call related asset service contracts deployed on the blockchain by sending asset exchange transaction forms to the blockchain nodes, and exchange virtual game assets in a designated virtual game into virtual game assets in another virtual game, thereby realizing intercommunication of the virtual game assets among different virtual games and improving the dominance capability of the game object on the virtual game assets.
For ease of understanding, please refer to fig. 2, fig. 2 is a schematic diagram of a data processing scenario based on a blockchain according to an embodiment of the present application. The user 21a shown in fig. 2 may be the aforementioned first game object, the client 21b may be the game asset client associated with the first game object, and the client 21b may be running on the terminal device 21, and the user 22a may be the aforementioned second game object. The blockchain network 20 shown in fig. 2 may be used as the blockchain network described above, and a plurality of blockchain nodes may be deployed in the blockchain network 20, for example, the plurality of blockchain nodes herein may specifically include a node 20a, a node 20b, a node 20c, and a node 20d, and the plurality of blockchain nodes may be used to commonly maintain the blockchain 20e when they are commonly known nodes.
The virtual game 21d shown in fig. 2 may be the first virtual game, the virtual game 22b may be the second virtual game, and the virtual game 21d and the virtual game 22b may be different virtual games, and the types of the virtual game 21d and the virtual game 22b are not limited herein. Wherein game asset A is a virtual game asset associated with virtual game 21d, the type of game asset A is not limited herein, user 21a may provide an object or game service object for a game associated with virtual game 21d, and user 21a holds a number (e.g., 7) of game assets A in virtual game 21d, where game asset A may be the first game asset described above. Similarly, game asset B is a virtual game asset associated with virtual game 22B, where the type of game asset B is not limited, and user 22a may provide an object or game service object for the game associated with virtual game 22B, and user 22a holds a number (e.g., 6) of game assets B in virtual game 22B, where game asset B may be the aforementioned second game asset.
As shown in fig. 2, when user 21a wishes to conduct an asset redemption with user 22a across games, a corresponding asset redemption transaction 21c may be sent via client 21B to any of the blockchain nodes in blockchain network 20 (such as node 20 a), which asset redemption transaction 21c may be used as the aforementioned first asset redemption transaction, which asset redemption transaction 21c may be used to indicate redemption of user 21a to game asset a in virtual game 21d as game asset B for user 22a in virtual game 22B. The blockchain node (e.g., node 20 a) that receives the asset redemption transaction 21c may broadcast the asset redemption transaction 21c to other blockchain nodes (e.g., node 20b, node 20c, node 20 d), such that each blockchain node in the blockchain network 20 may invoke an associated asset service contract (e.g., asset service contract 20 f) deployed on the blockchain 20e to perform entitlement verification for the user 21a and the user 22a to obtain corresponding entitlement verification results (e.g., entitlement verification result 20 g) after receiving the asset redemption transaction 21 c. Wherein the asset transaction contract 20f may be the first asset transaction contract described above and is an intelligent contract associated with game asset A and game asset B on the blockchain 20e, and the entitlement verification result 20g may be the first entitlement verification result described above.
Taking node 20a as an example, optionally, when entitlement verification result 20g indicates that user 21a holds game asset A in virtual game 21d and user 22a holds game asset B in virtual game 22B, node 20a may redeem game asset A of user 21a in virtual game 21d for game asset B of user 22a in virtual game 22B via asset handling contract 20 f. After the redemption is successful, node 20a may update the game asset balances of user 21a in virtual game 21d and virtual game 22b, and may update the game asset balances of user 22a in virtual game 21d and virtual game 22 b.
Optionally, after the redemption is successful, node 20a may send a corresponding alert (e.g., a redemption success alert) to client 21b indicating that the redemption was successful across the game asset between user 21a and user 22 a. Node 20a may also return a corresponding transaction record to client 21b for querying and auditing by user 21 a.
Alternatively, when the entitlement verification result 20g indicates that the user 21a does not hold the game asset a in the virtual game 21d or that the user 22a does not hold the game asset B in the virtual game 22B, the blockchain node (e.g., node 20 a) may send corresponding hint information (e.g., redemption failure hint information) to the client 21B indicating that a cross-game asset redemption is not possible between the user 21a and the user 22 a.
It will be appreciated that different redemption logic and rules may be provided for different game assets, and embodiments of the application are not limited in this regard, and that embodiments of the application may support cross-game redemption between any type of game asset, i.e., any game asset may be used to redeem any of a first type of game asset, a second type of game asset, and a third type of game asset. Wherein for a first type of game asset and a second type of game asset (i.e., homogenized game asset), they need to be destroyed when used for redemption, and for a third type of game asset (i.e., non-homogenized game asset), their ownership needs to be changed when used for redemption, i.e., interchange between the third type of game asset is equivalent to an easement.
For ease of understanding, assuming that game asset A is any one of a first type of game asset and a second type of game asset, game asset B is also any one of the first type of game asset and the second type of game asset, and user 21a holds 7 game assets A in virtual game 21d and user 22a holds 6 game assets B in virtual game 22B, user 21a may use a number of game assets A to redeem a corresponding number of game assets B held by user 22a, and the redemption ratio between game assets A and game assets B is not limited herein. Assuming, as shown in FIG. 2, that asset transaction contract 20f specifies that 1 game asset A in virtual game 21d is available for redemption to 2 game assets B in virtual game 22B, i.e., the redemption ratio between game asset A and game asset B is 1/2 (which may be stored in asset transaction contract 20 f), then user 21a may redeem 6 game assets B of user 22a in virtual game 22B through 3 game assets A. Wherein node 20a may destroy 3 game assets a held by user 21a in virtual game 21d and distribute 6 game assets B in virtual game 22B to user 21a, and simultaneously, may destroy 6 game assets B held by user 22a in virtual game 22B and distribute 3 game assets a in virtual game 21d to user 22 a. After successful redemption, it can be seen that user 21a now holds 4 game assets A in virtual game 21d and 6 game assets B in virtual game 22B, and user 22a holds 3 game assets A in virtual game 21d and 0 game assets B in virtual game 22B. In this way, even if the user 21a does not recharge or do a task in the virtual game 22b, the user can exchange for the game asset acquired by the user himself in the virtual game 21d, and the utilization rate of the game asset is improved.
In addition, the embodiment of the application can realize the exchange between the first type game asset or the second type game asset and the third type game asset, and the exchange between the third type game asset and the third type game asset, and even the virtual game assets of the same game object in different virtual games can also be exchanged. Therefore, the embodiment of the application realizes asset intercommunication across games based on the blockchain, can ensure that the asset capacity in the virtual game can be reliably and safely circulated into other virtual games through the blockchain, and the asset fluidity between different virtual games is opened, so that the game object can more freely control the own virtual game asset, and the control capability of the game object on the virtual game asset is improved.
It should be noted that, the method provided by the embodiment of the application is suitable for application scenes with the requirement of crossing game asset intercommunication, and can meet the requirement of asset management in the game scenes.
Further, referring to fig. 3, fig. 3 is a flowchart illustrating a data processing method based on a blockchain according to an embodiment of the present application. As shown in FIG. 3, the method may be performed by a blockchain node in a blockchain network having stored thereon virtual game assets associated with a virtual game, where the virtual game includes a first virtual game and a second virtual game, the first virtual game being different from the second virtual game, the virtual game assets including a first virtual game asset associated with the first virtual game and a second virtual game asset associated with the second virtual game. For example, the blockchain node may be any of the blockchain nodes (e.g., node 20 a) in the blockchain network 20 shown in fig. 2, described above. The method specifically comprises the following steps S101-S103:
Step S101, acquiring an asset exchange transaction sent by a game asset client associated with a first game object;
It will be appreciated that in embodiments of the present application, the virtual game assets may include, in particular, a first type of game asset, a second type of game asset, and a third type of game asset, where the virtual game assets are created from game objects associated with the virtual game via asset business contracts deployed on the blockchain, where for each virtual game asset, a corresponding one or more asset business contracts may be deployed on the blockchain, where the actual application may be contracted according to business needs, where the specific content of the asset business contracts is not limited, the first virtual game asset may include one or more of a first type of game asset, a second type of game asset, and a third type of game asset associated with the first virtual game, the second virtual game asset may include one or more of a first type of game asset, a second type of game asset, and a third type of game asset associated with the second virtual game, where the specific types of the first virtual game asset and the second virtual game asset are not limited, where the game assets may include game objects provided and the second game asset may be provided as a game object, and where the game objects may be provided as a game object or a game object may be provided as a game object, and the game object may be a game object may be provided as a game object, and may be a game object may be provided as a game object, or may be a game object.
It should be noted that there is typically only one first type of game asset in a virtual game.
It will be appreciated that when a first game object wishes to make a cross-game asset redemption, an asset redemption transaction may be transmitted to the blockchain link through a game asset client associated with the first game object, and the blockchain node may obtain the asset redemption transaction transmitted by the game asset client accordingly. The asset exchange transaction herein may include a first asset exchange transaction (such as the asset exchange transaction 21c shown in fig. 2) for exchanging a first game asset of a first game object in a first virtual game for a second game asset of a second game object in a second virtual game, where the first game asset is an asset in the first virtual game asset, such as the game asset a shown in fig. 2, and the second game asset is an asset in the second virtual game asset, such as the game asset B shown in fig. 2, and the first game object is different from the second game object.
Step S102, invoking a first asset business contract deployed on a blockchain based on a first asset exchange transaction, and performing authority verification on a first game object and a second game object to obtain a first authority verification result;
It will be appreciated that to ensure security of the redemption across gaming assets, it is necessary to verify whether both parties to the redemption actually hold the virtual gaming asset designated for participation in the redemption (i.e., to verify ownership of the virtual gaming asset engaged in the redemption). When receiving the first asset exchange transaction, the blockchain node can invoke a first asset service contract deployed on the blockchain based on the first asset exchange transaction, perform authority verification on the first game object and the second game object to obtain a first authority verification result, determine whether the first game object holds the first game asset in the first virtual game through the first authority verification result, and determine whether the second game object holds the second game asset in the second virtual game. Wherein the first asset transaction contract may be an asset transaction contract on the blockchain associated with the first game asset and the second game asset that is operable to effect redemption between the first game asset and the second game asset. The number of the first asset business contracts may be one or more, and the embodiment of the present application does not limit the specific content of the first asset business contracts.
The first asset exchange transaction carries first asset association data associated with the first game asset and the second game asset and first signature information of the first game object, wherein the first asset association data refers to related data information required by exchange of the first game asset and the second game asset, and can comprise asset identification of the first game asset, asset quantity, asset identification of the second game asset, asset quantity, account addresses corresponding to the first game object and the second game object respectively, and the like, specific content of the first asset association data is not limited, and the first signature information is obtained by signing the first asset association data through first private key information of the first game object. The specific process of carrying out authority verification on the first game object and the second game object can be that when first signature information is obtained from a first asset exchange transaction, first public key information corresponding to the first private key information is obtained, a first signature verification result can be obtained through signature verification on a first signature information row through the first public key information, optionally, when the first signature verification result indicates that the signature verification is successful, the first asset exchange transaction is sent by the first game object and is not tampered, at the moment, a first asset service contract which is arranged on a block chain can be called based on first asset association data carried in the first asset exchange transaction, a first asset holding object address corresponding to a first game asset and a second asset holding object address corresponding to a second game asset are obtained, further, the first asset holding object address can be compared with a first account address used by the first game object in a first virtual game, the second asset holding object can be compared with a second account address used by the second game object in the second virtual game, the first asset holding object can be held by the second asset holding object in the second virtual game address at the same time, the first asset holding object and the second asset holding object can be held by the second asset holding object in the second virtual game address in the second virtual game at the same time, and the second asset holding object holding address is determined to be used as a second virtual object holding the second asset holding object in the second game address at the second game address at the first virtual game account.
The first public key information of the first game object can be carried in the first signature information, and then the blockchain node can acquire the first public key information carried by the first public key information from the first signature information; or the first public key information may be stored in a public key certificate associated with the first game object, and the public key certificate may be stored on the blockchain, the blockchain node may obtain the first public key information from the public key certificate. The method for obtaining the first public key information is not limited herein.
In the embodiment of the application, the game objects holding the virtual game asset can be collectively called asset holding objects, and the account addresses of the asset holding objects can be collectively called asset holding object addresses. The first asset-holding object address is an account address of an asset-holding object of the first game asset, and the second asset-holding object address is an account address of an asset-holding object of the second game asset. Similarly, the first account address refers to an account address used by the first game object in the first virtual game, and the second account address refers to an account address used by the second game object in the second virtual game. It will be appreciated that when the first asset holding object address is the same as the first account address, it is indicative that the first game object is an asset holding object of the first game asset, i.e. the first game object holds the first game asset in the first virtual game, and when the second asset holding object address is the same as the second account address, it is indicative that the second game object is an asset holding object of the second game asset, i.e. the second game object holds the second game asset in the second virtual game.
It should be noted that, one game object may be associated with multiple virtual games, and then account addresses used by the same game object in different virtual games may be the same or different, which is not limited herein.
Optionally, when the first signature verification result indicates that the signature verification fails, the blockchain node may reject the first asset redemption transaction and may return corresponding redemption failure hint information to the game asset client. In addition, the authority verification can be performed on the first game object and the second game object together in cooperation with other authentication modes, for example, a plurality of conditions can be additionally set, which is not described in detail.
Step S103, when the first authority verification result indicates that the first game object holds a first game asset in the first virtual game and the second game object holds a second game asset in the second virtual game, exchanging the first game asset of the first game object in the first virtual game for the second game asset of the second game object in the second virtual game through the first asset business contract.
It will be appreciated that when the aforementioned first entitlement verification result indicates that the first game object holds a first game asset in the first virtual game and the second game object holds a second game asset in the second virtual game, the first game asset of the first game object in the first virtual game may be redeemed for the second game asset of the second game object in the second virtual game by the first asset transaction contract.
Wherein, embodiments of the present application may support cross-game redemption between any type of virtual game asset, and redemption rules between different virtual game assets may be specified by related asset business contracts, without limitation. Optionally, the embodiment of the application can support the exchange of the same type of virtual game asset in different virtual games, such as the exchange of a first type of game asset in different virtual games, or the exchange of a second type of game asset in different virtual games, or the exchange of a third type of game asset in different virtual games, or can support the exchange of different types of virtual game asset in different virtual games, such as the exchange of a first type of game asset in one virtual game with a second type of game asset or a third type of game asset in another virtual game. Several different redemption methods are listed below.
Taking the example of redemption of a first type of game asset in a different virtual game, the redemption ratio between the different first type of game asset and the universal asset may be different. Alternatively, the first game asset may be a first type of game asset (such as game diamond Z1) for redemption by a universal asset in the first virtual game, and the first game asset may be a first asset number (such as asset number X1) for redemption by a universal asset in the second virtual game, the second game asset may be a first type of game asset (such as game diamond Z2) for redemption by a universal asset in the second virtual game, based on which a first redemption ratio (such as redemption ratio P1) between the first game asset and the universal asset and a second redemption ratio (such as redemption ratio P2) between the second game asset and the universal asset may be obtained by the first game asset in accordance with the first redemption ratio, the calculated asset number may be calculated as a second asset number (such as asset number X2) and the calculated asset number may be calculated as a third asset number (such as asset number X3), the calculated asset number may be calculated as a second asset number based on the first redemption ratio, the calculated asset number may be calculated as a second asset number (such as asset number X2) when the first game asset is redeemable by the first game asset is a first game asset number, and the second game asset is processed by the first game asset is a second game object in the first virtual game object of the first game number and the second game is more than the first game object if the first game asset is in the first number and the second game object is in the first virtual game number of the first game number and the second game has been processed, and sending the second game asset with the third asset number to the first game object when destroying the second game asset with the third asset number held by the second game object. In this way, the first game object may purchase the second game asset without the need to additionally recharge the universal asset, thereby enhancing the utilization of the game asset.
In embodiments of the application, an asset business contract may be used to store redemption proportions between related game assets.
Optionally, if the number of assets of the second game asset held by the second game object in the second virtual game is smaller than the number of third assets, a corresponding prompt message may be sent to the game asset client for indicating that the second game asset held by the second game object in the second virtual game is insufficient for redemption.
Take the example of directly redeeming a third type of game asset in a different virtual game. Alternatively, the first game asset may be a third type of game asset (such as game skin F1) acquired by the first game object in the first virtual game, the second game asset may be a third type of game asset (such as game skin F2) acquired by the second game object in the second virtual game, the first asset transaction contract is used to indicate that the second game asset is redeemed by the first game asset, based on which the asset-holding object of the first game asset may be changed from the first game object to the second game object in the first virtual game and the asset-holding object of the second game asset may be changed from the second game object to the first game object in the second virtual game.
The redemption of a third type of game asset in a different virtual game by the first type of game asset is taken as an example. Optionally, the first game asset may be a third type of game asset (such as game skin F3) acquired by the first game object in the first virtual game, the second game asset may be a third type of game asset (such as game accessory B1) acquired by the second game object in the second virtual game, the first asset business contract may be used to instruct the first game asset to be redeemed by a first target game asset having a fourth asset number (such as asset number X4) associated with the first virtual game and instruct the second game asset to be redeemed by a second target game asset having a fifth asset number (such as asset number X5) associated with the second virtual game, wherein the first target game asset may be a first type of game asset (such as game diamond Z3) in the first virtual game object for redemption by a universal asset, the second target game asset may be redeemed by a first type of game asset (such as game diamond Z4) in the second virtual game object, based on which the first target game asset business contract may be acquired by a first target game asset number (such as asset number X4) and the second target game asset having a fifth asset number (such as asset number X5) associated with the second virtual game object number) may be redeemed by a third target game asset number (such as a fourth target number P6) and a further ratio may be calculated between the first target game asset and the third target game asset number P may be calculated by a fourth target number (such as a fourth target number P) may be calculated, and according to the fourth conversion ratio, the asset quantity of the second target game asset converted from the universal asset having the sixth asset quantity can be calculated, the calculated asset quantity is taken as a seventh asset quantity (for example, the asset quantity X7), and if the seventh asset quantity is greater than or equal to the fifth asset quantity, the asset holding object of the first game asset can be changed from the first game object to the second game object in the first virtual game, and the asset holding object of the second game asset can be changed from the second game object to the first game object in the second virtual game.
Alternatively, if the seventh asset number is greater than the fifth asset number, the second target game asset having the asset number difference may be transmitted to the first game object in the second virtual game, or the second target game asset having the asset number difference may be charged as a commission. The asset quantity difference is equal to a difference between the seventh asset quantity and the fifth asset quantity. Similarly, third-type game assets in different virtual games may also be redeemed by second-type game assets, which are not described herein.
Taking the example of indirect redemption of a third type of game asset in a different virtual game with a first type of game asset. Optionally, the first game asset may be a first type of game asset (such as game diamond Z5) in the first virtual game for redemption by a universal asset, the second game asset may be a third type of game asset (such as game skin F4) acquired by the second game object in the second virtual game, a first asset handling contract for instructing the second game asset to redeem by a third target game asset having an eighth asset number (such as asset number X8) associated with the second virtual game, the third target game asset may be a first type of game asset (such as game diamond Z6) in the second virtual game for redemption by a universal asset, based on which a fifth redemption ratio (such as redemption ratio P5) between the third target game asset and the universal asset and a sixth redemption ratio (such as redemption ratio P6) between the first game asset and the universal asset may be acquired by a first asset handling contract, a number calculated by the third target game asset having an eighth asset number (such as asset number X8) associated with the second virtual game are calculated based on the fifth redemption ratio, a calculated number calculated by the third target game asset having a ninth number (such as a tenth number is calculated as a tenth number in the first game object in the first virtual game) and a ninth number is calculated based on the fifth redemption ratio (such as a tenth number) between the third target game asset and the first game asset and the universal asset is calculated by a tenth number of the tenth number is calculated as a tenth number, when destroying the first game assets having the tenth asset number held by the first game object, the first game assets having the tenth asset number are transmitted to the second game object, and in the second virtual game, the asset holding object of the second game asset is changed from the second game object to the first game object. taking as an example the direct redemption of a third type of game asset in a different virtual game with either a first type of game asset or a second type of game asset. Alternatively, the first game asset may be a first type game asset (such as game diamond Z7) or a second type game asset (such as experience value J1) acquired by the first game object in the first virtual game, the second game asset may be a third type game asset (such as game skin F5) acquired by the second game object in the second virtual game, the first asset transaction contract indicates that the second game asset is redeemed by the first game asset having an eleventh asset number (such as asset number X11), and based on this, if the asset number of the first game asset held by the first game object in the first virtual game is greater than or equal to the eleventh asset number, the first game asset having the eleventh asset number may be transmitted to the second game object in the first virtual game by the first asset transaction contract when the first game asset having the eleventh asset number held by the first game object is destroyed, and the asset holding by the second game object in the second virtual game object is changed from the second game object to the first game object.
The redemption of a game asset of a first type in a different virtual game with a game asset of a third type is taken as an example. Optionally, the first game asset may be a third type of game asset acquired by the first game object in the first virtual game; the second game asset may be a first type of game asset in the second virtual game for redemption by a universal asset, the first asset transaction contract is used to indicate that the first game asset is redeemed by a fourth target game asset having a twelfth asset quantity (such as asset quantity X12) associated with the first virtual game, the fourth target game asset may be a first type of game asset in the first virtual game for redemption by a universal asset (such as game diamond Z8), based on which a seventh redemption ratio (such as redemption ratio P7) between the fourth target game asset and the universal asset and an eighth redemption ratio (such as redemption ratio P8) between the second game asset and the universal asset may be obtained by the first asset transaction contract, the number of assets obtained by the fourth target game asset having a twelfth asset quantity is calculated as a thirteenth asset quantity (such as asset quantity X13) based on the seventh redemption ratio, the number of assets obtained by the universal asset having a thirteenth asset quantity is calculated as a thirteenth asset quantity (such as asset quantity X13), the number of assets obtained by the fourth target game asset is calculated as a fourteenth asset quantity (such as a fourteenth asset is calculated in the virtual game asset, if the number of assets obtained by the fourth target game asset quantity is equal to the fourteenth number in the first virtual game asset is calculated as a fourteenth virtual asset quantity, in the second virtual game, when the asset holding object of the first game asset is changed from the first game object to the second game object, and the second game asset having the fourteenth asset number is destroyed by the second game object, the second game asset having the fourteenth asset number is transmitted to the first game object.
Taking the example of directly redeeming a third type of game asset for either a first type of game asset or a second type of game asset in a different virtual game. Alternatively, the first game asset may be a third type of game asset (such as game skin F6) acquired by the first game object in the first virtual game, the second game asset may be a first type of game asset (such as game diamond Z9) or a second type of game asset (such as experience value J2) acquired by the second game object in the second virtual game, the first asset transaction contract indicates that the first game asset is redeemed by a second game asset having a fifteenth asset number (such as asset number X15), based on which if the asset number of the second game asset held by the second game object in the second virtual game is greater than or equal to the fifteenth asset number, the asset holding object of the first game asset may be changed from the first game object to the second game object in the first virtual game, and the second game asset having the fifteenth number of second game assets is transmitted to the first game object upon destruction of the second game asset having the fifteenth number held by the second game object in the second virtual game object.
Taking the example of redemption of a first type of game asset for a second type of game asset in a different virtual game. Alternatively, the first game asset may be a first type game asset (such as game diamond Z10) in the first virtual game for redemption by a universal asset, and the first game asset may have a sixteenth asset number (such as asset number X16) in the first game asset, the second game asset may be a second type game asset (such as experience value J3) in the second virtual game for redemption by a fifth target game asset, the fifth target game asset may be a first type game asset (such as game diamond Z11) in the second virtual game for redemption by a universal asset, based on which a ninth redemption ratio (such as redemption ratio P9) between the first game asset and the universal asset, a tenth redemption ratio (such as redemption ratio P10) between the fifth target game asset and the universal asset, and an eleventh redemption ratio (such as redemption ratio P11) between the second game asset and the fifth target game asset, the number of universal asset obtained by calculating the first game asset having the sixteenth asset number according to the ninth redemption ratio, the number of the first game asset to the fifth target game asset may be a first game asset (such as game diamond Z11), the number obtained by calculating the eighteenth number as the seventeenth number according to the tenth number (such as the tenth number calculated according to the tenth number (such as the seventeenth number) and the tenth number calculated according to the tenth number (such as the seventeenth number) of the tenth number calculated by the tenth number (18), if the asset count of the second game asset held by the second game object in the second virtual game is greater than or equal to the nineteenth asset count, the first game asset having the sixteenth asset count may be transmitted to the second game object when the first game asset having the sixteenth asset count held by the first game object is destroyed in the first virtual game, and the second game asset having the nineteenth asset count may be transmitted to the first game object when the second game asset having the nineteenth asset count held by the second game object is destroyed in the second virtual game.
Take the example of directly redeeming a second type of game asset in a different virtual game. Alternatively, the first game asset may be a second type game asset (such as experience value J4) acquired by the first game object in the first virtual game, and the first game asset may be a twenty first asset number (such as asset number X20), the second game asset may be a second type game asset (such as credit A1) acquired by the second game object in the second virtual game, the first asset transaction contract is used to indicate that the second game asset is redeemed by the first game asset, a twelfth redemption ratio (such as redemption ratio P12) between the first game asset and the second game asset may be acquired by the first asset transaction contract based on this, the asset number of the second game asset redeemed by the first game asset having the twenty first asset number is calculated as the twenty first asset number (such as asset number X21) based on the twelfth redemption ratio, the second game asset having the twenty first game asset number may be processed in the first virtual game object if the second game object holds the asset number of the twenty first asset number greater than or equal to the twenty first asset number, and the second game asset having the twenty first game asset number is processed in the second virtual game object when the second game object has the twenty first game asset number is destroyed.
In addition, other exchange modes are also possible, and embodiments of the present application are not listed one by one.
It will be appreciated that upon successful redemption of a first game asset for a second game asset, the blockchain node may send a corresponding redemption success cue message to the game asset client for indicating successful redemption between the first game object and the second game object across the game assets. In addition, a corresponding transaction record may be returned to the game asset client for the first game object to query and audit. The balance of game assets on the account addresses of both parties can also be updated. Therefore, the embodiment of the application provides a cross-game asset intercommunication scheme based on the blockchain, which can bind virtual game assets associated with different virtual games on the blockchain, so that any game object can call related asset service contracts deployed on the blockchain by sending asset exchange transaction forms to the blockchain nodes, and exchange virtual game assets in a designated virtual game into virtual game assets in another virtual game, thereby realizing intercommunication of the virtual game assets among different virtual games and improving the dominance capability of the game object on the virtual game assets.
Further, referring to fig. 4, fig. 4 is a second flowchart of a data processing method based on a blockchain according to an embodiment of the present application. As shown in FIG. 4, the method may be performed by a blockchain node in a blockchain network, such as any of the blockchain nodes (e.g., node 20 a) in the blockchain network 20 shown in FIG. 2 described above. The method specifically comprises the following steps:
step S201, acquiring an asset exchange transaction sent by a game asset client associated with a first game object;
Step S202, when the asset exchange transaction comprises a first asset exchange transaction, invoking a first asset business contract deployed on a blockchain based on the first asset exchange transaction, and performing authority verification on a first game object and a second game object to obtain a first authority verification result;
Step S203, when the first authority verification result indicates that the first game object holds a first game asset in the first virtual game and the second game object holds a second game asset in the second virtual game, exchanging the first game asset of the first game object in the first virtual game for the second game asset of the second game object in the second virtual game through the first asset service contract;
The specific implementation process of the steps S201 to S203 may refer to the embodiment corresponding to fig. 3, and will not be described herein.
Step S204, when the asset exchange transaction comprises a second asset exchange transaction, invoking a second asset business contract deployed on the blockchain based on the second asset exchange transaction, and performing authority verification on the first game object to obtain a second authority verification result;
It will be appreciated that the redemption of game assets within different virtual games may be between different game objects or may also be between different game accounts of the same game object, without limitation.
The asset exchange transaction may further include a second asset exchange transaction, where the second asset exchange transaction refers to a transaction for exchanging a third game asset of the first game object in the first virtual game for a fourth game asset of the first game object in the second virtual game, where the third game asset is an asset in the first virtual game asset, and the fourth game asset is an asset in the second virtual game asset. To ensure security of the redemption across game assets, it is necessary to verify whether the first game object actually holds the virtual game asset designated for redemption (i.e., verifies ownership of the virtual game asset engaged in redemption). Specifically, when the blockchain node receives the second asset exchange transaction, the blockchain node may invoke a second asset service contract deployed on the blockchain based on the second asset exchange transaction, perform authority verification on the first game object to obtain a second authority verification result, and determine, according to the first authority verification result, whether the first game object holds a third game asset in the first virtual game, and determine whether the first game object holds a fourth game asset in the second virtual game. Wherein the second asset transaction contract may be an asset transaction contract on the blockchain associated with a third game asset and a fourth game asset that is operable to effect redemption between the third game asset and the fourth game asset. The number of the second asset business contracts may be one or more, and the embodiment of the present application does not limit the specific content of the second asset business contracts.
The second asset exchange transaction carries second asset association data associated with the third game asset and the fourth game asset and second signature information of the first game object, wherein the second asset association data refers to related data information required by exchange of the third game asset and the fourth game asset, and can comprise asset identification of the third game asset, asset number, asset identification of the fourth game asset, account addresses and the like of the first game object used in the first virtual game and the second virtual game respectively, specific content of the second asset association data is not limited, and the second signature information is obtained by signing the second asset association data through second private key information of the first game object. When second signature information is obtained from second asset exchange transaction, second public key information corresponding to second private key information is obtained, and second signature information is subjected to signature verification through the second public key information, so that a second signature verification result can be obtained; optionally, when the second signature verification result indicates that the signature verification is successful, the second asset exchange transaction is sent by the first game object and is not tampered, at this time, a second asset business contract deployed on the blockchain may be invoked based on second asset association data carried in the second asset exchange transaction to obtain a third asset holding object address corresponding to the third game asset and a fourth asset holding object address corresponding to the fourth game asset, further, the third asset holding object address may be compared with a third account address used by the first game object in the first virtual game, and the fourth asset holding object address may be compared with a fourth account address used by the first game object in the second virtual game, and when the third asset holding object address is the same as the third account address and the fourth asset holding object address is the same as the fourth account address, the first game object may be determined to hold the third game asset in the first virtual game and the fourth game asset in the second virtual game, and the first game object may hold the third game asset in the first virtual game at this time, and the fourth game asset may be used as a verification result.
The second public key information of the first game object can be carried in the second signature information, and then the blockchain node can acquire the second public key information carried by the second public key information from the second signature information; or the second public key information may be stored in a public key certificate associated with the first game object and the public key certificate may be stored on the blockchain, the blockchain node may obtain the second public key information from the public key certificate. The manner of obtaining the second public key information is not limited herein.
The third account address and the fourth account address may be the same account address or different account addresses, which is not limited herein.
Optionally, when the second signature verification result indicates that the signature verification fails, the blockchain node may reject the second asset redemption transaction and may return corresponding redemption failure hint information to the game asset client.
In addition, the authorization verification of the first game object can be performed together with other authentication modes, for example, a plurality of conditions can be additionally set, which is not described in detail.
In step S205, when the second authority verification result indicates that the first game object holds the third game asset in the first virtual game and the first game object holds the fourth game asset in the second virtual game, the third game asset of the first game object in the first virtual game is exchanged for the fourth game asset of the first game object in the second virtual game through the second asset service contract.
It will be appreciated that when the aforementioned second entitlement verification result indicates that the first game object holds a third game asset in the first virtual game and the first game object holds a fourth game asset in the second virtual game, the third game asset of the first game object in the first virtual game may be redeemed for the fourth game asset of the first game object in the second virtual game by the second asset transaction contract. For a specific implementation of exchanging the third game asset for the fourth game asset, reference may be made to the above implementation of exchanging the first game asset for the second game asset, which will not be described herein.
The steps S202-S203 and S204-S205 may be executed in parallel.
For ease of understanding, please refer to fig. 5, fig. 5 is a schematic diagram of an architecture of a cross-game asset interworking system according to an embodiment of the present application. As shown in fig. 5, the system may include a blockchain network 50 in which a plurality of blockchain nodes may be deployed, e.g., where the plurality of blockchain nodes may include, in particular, node 50a, node 50b, node 50c, and node 50d, which may be used to collectively maintain blockchain 50e.
In this system, all of the virtual game assets associated with a virtual game may exist in the form of different types of game assets on the same blockchain (e.g., blockchain 50 e), and any one of the virtual game assets may have its price anchored to a general asset or determined by the market, so any one of the virtual game assets may be redeemed for one of the other virtual game assets based on its price. That is, virtual gaming assets in different virtual games can be interchanged, and the rules for interchange are determined by intelligent contracts (i.e., the aforementioned asset business contracts) deployed by business parties (e.g., game facilitators, game players, etc.) on the blockchain, through which the interchange of different virtual gaming assets can be accomplished automatically.
For example, a business party may first obtain an asset client, such as by accessing an associated asset management website or downloading an asset client application, to issue a virtual game asset for virtual game Y on a blockchain (e.g., blockchain 50 e). Virtual game assets can be created based on intelligent contracts on the blockchain, and thus, business parties need to write an intelligent contract that meets blockchain related criteria in order to be able to create virtual game assets on the blockchain. After the business side has written the intelligent contract, it can be deployed onto the blockchain, either by accessing the associated contract deployment website or using a contract deployment tool in the asset client application. After the intelligent contract is successfully deployed, the business party may begin distributing the virtual game asset to other users, which may be accomplished by sending the virtual game asset to other account addresses. It follows that virtual game asset interchange can be trusted through smart contracts, and anyone can create his own smart contracts to effect the interchange of any kind of game asset.
It will be appreciated that game assets within one virtual game may be trusted and securely transferred to other virtual games based on the blockchain 50e corresponding to the blockchain network 50, e.g., game assets 51a within game 1 may be redeemed for game assets 51b within game 2 via blockchain 50e, where there are no restrictions on the types of game 1 and game 2, no restrictions on the types of game assets 51a and game assets 51b, and no restrictions on the asset holding objects of game assets 51a and game assets 51 b.
Therefore, by implementing the scheme provided by the embodiment of the application, the game assets of each virtual game can be trusted and safely communicated across games, the asset mobility among different virtual games is achieved, the game objects can more freely control own game assets, and the utilization rate of the game assets is improved.
Referring to fig. 6, fig. 6 is a schematic structural diagram of a data processing apparatus based on a blockchain according to an embodiment of the present application. As shown in FIG. 6, the blockchain-based data processing device 1 may be used in a blockchain node in a blockchain network, for example, any of the blockchain nodes in the blockchain network in the embodiment of FIG. 2, such as node 20a. It should be appreciated that the blockchain-based data processing device 1 may be a computer program (including program code) running on a blockchain node (e.g., the aforementioned node 20 a), for example, the blockchain-based data processing device 1 may be an application software, and the device may be configured to perform the corresponding steps in the blockchain-based data processing method provided by the embodiments of the present application. The blockchain network can be used for storing a virtual game asset associated with a virtual game, wherein the virtual game comprises a first virtual game and a second virtual game, the first virtual game is different from the second virtual game, and the virtual game asset can comprise a first virtual game asset associated with the first virtual game and a second virtual game asset associated with the second virtual game. As shown in fig. 6, the blockchain-based data processing device 1 may include a transaction acquisition module 11, a first verification module 12, a first redemption module 13, a second verification module 14, a second redemption module 15;
A transaction acquisition module 11, configured to acquire an asset exchange transaction sent by a game asset client associated with a first game object, where the asset exchange transaction includes a first asset exchange transaction, where the first asset exchange transaction is a transaction for exchanging a first game asset of the first game object in a first virtual game for a second game asset of a second game object in a second virtual game;
The virtual game assets include a first type of game asset, a second type of game asset, and a third type of game asset, the virtual game assets are created by game objects associated with the virtual game through asset business contracts deployed on the blockchain, the first virtual game asset includes one or more of the first type of game asset, the second type of game asset, and the third type of game asset associated with the first virtual game, the second virtual game asset includes one or more of the first type of game asset, the second type of game asset, and the third type of game asset associated with the second virtual game, the game objects include game offering objects and game service objects, the first game object is a game offering object or a game service object associated with the first virtual game, and the second game object is a game offering object or a game service object associated with the second virtual game.
A first verification module 12, configured to invoke a first asset service contract deployed on the blockchain based on a first asset exchange transaction, perform authority verification on the first game object and the second game object, and obtain a first authority verification result;
The first asset exchange transaction carries first asset association data associated with a first game asset and a second game asset and first signature information of a first game object, wherein the first signature information is obtained by signing the first asset association data through first private key information of the first game object;
The first verification module 12 may include a first verification unit 121, a first comparison unit 122, a first determination unit 123;
The first signing verification unit 121 is configured to obtain first public key information corresponding to the first private key information when first signature information is obtained from the first asset exchange transaction, and perform signature verification on the first signature information through the first public key information to obtain a first signature verification result;
A first comparing unit 122, configured to, when the first signature verification result indicates that the signature verification is successful, invoke a first asset service contract deployed on the blockchain based on the first asset association data carried in the first asset exchange transaction, and acquire a first asset holding object address corresponding to the first game asset and a second asset holding object address corresponding to the second game asset; comparing the first asset holding object address with a first account address used by the first game object in the first virtual game and comparing the second asset holding object address with a second account address used by the second game object in the second virtual game, determining that the first game object holds the first game asset in the first virtual game and the second game object holds the second game asset in the second virtual game when the first asset holding object address is the same as the first account address and the second asset holding object address is the same as the second account address;
A first determining unit 123 for holding a first game asset in the first virtual game with a first game object and holding a second game asset in the second virtual game with a second game object as a first authority verification result.
The specific functional implementation manners of the first signature verification unit 121, the first comparison unit 122, and the first determination unit 123 may be referred to the description of step S102 in the embodiment corresponding to fig. 3, and will not be further described herein.
The first exchange module 13 is configured to exchange, when the first authority verification result indicates that the first game object holds the first game asset in the first virtual game and the second game object holds the second game asset in the second virtual game, the first game asset of the first game object in the first virtual game to the second game asset of the second game object in the second virtual game through the first asset service contract.
The first game asset is a first type game asset used for being exchanged through a general asset in a first virtual game, and the number of the first game asset is the first asset number;
The first redemption module 13 may include a first computing unit 1301, a first redemption unit 1302;
A first calculating unit 1301 configured to obtain a first conversion ratio between a first game asset and a general asset and a second conversion ratio between a second game asset and a general asset through a first asset service contract, calculate an asset number of the general asset converted through the first game asset having the first asset number according to the first conversion ratio, regard the calculated asset number as a second asset number, and calculate an asset number of the second game asset converted through the general asset having the second asset number according to the second conversion ratio, and regard the calculated asset number as a third asset number;
The first exchange unit 1302 is configured to send, in the first virtual game, the first game asset having the first asset number to the second game object when the first game asset having the first asset number is destroyed in the first virtual game, and send, in the second virtual game, the second game asset having the third asset number to the first game object when the second game asset having the third asset number is destroyed in the second virtual game, if the asset number of the second game asset held by the second game object in the second virtual game is greater than or equal to the third asset number.
The first game asset is a third type game asset acquired by a first game object in a first virtual game, and the second game asset is a third type game asset acquired by a second game object in a second virtual game;
the first redemption module 13 may include a second redemption unit 1303;
The second exchange unit 1303 is configured to change, through the first asset business contract, an asset-holding object of the first game asset from the first game object to the second game object in the first virtual game, and change the asset-holding object of the second game asset from the second game object to the first game object in the second virtual game.
The first game asset is a third type game asset acquired by a first game object in a first virtual game, the second game asset is a third type game asset acquired by a second game object in a second virtual game, the first asset business contract is used for indicating that the first game asset is redeemed through a first target game asset with the fourth asset number associated with the first virtual game and is used for indicating that the second game asset is redeemed through a second target game asset with the fifth asset number associated with the second virtual game;
the first redemption module 13 can include a second computing unit 1304, a third redemption unit 1305;
A second calculation unit 1304 for obtaining a third exchange ratio between the first target game asset and the universal asset and a fourth exchange ratio between the second target game asset and the universal asset through the first asset business contract, calculating an asset number of the universal asset exchanged through the first target game asset having a fourth asset number according to the third exchange ratio, taking the calculated asset number as a sixth asset number, and calculating an asset number of the second target game asset exchanged through the universal asset having the sixth asset number according to the fourth exchange ratio, taking the calculated asset number as a seventh asset number;
And a third exchange unit 1305 for changing the asset holding object of the first game asset from the first game object to the second game object in the first virtual game and changing the asset holding object of the second game asset from the second game object to the first game object in the second virtual game if the seventh asset number is equal to or greater than the fifth asset number.
The first game asset is a first type game asset which is used for being exchanged through a general asset in a first virtual game, the second game asset is a third type game asset which is acquired by a second game object in a second virtual game, the first asset business contract is used for indicating that the second game asset is exchanged through a third target game asset which is associated with the second virtual game and has eighth asset quantity, and the third target game asset is a first type game asset which is used for being exchanged through the general asset in the second virtual game;
the first redemption module 13 may include a third computing unit 1306, a fourth redemption unit 1307;
A third calculation unit 1306 for obtaining a fifth exchange ratio between the third target game asset and the universal asset and a sixth exchange ratio between the first game asset and the universal asset through the first asset business contract, calculating an asset number of the universal asset exchanged through the third target game asset having the eighth asset number according to the fifth exchange ratio, taking the calculated asset number as a ninth asset number, and calculating an asset number of the first game asset exchanged through the universal asset having the ninth asset number according to the sixth exchange ratio, taking the calculated asset number as a tenth asset number;
And a fourth exchange unit 1307 configured to send the first game asset having the tenth asset number to the second game object when the first game asset having the tenth asset number held by the first game object is destroyed in the first virtual game if the asset number of the first game asset held by the first game object is greater than or equal to the tenth asset number, and change the asset holding object of the second game asset from the second game object to the first game object in the second virtual game.
The first game asset is a first type game asset or a second type game asset acquired by a first game object in a first virtual game, and the second game asset is a third type game asset acquired by a second game object in a second virtual game;
The first redemption module 13 may include a fifth redemption unit 1308;
Fifth exchange means 1308 for transmitting, in the first virtual game, the first game asset having the eleventh asset number to the second game object and changing, in the second virtual game, the asset holding object of the second game asset from the second game object to the first game object, by the first asset service contract, when the first game asset having the eleventh asset number held by the first game object is destroyed in the first virtual game, if the asset number of the first game asset held by the first game object is equal to or greater than the eleventh asset number.
The asset-holding object of the game asset is changed from the second game object to the first game object.
The first game asset is a third type game asset acquired by a first game object in a first virtual game, the second game asset is a first type game asset used for being exchanged through a general asset in a second virtual game, the first asset business contract is used for indicating that the first game asset is exchanged through a fourth target game asset with twelfth asset quantity associated with the first virtual game, and the fourth target game asset is a first type game asset used for being exchanged through the general asset in the first virtual game;
the first redemption module 13 may include a fourth computing unit 1309, a sixth redemption unit 1310;
A fourth calculation unit 1309 for acquiring, through the first asset business contract, a seventh conversion ratio between the fourth target game asset and the universal asset and an eighth conversion ratio between the second game asset and the universal asset, calculating, according to the seventh conversion ratio, the asset number of the universal asset converted through the fourth target game asset having the twelfth asset number, taking the calculated asset number as the thirteenth asset number, and calculating, according to the eighth conversion ratio, the asset number of the second game asset converted through the universal asset having the thirteenth asset number, taking the calculated asset number as the fourteenth asset number;
a sixth exchange unit 1310 for changing, in the first virtual game, the asset-holding object of the first game asset from the first game object to the second game object if the asset number of the second game asset held by the second game object in the second virtual game is greater than or equal to the fourteenth asset number, and transmitting, in the second virtual game, the second game asset having the fourteenth asset number to the first game object when the second game asset having the fourteenth asset number held by the second game object is destroyed.
The first game asset is a third type game asset acquired by a first game object in a first virtual game, and the second game asset is a first type game asset or a second type game asset acquired by a second game object in a second virtual game;
the first redemption module 13 may include a seventh redemption unit 1311;
Seventh exchange section 1311 is configured to change, in the first virtual game, the asset-holding object of the first game asset from the first game object to the second game object by the first asset service contract if the asset number of the second game asset held by the second game object in the second virtual game is equal to or greater than the fifteenth asset number, and to send the second game asset having the fifteenth asset number to the first game object when the second game asset having the fifteenth asset number held by the second game object is destroyed in the second virtual game.
The first game assets are first type game assets used for being exchanged through the universal assets in the first virtual game, and the number of the first game assets is sixteenth asset number; the second game asset is a second type game asset used for being exchanged through a fifth target game asset in the second virtual game;
the first redemption module 13 may include a fifth computing unit 1312, an eighth redemption unit 1313;
A fifth calculating unit 1312, configured to obtain, through the first asset service contract, a ninth conversion ratio between the first game asset and the universal asset, a tenth conversion ratio between the fifth target game asset and the universal asset, and an eleventh conversion ratio between the second game asset and the fifth target game asset; according to a ninth conversion ratio, calculating an asset number of the universal assets converted by the first game asset having the sixteenth asset number, taking the calculated asset number as a seventeenth asset number, and according to a tenth conversion ratio, calculating an asset number of the fifth target game asset converted by the universal assets having the seventeenth asset number, taking the calculated asset number as an eighteenth asset number;
Eighth redemption unit 1313 is configured to send, in the first virtual game, the first game asset having the sixteenth asset number to the second game object when the first game asset having the sixteenth asset number held by the first game object is destroyed, and send, in the second virtual game, the second game asset having the nineteenth asset number to the first game object when the second game asset having the nineteenth asset number held by the second game object is destroyed.
The first game assets are second-type game assets acquired by the first game object in the first virtual game, and the number of the first game assets is twenty-th; the first asset business contract is used for indicating the second game asset to be obtained through the first game asset exchange;
the first redemption module 13 may include a sixth computing unit 1314, a ninth redemption unit 1315;
a sixth calculating unit 1314 for obtaining a twelfth exchange ratio between the first game asset and the second game asset through the first asset business contract, calculating an asset number of the second game asset exchanged through the first game asset having the twentieth asset number according to the twelfth exchange ratio, and taking the calculated asset number as the twenty-first asset number;
and a ninth redemption unit 1315 configured to send, in the first virtual game, the first game asset having the twentieth asset number to the second game object when the first game asset having the twentieth asset number held by the first game object is destroyed, and send, in the second virtual game, the second game asset having the twenty-first asset number to the first game object when the second game asset having the twenty-first asset number held by the second game object is destroyed, if the asset number of the second game asset held by the second game object is greater than or equal to the twenty-first asset number.
The specific functional implementation manner of the first computing unit 1301, the first converting unit 1302, the second converting unit 1303, the second computing unit 1304, the third converting unit 1305, the third computing unit 1306, the fourth converting unit 1307, the fifth converting unit 1308, the fourth computing unit 1309, the sixth converting unit 1310, the seventh converting unit 1311, the fifth computing unit 1312, the eighth converting unit 1313, the sixth computing unit 1314, and the ninth converting unit 1315 may be referred to the description of step S103 in the embodiment corresponding to fig. 3, and will not be repeated here.
The asset exchange transaction comprises a second asset exchange transaction, wherein the second asset exchange transaction refers to a transaction for exchanging a third game asset of a first game object in a first virtual game for a fourth game asset of the first game object in a second virtual game, the third game asset is an asset in the first virtual game asset, the fourth game asset is an asset in the second virtual game asset, and the device further comprises:
A second verification module 14, configured to invoke a second asset service contract deployed on the blockchain based on a second asset exchange transaction, perform authority verification on the first game object, and obtain a second authority verification result;
the second asset exchange transaction carries second asset association data associated with a third game asset and a fourth game asset and second signature information of the first game object, wherein the second signature information is obtained by signing the second asset association data through second private key information of the first game object;
The second verification module 14 may include a second verification unit 141, a second comparison unit 142, and a second determination unit 143;
The second signature verification unit 141 is configured to obtain second public key information corresponding to second private key information when second signature information is obtained from the second asset exchange transaction, and perform signature verification on the second signature information through the second public key information to obtain a second signature verification result;
A second comparing unit 142, configured to, when the second signature verification result indicates that the signature verification is successful, invoke a second asset service contract deployed on the blockchain based on second asset association data carried in the second asset exchange transaction, and acquire a third asset holding object address corresponding to the third game asset and a fourth asset holding object address corresponding to the fourth game asset; comparing the third asset holding object address with a third account address used by the first game object in the first virtual game and comparing the fourth asset holding object address with a fourth account address used by the first game object in the second virtual game, determining that the first game object holds a third game asset in the first virtual game and the first game object holds a fourth game asset in the second virtual game when the third asset holding object address is the same as the third account address and the fourth asset holding object address is the same as the fourth account address;
A second determining unit 143 for holding the first game object in the first virtual game with the third game asset and holding the first game object in the second virtual game with the fourth game asset as a second authority verification result.
The specific functional implementation manners of the second signature verification unit 141, the second comparison unit 142, and the second determination unit 143 may be referred to the description of step S204 in the embodiment corresponding to fig. 4, and will not be further described herein.
And a second exchange module 15, configured to exchange, when the second authority verification result indicates that the first game object holds a third game asset in the first virtual game and the first game object holds a fourth game asset in the second virtual game, the third game asset of the first game object in the first virtual game into the fourth game asset of the first game object in the second virtual game through the second asset service contract.
The specific functional implementation manners of the transaction obtaining module 11, the first verifying module 12, the first converting module 13, the second verifying module 14, and the second converting module 15 may be referred to the description of step S101 to step S103 in the embodiment corresponding to fig. 3, or may be referred to the description of step S201 to step S205 in the embodiment corresponding to fig. 4, which will not be further described herein. It should be understood that the description of the beneficial effects obtained by the same method will not be repeated.
Referring to fig. 7, fig. 7 is a schematic structural diagram of a computer device according to an embodiment of the application. As shown in fig. 7, the computer device 1000 may include a processor 1001, a network interface 1004, and a memory 1005, and the computer device 1000 may further include a user interface 1003, and at least one communication bus 1002. Wherein the communication bus 1002 is used to enable connected communication between these components. The optional user interface 1003 may include a standard wired interface, a wireless interface, among others. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high-speed RAM memory or a non-volatile memory (non-volatile memory), such as at least one disk memory. The memory 1005 may also optionally be at least one storage device located remotely from the processor 1001. As shown in fig. 7, an operating system, a network communication module, a user interface module, and a device control application may be included in a memory 1005, which is a type of computer-readable storage medium.
In the computer device 1000 shown in fig. 7, the network interface 1004 may provide network communication functions, while the user interface 1003 is mainly used for providing an input interface for a user, and the processor 1001 may be used for invoking a device control application program stored in the memory 1005 to execute the description of the blockchain-based data processing method in any of the embodiments corresponding to fig. 3 and 4, which will not be repeated herein. In addition, the description of the beneficial effects of the same method is omitted.
It should be noted that, in addition, the embodiment of the present application further provides a computer readable storage medium, where the computer readable storage medium stores the computer program executed by the above-mentioned blockchain-based data processing apparatus 1, where the computer program includes computer instructions, when executed by a processor, can execute the description of the blockchain-based data processing method in any of the corresponding embodiments of fig. 3 and 4, and therefore, a detailed description will not be given here. In addition, the description of the beneficial effects of the same method is omitted. For technical details not disclosed in the embodiments of the computer-readable storage medium according to the present application, please refer to the description of the method embodiments of the present application.
The computer readable storage medium may be a blockchain-based data processing apparatus provided in any of the foregoing embodiments or an internal storage unit of the computer device, such as a hard disk or a memory of the computer device. The computer readable storage medium may also be an external storage device of the computer device, such as a plug-in hard disk, a smart memory card (SMART MEDIA CARD, SMC), a Secure Digital (SD) card, a flash memory card (FLASH CARD), etc. that are provided on the computer device. Further, the computer-readable storage medium may also include both internal storage units and external storage devices of the computer device. The computer-readable storage medium is used to store the computer program and other programs and data required by the computer device. The computer-readable storage medium may also be used to temporarily store data that has been output or is to be output.
Furthermore, it should be noted here that embodiments of the present application also provide a computer program product or a computer program comprising computer instructions stored in a computer readable storage medium. The processor of the computer device reads the computer instructions from the computer readable storage medium and executes the computer instructions to cause the computer device to perform the method provided by the corresponding embodiment of any of the preceding figures 3, 4. In addition, the description of the beneficial effects of the same method is omitted. For technical details not disclosed in the computer program product or the computer program embodiments according to the present application, reference is made to the description of the method embodiments according to the present application.
The terms first, second and the like in the description and in the claims and drawings of embodiments of the application are used for distinguishing between different objects and not for describing a particular sequential order. Furthermore, the term "include" and any variations thereof is intended to cover a non-exclusive inclusion. For example, a process, method, apparatus, article, or device that comprises a list of steps or elements is not limited to the list of steps or modules but may, in the alternative, include other steps or modules not listed or inherent to such process, method, apparatus, article, or device.
In the present embodiment, the term "module" or "unit" refers to a computer program or a part of a computer program having a predetermined function and working together with other relevant parts to achieve a predetermined object, and may be implemented in whole or in part by using software, hardware (such as a processing circuit or a memory), or a combination thereof. Also, a processor (or multiple processors or memories) may be used to implement one or more modules or units. Furthermore, each module or unit may be part of an overall module or unit that incorporates the functionality of the module or unit.
Those of ordinary skill in the art will appreciate that the elements and algorithm steps described in connection with the embodiments disclosed herein may be embodied in electronic hardware, in computer software, or in a combination of the two, and that the elements and steps of the examples have been generally described in terms of function in the foregoing description to clearly illustrate the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
It should be noted that, for simplicity of description, the foregoing method embodiments are all expressed as a series of action combinations, but it should be understood by those skilled in the art that the present application is not limited by the order of action described, as some steps may be performed in other order or simultaneously according to the present application. Further, those skilled in the art will also appreciate that the embodiments described in the specification are all preferred embodiments, and that the acts and modules referred to are not necessarily required for the present application.
The steps in the method of the embodiment of the application can be sequentially adjusted, combined and deleted according to actual needs.
The modules in the device of the embodiment of the application can be combined, divided and deleted according to actual needs.
Those skilled in the art will appreciate that implementing all or part of the above-described methods may be accomplished by way of a computer program stored in a computer-readable storage medium, which when executed may comprise the steps of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), or the like.
The foregoing disclosure is illustrative of the present application and is not to be construed as limiting the scope of the application, which is defined by the appended claims.

Claims (18)

1. A blockchain-based data processing method is characterized in that the method is executed by a blockchain node in a blockchain network, virtual game assets associated with a virtual game are stored on the blockchain corresponding to the blockchain network, the virtual game comprises a first virtual game and a second virtual game, the first virtual game is different from the second virtual game, the virtual game assets comprise a first virtual game asset associated with the first virtual game and a second virtual game asset associated with the second virtual game, and the method comprises:
Acquiring an asset redemption transaction sent by a game asset client associated with a first game object, the asset redemption transaction comprising a first asset redemption transaction for redeeming a first game asset of the first game object in the first virtual game for a second game asset of a second game object in the second virtual game, the first game asset being an asset in the first virtual game asset, the second game asset being an asset in the second virtual game asset, the first game object being different from the second game object;
Invoking a first asset business contract deployed on the blockchain based on the first asset exchange transaction, and performing authority verification on the first game object and the second game object to obtain a first authority verification result;
When the first authority verification result indicates that the first game object holds the first game asset in the first virtual game and the second game object holds the second game asset in the second virtual game, the first game asset of the first game object in the first virtual game is exchanged for the second game asset of the second game object in the second virtual game through the first asset business contract.
2. The method of claim 1, wherein the virtual game assets include a first type of game asset, a second type of game asset, and a third type of game asset, wherein the virtual game assets are created by game objects associated with the virtual game through asset business contracts deployed on the blockchain, wherein the first virtual game asset includes one or more of the first type of game asset, the second type of game asset, and the third type of game asset associated with the first virtual game, wherein the second virtual game asset includes one or more of the first type of game asset, the second type of game asset, and the third type of game asset associated with the second virtual game, wherein the game objects include game offering objects and game service objects, wherein the first game object is a game offering object or a game service object associated with the first virtual game, and wherein the second game object is a game offering object or a game service object associated with the second virtual game.
3. The method of claim 1, wherein the first asset redemption transaction carries first asset-related data associated with the first gaming asset and the second gaming asset and first signature information for the first gaming object, the first signature information being signed by first private key information for the first gaming object;
invoking a first asset business contract deployed on the blockchain based on the first asset exchange transaction, performing authority verification on the first game object and the second game object to obtain a first authority verification result, including:
when the first signature information is acquired from the first asset exchange transaction, acquiring first public key information corresponding to the first private key information, and carrying out signature verification on the first signature information through the first public key information to obtain a first signature verification result;
When the first signature verification result indicates that signature verification is successful, calling a first asset business contract deployed on the blockchain based on the first asset association data carried in the first asset exchange transaction to acquire a first asset holding object address corresponding to the first game asset and a second asset holding object address corresponding to the second game asset;
Comparing the first asset holding object address with a first account address used by the first game object in the first virtual game and comparing the second asset holding object address with a second account address used by the second game object in the second virtual game, determining that the first game object holds the first game asset in the first virtual game and the second game object holds the second game asset in the second virtual game when the first asset holding object address is the same as the first account address and the second asset holding object address is the same as the second account address;
and taking a result of the first game object holding the first game asset in the first virtual game and the second game object holding the second game asset in the second virtual game as a first authority verification result.
4. The method of claim 1, wherein the first game asset is a first type of game asset in the first virtual game for redemption by a universal asset and the number of assets of the first game asset is a first number of assets;
said exchanging, by said first asset transaction contract, said first game asset of said first game object in said first virtual game for said second game asset of said second game object in said second virtual game, comprising:
Acquiring a first exchange proportion between the first game asset and the universal asset and a second exchange proportion between the second game asset and the universal asset through the first asset business contract;
Calculating an asset quantity of the universal asset redeemed through the first game asset having the first asset quantity according to the first redemption proportion, taking the calculated asset quantity as a second asset quantity, and calculating an asset quantity of the second game asset redeemed through the universal asset having the second asset quantity according to the second redemption proportion, taking the calculated asset quantity as a third asset quantity;
If the number of assets of the second game asset held by the second game object in the second virtual game is greater than or equal to the third number of assets, in the first virtual game, the first game asset having the first number of assets is transmitted to the second game object when the first game asset having the first number of assets is destroyed, and in the second virtual game, the second game asset having the third number of assets is transmitted to the first game object when the second game asset having the third number of assets is destroyed.
5. The method of claim 1, wherein the first game asset is a third type of game asset acquired by the first game object in the first virtual game, wherein the second game asset is a third type of game asset acquired by the second game object in the second virtual game;
said exchanging, by said first asset transaction contract, said first game asset of said first game object in said first virtual game for said second game asset of said second game object in said second virtual game, comprising:
in the first virtual game, the asset-holding object of the first game asset is changed from the first game object to the second game object, and in the second virtual game, the asset-holding object of the second game asset is changed from the second game object to the first game object, by the first asset service contract.
6. The method of claim 1, wherein the first game asset is a third type of game asset acquired by the first game object in the first virtual game, the second game asset is a third type of game asset acquired by the second game object in the second virtual game, the first asset business contract is used for indicating that the first game asset is redeemed by a first target game asset having a fourth asset number associated with the first virtual game and is used for indicating that the second game asset is redeemed by a second target game asset having a fifth asset number associated with the second virtual game, the first target game asset is a first type of game asset in the first virtual game for redemption by a universal asset, and the second target game asset is a first type of game asset in the second virtual game for redemption by the universal asset;
said exchanging, by said first asset transaction contract, said first game asset of said first game object in said first virtual game for said second game asset of said second game object in said second virtual game, comprising:
Acquiring a third exchange proportion between the first target game asset and the universal asset and a fourth exchange proportion between the second target game asset and the universal asset through the first asset business contract;
calculating an asset quantity of the universal asset redeemed through the first target game asset having the fourth asset quantity according to the third redemption proportion, taking the calculated asset quantity as a sixth asset quantity, and calculating an asset quantity of the second target game asset redeemed through the universal asset having the sixth asset quantity according to the fourth redemption proportion, taking the calculated asset quantity as a seventh asset quantity;
If the seventh asset number is greater than or equal to the fifth asset number, in the first virtual game, an asset-holding object of the first game asset is changed from the first game object to the second game object, and in the second virtual game, an asset-holding object of the second game asset is changed from the second game object to the first game object.
7. The method of claim 1, wherein the first game asset is a first type of game asset in the first virtual game for redemption by a generic asset, the second game asset is a third type of game asset acquired by the second game object in the second virtual game, the first asset service contract is used to indicate that the second game asset is redeemed by a third target game asset associated with the second virtual game having an eighth asset quantity, the third target game asset is a first type of game asset in the second virtual game for redemption by the generic asset;
said exchanging, by said first asset transaction contract, said first game asset of said first game object in said first virtual game for said second game asset of said second game object in said second virtual game, comprising:
Obtaining, by the first asset business contract, a fifth redemption ratio between the third target gaming asset and the universal asset and a sixth redemption ratio between the first gaming asset and the universal asset;
Calculating an asset quantity of the universal asset redeemed through the third target game asset having the eighth asset quantity according to the fifth redemption proportion, taking the calculated asset quantity as a ninth asset quantity, and calculating an asset quantity of the first game asset redeemed through the universal asset having the ninth asset quantity according to the sixth redemption proportion, taking the calculated asset quantity as a tenth asset quantity;
If the number of assets of the first game asset held by the first game object in the first virtual game is greater than or equal to the tenth number of assets, then in the first virtual game, when the first game asset having the tenth number of assets held by the first game object is destroyed, the first game asset having the tenth number of assets is transmitted to the second game object, and in the second virtual game, the asset holding object of the second game asset is changed from the second game object to the first game object.
8. The method of claim 1, wherein the first game asset is a first type of game asset or a second type of game asset acquired by the first game object in the first virtual game, wherein the second game asset is a third type of game asset acquired by the second game object in the second virtual game;
said exchanging, by said first asset transaction contract, said first game asset of said first game object in said first virtual game for said second game asset of said second game object in said second virtual game, comprising:
If the number of assets of the first game asset held by the first game object in the first virtual game is greater than or equal to the eleventh number of assets, then, in the first virtual game, the first game asset having the eleventh number of assets is transmitted to the second game object when the first game asset having the eleventh number of assets is destroyed in the first game object, and in the second virtual game, an asset holding object of the second game asset is changed from the second game object to the first game object, by the first asset service contract.
9. The method of claim 1, wherein the first game asset is a third type of game asset acquired by the first game object in the first virtual game, the second game asset is a first type of game asset in the second virtual game for redemption by a generic asset, the first asset business contract is used to indicate that the first game asset was redeemed by a fourth target game asset associated with the first virtual game having a twelfth number of assets, the fourth target game asset is a first type of game asset in the first virtual game for redemption by the generic asset;
said exchanging, by said first asset transaction contract, said first game asset of said first game object in said first virtual game for said second game asset of said second game object in said second virtual game, comprising:
obtaining, by the first asset business contract, a seventh redemption ratio between the fourth target gaming asset and the universal asset and an eighth redemption ratio between the second gaming asset and the universal asset;
Calculating an asset quantity of the universal asset redeemed through the fourth target game asset having the twelfth asset quantity according to the seventh redemption proportion, taking the calculated asset quantity as a thirteenth asset quantity, and calculating an asset quantity of the second game asset redeemed through the universal asset having the thirteenth asset quantity according to the eighth redemption proportion, taking the calculated asset quantity as a fourteenth asset quantity;
And if the number of assets of the second game asset held by the second game object in the second virtual game is greater than or equal to the fourteenth number of assets, changing the asset-held object of the first game asset from the first game object to the second game object in the first virtual game, and transmitting the second game asset having the fourteenth number of assets to the first game object when destroying the second game asset having the fourteenth number of assets held by the second game object in the second virtual game.
10. The method of claim 1, wherein the first game asset is a third type of game asset acquired by the first game object in the first virtual game, the second game asset is a first type of game asset or a second type of game asset acquired by the second game object in the second virtual game, the first asset service contract is for indicating that the first game asset is redeemed by the second game asset having a fifteenth asset quantity;
said exchanging, by said first asset transaction contract, said first game asset of said first game object in said first virtual game for said second game asset of said second game object in said second virtual game, comprising:
And if the number of assets of the second game asset held by the second game object in the second virtual game is greater than or equal to the fifteenth asset number, changing an asset-held object of the first game asset from the first game object to the second game object in the first virtual game by the first asset service contract, and transmitting the second game asset having the fifteenth asset number to the first game object when the second game asset having the fifteenth asset number held by the second game object is destroyed in the second virtual game.
11. The method of claim 1, wherein the first game asset is a first type of game asset in the first virtual game for redemption by a universal asset and the first game asset has a sixteenth asset number; the second game asset is a second type game asset used for being exchanged through a fifth target game asset in the second virtual game, and the fifth target game asset is a first type game asset used for being exchanged through the universal asset in the second virtual game;
said exchanging, by said first asset transaction contract, said first game asset of said first game object in said first virtual game for said second game asset of said second game object in said second virtual game, comprising:
Acquiring, by the first asset business contract, a ninth redemption ratio between the first game asset and the universal asset, a tenth redemption ratio between the fifth target game asset and the universal asset, and an eleventh redemption ratio between the second game asset and the fifth target game asset;
Calculating an asset quantity of the universal asset redeemed through the first game asset having the sixteenth asset quantity according to the ninth redemption proportion, taking the calculated asset quantity as a seventeenth asset quantity, and calculating an asset quantity of the fifth target game asset redeemed through the universal asset having the seventeenth asset quantity according to the tenth redemption proportion, taking the calculated asset quantity as an eighteenth asset quantity;
Calculating the asset quantity of the second game asset redeemed through the fifth target game asset having the eighteenth asset quantity according to the eleventh redemption scale, taking the calculated asset quantity as a nineteenth asset quantity;
If the number of assets of the second game asset held by the second game object in the second virtual game is greater than or equal to the nineteenth number of assets, in the first virtual game, the first game asset having the sixteenth number of assets is transmitted to the second game object when the first game asset having the sixteenth number of assets is destroyed, and in the second virtual game, the second game asset having the nineteenth number of assets is transmitted to the first game object when the second game asset having the nineteenth number of assets is destroyed.
12. The method of claim 1, wherein the first game asset is a second type of game asset acquired by the first game object in the first virtual game, and the number of assets of the first game asset is a twentieth number of assets; the second game asset is a second type game asset acquired by the second game object in the second virtual game, and the first asset business contract is used for indicating that the second game asset is obtained through the first game asset exchange;
said exchanging, by said first asset transaction contract, said first game asset of said first game object in said first virtual game for said second game asset of said second game object in said second virtual game, comprising:
obtaining, by the first asset transaction contract, a twelfth redemption ratio between the first gaming asset and the second gaming asset;
Calculating the asset quantity of the second game asset converted by the first game asset with the twentieth asset quantity according to the twelfth conversion proportion, and taking the calculated asset quantity as a twenty-first asset quantity;
If the number of assets of the second game asset held by the second game object in the second virtual game is greater than or equal to the twenty-first number of assets, in the first virtual game, the first game asset having the twenty-first number of assets is transmitted to the second game object when the first game asset having the twenty-first number of assets held by the first game object is destroyed, and in the second virtual game, the second game asset having the twenty-first number of assets is transmitted to the first game object when the second game asset having the twenty-first number of assets held by the second game object is destroyed.
13. The method of claim 1, wherein the asset redemption transaction includes a second asset redemption transaction, the second asset redemption transaction being for redeeming a third game asset of the first game object in the first virtual game for a fourth game asset of the first game object in the second virtual game, the third game asset being an asset in the first virtual game asset, the fourth game asset being an asset in the second virtual game asset, the method further comprising:
Invoking a second asset business contract deployed on the blockchain based on the second asset exchange transaction, and performing authority verification on the first game object to obtain a second authority verification result;
When the second entitlement verification result indicates that the first game object holds the third game asset in the first virtual game and the first game object holds the fourth game asset in the second virtual game, the third game asset of the first game object in the first virtual game is redeemed for the fourth game asset of the first game object in the second virtual game by the second asset transaction contract.
14. The method of claim 13, wherein the second asset redemption transaction carries second asset-related data associated with the third gaming asset and the fourth gaming asset and second signature information for the first gaming object, the second signature information being signed by second private key information for the first gaming object;
Invoking a second asset business contract deployed on the blockchain based on the second asset exchange transaction, performing authority verification on the first game object to obtain a second authority verification result, including:
When the second signature information is acquired from the second asset exchange transaction, acquiring second public key information corresponding to the second private key information, and carrying out signature verification on the second signature information through the second public key information to obtain a second signature verification result;
When the second signature verification result indicates that signature verification is successful, invoking a second asset business contract deployed on the blockchain based on the second asset association data carried in the second asset exchange transaction to acquire a third asset holding object address corresponding to the third game asset and a fourth asset holding object address corresponding to the fourth game asset;
Comparing the third asset holding object address with a third account address used by the first game object in the first virtual game and comparing the fourth asset holding object address with a fourth account address used by the first game object in the second virtual game, determining that the first game object holds the third game asset in the first virtual game and the first game object holds the fourth game asset in the second virtual game when the third asset holding object address is the same as the third account address and the fourth asset holding object address is the same as the fourth account address;
And taking a result of the first game object holding the third game asset in the first virtual game and the first game object holding the fourth game asset in the second virtual game as a second authority verification result.
15. A blockchain-based data processing device, the device operating on a blockchain node in a blockchain network, the blockchain network having stored thereon virtual game assets associated with a virtual game, the virtual game comprising a first virtual game and a second virtual game, the first virtual game being different from the second virtual game, the virtual game assets comprising a first virtual game asset associated with the first virtual game and a second virtual game asset associated with the second virtual game, the device comprising:
the system comprises a transaction acquisition module, an asset exchange transaction module, a transaction processing module and a transaction processing module, wherein the transaction acquisition module is used for acquiring an asset exchange transaction sent by a game asset client associated with a first game object, the asset exchange transaction comprises a first asset exchange transaction, the first asset exchange transaction is used for exchanging a first game asset of the first game object in the first virtual game for a second game asset of a second game object in the second virtual game, the first game asset is an asset in the first virtual game asset, the second game asset is an asset in the second virtual game asset, and the first game object is different from the second game object;
The first verification module is used for calling a first asset business contract deployed on the blockchain based on the first asset exchange transaction, and performing authority verification on the first game object and the second game object to obtain a first authority verification result;
And the first exchange module is used for exchanging the first game asset of the first game object in the first virtual game into the second game asset of the second game object in the second virtual game through the first asset business contract when the first authority verification result indicates that the first game object holds the first game asset in the first virtual game and the second game object holds the second game asset in the second virtual game.
16. A computer device comprises a processor and a memory;
The processor is connected to the memory, wherein the memory is configured to store a computer program, and the processor is configured to invoke the computer program to cause the computer device to perform the method of any of claims 1-14.
17. A computer readable storage medium, characterized in that the computer readable storage medium has stored therein a computer program adapted to be loaded and executed by a processor to cause a computer device having the processor to perform the method of any of claims 1-14.
18. A computer program product, characterized in that it comprises computer instructions stored in a computer-readable storage medium, which are adapted to be read and executed by a processor to cause a computer device with the processor to perform the method of any of claims 1-14.
CN202311575196.2A 2023-11-22 2023-11-22 A data processing method, device, equipment and medium based on blockchain Pending CN120030579A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311575196.2A CN120030579A (en) 2023-11-22 2023-11-22 A data processing method, device, equipment and medium based on blockchain

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311575196.2A CN120030579A (en) 2023-11-22 2023-11-22 A data processing method, device, equipment and medium based on blockchain

Publications (1)

Publication Number Publication Date
CN120030579A true CN120030579A (en) 2025-05-23

Family

ID=95732968

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311575196.2A Pending CN120030579A (en) 2023-11-22 2023-11-22 A data processing method, device, equipment and medium based on blockchain

Country Status (1)

Country Link
CN (1) CN120030579A (en)

Similar Documents

Publication Publication Date Title
US11922402B2 (en) System and method for authorizing blockchain network transactions
US10946291B1 (en) Granting and securing ownership of cross-application digital assets
US11748724B2 (en) Systems and methods for operating a bridge server to support multiple shards of a blockchain
US20190220836A1 (en) Methods and Systems for Media Distribution Employing Contracts Implemented in a Distributed Ledger
JP5904968B2 (en) System for secure transfer of online rights
JP2021518592A (en) Secure decentralized video game trading platform
US20120244950A1 (en) System and method for cross-platform and cross-game virtual asset creation and management
US8961315B1 (en) Providing tasks to users during electronic game play
US20080096665A1 (en) System and a method for a reality role playing game genre
US20150058144A1 (en) Social Networking Data Augmented Gaming Kiosk
US11189131B1 (en) System and method for blockchain tokens for gaming
US8996409B2 (en) Management of online trading services using mediated communications
JP5580363B2 (en) GAME SYSTEM, CONTROL METHOD USED FOR THE SAME, AND COMPUTER PROGRAM
US20190370925A1 (en) Decentralized Esports Gaming Token and Wallet
US11176528B2 (en) Securing customized third-party content within a computing environment configured to enable third-party hosting
KR20190068825A (en) Game item trading system, intermediating server, game user terminal and game item trading method
Komiya et al. Increasing motivation for playing blockchain games using proof-of-achievement algorithm
Sharp et al. Online games and e-business: Architecture for integrating business models and services into online games
KR20240170838A (en) A system and platform for creating and managing fractional non-fungible tokens.
Yang et al. An Introduction to Web3 and Metaverse
Ackerman An Online Gamer's Manifesto: Recognizing Virtual Property Rights by Replacing End User Licensing Agreements in Virtual Worlds
CN120030579A (en) A data processing method, device, equipment and medium based on blockchain
Jovanović et al. VoRtex enterprise: Decentralized virtual reality blockchain-based platform
JP7241408B2 (en) Game system and computer program used therefor
CN115618981A (en) AR-element universe decentralized online singing meeting holding system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication