CN110201400B - Game prop trading method based on block chain, trading terminal and storage medium - Google Patents
Game prop trading method based on block chain, trading terminal and storage medium Download PDFInfo
- Publication number
- CN110201400B CN110201400B CN201910428279.6A CN201910428279A CN110201400B CN 110201400 B CN110201400 B CN 110201400B CN 201910428279 A CN201910428279 A CN 201910428279A CN 110201400 B CN110201400 B CN 110201400B
- Authority
- CN
- China
- Prior art keywords
- game
- transaction
- account
- account number
- user
- 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.)
- Active
Links
Images
Classifications
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63F—CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- A63F13/00—Video games, i.e. games using an electronically generated display having two or more dimensions
- A63F13/70—Game security or game management aspects
- A63F13/71—Game security or game management aspects using secure communication between game devices and game servers, e.g. by encrypting game data or authenticating players
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63F—CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- A63F13/00—Video games, i.e. games using an electronically generated display having two or more dimensions
- A63F13/70—Game security or game management aspects
- A63F13/73—Authorising game programs or game devices, e.g. checking authenticity
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q40/00—Finance; Insurance; Tax strategies; Processing of corporate or income taxes
- G06Q40/04—Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
Landscapes
- Engineering & Computer Science (AREA)
- Business, Economics & Management (AREA)
- Multimedia (AREA)
- Computer Security & Cryptography (AREA)
- General Business, Economics & Management (AREA)
- Accounting & Taxation (AREA)
- Finance (AREA)
- Technology Law (AREA)
- Strategic Management (AREA)
- Physics & Mathematics (AREA)
- Marketing (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Economics (AREA)
- Development Economics (AREA)
- Software Systems (AREA)
- Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)
Abstract
The invention discloses a game item transaction method based on a block chain, a transaction terminal and a storage medium, wherein the game item transaction method based on the block chain comprises the following steps: after a user account number is logged in, receiving a transaction instruction sent by a user, and determining a transaction object account number and a game prop of a transaction according to the transaction instruction; and sending the data information of the game props to block link point addresses corresponding to the transaction object account numbers. The invention can ensure that the data information is always stored in the block chain nodes of both trading parties in the trading process of the game props, thereby ensuring that the data information can not be stolen or modified by other people and ensuring the safety and the authenticity of the trading of the props. And because the game official has no ability of modifying the data information, the game official can not interfere with the property transaction process, thereby ensuring the independence of the game property transaction.
Description
Technical Field
The invention relates to the field of data interaction, in particular to a game item transaction method based on a block chain, a transaction terminal and a computer-readable storage medium.
Background
In the game scene of the traditional game, the game props can be traded between players in a trading mode provided by a game official party. However, during the transaction, the data information of the game props is stored in the official parties, and the process of prop transaction only changes the information of the holders. Namely, the data information of the game props is not changed or transferred, and the data information is still stored in the official server. In actual operation, game officials often modify the data information of game props in an irregular manner, so that games are dynamically adjusted. The data adjustment can cause that the player can not ensure that the data information of the item is not modified after the item is traded, and the trading process of the game item lacks safety and authenticity.
Disclosure of Invention
The invention mainly aims to provide a game item transaction method based on a block chain, a transaction terminal and a storage medium, and aims to solve the problem that the transaction process is lack of safety and authenticity due to the fact that data information cannot be guaranteed not to be modified by game authorities after item transaction.
In order to achieve the purpose, the invention provides a game item transaction method based on a block chain, which comprises the following steps:
after the user account number is logged in, receiving a transaction instruction sent by the user, and determining a transaction object account number and a game prop of the transaction according to the transaction instruction;
and sending the data information of the game props to block link point addresses corresponding to the transaction object account numbers.
Optionally, a pair of public and private key pairs is preset correspondingly to the user account; before the step of sending the data information of the game item to the block link point address corresponding to the transaction object account, the method further includes:
determining whether the held account number of the game item is consistent with the user account number according to the private key of the user account number and the latest transaction record of the game item;
if the held account number of the game item is consistent with the user account number, executing the following steps: sending the data information of the game props to block link point addresses corresponding to the transaction object account numbers;
and if the held account number of the game prop is inconsistent with the user account number, determining that the transaction fails.
Optionally, the step of determining whether the held account number of the game item is consistent with the user account number according to the private key of the user account number and the latest transaction record of the game item includes:
determining a public key corresponding to a held account number of the game item from the latest transaction record of the game item;
decrypting and verifying the public key of the held account by using the private key of the user account, and judging whether the private key of the user account is successfully decrypted and verified to verify the public key of the held account;
if the private key of the user account is successfully decrypted and the public key of the held account is verified, the held account of the game item is consistent with the user account;
and if the private key of the user account is not successfully decrypted and verified to verify the public key of the held account, the held account of the game item is inconsistent with the user account.
Optionally, a pair of public and private key pairs is preset correspondingly to the transaction object account; the step of sending the data information of the game item to the block link point address corresponding to the transaction object account number comprises the following steps:
acquiring a public key of a transaction object account number, encrypting the data information of the game prop by using the public key of the transaction object account number, and updating the public key of the held account number of the game prop into the public key of the transaction object account number in the latest transaction record of the game prop;
and sending the encrypted data information of the game prop to a block link point address corresponding to the transaction object account number, so that the transaction object account number decrypts and verifies the public key of the transaction object account number according to the private key of the transaction object account number.
Optionally, the step of sending the data information of the game item to the block link point address corresponding to the transaction object account includes:
when the game props in transaction are confirmed to be all game props held by the user account through the data information of the game props, packaging and arranging all game props held by the user account into a game prop package;
and sending the data information corresponding to the game item package to a block link point address corresponding to the transaction object account.
Optionally, before the step of receiving a transaction instruction issued by a user, the method further includes:
receiving a game item sent by a block chain link point corresponding to a server according to the game content completed by a user, and storing data information of the game item in the address of the block chain link point of the user account.
Optionally, the step of sending the data information of the game item to the block link point address corresponding to the transaction object account includes:
and sending the data information of the game prop to a block link point address corresponding to the transaction object account, wherein the transaction object account and the user account are accounts under different games.
Optionally, before the step of receiving a transaction instruction issued by a user after the user account is logged in, the method further includes:
receiving account and secret information input by a user, sending the account and secret information to a server, and acquiring a login verification result from the server;
and logging in the user account according to the login verification result.
Further, to achieve the above object, the present invention also provides a transaction terminal comprising a memory, a processor, a communicator and a computer program stored on the memory and executable on the processor, wherein: the computer program when executed by the processor implements the steps of the blockchain-based game item transaction method described above.
In addition, to achieve the above object, the present invention further provides a computer readable storage medium, having a computer program stored thereon, where the computer program is executed by a processor to implement the steps of the block chain based game item transaction method as described above.
According to the game item transaction method based on the block chain, the transaction terminal and the storage medium, a user can log in a user account through the transaction terminal and send out a corresponding transaction instruction through the user account. After the transaction terminal determines the transaction object account number and the game props for transaction according to the transaction instruction, the data information of the game props can be taken out from the block chain link points of the user account number and sent to the block chain link point address of the transaction object account number, so that the data information of the game props is stored on the block chain node of the transaction object account number. Because the data information of the game props is transferred from the user account number to the transaction object account number in the transaction process, the transaction process of the game props is not limited by game authorities, and the independence of the prop transaction is ensured. The data information of the game props is stored in the block link points with the account numbers, so that the uniqueness of the data information is realized, the data information of the game props can be protected from being stolen or tampered by others, and the safety of the prop transaction process and the authenticity of the prop transaction are guaranteed.
Drawings
FIG. 1 is a schematic diagram of an apparatus in a hardware operating environment according to an embodiment of the present invention;
FIG. 2 is a schematic flow chart of a first embodiment of a method for trading game items based on a blockchain according to the present invention;
FIG. 3 is a schematic flow chart illustrating a block chain-based game item transaction method according to a second embodiment of the present invention;
FIG. 4 is a detailed flowchart of step S30 in the second embodiment of the method for trading game items based on block chains according to the present invention;
FIG. 5 is a schematic flowchart of a third embodiment of a method for trading game items based on a blockchain according to the present invention;
FIG. 6 is a schematic flow chart illustrating a fourth embodiment of a block chain-based game item transaction method according to the present invention;
fig. 7 is a flowchart illustrating a fifth embodiment of a method for trading game items based on a block chain according to the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and do not limit the invention.
As shown in fig. 1, fig. 1 is a schematic device structure diagram of a hardware operating environment according to an embodiment of the present invention.
The terminal of the embodiment of the invention is a transaction terminal, and can be a PC (personal computer), an intelligent terminal device with a communication function, such as a smart phone, a tablet personal computer, an electronic book reader, an MP3(Moving Picture Experts Group Audio Layer III, dynamic video Experts compression standard Audio Layer 3) player, an MP4(Moving Picture Experts Group Audio Layer IV, dynamic video Experts compression standard Audio Layer 4) player, a portable computer and the like.
As shown in fig. 1, the terminal may include: a processor 1001, such as a CPU, a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., a WI-FI interface). The memory 1005 may be a high-speed RAM memory or a non-volatile memory (e.g., a magnetic disk memory). The memory 1005 may alternatively be a storage device separate from the processor 1001.
Optionally, the terminal may further include a camera, a Radio Frequency (RF) circuit, a sensor, an audio circuit, a WiFi module, and the like. Such as light sensors, motion sensors, and other sensors. Specifically, the light sensor may include an ambient light sensor that adjusts the brightness of the display screen based on the ambient light level and a proximity sensor that turns off the display screen and/or backlight when the hardware device is moved to the ear. As one of the motion sensors, the gravity acceleration sensor can detect the acceleration in each direction (generally three axes), detect the gravity when the sensor is stationary, and can be used for applications of recognizing the posture of hardware devices (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like.
after the user account number is logged in, receiving a transaction instruction sent by the user, and determining a transaction object account number and a game prop of the transaction according to the transaction instruction;
and sending the data information of the game prop to a block link point address corresponding to the transaction object account.
Further, the processor 1001 may be configured to invoke the computer program stored in the memory 1005 to also perform the following operations:
determining whether the held account number of the game item is consistent with the user account number according to the private key of the user account number and the latest transaction record of the game item;
if the held account number of the game item is consistent with the user account number, executing the following steps: sending the data information of the game prop to a block link point address corresponding to the transaction object account;
and if the held account number of the game prop is inconsistent with the user account number, determining that the transaction fails.
Further, the processor 1001 may be configured to invoke the computer program stored in the memory 1005 to also perform the following operations:
determining a public key corresponding to the held account number of the game item from the latest transaction record of the game item;
carrying out decryption verification on the public key of the held account by using the private key of the user account, and judging whether the private key of the user account is successfully decrypted and verified;
if the private key of the user account is successfully decrypted and the public key of the held account is verified, the held account of the game prop is consistent with the user account;
and if the private key of the user account is not successfully decrypted and verified to verify the public key of the held account, the held account of the game item is inconsistent with the user account.
Further, the processor 1001 may be configured to invoke the computer program stored in the memory 1005 to also perform the following operations:
acquiring a public key of a transaction object account number, encrypting data information of the game item by using the public key of the transaction object account number, and updating the public key of the held account number of the game item into the public key of the transaction object account number in the latest transaction record of the game item;
and sending the encrypted data information of the game props to block link point addresses corresponding to the transaction object account number so that the transaction object account number decrypts and verifies a public key of the transaction object account number according to a private key of the transaction object account number.
Further, the processor 1001 may be configured to invoke the computer program stored in the memory 1005 to also perform the following operations:
when the game props in transaction are confirmed to be all game props held by the user account through the data information of the game props, packaging and arranging all game props held by the user account into a game prop package;
and sending the data information corresponding to the game item package to a block link point address corresponding to the transaction object account.
Further, the processor 1001 may be configured to invoke the computer program stored in the memory 1005 to also perform the following operations:
and receiving a game item sent by a block chain link point corresponding to a server according to the game content completed by the user, and storing the data information of the game item in the address of the block chain link point of the user account.
Further, the processor 1001 may be configured to invoke the computer program stored in the memory 1005 to also perform the following operations:
and sending the data information of the game props to block chain link point addresses corresponding to the transaction object account numbers, wherein the transaction object account numbers and the user account numbers are account numbers under different games.
Further, the processor 1001 may be configured to invoke the computer program stored in the memory 1005 to also perform the following operations:
receiving account and secret information input by a user, sending the account and secret information to a server, and acquiring a login verification result from the server;
and logging in the user account according to the login verification result.
Those skilled in the art will appreciate that the terminal structure shown in fig. 1 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
Referring to fig. 2, fig. 2 is a schematic flow chart of a first embodiment of a game item transaction method based on a blockchain according to the present invention, wherein the game item transaction method based on the blockchain includes the following steps:
step S10, after the user account number is logged in, receiving a transaction instruction sent by the user, and determining a transaction object account number and a transaction game prop according to the transaction instruction;
in this embodiment, the transaction terminal may be a PC, or may be another intelligent terminal device having a communication function, such as a smart phone, and the transaction terminal is hereinafter described as a PC. The user can log in the user account number of the user through the PC, and sends a game item transaction instruction to the PC after the user account number is successfully logged in. Specifically, the transaction instruction includes information required for implementing the transaction of the game item, such as an account number of the user of the party, an account number of a transaction object of the transaction party, information of the game item of the transaction, a transaction mode and the like. After receiving a transaction instruction sent by a user, a processor at the PC end can determine an account number of a transaction object for performing transaction and game prop information for performing transaction from the transaction instruction.
And step S20, sending the data information of the game props to block link point addresses corresponding to the transaction object account numbers.
Data information of a game item refers to electronic data of a shape picture, attribute data, holder information, and the like of the game item that can be used to determine the game item. After the user sends the data information of the game props to a certain account, the user is indicated to trade the game props to the other side. After the processor obtains the corresponding transaction object account number and the information of the game props of the transaction according to the transaction instruction, the processor needs to determine whether the user account number has the ownership of the game props for the transaction, namely, the ownership of the game props belongs to the user account number on the premise that the user conducts the game props transaction. When it is determined that the game item of the transaction belongs to the user account, the processor may send data information corresponding to the game item from the block link point address of the user account to the block link point address of the transaction object account. That is, the storage address of the data information of the game item is transferred from the node address of the user account to the node address of the transaction object account. In the transaction process, the data information of the game props is unique, and after the user account sends the data information to the transaction object account, the user account loses the data information of the game props, so that the transaction object account can receive the game props. And after receiving the data information of the game props at the block chain nodes of the transaction object account, the data information can be stored in the node addresses. Because the game props are stored in the block link points of the transaction object account number, only the transaction object account number can take out the game props again for transaction, and any other game account number or official game manager cannot adjust or modify the game props.
In this embodiment, the user may log in the user account at the transaction terminal, and after the login is successful, the user may send out a transaction instruction to transact the game item. After acquiring a transaction instruction sent by a user, the transaction terminal determines a transaction object account number which the user wants to perform a transaction and game props for performing the transaction from the transaction instruction. Before the transaction is carried out, the transaction terminal needs to determine the held account number of the game item, and only when the held account number of the game item is the user account number, the transaction terminal can continue to execute the transaction process. The data information of the game props is stored in the block chain link points of the user account before transaction, and in the transaction process, the transaction terminal sends the data information of the game props to the block chain link point address of the transaction object account from the block chain link points of the user account, so that the transaction object account stores the data information of the game props in the block chain link points after receiving the data information of the game props, and the transaction process of the game props is completed. Because the data information of the game props is not stored in the server of the game official, but stored in the block link points of the user account or the transaction object account, the process of the game player conducting transaction through the account is not limited by the game official. That is, the user is able to trade a game item within the game without opening the game. Meanwhile, as game official parties do not participate in the storage and transmission of data information in the game prop transaction, official management personnel cannot manage the transaction process of the game props no matter the game props are in user account numbers or transaction object account numbers, so that the independence of prop transaction is ensured, and the interference of official parties in the transaction process is avoided. Meanwhile, the data information of the game props is stored in the block chain nodes with the account numbers, and the data information of the game props can be protected from being stolen or tampered by others, so that the safety before and after the prop transaction process is ensured, and the safety and the authenticity of the prop transaction are ensured.
Further, referring to fig. 3, fig. 3 is a schematic flowchart of a second embodiment of the game item transaction method based on a block chain according to the present invention, in this embodiment, a pair of public and private key pairs is preset in the user account; before the step of sending the data information of the game item to the block link point address corresponding to the transaction object account in step S20, the method further includes:
step S30, determining whether the held account number of the game item is consistent with the user account number according to the private key of the user account number and the latest transaction record of the game item;
if the held account number of the game item is consistent with the user account number, executing step S20, and sending the data information of the game item to the block link point address corresponding to the transaction object account number;
if the held account number of the game item is inconsistent with the user account number, step S31 is executed to determine that the transaction is failed.
In this embodiment, the user account is preset with a pair of public and private key pairs, and the public key and the private key can decrypt data encrypted by each other. The public key of the user account may be distributed across the network for easy access by others. After the transaction terminal determines the transaction object account number and the game props of the transaction according to the transaction instruction, historical transaction records corresponding to the game props can be obtained from the data information of the game props. And determining the latest transaction record according to the timestamp information in the historical transaction records. Because of the uniqueness of the game prop in the transaction process, the latest transaction record of the game prop is the transaction record of the last held account number of the game prop for trading the game prop to the currently held account number. Specifically, in the process of trading the game item to the incumbent account, the public key of the incumbent account is added into the trade record as the proof of the incumbent account. The transaction terminal can confirm the latest transaction record of the game props through a private key of the user account. When the user account number is an account number held by the game prop, the game prop can be assigned, and the data information of the game prop is sent to a transaction object account number to realize the transaction of the game prop; when the user account does not hold the account for the existing game item, the user account does not have the allocation right for the game item, and the item transaction process cannot be completed. Whether the user account number has the ownership of the game prop can be determined before the transaction through the private key of the user account number, so that the ownership of the game prop can be correctly transacted to the transaction object account number, and the authenticity of the prop transaction process is ensured.
Further, referring to fig. 4, fig. 4 is a detailed flowchart of step S30 in the second embodiment of the block chain-based game item transaction method of the present invention, in this embodiment, the step S30 of determining whether the account number held by the game item is consistent with the user account number according to the private key of the user account number and the latest transaction record of the game item includes:
step S32, determining a public key corresponding to the held account number of the game item from the latest transaction record of the game item;
step S33, performing decryption verification on the public key of the held account by using the private key of the user account, and determining whether the private key of the user account successfully decrypts and verifies the public key of the held account;
step S34, if the private key of the user account successfully decrypts and verifies the public key of the held account, the held account of the game item is consistent with the user account;
step S35, if the private key of the user account is not successfully decrypted and the public key of the held account is verified, the held account of the game item is inconsistent with the user account.
In this embodiment, the transaction terminal may obtain the public key of any current account number held by the game item from the latest transaction record of the game item. The user logs in the user account on the transaction terminal, the transaction terminal can also obtain the private key of the user account, and whether the user account is consistent with the held account can be determined by decrypting and verifying the public key of the held account through the private key of the user account. Only when the user account is the holding account, the public key of the holding account can be decrypted and verified through the private key of the user account; if the private key of the user account cannot decrypt and verify the public key of the held account, it is indicated that the user account is not the held account of the game prop, and the user account does not have a punishment right on the game prop. Because the public key of the held account number is stored in the latest transaction record of the game item in advance, the transaction terminal can acquire the private key of the user account number after the user logs in, and judges whether the game item belongs to the user account number according to the principle that the private key and the public key can be verified, so that a seller in the game item transaction process is ensured to have ownership of the game item, and authenticity of the item transaction process is ensured.
Further, referring to fig. 5, fig. 5 is a schematic flowchart of a third embodiment of the game item transaction method based on a block chain according to the present invention, in this embodiment, a pair of public and private key pairs is preset in the transaction object account number correspondingly; in step S20, the step of sending the data information of the game item to the block link point address corresponding to the transaction object account includes:
step S21, acquiring a public key of a transaction object account number, encrypting the data information of the game item by using the public key of the transaction object account number, and updating the public key of the account number holding the game item into the public key of the transaction object account number in the latest transaction record of the game item;
step S22, sending the encrypted data information of the game item to the block link point address corresponding to the transaction object account number, so that the transaction object account number decrypts and verifies the public key of the transaction object account number according to the private key of the transaction object account number.
In this embodiment, the account number of the transaction object is also preset with a corresponding pair of public and private keys. The public key of the easy object account number can also be distributed on the network so as to be conveniently acquired by other people. The method comprises the steps that in the process that a user logs in a user account to conduct item transaction, a transaction terminal can obtain a public key of a transaction object account from a network after determining the transaction object account according to a transaction instruction, data information of game items involved in the transaction is encrypted through the public key of the transaction object account, meanwhile, a transaction record is newly added in the data information of the game items to serve as a latest transaction record, and in the latest transaction record, the public key of the account held by the game items is the public key of the transaction object account. After the public key of the held account of the game prop is updated, the transaction terminal can send the data information of the game prop encrypted by the public key of the transaction object account to the block link point address of the transaction object account. After receiving the data information of the game props, the transaction object account number can decrypt and verify the data information of the game props through the private key of the transaction object account number, so that the transaction object account number is proved to be a new arbitrarily held account number of the game props. And the data information of the game props can be decrypted through the private key of the transaction object account, so that the game props can be obtained only through the transaction object account, and the safety of the prop transaction process is guaranteed.
Further, referring to fig. 6, fig. 6 is a schematic flowchart of a fourth embodiment of the game item transaction method based on a block chain according to the present invention, in this embodiment, in step S20, the step of sending the data information of the game item to the block chain link point address corresponding to the transaction object account includes:
step S23, when the game props of the transaction are confirmed to be all the game props held by the user account through the data information of the game props, packaging and arranging all the game props held by the user account into a game prop package;
and step S24, sending the data information corresponding to the game item package to the block link point address corresponding to the transaction object account.
In this embodiment, after the transaction terminal determines the game props for transaction according to the transaction instruction, if the user transacts all the game props held under the user account to the transaction object account, all the game props held by the user account may be packaged to generate a game prop packet, and data information of the game prop packet is sent to the block link point address of the transaction object account. Namely, all game assets in the user account number are exchanged to the transaction object account number at one time, so that the asset emptying of the user account number is conveniently and quickly realized. It should be noted that before the transaction terminal sends the data information of the game item package to the transaction object account, it is also necessary to confirm the held account numbers of all game items held by the user account number, and if the held account number of a certain game item is not the user account number, the game item cannot be added into the game item package for transaction.
Further, referring to fig. 7, fig. 7 is a schematic flowchart of a fifth embodiment of the game item transaction method based on the block chain, in this embodiment, the step S10 is to receive a transaction instruction sent by the user after the user account has logged in, and determine the transaction object account and the game item to be transacted according to the transaction instruction, where the step S includes:
step S11, after the user account number is logged in, receiving a game item sent by a block chain link point corresponding to a server according to the user finished game content, and storing the data information of the game item in the address of the block chain link point of the user account number;
and step S12, receiving a transaction instruction sent by the user, and determining a transaction object account and a transaction game prop according to the transaction instruction.
In this embodiment, after the user logs in the user account at the transaction terminal, the user may receive the game item reward sent by the server by completing the game content. Specifically, the user can sign in every day by logging in the user account, and obtain corresponding rewards from the server side after the sign-in meets the requirements of the game content. Specifically, the server also stores game props used for being issued to players, and after the user account number completes corresponding game content, the server sends data information of the game props stored on the block link points to the block link points of the user account number, so that the user can get the corresponding game props. The game official can also realize the function of distributing the game props to the users in a block chain mode, and the data information of the game props is stored on the block chain nodes of the user accounts, so that the users can be safely stored and kept after obtaining the game props.
Further, in a sixth embodiment of the game item transaction method based on the block chain, in step S20, the step of sending the data information of the game item to the block chain link point address corresponding to the transaction object account includes:
and sending the data information of the game prop to a block link point address corresponding to the transaction object account, wherein the transaction object account and the user account are accounts under different games.
In this embodiment, the user account and the transaction object account in the item transaction process may be game accounts in different games, that is, the user may trade the game item to a transaction object account in another game. The game prop trading under different games can be realized through the block chain nodes, so that the trading of the game props is not limited to one game, and a user can trade the game props to an account number in another game and use the game props in another game, thereby improving the practicability and flexibility of the game props.
Further, in a seventh embodiment of the game item transaction method based on the block chain, before the step of receiving a transaction instruction sent by the user after the user account is logged in step S10, the method further includes:
receiving account and secret information input by a user, sending the account and secret information to a server, and acquiring a login verification result from the server;
and logging in the user account according to the login verification result.
In this embodiment, a user may input account information of a user account to a transaction terminal, and after acquiring the account information, the transaction terminal initiates a login request to a server and acquires a verification result corresponding to the login request from the server. If the account secret information is correct, the transaction terminal can log in a corresponding user account according to the verification result, so that the user can complete the transaction process of the game prop through the user account. It should be noted that the transaction terminal may be various intelligent devices, so that the user does not need to log in the game when logging in the user account at the transaction terminal, but can implement the game item transaction under the user account through a transaction program corresponding to the game. The user can complete the transaction of the game props through the transaction terminal when not logging in the game, and the flexibility and the convenience of the transaction of the game props are further improved.
In addition, an embodiment of the present invention further provides a computer-readable storage medium, on which a game item transaction program based on a block chain is stored, where the storage medium may be a Memory 1005 in the terminal in fig. 1, and may also be at least one of a ROM (Read-Only Memory)/RAM (Random Access Memory), a magnetic disk, and an optical disk, and the computer-readable storage medium includes several instructions to enable a terminal device (which may be a mobile phone, a computer, a server, or a television, etc.) having a processor to execute the method according to the embodiments of the present invention.
It is to be understood that throughout the description of the present specification, reference to the term "one embodiment", "another embodiment", "other embodiments", or "first through nth embodiments", etc., is intended to mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the present invention. In this specification, the schematic representations of the terms used above do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the description of the foregoing embodiments, it is clear to those skilled in the art that the method of the foregoing embodiments may be implemented by software plus a necessary general hardware platform, and certainly may also be implemented by hardware, but in many cases, the former is a better implementation. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) as described above and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.
Claims (10)
1. A game item transaction method based on a block chain is characterized by comprising the following steps:
after the user account number is logged in, receiving a transaction instruction sent by the user, and determining a transaction object account number and a game prop of the transaction according to the transaction instruction;
sending the data information of the game props to block chain link point addresses corresponding to the transaction object account numbers, wherein the step of sending the data information of the game props to the block chain link point addresses corresponding to the transaction object account numbers comprises the following steps: a pair of public and private key pairs is preset correspondingly to the user account, whether the held account of the game item is consistent with the user account is determined according to a private key of the user account and a latest transaction record of the game item, wherein the latest transaction record is a transaction record of a last held account of the game item in which the game item is transacted to the held account, in the process of transacting the game item to the held account, a public key of the held account is added into the transaction record, a transaction terminal can confirm whether the user account is the held account of the game item through the private key of the user account on the latest transaction record of the game item, and if the held account of the game item is consistent with the user account, then the steps are executed: and sending the data information of the game prop to a block link point address corresponding to the transaction object account.
2. The method of trading a game item based on a blockchain of claim 1, wherein after the step of determining whether the incumbent account number of the game item is consistent with the user account number according to the private key of the user account number and the latest trade record of the game item, further comprising:
and if the held account number of the game prop is inconsistent with the user account number, determining that the transaction fails.
3. The method of claim 2, wherein the step of determining whether the held account number of the game item is consistent with the user account number according to the private key of the user account number and the latest transaction record of the game item comprises:
determining a public key corresponding to a held account number of the game item from the latest transaction record of the game item;
carrying out decryption verification on the public key of the held account by using the private key of the user account, and judging whether the private key of the user account is successfully decrypted and verified;
if the private key of the user account is successfully decrypted and the public key of the held account is verified, the held account of the game item is consistent with the user account;
and if the private key of the user account is not successfully decrypted and the public key of the held account is verified, the held account of the game item is inconsistent with the user account.
4. The game item transaction method based on the blockchain according to claim 2, wherein a pair of public and private key pairs is preset correspondingly to the transaction object account number; the step of sending the data information of the game prop to the block link point address corresponding to the transaction object account number comprises the following steps:
acquiring a public key of a transaction object account number, encrypting the data information of the game prop by using the public key of the transaction object account number, and updating the public key of the held account number of the game prop into the public key of the transaction object account number in the latest transaction record of the game prop;
and sending the encrypted data information of the game props to block link point addresses corresponding to the transaction object account number so that the transaction object account number decrypts and verifies a public key of the transaction object account number according to a private key of the transaction object account number.
5. The method for trading game items based on block chains as claimed in claim 1, wherein the step of sending the data information of the game items to the block chain link point address corresponding to the trading object account number comprises:
when the game props of the transaction are confirmed to be all the game props held by the user account number through the data information of the game props, packaging and arranging all the game props held by the user account number into a game prop package;
and sending the data information corresponding to the game item package to the block link point address corresponding to the transaction object account.
6. The method of trading block-chain based game items according to claim 1, wherein the step of receiving a trading instruction from a user is preceded by the step of:
and receiving a game item sent by a block chain link point corresponding to a server according to the game content completed by the user, and storing the data information of the game item in the address of the block chain link point of the user account.
7. The method for trading game props based on block chains as claimed in any one of claims 1 to 6, wherein the step of sending data information of the game props to block chain link point addresses corresponding to the account number of the trading object comprises:
and sending the data information of the game prop to a block link point address corresponding to the transaction object account, wherein the transaction object account and the user account are accounts under different games.
8. The method for trading game items based on block chains according to any one of claims 1 to 6, wherein the step of receiving a trading instruction from a user after the user account number has been logged in further comprises:
receiving account and secret information input by a user, sending the account and secret information to a server, and acquiring a login verification result from the server;
and logging in the user account according to the login verification result.
9. A transaction terminal comprising a memory, a processor, a communicator and a computer program stored on the memory and executable on the processor, wherein: the computer program when executed implements the steps of a blockchain based game item transaction method according to any one of claims 1 to 8.
10. A computer-readable storage medium, characterized in that a computer program is stored thereon, which computer program, when being executed by a processor, carries out the steps of the blockchain based game item transaction method according to any one of claims 1 to 8.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910428279.6A CN110201400B (en) | 2019-05-21 | 2019-05-21 | Game prop trading method based on block chain, trading terminal and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910428279.6A CN110201400B (en) | 2019-05-21 | 2019-05-21 | Game prop trading method based on block chain, trading terminal and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110201400A CN110201400A (en) | 2019-09-06 |
CN110201400B true CN110201400B (en) | 2022-08-19 |
Family
ID=67788278
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910428279.6A Active CN110201400B (en) | 2019-05-21 | 2019-05-21 | Game prop trading method based on block chain, trading terminal and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110201400B (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110598481B (en) * | 2019-09-29 | 2024-06-28 | 腾讯科技(深圳)有限公司 | Data storage method, device, equipment and storage medium |
CN112990918A (en) * | 2019-12-17 | 2021-06-18 | 上海唯链信息科技有限公司 | Method, system, electronic device and storage medium for determining right and transferring article |
CN111198922B (en) * | 2020-01-02 | 2023-04-18 | 腾讯科技(深圳)有限公司 | Game resource management method and device based on block chain |
CN111478959A (en) * | 2020-04-02 | 2020-07-31 | 深圳市九九八八网络科技有限公司 | Distributed storage method for game transaction platform |
CN112138401B (en) * | 2020-09-15 | 2024-04-16 | 北京智明星通科技股份有限公司 | Game prop transaction method, system and transaction equipment |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP6404435B1 (en) * | 2017-10-24 | 2018-10-10 | 株式会社 ディー・エヌ・エー | Item transaction system and item transaction program |
CN109011583A (en) * | 2018-05-28 | 2018-12-18 | 腾讯科技(深圳)有限公司 | virtual resource transfer method and device, storage medium and electronic device |
CN108764877B (en) * | 2018-06-05 | 2022-07-08 | 张静霞 | Digital asset right-confirming trading method based on block chain technology |
CN109173266A (en) * | 2018-11-12 | 2019-01-11 | 网易(杭州)网络有限公司 | Processing method, device, processor and the server of fictitious assets across game |
-
2019
- 2019-05-21 CN CN201910428279.6A patent/CN110201400B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN110201400A (en) | 2019-09-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110201400B (en) | Game prop trading method based on block chain, trading terminal and storage medium | |
CN109472166B (en) | Electronic signature method, device, equipment and medium | |
US20200396217A1 (en) | Key Attestation Statement Generation Providing Device Anonymity | |
CN110245144B (en) | Protocol data management method, device, storage medium and system | |
CN107453870A (en) | Mobile terminal authentication management method, device and corresponding mobile terminal based on block chain | |
CN106790156B (en) | Intelligent device binding method and device | |
CN107612697B (en) | Digital certificate application method and device | |
US11836703B2 (en) | Method and apparatus for generating two-dimensional payment code | |
US20150319173A1 (en) | Co-verification method, two dimensional code generation method, and device and system therefor | |
CN108009825A (en) | A kind of identity management system and method based on block chain technology | |
US9565169B2 (en) | Device theft protection associating a device identifier and a user identifier | |
US20120167233A1 (en) | Email trust service | |
CN105721413A (en) | Service processing method and apparatus | |
CN105099673A (en) | Authorization method, authorization requesting method and devices | |
CN107612695A (en) | Knowledge management method, terminal and server based on block chain | |
CN109992949A (en) | A kind of equipment authentication method, air card-writing method and apparatus authentication device | |
CN110601858B (en) | Certificate management method and device | |
US20160301530A1 (en) | Sensitive operation verification method, apparatus, and system | |
CN108280369B (en) | Cloud document offline access system, intelligent terminal and method | |
KR102144509B1 (en) | Proximity communication method and apparatus | |
CN109257336A (en) | It is a kind of based on the encrypted message processing method of block chain, terminal device | |
CN109194651A (en) | A kind of identity identifying method, device, equipment and storage medium | |
CN107342966B (en) | Authority credentials distribution method and device | |
CN112199622A (en) | Page jump method, system and storage medium | |
US20160210596A1 (en) | Method, device and system for controlling presentation of application |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB03 | Change of inventor or designer information |
Inventor after: Liu Xitong Inventor after: Su Hongjing Inventor after: Sun Huazhu Inventor after: Yang Fan Inventor after: Wang Weicai Inventor before: Wang Jiamin |
|
CB03 | Change of inventor or designer information | ||
GR01 | Patent grant | ||
GR01 | Patent grant |