Data processing method and device based on block chain, equipment and medium

By deploying asset business contracts in the blockchain network, cross-game redemption between virtual game assets is achieved, the problem of insufficient liquidity of virtual game assets is solved, and the game object's ability to control virtual game assets is improved.

CN120030579APending Publication Date: 2025-05-23TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311575196.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-11-22
Publication Date
2025-05-23

AI Technical Summary

Technical Problem

Virtual game assets in existing virtual games are limited to use within a single virtual game, limiting the liquidity and dominance of game objects on virtual game assets.

Method used

By deploying asset business contracts in the blockchain network, cross-game redemption between virtual game assets is realized, allowing game objects to communicate and exchange between different virtual games.

Benefits of technology

It improves the ability of game objects to dominate virtual game assets, realizes the free flow of virtual game assets between different virtual games, and enhances the utilization rate of assets.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120030579A_ABST
    Figure CN120030579A_ABST
Patent Text Reader

Abstract

The invention discloses a data processing method and device based on a block chain, equipment and a medium. The method comprises the following steps: 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; calling a first asset business contract deployed on a block chain based on the first asset exchange transaction, and performing permission verification on the first game object and the second game object to obtain a first permission verification result; when the first authority verification result indicates that the first game object holds first game assets in the first virtual game and the second game object holds second game assets in the second virtual game, the first game assets of the first game object in the first virtual game are stored in the second virtual game through the first asset business contract, and the second game assets of the second game object in the second virtual game are stored in the second virtual game. And redeeming the second game asset in the second virtual game as the second game object. By adopting the method and the device, the virtual game assets can be intercommunicated among different virtual games.
Need to check novelty before this filing date? Find Prior Art

Claims

1. A data processing method based on blockchain, It is characterized in that The method is performed by a blockchain node in a blockchain network, and a blockchain corresponding to the blockchain network stores virtual game assets associated with a virtual game; the virtual game includes a first virtual game and a second virtual game, and the first virtual game is different from the second virtual game; the virtual game assets include 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 comprises: Obtain an asset exchange transaction sent by a game asset client associated with a first game object; the asset exchange transaction includes a first asset exchange transaction, the first asset exchange transaction being a transaction 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; the first game object is different from the second game object; Based on the first asset exchange transaction, a first asset business contract deployed on the blockchain is called to verify the permissions of the first game object and the second game object, thereby obtaining a first permission verification result; When the first permission 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 according to claim 1, It is characterized in that The virtual game assets include first-type game assets, second-type game assets, and third-type game assets; the virtual game assets are created by a game object associated with the virtual game through an asset business contract deployed on the blockchain; the first virtual game assets include one or more of the first-type game assets, second-type game assets, and third-type game assets associated with the first virtual game; the second virtual game assets include one or more of the first-type game assets, second-type game assets, and third-type game assets associated with the second virtual game; the game objects include game provider objects and game service objects; the first game object is a game provider object or a game service object associated with the first virtual game, and the second game object is a game provider object or a game service object associated with the second virtual game.

3. The method according to claim 1, It is characterized in that The first asset exchange transaction carries first asset-associated data associated with the first game asset and the second game asset and first signature information of the first game object; the first signature information is obtained by signing the first asset-associated data using the first private key information of the first game object; The calling of the first asset business contract deployed on the blockchain based on the first asset exchange transaction, performing permission verification on the first game object and the second game object, and obtaining a first permission verification result includes: When the first signature information is obtained from the first asset exchange transaction, the first public key information corresponding to the first private key information is obtained, and the first signature information is signature-verified using the first public key information to obtain a first signature verification result; When the first signature verification result indicates that the signature verification is successful, based on the first asset association data carried in the first asset exchange transaction, the first asset business contract deployed on the blockchain is called to obtain 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; Compare the first asset holding object address with a first account address used by the first game object in the first virtual game, and compare the second asset holding object address with a second account address used by the second game object in the second virtual game, and 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, determine 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 result when 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 is used as the first permission verification result.

4. The method according to claim 1, It is characterized in that The first game asset is a first type of game asset in the first virtual game for exchange with a universal asset, and the asset quantity of the first game asset is the first asset quantity; the second game asset is a first type of game asset in the second virtual game for exchange with the universal asset; The 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 includes: Obtaining, through the first asset business contract, a first exchange ratio between the first game asset and the universal asset and a second exchange ratio between the second game asset and the universal asset; Calculating the asset quantity of the universal asset obtained by exchanging the first game asset having the first asset quantity according to the first exchange ratio, and using the calculated asset quantity as the second asset quantity; and calculating the asset quantity of the second game asset obtained by exchanging the universal asset having the second asset quantity according to the second exchange ratio, and using the calculated asset quantity as the third asset quantity; If the asset quantity of the second game assets held by the second game object in the second virtual game is greater than or equal to the third asset quantity, then in the first virtual game, when the first game assets with the first asset quantity held by the first game object are destroyed, the first game assets with the first asset quantity are sent to the second game object, and in the second virtual game, when the second game assets with the third asset quantity held by the second game object are destroyed, the second game assets with the third asset quantity are sent to the first game object.

5. The method according to claim 1, It is characterized in that 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 to indicate that the second game asset is obtained by exchanging the first game asset; The 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 includes: Through the first asset business contract, 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.

6. The method according to claim 1, It is characterized in that 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 to indicate that the first game asset is obtained by exchanging a first target game asset with a fourth asset quantity associated with the first virtual game, and is used to indicate that the second game asset is obtained by exchanging a second target game asset with a fifth asset quantity associated with the second virtual game; the first target game asset is a first type of game asset in the first virtual game for exchange with a universal asset; The second target game asset is a first type of game asset in the second virtual game for exchange with the universal asset; The 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 includes: Obtaining, through the first asset business contract, 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; Calculating the asset quantity of the universal asset obtained by exchanging the first target game asset having the fourth asset quantity according to the third exchange ratio, and using the calculated asset quantity as the sixth asset quantity; and calculating the asset quantity of the second target game asset obtained by exchanging the universal asset having the sixth asset quantity according to the fourth exchange ratio, and using the calculated asset quantity as the seventh asset quantity; If the number of the seventh assets is greater than or equal to the number of the fifth assets, then 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.

7. The method according to claim 1, It is characterized in that The first game asset is a first type of game asset used for exchange with a universal asset 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 to indicate that the second game asset is exchanged for a third target game asset with an eighth asset quantity associated with the second virtual game; the third target game asset is a first type of game asset in the second virtual game that is used to be exchanged for the universal asset; The 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 includes: Obtaining, through the first asset business contract, 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; Calculating the asset quantity of the universal asset obtained by exchanging the third target game asset having the eighth asset quantity according to the fifth exchange ratio, and using the calculated asset quantity as the ninth asset quantity; and calculating the asset quantity of the first game asset obtained by exchanging the universal asset having the ninth asset quantity according to the sixth exchange ratio, and using the calculated asset quantity as the tenth asset quantity; If the asset quantity of the first game assets held by the first game object in the first virtual game is greater than or equal to the tenth asset quantity, then in the first virtual game, when the first game assets with the tenth asset quantity held by the first game object are destroyed, the first game assets with the tenth asset quantity are sent to the second game object, and in the second virtual game, the asset holding object of the second game assets is changed from the second game object to the first game object.

8. The method according to claim 1, It is characterized in that The first game asset is a first-type game asset or a second-type game asset acquired by the first game object in the first virtual game; the second game asset is a third-type game asset acquired by the second game object in the second virtual game; The first asset business contract is used to indicate that the second game asset is obtained by exchanging the first game asset having the eleventh asset quantity; The 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 includes: If the asset quantity of the first game assets held by the first game object in the first virtual game is greater than or equal to the eleventh asset quantity, then through the first asset business contract, in the first virtual game, when the first game assets with the eleventh asset quantity held by the first game object are destroyed, the first game assets with the eleventh asset quantity are sent to the second game object, and in the second virtual game, the asset holding object of the second game assets is changed from the second game object to the first game object.

9. The method according to claim 1, It is characterized in that The first game asset is a third-type game asset acquired by the first game object in the first virtual game; the second game asset is a first-type game asset used for exchange with a universal asset in the second virtual game; The first asset business contract is used to indicate that the first game asset is exchanged for a fourth target game asset with a twelfth asset quantity associated with the first virtual game; the fourth target game asset is a first type of game asset in the first virtual game that is used to be exchanged for the universal asset; The 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 includes: Obtaining, through the first asset business contract, a seventh exchange ratio between the fourth target game asset and the universal asset and an eighth exchange ratio between the second game asset and the universal asset; Calculating the asset quantity of the universal asset obtained by exchanging the fourth target game asset having the twelfth asset quantity according to the seventh exchange ratio, and using the calculated asset quantity as the thirteenth asset quantity; and calculating the asset quantity of the second game asset obtained by exchanging the universal asset having the thirteenth asset quantity according to the eighth exchange ratio, and using the calculated asset quantity as the fourteenth asset quantity; If the asset quantity of the second game assets held by the second game object in the second virtual game is greater than or equal to the fourteenth asset quantity, then in the first virtual game, the asset holding object of the first game assets is changed from the first game object to the second game object, and in the second virtual game, when the second game assets with the fourteenth asset quantity held by the second game object are destroyed, the second game assets with the fourteenth asset quantity are sent to the first game object.

10. The method according to claim 1, It is characterized in that The first game asset is a third-type game asset acquired by the first game object in the first virtual game; the second game asset is a first-type game asset or a second-type game asset acquired by the second game object in the second virtual game; The first asset business contract is used to indicate that the first game asset is obtained by exchanging the second game asset having the fifteenth asset quantity; The 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 includes: If the asset quantity of the second game assets held by the second game object in the second virtual game is greater than or equal to the fifteenth asset quantity, then through the first asset business contract, 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, when the second game assets with the fifteenth asset quantity held by the second game object are destroyed, the second game assets with the fifteenth asset quantity are sent to the first game object.

11. The method according to claim 1, It is characterized in that The first game asset is a first type of game asset in the first virtual game for exchange with a universal asset, and the asset quantity of the first game asset is the sixteenth asset quantity; the second game asset is a second type of game asset in the second virtual game for exchange with a fifth target game asset; The fifth target game asset is a first type of game asset in the second virtual game for exchange with the universal asset; The 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 includes: Obtaining, through the first asset business contract, 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; According to the ninth exchange ratio, the asset quantity of the universal asset obtained by exchanging the first game asset having the sixteenth asset quantity is calculated, and the calculated asset quantity is used as the seventeenth asset quantity; and according to the tenth exchange ratio, the asset quantity of the fifth target game asset obtained by exchanging the universal asset having the seventeenth asset quantity is calculated, and the calculated asset quantity is used as the eighteenth asset quantity; According to the eleventh exchange ratio, the asset quantity of the second game asset obtained by exchanging the fifth target game asset having the eighteenth asset quantity is calculated, and the calculated asset quantity is used as the nineteenth asset quantity; If the asset quantity of the second game assets held by the second game object in the second virtual game is greater than or equal to the nineteenth asset quantity, then in the first virtual game, when the first game assets with the sixteenth asset quantity held by the first game object are destroyed, the first game assets with the sixteenth asset quantity are sent to the second game object, and in the second virtual game, when the second game assets with the nineteenth asset quantity held by the second game object are destroyed, the second game assets with the nineteenth asset quantity are sent to the first game object.

12. The method according to claim 1, It is characterized in that The first game asset is a second type of game asset acquired by the first game object in the first virtual game, and the asset quantity of the first game asset is the twentieth asset quantity; the second game asset is a second type of game asset acquired by the second game object in the second virtual game; The first asset business contract is used to indicate that the second game asset is obtained by exchanging the first game asset; The 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 includes: Obtaining, through the first asset business contract, a twelfth exchange ratio between the first game asset and the second game asset; Calculate the asset quantity of the second game asset obtained by exchanging the first game asset having the 20th asset quantity according to the twelfth exchange ratio, and use the calculated asset quantity as the 21st asset quantity; If the asset quantity of the second game assets held by the second game object in the second virtual game is greater than or equal to the twenty-first asset quantity, then in the first virtual game, when the first game assets with the twentieth asset quantity held by the first game object are destroyed, the first game assets with the twentieth asset quantity are sent to the second game object, and in the second virtual game, when the second game assets with the twenty-first asset quantity held by the second game object are destroyed, the second game assets with the twenty-first asset quantity are sent to the first game object.

13. The method according to claim 1, It is characterized in that The asset exchange transaction includes a second asset exchange transaction, wherein the second asset exchange transaction is 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; 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; the method further includes: Based on the second asset exchange transaction, a second asset business contract deployed on the blockchain is called to verify the authority of the first game object, thereby obtaining a second authority verification result; When the second permission 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 business contract.

14. The method according to claim 13, It is characterized in that The second asset exchange transaction carries the second asset-related data associated with the third game asset and the fourth game asset and the second signature information of the first game object; the second signature information is obtained by signing the second asset-related data with the second private key information of the first game object; The calling of the second asset business contract deployed on the blockchain based on the second asset exchange transaction, performing permission verification on the first game object, and obtaining a second permission verification result includes: When the second signature information is obtained from the second asset exchange transaction, the second public key information corresponding to the second private key information is obtained, and the second signature information is signature-verified using the second public key information to obtain a second signature verification result; When the second signature verification result indicates that the signature verification is successful, based on the second asset associated data carried in the second asset exchange transaction, the second asset business contract deployed on the blockchain is called to obtain the third asset holding object address corresponding to the third game asset and the fourth asset holding object address corresponding to the fourth game asset; Compare the third asset holding object address with the third account address used by the first game object in the first virtual game, and compare the fourth asset holding object address with the fourth account address used by the first game object 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, determine 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 result when 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 is used as the second permission verification result.

15. A data processing device based on blockchain, It is characterized in that The device runs on a blockchain node in a blockchain network, and virtual game assets associated with a virtual game are stored on a blockchain corresponding to the blockchain network; the virtual game includes a first virtual game and a second virtual game, and the first virtual game is different from the second virtual game; the virtual game assets include 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 comprises: A transaction acquisition module, used to acquire an asset exchange transaction sent by a game asset client associated with a first game object; the asset exchange transaction includes 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 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; the first game object is different from the second game object; A first verification module, configured to call a first asset business contract deployed on the blockchain based on the first asset exchange transaction, perform permission verification on the first game object and the second game object, and obtain a first permission verification result; The first exchange module is used to exchange 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 when the first permission 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, It is characterized in that include: Processor and memory; The processor is connected to the memory, wherein the memory is used to store a computer program, and the processor is used to call the computer program so that the computer device executes the method according to any one of claims 1 to 14.

17. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a computer program, which is suitable for being loaded and executed by a processor, so that a computer device having the processor executes the method according to any one of claims 1 to 14.

18. A computer program product, It is characterized in that The computer program product comprises computer instructions, which are stored in a computer-readable storage medium. The computer instructions are suitable for being read and executed by a processor, so that a computer device having the processor executes the method according to any one of claims 1 to 14.