[go: up one dir, main page]

CN109011583B - Virtual resource transfer method and device, storage medium and electronic device - Google Patents

Virtual resource transfer method and device, storage medium and electronic device Download PDF

Info

Publication number
CN109011583B
CN109011583B CN201810525480.1A CN201810525480A CN109011583B CN 109011583 B CN109011583 B CN 109011583B CN 201810525480 A CN201810525480 A CN 201810525480A CN 109011583 B CN109011583 B CN 109011583B
Authority
CN
China
Prior art keywords
virtual resource
target
game virtual
account
target game
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
Application number
CN201810525480.1A
Other languages
Chinese (zh)
Other versions
CN109011583A (en
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
Tencent Cloud Computing Beijing Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Tencent Cloud Computing Beijing 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, Tencent Cloud Computing Beijing Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201810525480.1A priority Critical patent/CN109011583B/en
Publication of CN109011583A publication Critical patent/CN109011583A/en
Application granted granted Critical
Publication of CN109011583B publication Critical patent/CN109011583B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/70Game security or game management aspects
    • A63F13/79Game security or game management aspects involving player-related data, e.g. identities, accounts, preferences or play histories
    • 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/85Providing additional services to players
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/0815Network architectures or network communication protocols for network security for authentication of entities providing single-sign-on or federations
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/08Key distribution or management, e.g. generation, sharing or updating, of cryptographic keys or passwords
    • H04L9/0816Key establishment, i.e. cryptographic processes or cryptographic protocols whereby a shared secret becomes available to two or more parties, for subsequent use
    • H04L9/0819Key transport or distribution, i.e. key establishment techniques where one party creates or otherwise obtains a secret value, and securely transfers it to the other(s)
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F2300/00Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
    • A63F2300/50Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game characterized by details of game servers
    • A63F2300/55Details of game data or player data management
    • A63F2300/5546Details of game data or player data management using player registration data, e.g. identification, account, preferences, game history
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F2300/00Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
    • A63F2300/50Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game characterized by details of game servers
    • A63F2300/57Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game characterized by details of game servers details of game services offered to the player

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Hardware Design (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • General Business, Economics & Management (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

The invention discloses a virtual resource transfer method and device, a storage medium and an electronic device. Wherein the method comprises the following steps: obtaining a virtual resource allocation request through a blockchain, wherein the virtual resource allocation request carries a resource identifier of a target virtual resource to be transferred on the blockchain, account information of a target account for obtaining the target virtual resource and a transfer state condition for indicating execution of the transfer of the target virtual resource; responding to the virtual resource allocation request, generating a key matched with the target virtual resource on the blockchain, and sending the key to the target account; and under the condition that the transfer state condition is reached, notifying the target account number of the transferred target virtual resource by using the key. The invention solves the technical problem of lower transfer security of the virtual resource in the terminal application when being transferred.

Description

Virtual resource transfer method and device, storage medium and electronic device
Technical Field
The present invention relates to the field of computers, and in particular, to a virtual resource transfer method and apparatus, a storage medium, and an electronic apparatus.
Background
During the operation of many terminal applications, some virtual resources that are not substances and match with the user account are usually generated, for example, experience values accumulated by the user account for a long time, equipment purchased by the user account, and the like. However, since the virtual resources depend on the terminal application, when the terminal application is not used any more, the virtual resources are often forgotten, or when the application developer logs out the user account, the virtual resources corresponding to the user account are also eliminated at the same time.
That is, virtual resources in the terminal application that match the user account tend to be lost or eliminated over time. In order to avoid the above problem, it is common to directly transfer the access right information for obtaining the virtual resource to the receiving user online. However, the access right information is easily stolen in the transfer process, so that the security of the virtual resource in the transfer process cannot be ensured.
In view of the above problems, no effective solution has been proposed at present.
Disclosure of Invention
The embodiment of the invention provides a virtual resource transfer method and device, a storage medium and an electronic device, which are used for at least solving the technical problem of low transfer security when virtual resources in terminal application are transferred.
According to an aspect of an embodiment of the present invention, there is provided a virtual resource transfer method, including: obtaining a virtual resource allocation request through a blockchain, wherein the virtual resource allocation request carries a resource identifier of a target virtual resource to be transferred on the blockchain, account information of a target account for obtaining the target virtual resource and a transfer state condition for indicating execution of transfer of the target virtual resource; responding to the virtual resource allocation request, generating a key matched with the target virtual resource on the blockchain, and sending the key to the target account; and notifying the target account number of the target virtual resource transferred by using the key acquisition when the transfer state condition is reached.
According to another aspect of the embodiment of the present invention, there is also provided a virtual resource transfer method, including: acquiring a key which is generated on a blockchain and is matched with a target virtual resource to be transferred; receiving a notification message, wherein the notification message is used for indicating that the target virtual resource has reached a transition state condition for executing transition, and the target virtual resource is configured with a transition right when the transition state condition is reached; and acquiring the target virtual resource by using the key.
According to still another aspect of the embodiment of the present invention, there is also provided a virtual resource transfer apparatus, including: the system comprises an acquisition unit, a transfer unit and a transfer unit, wherein the acquisition unit is used for acquiring a virtual resource allocation request through a block chain, wherein the virtual resource allocation request carries a resource identifier of a target virtual resource to be transferred on the block chain, account information of a target account number for acquiring the target virtual resource and a transfer state condition for indicating to execute transfer of the target virtual resource; the generation unit is used for responding to the virtual resource allocation request, generating a key matched with the target virtual resource on the blockchain and sending the key to the target account; and a notification unit configured to notify the target account of the target virtual resource transferred using the key acquisition when the transfer state condition is reached.
According to still another aspect of the embodiment of the present invention, there is also provided a virtual resource transfer apparatus, including: the first acquisition unit is used for acquiring a key which is generated on the blockchain and matched with the target virtual resource to be transferred; a receiving unit configured to receive a notification message, where the notification message is configured to indicate that the target virtual resource has reached a transition state condition for executing a transition, and in the case that the transition state condition is reached, the target virtual resource is configured with a transition right; and the second acquisition unit is used for acquiring the target virtual resource by using the key.
According to yet another aspect of the embodiments of the present invention, there is also provided a storage medium having stored therein a computer program, wherein the computer program is configured to perform the above-described virtual resource transfer method at runtime.
According to still another aspect of the embodiments of the present invention, there is further provided an electronic device including a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor executes the virtual resource transfer method described above through the computer program.
In the embodiment of the invention, a blockchain is introduced to realize the transfer of virtual resources. Acquiring a virtual resource allocation request through a block chain; responding to the virtual resource allocation request, generating a key matched with the target virtual resource on the blockchain, and sending the key to the target account; and under the condition that the transfer state condition is reached, notifying the target account number of the method for acquiring the transferred target virtual resource by using the secret key, so that the virtual resource can be stored on a blockchain, and after the transfer state condition is reached, notifying the target account number of the method for acquiring the target virtual resource, thereby ensuring the safety of the virtual resource. And further, the technical problem of low transfer security of virtual resources in terminal application when the virtual resources are transferred is solved. Meanwhile, the transfer of the virtual resource is controlled by adopting the blockchain, so that the virtual resource can be transferred under the condition that the transfer state condition of the virtual resource is achieved, the repeated utilization of the virtual resource is realized, the utilization rate of the virtual resource is improved, and the waste of the virtual resource is avoided.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this specification, illustrate embodiments of the application and together with the description serve to explain the application and do not constitute a limitation on the application. In the drawings:
FIG. 1 is a schematic illustration of an application environment of an alternative virtual resource transfer method according to an embodiment of the invention;
FIG. 2 is a flow diagram of an alternative virtual resource transfer method according to an embodiment of the invention;
FIG. 3 is a schematic diagram of an alternative virtual resource transfer method according to an embodiment of the invention;
FIG. 4 is a schematic diagram of another alternative virtual resource transfer method according to an embodiment of the invention;
FIG. 5 is a schematic diagram of yet another alternative virtual resource transfer method in accordance with an embodiment of the invention;
FIG. 6 is a schematic diagram of yet another alternative virtual resource transfer method in accordance with an embodiment of the invention;
FIG. 7 is a flow chart of another alternative virtual resource transfer method according to an embodiment of the invention;
FIG. 8 is a schematic diagram of yet another alternative virtual resource transfer method in accordance with an embodiment of the invention;
FIG. 9 is a schematic diagram of an alternative virtual resource transfer device according to an embodiment of the invention;
FIG. 10 is a schematic diagram of an alternative virtual resource transfer device according to an embodiment of the invention;
fig. 11 is a schematic structural view of an alternative electronic device according to an embodiment of the present invention.
Detailed Description
In order that those skilled in the art will better understand the present invention, a technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present invention without making any inventive effort, shall fall within the scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present invention and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the invention described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
According to an aspect of the embodiment of the present invention, there is provided a virtual resource transfer method, which may be applied, but not limited to, in the environment shown in fig. 1, as an alternative implementation manner. The terminal 102 obtains a virtual resource allocation request through the blockchain, wherein the virtual resource allocation request carries a resource identifier of a target virtual resource to be transferred on the blockchain, account information of a target account for obtaining the target virtual resource, and a transfer state condition for indicating execution of transferring the target virtual resource, and after obtaining the resource transfer request, the terminal 102 sends a verification request to the server 106 through the network 104 to verify the virtual resource. And under the condition that the virtual resource meets the standard, responding to the virtual resource allocation request, generating a key matched with the target virtual resource on the blockchain, and sending the key to the target account, and under the condition that the transfer state condition is reached, the terminal 102 informs the target account on the terminal 108 of acquiring the transferred target virtual resource by using the key. The target account number on the terminal 108 obtains the key generated on the blockchain and matched with the target virtual resource to be transferred, and after receiving the notification message, the target account number on the terminal 108 obtains the transferred target virtual resource by using the key, and logs in the server 106 through the target virtual resource.
It should be noted that, in this embodiment, a virtual resource allocation request is obtained through a blockchain, where the virtual resource allocation request carries a resource identifier of a target virtual resource to be transferred on the blockchain, account information of a target account for obtaining the target virtual resource, and a transfer state condition for indicating execution of transferring the target virtual resource; responding to the virtual resource allocation request, generating a key matched with the target virtual resource on the blockchain, and sending the key to the target account; under the condition that the transfer state condition is reached, the method for notifying the target account to acquire the transferred target virtual resource by using the secret key is adopted, so that the virtual resource can be stored on the blockchain, and after the transfer state condition is reached, the target account is notified to acquire the target virtual resource, and the safety of the virtual resource is ensured. Meanwhile, the transfer of the virtual resource is controlled by adopting the blockchain, so that the virtual resource can be transferred under the condition that the transfer state condition of the virtual resource is achieved, the repeated utilization of the virtual resource is realized, the utilization rate of the virtual resource is improved, and the waste of the virtual resource is avoided.
Optionally, the virtual resource transfer method may be applied to a terminal supporting a blockchain, such as a mobile phone, a tablet computer, a notebook computer, a PC, etc., and the network may include, but is not limited to, a wireless network or a wired network. Wherein the wireless network comprises: bluetooth, WIFI, and other networks that enable wireless communications. The wired network may include, but is not limited to: wide area network, metropolitan area network, local area network. The server may include, but is not limited to, any hardware device capable of performing a computing service.
Optionally, as an optional implementation manner, as shown in fig. 2, the virtual resource transferring method may include:
S202, obtaining a virtual resource allocation request through a blockchain, wherein the virtual resource allocation request carries a resource identifier of a target virtual resource to be transferred on the blockchain, account information of a target account for obtaining the target virtual resource and a transfer state condition for indicating execution of transfer of the target virtual resource;
S204, responding to the virtual resource allocation request, generating a key matched with the target virtual resource on the blockchain, and sending the key to the target account;
S206, when the transfer state condition is reached, notifying the target account to acquire the transferred target virtual resource by using the key.
Alternatively, the virtual resource transfer method described above may be applied, but not limited to, in the scenario of inheriting virtual resources. Such as transferring game account resources, applying virtual assets, etc.
The target virtual resource may be, but is not limited to, a virtual asset in the virtual world, such as account password information, account number level, whether a member, a member level, role information in an account number, role level, equipment, experience value, pet, prop, etc.
The following will describe an example of transferring game account resources. The target virtual asset is an account number and a password of a game, the resource identifier is a block identifier of a blockchain in which the account number and the password of the game are stored, and the transfer state condition of the resource is one month.
Logging in the blockchain through the account number and the password of the registered blockchain, and obtaining a virtual resource allocation request. The virtual resource allocation request carries an account number and a password of the game to be transferred and a list-taking identifier of a blockchain in which the account number and the password are stored. And responding to the virtual resource allocation request, generating a key corresponding to the account password of the game and the stored block identifier on the blockchain, and sending the key to a target account needing to inherit the account password of the game. After one month, the transfer state condition is reached, and a notification message is automatically generated to notify the target account number to acquire the account number and the password of the game by using the secret key.
By the method, the virtual resources can be stored on the blockchain, and after the transfer state condition is reached, the target account is notified to acquire the target virtual resources, so that the safety of the virtual resources is ensured. Meanwhile, the transfer of the virtual resource is controlled by adopting the blockchain, so that the virtual resource can be transferred under the condition that the transfer state condition of the virtual resource is achieved, the repeated utilization of the virtual resource is realized, the utilization rate of the virtual resource is improved, and the waste of the virtual resource is avoided.
Optionally, obtaining the virtual resource allocation request through the blockchain includes: acquiring a target virtual resource uploaded to a block chain; in the blockchain, obtaining a transfer state parameter configured for a target virtual resource, wherein the transfer state parameter comprises: the transfer state conditions and account information of the target account number at least comprise: transfer time; and generating a virtual resource allocation request according to the transfer state parameter.
Alternatively, the transfer time may be a time period or a time point. For example, the target virtual resource is transferred after one month, or at a certain point in time, which is desirable.
For example, the description will be continued with reference to the case of transferring game account resources described above. As shown in fig. 3, when transferring the account number of the game, the account number 1 to be transferred is selected, and the target account number is input as a mobile phone number, and the transfer time is specified to be 6 am of 24 th 4 th 2018. After clicking the ok button, it is determined that a virtual resource allocation request is generated. And after the transfer time is reached, sending a key matched with the target virtual resource to the target account.
Optionally, generating a key on the blockchain that matches the target virtual resource in response to the virtual resource allocation request includes: and generating a key according to the account information of the target virtual resource and the transfer state condition of the target account.
Alternatively, the key may be any combination of characters, or a combination of characters and codes, or the like.
For example, the description will be continued with reference to the case of transferring game account resources described above. If account 1 needs to be transferred, a number that needs to be matched with account 1 to be transferred is obtained, as in 1001. And then acquiring account information of the target account, wherein the account information can be number information corresponding to the account, such as 1002, and acquiring transfer state conditions of transfer, such as 20180101, which can be expressed by time. The key is obtained from the above information and may be represented in three-segment form, for example: 1001200801011002.
Optionally, obtaining the target virtual resource uploaded to the blockchain includes: the obtaining the target virtual resource uploaded to the blockchain comprises the following steps: registering a registration account for transferring the target virtual resource on the blockchain; acquiring a target virtual resource uploaded by a registered account; sending a verification request to an application system server using the target virtual resource; and under the condition that the verification result returned by the application system server indicates that the target virtual resource is an effective resource, storing the target virtual resource into the blockchain according to the format of the key value pair.
For example, the description will be continued with reference to the case of transferring game account resources described above. Before uploading the account passwords of the game to the blockchain, the account numbers and the passwords for logging in the blockchain need to be registered. The blockchain is logged in through the registered account number and the password. Meanwhile, before the account passwords of the game are stored in the blockchain, verification is needed to be carried out on the target virtual resources so as to prevent the target virtual resources from not existing. During verification, a verification request is sent to an application system server of the game, a verification result returned by the application system server is received, and the account password of the game is stored in the blockchain only when the verification result indicates that the account password of the game is an effective resource.
Alternatively, when the account number and password of the game are stored in the blockchain, the account number and password of the game may be stored in the blockchain in a key-value pair manner.
Optionally, in the case that the transfer state condition is reached, notifying the target account of the transferred target virtual resource using the key acquisition includes: determining that a transition state condition is reached in the case that the transition time is reached; automatically generating a notification message under the condition that a transfer state condition is reached, wherein the notification message is used for notifying a target account to acquire a transferred target virtual resource by using a secret key; and sending the notification message to the target account number according to the notification mode indicated in the transfer state parameter.
Alternatively, the notification message may be any message that may carry a key. For example, it may be a mail message, a short message, a conversation message, or other form of alert message, etc.
For example, the description will be continued with reference to the case of transferring game account resources described above. As shown in fig. 4, since the target account is a mobile phone number, when sending a notification message to the target account, the notification message is a short message. It can be seen that the short message notification message of the terminal of the receiving end has a notification message in the form of a short message, and the notification message carries key information.
Alternatively, after the virtual resource allocation request is obtained through the blockchain, there may be two cases:
(1) Adjusting the target virtual resource from the running state to the freezing state, wherein the target virtual resource is allowed to be modified in the running state, and the target virtual resource is forbidden to be modified in the freezing state; after notifying the target account that the target virtual resource is transferred by using the key acquisition, and under the condition that the target account acquires the target virtual resource, the target virtual resource is restored to the running state.
For example, the description will be continued with reference to the case of transferring game account resources described above. After the account passwords of the game are stored in the blockchain, the account passwords of the game are adjusted to be in a frozen state. In the frozen state, the account number and password of the game cannot be logged in the game. And after the notification message is sent to the target account, the account password of the game is restored to the running state, and after the game is restored to the running state, the account password of the game can be logged in the game.
(2) Maintaining the target virtual resource in an operational state, wherein the target virtual resource is allowed to be modified in the operational state; informing the target account of the transferred target virtual resource using the key acquisition comprises: and notifying the target account number to acquire the modified target virtual resource by using the key.
For example, the description will be continued with reference to the case of transferring game account resources described above. After the account number of the game is deposited into the blockchain, the account number of the game may also be used. In the process, if the game information protected by the account number and password of the game is changed, after the target account number obtains the account number and password of the game, the game information protected by the inherited account number and password of the game is changed game information.
Optionally, after notifying the target account that the target virtual resource is transferred using the key acquisition, the method further includes: the target account obtains a key; the target account authenticates the secret key through the block chain; under the condition that the authenticated secret key is determined to be a legal secret key, the target account number obtains login permission for logging in the application system server, wherein the target virtual resource is used in the application system server; the target account number logs in the application system server by using the login authority, and continues to use the target virtual resource in the application system server.
For example, the description will be continued with reference to the case of transferring game account resources described above. After the target account obtains the secret key, the secret key can be authenticated through the blockchain, after the authentication is successful, the target account can obtain the account number and the password for logging in the game through the secret key, and log in the game according to the obtained account number password.
According to the embodiment, a virtual resource allocation request is obtained through a blockchain, wherein the virtual resource allocation request carries a resource identifier of a target virtual resource to be transferred on the blockchain, account information of a target account for obtaining the target virtual resource and a transfer state condition for indicating execution of transferring the target virtual resource; responding to the virtual resource allocation request, generating a key matched with the target virtual resource on the blockchain, and sending the key to the target account; under the condition that the transfer state condition is reached, the method for notifying the target account to acquire the transferred target virtual resource by using the secret key is adopted, so that the virtual resource can be stored on the blockchain, and after the transfer state condition is reached, the target account is notified to acquire the target virtual resource, and the safety of the virtual resource is ensured. Meanwhile, the transfer of the virtual resource is controlled by adopting the blockchain, so that the virtual resource can be transferred under the condition that the transfer state condition of the virtual resource is achieved, the repeated utilization of the virtual resource is realized, the utilization rate of the virtual resource is improved, and the waste of the virtual resource is avoided.
As an alternative embodiment, obtaining the virtual resource allocation request through the blockchain includes:
s1, acquiring target virtual resources uploaded to a block chain;
S2, acquiring a transfer state parameter configured for the target virtual resource in the blockchain, wherein the transfer state parameter comprises the following components: the transfer state conditions and account information of the target account number at least comprise: transfer time;
s3, generating a virtual resource allocation request according to the transfer state parameters.
Alternatively, the transfer time may be a time period or a time point. For example, the target virtual resource is transferred after one month, or at a certain point in time, which is desirable.
For example, the description will be continued with reference to the case of transferring game account resources described above. As shown in fig. 3, when transferring the account number of the game, the account number 1 to be transferred is selected, and the target account number is input as a mobile phone number, and the transfer time is specified to be 6 am of 24 th 4 th 2018. After clicking the ok button, it is determined that a virtual resource allocation request is generated. And after the transfer time is reached, sending a key matched with the target virtual resource to the target account.
According to the embodiment, the key matched with the target virtual resource is sent to the target account after the transfer time is reached, so that the time for sending the key can be regulated, the security of virtual resource transfer is improved, and meanwhile, the flexibility of virtual resource transfer is improved.
As an alternative embodiment, generating a key on the blockchain that matches the target virtual resource in response to the virtual resource allocation request includes:
S1, generating a secret key according to account information of a target virtual resource and transfer state conditions of the target account.
Alternatively, the key may be any combination of characters, or a combination of characters and codes, or the like.
For example, the description will be continued with reference to the case of transferring game account resources described above. If account 1 needs to be transferred, a number that needs to be matched with account 1 to be transferred is obtained, as in 1001. And then acquiring account information of the target account, wherein the account information can be number information corresponding to the account, such as 1002, and acquiring transfer state conditions of transfer, such as 20180101, which can be expressed by time. The key is obtained from the above information and may be represented in three-segment form, for example: 1001200801011002.
According to the method and the device, the key is generated according to the account information set transfer state condition of the target account, so that the accuracy of generating the key can be improved, the account information of the target account is further acquired according to the key, and the security of virtual resource transfer is improved.
As an alternative embodiment, acquiring the target virtual resource uploaded to the blockchain includes:
s1, registering a registration account for transferring a target virtual resource on a blockchain;
S2, acquiring target virtual resources uploaded by the registered account;
s3, sending a verification request to an application system server using the target virtual resource;
And S4, storing the target virtual resource into the blockchain according to the format of the key value pair under the condition that the verification result returned by the application system server indicates that the target virtual resource is an effective resource.
For example, the description will be continued with reference to the case of transferring game account resources described above. Before uploading the account passwords of the game to the blockchain, the account numbers and the passwords for logging in the blockchain need to be registered. The blockchain is logged in through the registered account number and the password. Meanwhile, before the account passwords of the game are stored in the blockchain, verification is needed to be carried out on the target virtual resources so as to prevent the target virtual resources from not existing. During verification, a verification request is sent to an application system server of the game, a verification result returned by the application system server is received, and the account password of the game is stored in the blockchain only when the verification result indicates that the account password of the game is an effective resource.
Alternatively, when the account number and password of the game are stored in the blockchain, the account number and password of the game may be stored in the blockchain in a key-value pair manner.
According to the embodiment, the verification request is sent to the application system server, and the target virtual resource is stored in the blockchain under the condition that the verification result indicating that the target virtual resource is the effective resource is received, so that the security of virtual resource transfer is ensured, and meanwhile, the accuracy of the virtual resource is also ensured.
As an alternative embodiment, notifying the target account of the transferred target virtual resource using the key acquisition in the case that the transfer state condition is reached includes:
S1, determining that a transfer state condition is reached under the condition that the transfer time is reached;
s2, under the condition that a transfer state condition is reached, automatically generating a notification message, wherein the notification message is used for notifying a target account to acquire a transferred target virtual resource by using a secret key;
And S3, sending the notification message to the target account according to the notification mode indicated in the transfer state parameter.
Alternatively, the notification message may be any message that may carry a key. For example, it may be a mail message, a short message, a conversation message, or other form of alert message, etc.
For example, the description will be continued with reference to the case of transferring game account resources described above. As shown in fig. 4, since the target account is a mobile phone number, when sending a notification message to the target account, the notification message is a short message. It can be seen that the short message notification message of the terminal of the receiving end has a notification message in the form of a short message, and the notification message carries key information.
According to the method and the device, when the transfer state condition is reached, the notification message is automatically generated, so that the target account can be notified of the target virtual resource to be transferred, the virtual resource transfer safety is improved, and meanwhile, the virtual resource transfer efficiency is also improved.
As an alternative to this embodiment of the present invention,
S1, after obtaining a virtual resource allocation request through a block chain, the method further comprises the following steps: adjusting the target virtual resource from the running state to the freezing state, wherein the target virtual resource is allowed to be modified in the running state, and the target virtual resource is forbidden to be modified in the freezing state;
S2, after informing the target account of the target virtual resource transferred by using the key acquisition, and under the condition that the target account acquires the target virtual resource, the target virtual resource is restored to the running state.
For example, the description will be continued with reference to the case of transferring game account resources described above. After the account passwords of the game are stored in the blockchain, the account passwords of the game are adjusted to be in a frozen state. In the frozen state, the account number and password of the game cannot be logged in the game. And after the notification message is sent to the target account, the account password of the game is restored to the running state, and after the game is restored to the running state, the account password of the game can be logged in the game.
According to the embodiment, the target virtual resource is adjusted to be in the frozen state, so that the content of the target virtual resource can be ensured not to be modified, and the security of transferring the target virtual resource is improved.
As an alternative to this embodiment of the present invention,
S1, after obtaining a virtual resource allocation request through a block chain, the method further comprises the following steps: maintaining the target virtual resource in an operational state, wherein the target virtual resource is allowed to be modified in the operational state;
S2, informing the target account of the target virtual resource transferred by using the key acquisition comprises the following steps: and notifying the target account number to acquire the modified target virtual resource by using the key.
For example, the description will be continued with reference to the case of transferring game account resources described above. After the account number of the game is deposited into the blockchain, the account number of the game may also be used. In the process, if the game information protected by the account number and password of the game is changed, after the target account number obtains the account number and password of the game, the game information protected by the inherited account number and password of the game is changed game information.
By the embodiment, the target virtual resource is kept in the running state, so that certain loss caused by suspension of the target virtual resource can be avoided. The security of the target virtual resource is improved, and the normal operation of the target media resource is ensured.
As an alternative embodiment, after notifying the target account that the target virtual resource is transferred using the key acquisition, the method further includes:
S1, a target account acquires a secret key;
s2, authenticating the secret key by the target account through a block chain;
s3, under the condition that the authenticated secret key is determined to be a legal secret key, the target account number obtains login permission for logging in the application system server, wherein the target virtual resource is used in the application system server;
S4, the target account logs in the application system server by using the login permission, and the target virtual resource is continuously used in the application system server.
For example, the description will be continued with reference to the case of transferring game account resources described above. After the target account obtains the secret key, the secret key can be authenticated through the blockchain, after the authentication is successful, the target account can obtain the account number and the password for logging in the game through the secret key, and log in the game according to the obtained account number password.
According to the embodiment, the target account number obtains the login permission through the key, so that the user can login to the application system server, and the security of the login of the target account number to the application system server is ensured.
The virtual resource transfer method described above is described below with reference to fig. 5. As shown in fig. 5, step S502 is first executed to register an account number and a password for logging in the blockchain, and log in the blockchain according to the account number and the password, then step S504 is executed to upload the target virtual resource, and send a verification request to the application server to verify the target virtual resource. If the verification is passed, step S508 is performed to store the target virtual resource, and then step S510 is performed to generate a key and send the key to the target account. After the target account obtains the key, the key is used to obtain the login authority of the login application system server, the blockchain verifies whether the key is legal or not through the step S512, and under the legal condition, the step S514 is executed to grant the login authority of the target account to login the application system server. In this process, if the verification target virtual resource does not pass, step S516 is performed without storing the target virtual resource, and if the key is not legal, step S518 is performed without granting login authority.
The virtual resource transfer method is described below with reference to fig. 6. As shown in fig. 6, after the user 1 logs in the blockchain in step S602, the target virtual resource is uploaded, and the target virtual resource is sent to the application server in step S604 for verification, and after the verification of the application server is passed, a message for passing the verification is sent to the user 1 in step S606. User 1 stores the target virtual resource in the blockchain and generates a key, through step S608, and then transmits the key to the target user, through step S610. After the target user receives the key, the key is authenticated by step S612. In the case that the authentication is passed, the login right to login to the application server is acquired through step S614, and the application server is logged in through step S616.
It should be noted that, for simplicity of description, the foregoing method embodiments are all described as a series of acts, but it should be understood by those skilled in the art that the present invention is not limited by the order of acts described, as some steps may be performed in other orders or concurrently in accordance with the present invention. 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 invention.
From the description of the above embodiments, it will be clear to a person skilled in the art that the method according to the above embodiments may be implemented by means of software plus the necessary general hardware platform, but of course also by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) comprising several instructions for causing a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the method of the various embodiments of the present invention.
According to another aspect of the embodiment of the present invention, there is further provided a virtual resource transfer method, optionally, as an optional implementation manner, as shown in fig. 7, the virtual resource transfer method may, but is not limited to, include:
S702, acquiring a key which is generated on a blockchain and is matched with a target virtual resource to be transferred;
s704, receiving a notification message, wherein the notification message is used for indicating that the target virtual resource has reached a transfer state condition for executing transfer, and the target virtual resource is configured with transfer permission under the condition that the transfer state condition is reached;
s706, the target virtual resource is acquired by using the secret key.
Alternatively, the virtual resource transfer method described above may be applied, but not limited to, in the scenario of inheriting virtual resources. Such as transferring game account resources, applying virtual assets, etc.
The target virtual resource may be, but is not limited to, a virtual asset in the virtual world, such as account password information, account number level, whether a member, a member level, role information in an account number, role level, equipment, experience value, pet, prop, etc.
The following will describe an example of transferring game account resources. The target virtual asset is an account number and a password of a game, the resource identifier is a block identifier of a blockchain in which the account number and the password of the game are stored, and the transfer state condition of the resource is one month.
Logging in the blockchain through the registered packaged password of the blockchain, and obtaining a virtual resource allocation request. The virtual resource allocation request carries an account number and a password of the game to be transferred and a list-taking identifier of a blockchain in which the account number and the password are stored. And responding to the virtual resource allocation request, generating a key corresponding to the account password of the game and the stored block identifier on the blockchain, and sending the key to a target account needing to inherit the account password of the game. After one month, the transfer state condition is reached, and a notification message is automatically generated to notify the target account number to acquire the account number and the password of the game by using the secret key.
By the method, the virtual resources can be stored on the blockchain, and after the transfer state condition is reached, the target account is notified to acquire the target virtual resources, so that the safety of the virtual resources is ensured. Meanwhile, the transfer of the virtual resource is controlled by adopting the blockchain, so that the virtual resource can be transferred under the condition that the transfer state condition of the virtual resource is achieved, the repeated utilization of the virtual resource is realized, the utilization rate of the virtual resource is improved, and the waste of the virtual resource is avoided.
Optionally, after receiving the notification message, the method further includes: authenticating the key through the blockchain; under the condition that the authenticated secret key is determined to be a legal secret key, acquiring login permission for logging in an application system server, wherein a target virtual resource is used for being used in the application system server; and logging in the application system server by using the login authority, and using the target virtual resource in the application system server.
For example, the description will be continued with reference to the case of transferring game account resources described above. And after the target account receives the secret key, authenticating the secret key through the blockchain, acquiring the account password of the game under the condition that the authentication is passed, and logging in the application system server by using the account password of the game.
Optionally, obtaining login rights for logging in the application server includes one of: inputting a secret key into a login interface to obtain login rights; inputting a secret key into a blockchain, and acquiring login information from the blockchain, wherein the login information is used for acquiring login rights; and inputting a secret key into the authority authentication interface to acquire login authority.
For example, the description will be continued with reference to the case of transferring game account resources described above. When the login right is acquired, a key can be input in the login interface, and after the key is input, the user can directly jump to the game without inputting the account number and password of the game. Or after the key is input in the blockchain, the account password information of the login game is obtained under the condition that the key is authenticated and the authentication passes, or after the key is input in the authority authentication interface, the password of the login game can be modified under the condition that the authentication passes.
Optionally, after the target virtual resource is obtained using the key, two cases are also included.
(1) And restoring the target virtual resource from the frozen state to the running state, wherein the target virtual resource is allowed to be modified in the running state, and the target virtual resource is forbidden to be modified in the frozen state.
For example, the description will be continued with reference to the case of transferring game account resources described above. After the account passwords of the game are stored in the blockchain, the account passwords of the game are adjusted to be in a frozen state. In the frozen state, the account number and password of the game cannot be logged in the game. And after the notification message is sent to the target account, the account password of the game is restored to the running state, and after the game is restored to the running state, the account password of the game can be logged in the game.
(2) And acquiring the modified target virtual resource by using the key.
For example, the description will be continued with reference to the case of transferring game account resources described above. After the account number of the game is deposited into the blockchain, the account number of the game may also be used. In the process, if the game information protected by the account number and password of the game is changed, after the target account number obtains the account number and password of the game, the game information protected by the inherited account number and password of the game is changed game information.
According to the embodiment, a virtual resource allocation request is obtained through a blockchain, wherein the virtual resource allocation request carries a resource identifier of a target virtual resource to be transferred on the blockchain, account information of a target account for obtaining the target virtual resource and a transfer state condition for indicating execution of transferring the target virtual resource; responding to the virtual resource allocation request, generating a key matched with the target virtual resource on the blockchain, and sending the key to the target account; under the condition that the transfer state condition is reached, the method for notifying the target account to acquire the transferred target virtual resource by using the secret key is adopted, so that the virtual resource can be stored on the blockchain, and after the transfer state condition is reached, the target account is notified to acquire the target virtual resource, and the safety of the virtual resource is ensured. Meanwhile, the transfer of the virtual resource is controlled by adopting the blockchain, so that the virtual resource can be transferred under the condition that the transfer state condition of the virtual resource is achieved, the repeated utilization of the virtual resource is realized, the utilization rate of the virtual resource is improved, and the waste of the virtual resource is avoided.
As an alternative embodiment, after receiving the notification message, further comprising:
S1, authenticating a secret key through a block chain;
S2, under the condition that the authenticated secret key is determined to be a legal secret key, acquiring login permission for logging in an application system server, wherein a target virtual resource is used for being used in the application system server;
S3, logging in the application system server by using the login authority, and using the target virtual resource in the application system server.
For example, the description will be continued with reference to the case of transferring game account resources described above. And after the target account receives the secret key, authenticating the secret key through the blockchain, acquiring the account password of the game under the condition that the authentication is passed, and logging in the application system server by using the account password of the game.
According to the embodiment, the key is authenticated, under the conditions of the key and the issuing amount, the login permission of the login application system server is obtained, and the login application system server is logged in, so that the security of virtual resource transfer is ensured.
As an alternative embodiment, obtaining login rights for logging into the application server comprises one of:
S1, inputting a secret key into a login interface to acquire login rights;
S2, inputting a secret key into the blockchain, and acquiring login information from the blockchain, wherein the login information is used for acquiring login rights;
S3, inputting a secret key into the authority authentication interface to acquire login authority.
For example, the description will be continued with reference to the case of transferring game account resources described above. When the login right is acquired, a key can be input in the login interface, and after the key is input, the user can directly jump to the game without inputting the account number and password of the game. Or after the key is input in the blockchain, the account password information of the login game is obtained under the condition that the key is authenticated and the authentication passes, or after the key is input in the authority authentication interface, the password of the login game can be modified under the condition that the authentication passes.
According to the embodiment, the login permission is obtained through the method, so that the flexibility of obtaining the login permission is improved while the security of virtual resource transfer is ensured.
As an alternative embodiment, after the target virtual resource is obtained using the key, the method further includes:
s1, recovering the obtained target virtual resource configured with the transfer permission from a frozen state to an operating state, wherein the target virtual resource is allowed to be modified in the operating state, and the target virtual resource is forbidden to be modified in the frozen state.
For example, the description will be continued with reference to the case of transferring game account resources described above. After the account passwords of the game are stored in the blockchain, the account passwords of the game are adjusted to be in a frozen state. In the frozen state, the account number and password of the game cannot be logged in the game. And after the notification message is sent to the target account, the account password of the game is restored to the running state, and after the game is restored to the running state, the account password of the game can be logged in the game.
According to the embodiment, the target virtual resource is adjusted to be in the frozen state, so that the content of the target virtual resource can be ensured not to be modified, and the security of transferring the target virtual resource is improved.
As an alternative embodiment, after obtaining the target virtual resource using the key, the method further includes:
s1, acquiring the modified target virtual resource by using the secret key.
For example, the description will be continued with reference to the case of transferring game account resources described above. After the account number of the game is deposited into the blockchain, the account number of the game may also be used. In the process, if the game information protected by the account number and password of the game is changed, after the target account number obtains the account number and password of the game, the game information protected by the inherited account number and password of the game is changed game information.
By the embodiment, the target virtual resource is kept in the running state, so that certain loss caused by suspension of the target virtual resource can be avoided. The security of the target virtual resource is improved, and the normal operation of the target media resource is ensured.
Alternatively, the virtual resource transfer method described above is described below with reference to fig. 8. As shown in fig. 8, after obtaining the key through the target account in step S802, step S804 is performed to authenticate the key, and step S806 is performed to determine whether the key is legal. In the case of legal keys, there are three cases. The key can be directly input on the interface of the login application server through step S808 and the login application server, or the key can be input in the blockchain through step S810 to obtain the account password for logging in the reference system server, or the key can be input on the authority authentication interface through step S812 to modify the password of the login application server. After any one of the above three steps is performed, step S814 is performed to grant login rights. Then, according to step S816, it is determined whether the login authority is legal. If the login authority is legal, step S818 is executed to log in the application server, and step S820 is executed to notify the login account in the blockchain that the target is used for logging in to the application server. In this process, if step S806 determines that the key is not legal, step S822 is performed, and the key cannot be used. If it is determined in step S816 that the login authority is not legal, step S824 is executed, and the target account is not allowed to login to the application server.
The virtual resource transfer method is described below with reference to fig. 6. As shown in fig. 6, after the user 1 logs in the blockchain in step S602, the target virtual resource is uploaded, and the target virtual resource is sent to the application server in step S604 for verification, and after the verification of the application server is passed, a message for passing the verification is sent to the user 1 in step S606. User 1 stores the target virtual resource in the blockchain and generates a key, through step S608, and then transmits the key to the target user, through step S610. After the target user receives the key, the key is authenticated by step S612. In the case that the authentication is passed, the login right to login to the application server is acquired through step S614, and the application server is logged in through step S616.
According to still another aspect of the embodiment of the present invention, there is also provided a virtual resource transferring apparatus for implementing the above virtual resource transferring method, as shown in fig. 9, the apparatus including:
(1) The obtaining unit 902 is configured to obtain, by using a blockchain, a virtual resource allocation request, where the virtual resource allocation request carries a resource identifier of a target virtual resource to be transferred on the blockchain, account information of a target account for obtaining the target virtual resource, and a transfer state condition for indicating execution of transferring the target virtual resource;
(2) A generating unit 904, configured to generate a key matched with the target virtual resource on the blockchain in response to the virtual resource allocation request, and send the key to the target account;
(3) And a notification unit 906, configured to notify the target account that the target virtual resource is transferred using the key acquisition when the transfer state condition is reached.
Alternatively, the virtual resource transferring apparatus may be applied to, but not limited to, a scenario of inheriting a virtual resource. Such as transferring game account resources, applying virtual assets, etc.
The target virtual resource may be, but is not limited to, a virtual asset in the virtual world, such as account password information, account number level, whether a member, a member level, role information in an account number, role level, equipment, experience value, pet, prop, etc.
The following will describe an example of transferring game account resources. The target virtual asset is an account number and a password of a game, the resource identifier is a block identifier of a blockchain in which the account number and the password of the game are stored, and the transfer state condition of the resource is one month.
Logging in the blockchain through the registered packaged password of the blockchain, and obtaining a virtual resource allocation request. The virtual resource allocation request carries an account number and a password of the game to be transferred and a list-taking identifier of a blockchain in which the account number and the password are stored. And responding to the virtual resource allocation request, generating a key corresponding to the account password of the game and the stored block identifier on the blockchain, and sending the key to a target account needing to inherit the account password of the game. After one month, the transfer state condition is reached, and a notification message is automatically generated to notify the target account number to acquire the account number and the password of the game by using the secret key.
It should be noted that, through the above device, the virtual resource may be stored in the blockchain, and after the transfer state condition is reached, the target account is notified to obtain the target virtual resource, so as to ensure the security of the virtual resource. Meanwhile, the transfer of the virtual resource is controlled by adopting the blockchain, so that the virtual resource can be transferred under the condition that the transfer state condition of the virtual resource is achieved, the repeated utilization of the virtual resource is realized, the utilization rate of the virtual resource is improved, and the waste of the virtual resource is avoided.
Optionally, obtaining the virtual resource allocation request through the blockchain includes: acquiring a target virtual resource uploaded to a block chain; in the blockchain, obtaining a transfer state parameter configured for a target virtual resource, wherein the transfer state parameter comprises: the transfer state conditions and account information of the target account number at least comprise: transfer time; and generating a virtual resource allocation request according to the transfer state parameter.
Alternatively, the transfer time may be a time period or a time point. For example, the target virtual resource is transferred after one month, or at a certain point in time, which is desirable.
For example, the description will be continued with reference to the case of transferring game account resources described above. As shown in fig. 3, when transferring the account number of the game, the account number 1 to be transferred is selected, and the target account number is input as a mobile phone number, and the transfer time is specified to be 6 am of 24 th 4 th 2018. After clicking the ok button, it is determined that a virtual resource allocation request is generated. And after the transfer time is reached, sending a key matched with the target virtual resource to the target account.
Optionally, generating a key on the blockchain that matches the target virtual resource in response to the virtual resource allocation request includes: and generating a key according to the account information of the target virtual resource and the transfer state condition of the target account.
Alternatively, the key may be any combination of characters, or a combination of characters and codes, or the like.
For example, the description will be continued with reference to the case of transferring game account resources described above. If account 1 needs to be transferred, a number that needs to be matched with account 1 to be transferred is obtained, as in 1001. And then acquiring account information of the target account, wherein the account information can be number information corresponding to the account, such as 1002, and acquiring transfer state conditions of transfer, such as 20180101, which can be expressed by time. The key is obtained from the above information and may be represented in three-segment form, for example: 1001200801011002.
Optionally, obtaining the target virtual resource uploaded to the blockchain includes: the obtaining the target virtual resource uploaded to the blockchain comprises the following steps: registering a registration account for transferring the target virtual resource on the blockchain; acquiring a target virtual resource uploaded by a registered account; sending a verification request to an application system server using the target virtual resource; and under the condition that the verification result returned by the application system server indicates that the target virtual resource is an effective resource, storing the target virtual resource into the blockchain according to the format of the key value pair.
For example, the description will be continued with reference to the case of transferring game account resources described above. Before uploading the account passwords of the game to the blockchain, the account numbers and the passwords for logging in the blockchain need to be registered. The blockchain is logged in through the registered account number and the password. Meanwhile, before the account passwords of the game are stored in the blockchain, verification is needed to be carried out on the target virtual resources so as to prevent the target virtual resources from not existing. During verification, a verification request is sent to an application system server of the game, a verification result returned by the application system server is received, and the account password of the game is stored in the blockchain only when the verification result indicates that the account password of the game is an effective resource.
Alternatively, when the account number and password of the game are stored in the blockchain, the account number and password of the game may be stored in the blockchain in a key-value pair manner.
Optionally, in the case that the transfer state condition is reached, notifying the target account of the transferred target virtual resource using the key acquisition includes: determining that a transition state condition is reached in the case that the transition time is reached; automatically generating a notification message under the condition that a transfer state condition is reached, wherein the notification message is used for notifying a target account to acquire a transferred target virtual resource by using a secret key; and sending the notification message to the target account number according to the notification mode indicated in the transfer state parameter.
Alternatively, the notification message may be any message that may carry a key. For example, it may be a mail message, a short message, a conversation message, or other form of alert message, etc.
For example, the description will be continued with reference to the case of transferring game account resources described above. As shown in fig. 4, since the target account is a mobile phone number, when sending a notification message to the target account, the notification message is a short message. It can be seen that the short message notification message of the terminal of the receiving end has a notification message in the form of a short message, and the notification message carries key information.
Alternatively, after the virtual resource allocation request is obtained through the blockchain, there may be two cases:
(1) Adjusting the target virtual resource from the running state to the freezing state, wherein the target virtual resource is allowed to be modified in the running state, and the target virtual resource is forbidden to be modified in the freezing state; after notifying the target account that the target virtual resource is transferred by using the key acquisition, and under the condition that the target account acquires the target virtual resource, the target virtual resource is restored to the running state.
For example, the description will be continued with reference to the case of transferring game account resources described above. After the account passwords of the game are stored in the blockchain, the account passwords of the game are adjusted to be in a frozen state. In the frozen state, the account number and password of the game cannot be logged in the game. And after the notification message is sent to the target account, the account password of the game is restored to the running state, and after the game is restored to the running state, the account password of the game can be logged in the game.
(2) Maintaining the target virtual resource in an operational state, wherein the target virtual resource is allowed to be modified in the operational state; informing the target account of the transferred target virtual resource using the key acquisition comprises: and notifying the target account number to acquire the modified target virtual resource by using the key.
For example, the description will be continued with reference to the case of transferring game account resources described above. After the account number of the game is deposited into the blockchain, the account number of the game may also be used. In the process, if the game information protected by the account number and password of the game is changed, after the target account number obtains the account number and password of the game, the game information protected by the inherited account number and password of the game is changed game information.
Optionally, after notifying the target account that the target virtual resource is transferred using the key acquisition, the method further includes: the target account obtains a key; the target account authenticates the secret key through the block chain; under the condition that the authenticated secret key is determined to be a legal secret key, the target account number obtains login permission for logging in the application system server, wherein the target virtual resource is used in the application system server; the target account number logs in the application system server by using the login authority, and continues to use the target virtual resource in the application system server.
For example, the description will be continued with reference to the case of transferring game account resources described above. After the target account obtains the secret key, the secret key can be authenticated through the blockchain, after the authentication is successful, the target account can obtain the account number and the password for logging in the game through the secret key, and log in the game according to the obtained account number password.
According to the embodiment, a virtual resource allocation request is obtained through a blockchain, wherein the virtual resource allocation request carries a resource identifier of a target virtual resource to be transferred on the blockchain, account information of a target account for obtaining the target virtual resource and a transfer state condition for indicating execution of transferring the target virtual resource; responding to the virtual resource allocation request, generating a key matched with the target virtual resource on the blockchain, and sending the key to the target account; under the condition that the transfer state condition is reached, the method for notifying the target account to acquire the transferred target virtual resource by using the secret key is adopted, so that the virtual resource can be stored on the blockchain, and after the transfer state condition is reached, the target account is notified to acquire the target virtual resource, and the safety of the virtual resource is ensured. Meanwhile, the transfer of the virtual resource is controlled by adopting the blockchain, so that the virtual resource can be transferred under the condition that the transfer state condition of the virtual resource is achieved, the repeated utilization of the virtual resource is realized, the utilization rate of the virtual resource is improved, and the waste of the virtual resource is avoided.
As an alternative embodiment, the first acquiring unit 902 includes:
(1) The first acquisition module is used for acquiring target virtual resources uploaded to the blockchain;
(2) The second obtaining module is configured to obtain, in the blockchain, a transfer state parameter configured for the target virtual resource, where the transfer state parameter includes: the transfer state conditions and account information of the target account number at least comprise: transfer time;
(3) And the first generation module is used for generating a virtual resource allocation request according to the transfer state parameters.
Alternatively, the transfer time may be a time period or a time point. For example, the target virtual resource is transferred after one month, or at a certain point in time, which is desirable.
For example, the description will be continued with reference to the case of transferring game account resources described above. As shown in fig. 3, when transferring the account number of the game, the account number 1 to be transferred is selected, and the target account number is input as a mobile phone number, and the transfer time is specified to be 6 am of 24 th 4 th 2018. After clicking the ok button, it is determined that a virtual resource allocation request is generated. And after the transfer time is reached, sending a key matched with the target virtual resource to the target account.
According to the embodiment, the key matched with the target virtual resource is sent to the target account after the transfer time is reached, so that the time for sending the key can be regulated, the security of virtual resource transfer is improved, and meanwhile, the flexibility of virtual resource transfer is improved.
As an alternative embodiment, the generating unit includes:
(1) And the second generation module is used for generating a secret key according to the target virtual resource, the account information of the target account and the transfer state condition.
Alternatively, the key may be any combination of characters, or a combination of characters and codes, or the like.
For example, the description will be continued with reference to the case of transferring game account resources described above. If account 1 needs to be transferred, a number that needs to be matched with account 1 to be transferred is obtained, as in 1001. And then acquiring account information of the target account, wherein the account information can be number information corresponding to the account, such as 1002, and acquiring transfer state conditions of transfer, such as 20180101, which can be expressed by time. The key is obtained from the above information and may be represented in three-segment form, for example: 1001200801011002.
According to the method and the device, the key is generated according to the account information set transfer state condition of the target account, so that the accuracy of generating the key can be improved, the account information of the target account is further acquired according to the key, and the security of virtual resource transfer is improved.
As an alternative embodiment, the first obtaining module includes:
(1) The booklet injection module is used for registering a registration account number for transferring the target virtual resource on the blockchain;
(2) The acquisition sub-module is used for acquiring the target virtual resource uploaded by the registration account;
(3) The sending submodule is used for sending a verification request to an application system server using the target virtual resource;
(4) And the storage sub-module is used for storing the target virtual resource into the blockchain according to the format of the key value pair under the condition that the verification result returned by the application system server indicates that the target virtual resource is an effective resource.
For example, the description will be continued with reference to the case of transferring game account resources described above. Before uploading the account passwords of the game to the blockchain, the account numbers and the passwords for logging in the blockchain need to be registered. The blockchain is logged in through the registered account number and the password. Meanwhile, before the account passwords of the game are stored in the blockchain, verification is needed to be carried out on the target virtual resources so as to prevent the target virtual resources from not existing. During verification, a verification request is sent to an application system server of the game, a verification result returned by the application system server is received, and the account password of the game is stored in the blockchain only when the verification result indicates that the account password of the game is an effective resource.
Alternatively, when the account number and password of the game are stored in the blockchain, the account number and password of the game may be stored in the blockchain in a key-value pair manner.
According to the embodiment, the verification request is sent to the application system server, and the target virtual resource is stored in the blockchain under the condition that the verification result indicating that the target virtual resource is the effective resource is received, so that the security of virtual resource transfer is ensured, and meanwhile, the accuracy of the virtual resource is also ensured.
As an alternative embodiment, the notification unit 906 includes:
(1) The determining module is used for determining that the transfer state condition is reached under the condition that the transfer time is reached;
(2) The third generation module is used for automatically generating a notification message under the condition that the transfer state condition is reached, wherein the notification message is used for notifying the target account to acquire the transferred target virtual resource by using the secret key;
(3) And the sending module is used for sending the notification message to the target account according to the notification mode indicated in the transfer state parameter.
Alternatively, the notification message may be any message that may carry a key. For example, it may be a mail message, a short message, a conversation message, or other form of alert message, etc.
For example, the description will be continued with reference to the case of transferring game account resources described above. As shown in fig. 4, since the target account is a mobile phone number, when sending a notification message to the target account, the notification message is a short message. It can be seen that the short message notification message of the terminal of the receiving end has a notification message in the form of a short message, and the notification message carries key information.
According to the method and the device, when the transfer state condition is reached, the notification message is automatically generated, so that the target account can be notified of the target virtual resource to be transferred, the virtual resource transfer safety is improved, and meanwhile, the virtual resource transfer efficiency is also improved.
As an alternative embodiment, the apparatus further comprises:
(1) An adjusting unit, configured to adjust the target virtual resource from an operating state to a frozen state after the virtual resource allocation request is acquired through the blockchain, where the target virtual resource is allowed to be modified in the operating state, and the target virtual resource is prohibited from being modified in the frozen state;
(2) And the recovery unit is used for recovering the target virtual resource to the running state after informing the target account of the target virtual resource transferred by using the key acquisition and under the condition that the target account acquires the target virtual resource.
For example, the description will be continued with reference to the case of transferring game account resources described above. After the account passwords of the game are stored in the blockchain, the account passwords of the game are adjusted to be in a frozen state. In the frozen state, the account number and password of the game cannot be logged in the game. And after the notification message is sent to the target account, the account password of the game is restored to the running state, and after the game is restored to the running state, the account password of the game can be logged in the game.
According to the embodiment, the target virtual resource is adjusted to be in the frozen state, so that the content of the target virtual resource can be ensured not to be modified, and the security of transferring the target virtual resource is improved.
As an alternative to this embodiment of the present invention,
(1) The device further comprises: a holding unit configured to hold a target virtual resource in an operating state after acquiring a virtual resource allocation request through a blockchain, wherein the target virtual resource is allowed to be modified in the operating state;
(2) The notification unit 906 includes: and the notification module is used for notifying the target account to acquire the modified target virtual resource by using the key.
For example, the description will be continued with reference to the case of transferring game account resources described above. After the account number of the game is deposited into the blockchain, the account number of the game may also be used. In the process, if the game information protected by the account number and password of the game is changed, after the target account number obtains the account number and password of the game, the game information protected by the inherited account number and password of the game is changed game information.
By the embodiment, the target virtual resource is kept in the running state, so that certain loss caused by suspension of the target virtual resource can be avoided. The security of the target virtual resource is improved, and the normal operation of the target media resource is ensured.
The virtual resource transfer method described above is described below with reference to fig. 5. As shown in fig. 5, step S502 is first executed to register an account number and a password for logging in the blockchain, and log in the blockchain according to the account number and the password, then step S504 is executed to upload the target virtual resource, and send a verification request to the application server to verify the target virtual resource. If the verification is passed, step S508 is performed to store the target virtual resource, and then step S510 is performed to generate a key and send the key to the target account. After the target account obtains the key, the key is used to obtain the login authority of the login application system server, the blockchain verifies whether the key is legal or not through the step S512, and under the legal condition, the step S514 is executed to grant the login authority of the target account to login the application system server. In this process, if the verification target virtual resource does not pass, step S516 is performed without storing the target virtual resource, and if the key is not legal, step S518 is performed without granting login authority.
The virtual resource transfer method is described below with reference to fig. 6. As shown in fig. 6, after the user 1 logs in the blockchain in step S602, the target virtual resource is uploaded, and the target virtual resource is sent to the application server in step S604 for verification, and after the verification of the application server is passed, a message for passing the verification is sent to the user 1 in step S606. User 1 stores the target virtual resource in the blockchain and generates a key, through step S608, and then transmits the key to the target user, through step S610. After the target user receives the key, the key is authenticated by step S612. In the case that the authentication is passed, the login right to login to the application server is acquired through step S614, and the application server is logged in through step S616.
According to still another aspect of the embodiment of the present invention, there is also provided a virtual resource transferring apparatus for implementing the above virtual resource transferring method, as shown in fig. 10, the apparatus including:
(1) A first obtaining unit 1002, configured to obtain a key that is generated on the blockchain and matches with a target virtual resource to be transferred;
(2) A receiving unit 1004 configured to receive a notification message, where the notification message is configured to indicate that a migration status condition of the execution target virtual resource has been reached;
(3) A second obtaining unit 1006, configured to obtain the transferred target virtual resource using the key when receiving the notification message.
Alternatively, the virtual resource transferring apparatus may be applied to, but not limited to, a scenario of inheriting a virtual resource. Such as transferring game account resources, applying virtual assets, etc.
The target virtual resource may be, but is not limited to, a virtual asset in the virtual world, such as account password information, account number level, whether a member, a member level, role information in an account number, role level, equipment, experience value, pet, prop, etc.
The following will describe an example of transferring game account resources. The target virtual asset is an account number and a password of a game, the resource identifier is a block identifier of a blockchain in which the account number and the password of the game are stored, and the transfer state condition of the resource is one month.
Logging in the blockchain through the registered packaged password of the blockchain, and obtaining a virtual resource allocation request. The virtual resource allocation request carries an account number and a password of the game to be transferred and a list-taking identifier of a blockchain in which the account number and the password are stored. And responding to the virtual resource allocation request, generating a key corresponding to the account password of the game and the stored block identifier on the blockchain, and sending the key to a target account needing to inherit the account password of the game. After one month, the transfer state condition is reached, and a notification message is automatically generated to notify the target account number to acquire the account number and the password of the game by using the secret key.
By the method, the virtual resources can be stored on the blockchain, and after the transfer state condition is reached, the target account is notified to acquire the target virtual resources, so that the safety of the virtual resources is ensured. Meanwhile, the transfer of the virtual resource is controlled by adopting the blockchain, so that the virtual resource can be transferred under the condition that the transfer state condition of the virtual resource is achieved, the repeated utilization of the virtual resource is realized, the utilization rate of the virtual resource is improved, and the waste of the virtual resource is avoided.
Optionally, after receiving the notification message, the method further includes: authenticating the key through the blockchain; under the condition that the authenticated secret key is determined to be a legal secret key, acquiring login permission for logging in an application system server, wherein a target virtual resource is used for being used in the application system server; and logging in the application system server by using the login authority, and using the target virtual resource in the application system server.
For example, the description will be continued with reference to the case of transferring game account resources described above. And after the target account receives the secret key, authenticating the secret key through the blockchain, acquiring the account password of the game under the condition that the authentication is passed, and logging in the application system server by using the account password of the game.
Optionally, obtaining login rights for logging in the application server includes one of: inputting a secret key into a login interface to obtain login rights; inputting a secret key into a blockchain, and acquiring login information from the blockchain, wherein the login information is used for acquiring login rights; and inputting a secret key into the authority authentication interface to acquire login authority.
For example, the description will be continued with reference to the case of transferring game account resources described above. When the login right is acquired, a key can be input in the login interface, and after the key is input, the user can directly jump to the game without inputting the account number and password of the game. Or after the key is input in the blockchain, the account password information of the login game is obtained under the condition that the key is authenticated and the authentication passes, or after the key is input in the authority authentication interface, the password of the login game can be modified under the condition that the authentication passes.
Optionally, after the target virtual resource is obtained using the key, two cases are also included.
(1) And restoring the target virtual resource from the frozen state to the running state, wherein the target virtual resource is allowed to be modified in the running state, and the target virtual resource is forbidden to be modified in the frozen state.
For example, the description will be continued with reference to the case of transferring game account resources described above. After the account passwords of the game are stored in the blockchain, the account passwords of the game are adjusted to be in a frozen state. In the frozen state, the account number and password of the game cannot be logged in the game. And after the notification message is sent to the target account, the account password of the game is restored to the running state, and after the game is restored to the running state, the account password of the game can be logged in the game.
(2) And acquiring the modified target virtual resource by using the key.
For example, the description will be continued with reference to the case of transferring game account resources described above. After the account number of the game is deposited into the blockchain, the account number of the game may also be used. In the process, if the game information protected by the account number and password of the game is changed, after the target account number obtains the account number and password of the game, the game information protected by the inherited account number and password of the game is changed game information.
According to the embodiment, a virtual resource allocation request is obtained through a blockchain, wherein the virtual resource allocation request carries a resource identifier of a target virtual resource to be transferred on the blockchain, account information of a target account for obtaining the target virtual resource and a transfer state condition for indicating execution of transferring the target virtual resource; responding to the virtual resource allocation request, generating a key matched with the target virtual resource on the blockchain, and sending the key to the target account; under the condition that the transfer state condition is reached, the method for notifying the target account to acquire the transferred target virtual resource by using the secret key is adopted, so that the virtual resource can be stored on the blockchain, and after the transfer state condition is reached, the target account is notified to acquire the target virtual resource, and the safety of the virtual resource is ensured. Meanwhile, the transfer of the virtual resource is controlled by adopting the blockchain, so that the virtual resource can be transferred under the condition that the transfer state condition of the virtual resource is achieved, the repeated utilization of the virtual resource is realized, the utilization rate of the virtual resource is improved, and the waste of the virtual resource is avoided.
As an alternative embodiment, the apparatus further comprises:
(1) An authentication unit for authenticating the key through the blockchain after receiving the notification message;
(2) A third obtaining unit, configured to obtain a login right for logging in the application system server when the authenticated key is determined to be a legal key, where the target virtual resource is used for use in the application system server;
(3) And the login unit is used for logging in the application system server by using login rights and using the target virtual resource in the application system server.
For example, the description will be continued with reference to the case of transferring game account resources described above. And after the target account receives the secret key, authenticating the secret key through the blockchain, acquiring the account password of the game under the condition that the authentication is passed, and logging in the application system server by using the account password of the game.
According to the embodiment, the key is authenticated, under the conditions of the key and the issuing amount, the login permission of the login application system server is obtained, and the login application system server is logged in, so that the security of virtual resource transfer is ensured.
As an alternative embodiment, the third acquisition unit includes one of:
(1) The first acquisition module is used for inputting a secret key into the login interface and acquiring login rights;
(2) The second acquisition module is used for inputting a secret key in the blockchain and acquiring login information from the blockchain, wherein the login information is used for acquiring login rights;
(3) And the third acquisition module is used for inputting a secret key into the authority authentication interface and acquiring login authority.
For example, the description will be continued with reference to the case of transferring game account resources described above. When the login right is acquired, a key can be input in the login interface, and after the key is input, the user can directly jump to the game without inputting the account number and password of the game. Or after the key is input in the blockchain, the account password information of the login game is obtained under the condition that the key is authenticated and the authentication passes, or after the key is input in the authority authentication interface, the password of the login game can be modified under the condition that the authentication passes.
According to the embodiment, the login permission is obtained through the method, so that the flexibility of obtaining the login permission is improved while the security of virtual resource transfer is ensured.
As an alternative embodiment, the apparatus further comprises:
(1) And the recovery unit is used for recovering the obtained target virtual resource configured with the transfer permission from the frozen state to the running state after the target virtual resource is obtained by using the secret key, wherein the target virtual resource is allowed to be modified in the running state, and the target virtual resource is forbidden to be modified in the frozen state.
For example, the description will be continued with reference to the case of transferring game account resources described above. After the account passwords of the game are stored in the blockchain, the account passwords of the game are adjusted to be in a frozen state. In the frozen state, the account number and password of the game cannot be logged in the game. And after the notification message is sent to the target account, the account password of the game is restored to the running state, and after the game is restored to the running state, the account password of the game can be logged in the game.
According to the embodiment, the target virtual resource is adjusted to be in the frozen state, so that the content of the target virtual resource can be ensured not to be modified, and the security of transferring the target virtual resource is improved.
As an alternative embodiment, the apparatus further comprises:
(1) And the fourth modification unit is used for acquiring the modified target virtual resource by using the key after acquiring the target virtual resource by using the key.
For example, the description will be continued with reference to the case of transferring game account resources described above. After the account number of the game is deposited into the blockchain, the account number of the game may also be used. In the process, if the game information protected by the account number and password of the game is changed, after the target account number obtains the account number and password of the game, the game information protected by the inherited account number and password of the game is changed game information.
By the embodiment, the target virtual resource is kept in the running state, so that certain loss caused by suspension of the target virtual resource can be avoided. The security of the target virtual resource is improved, and the normal operation of the target media resource is ensured.
Alternatively, the virtual resource transfer method described above is described below with reference to fig. 8. As shown in fig. 8, after obtaining the key through the target account in step S802, step S804 is performed to authenticate the key, and step S806 is performed to determine whether the key is legal. In the case of legal keys, there are three cases. The key can be directly input on the interface of the login application server through step S808 and the login application server, or the key can be input in the blockchain through step S810 to obtain the account password for logging in the reference system server, or the key can be input on the authority authentication interface through step S812 to modify the password of the login application server. After any one of the above three steps is performed, step S814 is performed to grant login rights. Then, according to step S816, it is determined whether the login authority is legal. If the login authority is legal, step S818 is executed to log in the application server, and step S820 is executed to notify the login account in the blockchain that the target is used for logging in to the application server. In this process, if step S806 determines that the key is not legal, step S822 is performed, and the key cannot be used. If it is determined in step S816 that the login authority is not legal, step S824 is executed, and the target account is not allowed to login to the application server.
The virtual resource transfer method is described below with reference to fig. 6. As shown in fig. 6, after the user 1 logs in the blockchain in step S602, the target virtual resource is uploaded, and the target virtual resource is sent to the application server in step S604 for verification, and after the verification of the application server is passed, a message for passing the verification is sent to the user 1 in step S606. User 1 stores the target virtual resource in the blockchain and generates a key, through step S608, and then transmits the key to the target user, through step S610. After the target user receives the key, the key is authenticated by step S612. In the case that the authentication is passed, the login right to login to the application server is acquired through step S614, and the application server is logged in through step S616.
According to a further aspect of embodiments of the present invention, there is also provided an electronic device for implementing the above-described virtual resource transfer method, as shown in fig. 11, the electronic device comprising a memory in which a computer program is stored and a processor arranged to perform the steps of any of the method embodiments described above by means of the computer program.
Alternatively, in this embodiment, the electronic apparatus may be located in at least one network device of a plurality of network devices of the computer network.
Alternatively, in the present embodiment, the above-described processor may be configured to execute the following steps by a computer program:
S1, obtaining a virtual resource allocation request through a blockchain, wherein the virtual resource allocation request carries a resource identifier of a target virtual resource to be transferred on the blockchain, account information of a target account for obtaining the target virtual resource and a transfer state condition for indicating execution of transfer of the target virtual resource;
s2, responding to the virtual resource allocation request, generating a key matched with the target virtual resource on the blockchain, and sending the key to the target account;
And S3, notifying the target account to acquire the transferred target virtual resource by using the key under the condition that the transfer state condition is reached.
Alternatively, in the present embodiment, the above-described processor may be configured to execute the following steps by a computer program:
S1, acquiring a key which is generated on a blockchain and is matched with a target virtual resource to be transferred;
s2, receiving a notification message, wherein the notification message is used for indicating that the target virtual resource reaches a transfer state condition for executing transfer, and the target virtual resource is configured with transfer permission under the condition that the transfer state condition is reached;
s3, obtaining the target virtual resource by using the secret key.
Alternatively, it will be understood by those skilled in the art that the structure shown in fig. 11 is only schematic, and the electronic device may also be a terminal device such as a smart phone (e.g. an Android phone, an iOS phone, etc.), a tablet computer, a palm computer, and a Mobile internet device (Mobile INTERNET DEVICES, MID), a PAD, etc. Fig. 11 is not limited to the structure of the electronic device. For example, the electronic device may also include more or fewer components (e.g., network interfaces, display devices, etc.) than shown in FIG. 11, or have a different configuration than shown in FIG. 11.
The memory 1102 may be used to store software programs and modules, such as program instructions/modules corresponding to the virtual resource transfer method and apparatus in the embodiments of the present invention, and the processor 1104 executes the software programs and modules stored in the memory 1102 to perform various functional applications and data processing, i.e., implement the virtual resource transfer method described above. Memory 1102 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, memory 1102 may further include memory located remotely from processor 1104, which may be connected to the terminal via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission device 1106 is used to receive or transmit data via a network. Specific examples of the network described above may include wired networks and wireless networks. In one example, the transmission device 1106 includes a network adapter (Network Interface Controller, NIC) that may be connected to other network devices and routers via a network cable to communicate with the internet or a local area network. In one example, the transmission device 1106 is a Radio Frequency (RF) module for communicating wirelessly with the internet.
Specifically, the memory 1102 is configured to store information such as a target virtual resource and a key.
According to yet another aspect of an embodiment of the present invention, there is also provided a storage medium. The storage medium has stored therein a computer program, wherein the computer program is arranged to perform the steps of any of the method embodiments described above when run.
Alternatively, in the present embodiment, the above-described storage medium may be configured to store a computer program for performing the steps of:
S1, obtaining a virtual resource allocation request through a blockchain, wherein the virtual resource allocation request carries a resource identifier of a target virtual resource to be transferred on the blockchain, account information of a target account for obtaining the target virtual resource and a transfer state condition for indicating execution of transfer of the target virtual resource;
s2, responding to the virtual resource allocation request, generating a key matched with the target virtual resource on the blockchain, and sending the key to the target account;
And S3, notifying the target account to acquire the transferred target virtual resource by using the key under the condition that the transfer state condition is reached.
Alternatively, in the present embodiment, the above-described storage medium may be configured to store a computer program for performing the steps of:
s1, acquiring target virtual resources uploaded to a block chain;
S2, acquiring a transfer state parameter configured for the target virtual resource in the blockchain, wherein the transfer state parameter comprises the following components: the transfer state conditions and account information of the target account number at least comprise: transfer time;
s3, generating a virtual resource allocation request according to the transfer state parameters.
Alternatively, in the present embodiment, the above-described storage medium may be configured to store a computer program for performing the steps of:
S1, generating a secret key according to account information of a target virtual resource and transfer state conditions of the target account.
Alternatively, in the present embodiment, the above-described storage medium may be configured to store a computer program for performing the steps of:
s1, registering a registration account for transferring a target virtual resource on a blockchain;
S2, acquiring target virtual resources uploaded by the registered account;
s3, sending a verification request to an application system server using the target virtual resource;
And S4, storing the target virtual resource into the blockchain according to the format of the key value pair under the condition that the verification result returned by the application system server indicates that the target virtual resource is an effective resource.
Alternatively, in the present embodiment, the above-described storage medium may be configured to store a computer program for performing the steps of:
S1, determining that a transfer state condition is reached under the condition that the transfer time is reached;
s2, under the condition that a transfer state condition is reached, automatically generating a notification message, wherein the notification message is used for notifying a target account to acquire a transferred target virtual resource by using a secret key;
And S3, sending the notification message to the target account according to the notification mode indicated in the transfer state parameter.
Alternatively, in the present embodiment, the above-described storage medium may be configured to store a computer program for performing the steps of:
S1, after obtaining a virtual resource allocation request through a block chain, the method further comprises the following steps: adjusting the target virtual resource from the running state to the freezing state, wherein the target virtual resource is allowed to be modified in the running state, and the target virtual resource is forbidden to be modified in the freezing state;
S2, after informing the target account of the target virtual resource transferred by using the key acquisition, and under the condition that the target account acquires the target virtual resource, the target virtual resource is restored to the running state.
Alternatively, in the present embodiment, the above-described storage medium may be configured to store a computer program for performing the steps of:
s1, after obtaining a virtual resource allocation request through a block chain, the method further comprises the following steps: maintaining the target virtual resource in an operational state, wherein the target virtual resource is allowed to be modified in the operational state;
S2, informing the target account of the target virtual resource transferred by using the key acquisition comprises the following steps: and notifying the target account number to acquire the modified target virtual resource by using the key.
Alternatively, in the present embodiment, the above-described storage medium may be configured to store a computer program for performing the steps of:
S1, a target account acquires a secret key;
s2, authenticating the secret key by the target account through a block chain;
s3, under the condition that the authenticated secret key is determined to be a legal secret key, the target account number obtains login permission for logging in the application system server, wherein the target virtual resource is used in the application system server;
S4, the target account logs in the application system server by using the login permission, and the target virtual resource is continuously used in the application system server.
Alternatively, in the present embodiment, the above-described storage medium may be configured to store a computer program for performing the steps of:
S1, acquiring a key which is generated on a blockchain and is matched with a target virtual resource to be transferred;
s2, receiving a notification message, wherein the notification message is used for indicating that the target virtual resource reaches a transfer state condition for executing transfer, and the target virtual resource is configured with transfer permission under the condition that the transfer state condition is reached;
s3, obtaining the target virtual resource by using the secret key.
Alternatively, in the present embodiment, the above-described storage medium may be configured to store a computer program for performing the steps of:
S1, authenticating a secret key through a block chain;
S2, under the condition that the authenticated secret key is determined to be a legal secret key, acquiring login permission for logging in an application system server, wherein a target virtual resource is used for being used in the application system server;
S3, logging in the application system server by using the login authority, and using the target virtual resource in the application system server.
Alternatively, in the present embodiment, the above-described storage medium may be configured to store a computer program for performing the steps of:
S1, inputting a secret key into a login interface to acquire login rights;
S2, inputting a secret key into the blockchain, and acquiring login information from the blockchain, wherein the login information is used for acquiring login rights;
S3, inputting a secret key into the authority authentication interface to acquire login authority.
Alternatively, in the present embodiment, the above-described storage medium may be configured to store a computer program for performing the steps of:
s1, recovering the obtained target virtual resource configured with the transfer permission from a frozen state to an operating state, wherein the target virtual resource is allowed to be modified in the operating state, and the target virtual resource is forbidden to be modified in the frozen state.
Alternatively, in the present embodiment, the above-described storage medium may be configured to store a computer program for performing the steps of:
s1, acquiring the modified target virtual resource by using the secret key.
Alternatively, in this embodiment, it will be understood by those skilled in the art that all or part of the steps in the methods of the above embodiments may be performed by a program for instructing a terminal device to execute the steps, where the program may be stored in a computer readable storage medium, and the storage medium may include: flash disk, read-Only Memory (ROM), random-access Memory (Random Access Memory, RAM), magnetic disk or optical disk, etc.
The foregoing embodiment numbers of the present invention are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
The integrated units in the above embodiments may be stored in the above-described computer-readable storage medium if implemented in the form of software functional units and sold or used as separate products. Based on such understanding, the technical solution of the present invention may be embodied in essence or a part contributing to the prior art or all or part of the technical solution in the form of a software product stored in a storage medium, comprising several instructions for causing one or more computer devices (which may be personal computers, servers or network devices, etc.) to perform all or part of the steps of the method of the various embodiments of the present invention.
In the foregoing embodiments of the present invention, the descriptions of the embodiments are emphasized, and for a portion of this disclosure that is not described in detail in this embodiment, reference is made to the related descriptions of other embodiments.
In several embodiments provided by the present application, it should be understood that the disclosed client may be implemented in other manners. The above-described embodiments of the apparatus are merely exemplary, and are merely a logical functional division, and there may be other manners of dividing the apparatus in actual implementation, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be through some interfaces, units or modules, or may be in electrical or other forms.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed over a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present invention may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The foregoing is merely a preferred embodiment of the present invention and it should be noted that modifications and adaptations to those skilled in the art may be made without departing from the principles of the present invention, which are intended to be comprehended within the scope of the present invention.

Claims (15)

1. A virtual resource transfer method, comprising:
Registering a registration account for transferring the virtual resource of the target game on the blockchain;
Acquiring the target game virtual resource uploaded by the registration account;
Sending a verification request to an application system server using the target game virtual resource;
Storing the target game virtual resource into the blockchain according to a key value pair format under the condition that a verification result returned by the application system server indicates that the target game virtual resource is an effective resource;
Obtaining a game virtual resource allocation request through the blockchain, wherein the game virtual resource allocation request carries a resource identifier of a target game virtual resource to be transferred on the blockchain, account information of a target account for obtaining the target game virtual resource and transfer time for indicating execution of transferring the target game virtual resource, and the target account is other accounts designated by the registered account;
Responding to the game virtual resource allocation request, generating a key matched with the target game virtual resource on the blockchain according to the account information of the target account and the transfer time, and sending the key to the target account;
Automatically generating a notification message when the transfer time is reached, wherein the notification message is used for notifying the target account to acquire the transferred target game virtual resource by using the key;
Sending the notification message to the target account number according to a notification mode indicated in a transfer state parameter configured for the target game virtual resource;
After the game virtual resource allocation request is acquired through the blockchain, the method further comprises the following steps: adjusting the target game virtual resource from a running state to a frozen state, wherein the target game virtual resource is allowed to be modified in the running state, and the target game virtual resource is forbidden to be modified in the frozen state;
After the target account number is notified of the target game virtual resource transferred using the key acquisition, and in the case where the target account number acquires the target game virtual resource, the target game virtual resource is restored to the running state.
2. The method of claim 1, wherein the obtaining a game virtual resource allocation request via a blockchain comprises:
acquiring the target game virtual resource uploaded to the blockchain;
In the blockchain, the transfer state parameter is acquired, wherein the transfer state parameter comprises: the transfer time and account information of the target account;
and generating the game virtual resource allocation request according to the transfer state parameter.
3. The method of claim 1, further comprising, after said notifying said target account number of said target game virtual resource transferred using said key acquisition:
the target account number obtains the secret key;
the target account authenticates the secret key through the blockchain;
Under the condition that the authenticated secret key is determined to be a legal secret key, the target account number obtains login permission for logging in an application system server, wherein the target game virtual resource is used in the application system server;
and the target account logs in the application system server by utilizing the login permission, and continues to use the target game virtual resource in the application system server.
4. A virtual resource transfer method, characterized in that a registration account for transferring a virtual resource of a target game is registered on a blockchain;
Acquiring the target game virtual resource uploaded by the registration account;
Sending a verification request to an application system server using the target game virtual resource;
Storing the target game virtual resource into the blockchain according to a key value pair format under the condition that a verification result returned by the application system server indicates that the target game virtual resource is an effective resource;
Acquiring a resource identifier of a target game virtual resource to be transferred on the blockchain, wherein account information of a target account of the target game virtual resource and a secret key matched with the target game virtual resource to be transferred, which is generated on the blockchain by indicating transfer time for executing transfer of the target game virtual resource;
receiving an automatically generated notification message sent according to a notification mode indicated in a transfer state parameter configured for the target game virtual resource, wherein the notification message is used for indicating that the target game virtual resource has reached a transfer time for executing transfer, and the notification message is used for notifying a target account number of the target game virtual resource to acquire the transferred target game virtual resource by using the secret key, and the target game virtual resource is configured with transfer permission and modification permission under the condition that the transfer time is reached;
acquiring the target game virtual resource by using the secret key;
And restoring the obtained target game virtual resource configured with the transfer permission from a frozen state to a running state, wherein the target game virtual resource is allowed to be modified in the running state, and the target game virtual resource is forbidden to be modified in the frozen state.
5. The method of claim 4, further comprising, after the receiving the notification message:
Authenticating the key through the blockchain;
Under the condition that the authenticated secret key is determined to be a legal secret key, acquiring login permission for logging in an application system server, wherein the target game virtual resource is used for being used in the application system server;
And logging in the application system server by utilizing the login authority, and using the target game virtual resource in the application system server.
6. The method of claim 5, wherein the obtaining login rights for logging into the application server comprises one of:
Inputting the secret key in a login interface to acquire the login permission;
Inputting the secret key into the blockchain, and acquiring login information from the blockchain, wherein the login information is used for acquiring the login authority;
And inputting the secret key in a permission authentication interface to acquire the login permission.
7. The method of claim 4, further comprising, after the target game virtual resource is obtained using the key:
and acquiring the modified target game virtual resource by using the key.
8. A game virtual resource transfer device, comprising:
the booklet annotating module is used for registering a registration account number for transferring the virtual resources of the target game on the blockchain;
the acquisition sub-module is used for acquiring the target game virtual resources uploaded by the registration account;
a transmitting sub-module, configured to transmit a verification request to an application system server that uses the target game virtual resource;
The storage sub-module is used for storing the target game virtual resource into the blockchain according to a format of a key value pair under the condition that the verification result returned by the application system server indicates that the target game virtual resource is an effective resource;
An obtaining unit, configured to obtain a game virtual resource allocation request through the blockchain, where the game virtual resource allocation request carries a resource identifier of a target game virtual resource to be transferred on the blockchain, account information for obtaining a target account number of the target game virtual resource, and a transfer time for indicating to execute transfer of the target game virtual resource, where the target account number is another account number specified by the registered account number;
The generation unit is used for responding to the game virtual resource allocation request, generating a key matched with the target game virtual resource on the blockchain according to the account information of the target account and the transfer time and sending the key to the target account;
a notifying unit configured to notify the target account number of the target game virtual resource transferred using the key acquisition and allow modification of the target game virtual resource, in a case where the transfer time is reached;
The device is further configured to automatically generate a notification message when the transfer time is reached, where the notification message is used to notify the target account to acquire the transferred target game virtual resource using the key; sending the notification message to the target account number according to a notification mode indicated in a transfer state parameter configured for the target game virtual resource;
The apparatus further comprises: an adjustment unit configured to adjust the target game virtual resource from a running state to a frozen state after the game virtual resource allocation request is acquired through the blockchain, wherein the target game virtual resource is allowed to be modified in the running state, and the target game virtual resource is prohibited from being modified in the frozen state;
And the recovery unit is used for recovering the target game virtual resource to the running state after informing the target account number of the target game virtual resource transferred by using the key acquisition and under the condition that the target account number acquires the target game virtual resource.
9. The apparatus of claim 8, wherein the acquisition unit comprises:
The first acquisition module is used for acquiring the target game virtual resources uploaded to the blockchain;
a second obtaining module, configured to obtain the transfer state parameter in the blockchain, where the transfer state parameter includes: the transfer time and the account information of the target account number at least comprise: transfer time;
and the first generation module is used for generating the game virtual resource allocation request according to the transfer state parameters.
10. A game virtual resource transfer device is characterized in that,
The booklet annotating module is used for registering a registration account number for transferring the virtual resources of the target game on the blockchain;
the acquisition sub-module is used for acquiring the target game virtual resources uploaded by the registration account;
a transmitting sub-module, configured to transmit a verification request to an application system server that uses the target game virtual resource;
The storage sub-module is used for storing the target game virtual resource into the blockchain according to a format of a key value pair under the condition that the verification result returned by the application system server indicates that the target game virtual resource is an effective resource;
the first acquisition unit is used for acquiring resource identification of the target game virtual resource to be transferred on the blockchain, account information of a second account of the target game virtual resource and a secret key which is generated on the blockchain and is matched with the target game virtual resource to be transferred and used for indicating transfer time for executing transfer of the target game virtual resource;
A receiving unit, configured to receive an automatically generated notification message sent according to a notification manner indicated in a transition state parameter configured for the target game virtual resource, where the notification message is configured to indicate that the target game virtual resource has reached a transition time for executing a transition, and the notification message is configured to notify a target account number of the target game virtual resource that uses the key to obtain the target game virtual resource that is transitioned, and in a case that the transition time is reached, the target game virtual resource is configured with a transition permission and a modification permission;
a second obtaining unit configured to obtain the target game virtual resource using the key;
The apparatus further comprises: and a restoring unit configured to restore the acquired target game virtual resource configured with the transfer authority from a frozen state to a running state after the target game virtual resource is acquired using the key, wherein the target game virtual resource is allowed to be modified in the running state, and the target game virtual resource is prohibited from being modified in the frozen state.
11. The apparatus of claim 10, wherein the apparatus further comprises:
an authentication unit for authenticating the key through the blockchain after the reception of the notification message;
a third obtaining unit, configured to obtain a login right for logging in an application system server when the authenticated key is determined to be a legal key, where the target game virtual resource is used for being used in the application system server;
And the login unit is used for logging in the application system server by utilizing the login authority and using the target game virtual resource in the application system server.
12. The apparatus of claim 11, wherein the third acquisition unit comprises one of:
the first acquisition module is used for inputting the secret key in a login interface and acquiring the login permission;
the second acquisition module is used for inputting the secret key into the blockchain and acquiring login information from the blockchain, wherein the login information is used for acquiring the login permission;
and the third acquisition module is used for inputting the secret key in the authority authentication interface and acquiring the login authority.
13. The apparatus of claim 12, wherein the apparatus further comprises:
and a fourth acquisition unit configured to acquire the modified target game virtual resource using the key after the target game virtual resource is acquired using the key.
14. A storage medium having a computer program stored therein, wherein the computer program is arranged to perform the method of any of claims 1 to 3 or 4 to 7 when run.
15. An electronic device comprising a memory and a processor, characterized in that the memory has stored therein a computer program, the processor being arranged to execute the method according to any of the claims 1-3 or 4-7 by means of the computer program.
CN201810525480.1A 2018-05-28 2018-05-28 Virtual resource transfer method and device, storage medium and electronic device Active CN109011583B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810525480.1A CN109011583B (en) 2018-05-28 2018-05-28 Virtual resource transfer method and device, storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810525480.1A CN109011583B (en) 2018-05-28 2018-05-28 Virtual resource transfer method and device, storage medium and electronic device

Publications (2)

Publication Number Publication Date
CN109011583A CN109011583A (en) 2018-12-18
CN109011583B true CN109011583B (en) 2024-08-13

Family

ID=64611637

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810525480.1A Active CN109011583B (en) 2018-05-28 2018-05-28 Virtual resource transfer method and device, storage medium and electronic device

Country Status (1)

Country Link
CN (1) CN109011583B (en)

Families Citing this family (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109102261A (en) * 2018-08-02 2018-12-28 刘卓 Based on the encryption currency for matching the decentralization for winning banknote, safety, power saving
CN109993530A (en) * 2019-03-29 2019-07-09 北京柏链基石科技有限公司 A virtual resource management method, device and electronic device
CN110201400B (en) * 2019-05-21 2022-08-19 深圳创维-Rgb电子有限公司 Game prop trading method based on block chain, trading terminal and storage medium
CN110245517A (en) * 2019-05-29 2019-09-17 杭州秘猿科技有限公司 A kind of across chain method, apparatus, system and the electronic equipment of block chain
CN110458702A (en) * 2019-07-15 2019-11-15 阿里巴巴集团控股有限公司 Based on the virtual resource allocation method and device of block chain, electronic equipment
US10785168B2 (en) 2019-07-15 2020-09-22 Alibaba Group Holding Limited Allocating virtual resource based on block chain
CN110753028B (en) * 2019-09-11 2021-06-22 复旦大学 A method for controlling the use of distributed accounting network resources
CN111144859B (en) * 2019-12-27 2024-08-06 财付通支付科技有限公司 Virtual resource transfer method and device, computer equipment and storage medium
CN111460476B (en) * 2020-03-27 2023-07-14 腾讯科技(深圳)有限公司 Account cancellation method and device, storage medium and electronic device
CN112200570A (en) * 2020-10-09 2021-01-08 支付宝(杭州)信息技术有限公司 Resource distribution method and device based on block chain and electronic equipment
CN112365260A (en) * 2020-10-27 2021-02-12 北京五八信息技术有限公司 Resource transfer method, device, electronic equipment and storage medium
CN113064725B (en) * 2021-03-30 2023-11-03 三川在线(杭州)信息技术有限公司 Virtual resource transfer method, vehicle-mounted unit, storage medium and electronic device
CN113657943B (en) * 2021-08-24 2023-11-07 北京百度网讯科技有限公司 Virtual asset transfer system, method, electronic equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102483792A (en) * 2009-11-23 2012-05-30 富士通株式会社 Method and apparatus for sharing documents
CN105427169A (en) * 2014-09-17 2016-03-23 中国银联股份有限公司 Security information interaction method for resource transfer
CN107220820A (en) * 2017-05-16 2017-09-29 腾讯科技(深圳)有限公司 Resource transfers method, device and storage medium

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104901991B (en) * 2014-08-27 2016-08-24 腾讯科技(深圳)有限公司 Virtual resource transfer method, device and system
EP3029622A1 (en) * 2014-12-01 2016-06-08 Deutsche Börse Ag Computer system and method for providing a trading platform with improved user account management
CN106911641A (en) * 2015-12-23 2017-06-30 索尼公司 For authorizing the client terminal device for accessing, server unit and access control system
US20170243222A1 (en) * 2016-02-22 2017-08-24 Bank Of America Corporation System for use of secure data from a process data network as secured access by users
US20170372417A1 (en) * 2016-06-28 2017-12-28 Sivanarayana Gaddam Digital asset account management
CN106941487B (en) * 2017-02-24 2021-01-05 创新先进技术有限公司 Data sending method and device
CN107067255B (en) * 2017-02-27 2019-02-26 腾讯科技(深圳)有限公司 The treating method and apparatus of account in block chain

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102483792A (en) * 2009-11-23 2012-05-30 富士通株式会社 Method and apparatus for sharing documents
CN105427169A (en) * 2014-09-17 2016-03-23 中国银联股份有限公司 Security information interaction method for resource transfer
CN107220820A (en) * 2017-05-16 2017-09-29 腾讯科技(深圳)有限公司 Resource transfers method, device and storage medium

Also Published As

Publication number Publication date
CN109011583A (en) 2018-12-18

Similar Documents

Publication Publication Date Title
CN109011583B (en) Virtual resource transfer method and device, storage medium and electronic device
US10009327B2 (en) Technologies for secure storage and use of biometric authentication information
EP3050276B1 (en) Securely authorizing access to remote resources
CN110198296B (en) Authentication method and device, storage medium and electronic device
CN106339613B (en) A kind of processing method, terminal and server using data
CN105991614B (en) It is a kind of it is open authorization, resource access method and device, server
CN113505354B (en) Data processing method, device and storage medium
KR20180048655A (en) Method and apparatus for updating verification information
CN104054321A (en) Security management for cloud services
US9977888B2 (en) Privacy protected input-output port control
CN110602133B (en) Intelligent contract processing method, block chain management device and storage medium
CN110572468A (en) server cluster file synchronization method and device, electronic equipment and storage medium
US11032666B2 (en) System, mobile terminal device, server, program, and method for visit confirmation
CN108337235A (en) A kind of method and system executing safety operation using safety equipment
CN111355723A (en) Single sign-on method, device, equipment and readable storage medium
EP3381166B1 (en) Systems and methods for cross-channel device binding
CN107820702A (en) A kind of management-control method, device and electronic equipment
CN110910141A (en) Transaction processing method, system, apparatus, device, and computer-readable storage medium
KR101553482B1 (en) Authentication System For Password And Method
CN103841091A (en) safety login method, device and system
Urien Cloud of secure elements perspectives for mobile and cloud applications security
US9442808B1 (en) Session tickets for a backup and recovery system
KR20170139281A (en) Apparatus for managing and sharing time-limited password, and system having the same
KR101858678B1 (en) Method for scrapping user information of card-company and application system thereof
KR101576038B1 (en) Network authentication method for secure user identity verification

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
GR01 Patent grant
GR01 Patent grant