CN112991069A - Resource processing method, device, equipment and storage medium - Google Patents

Resource processing method, device, equipment and storage medium Download PDF

Info

Publication number
CN112991069A
CN112991069A CN202010238049.6A CN202010238049A CN112991069A CN 112991069 A CN112991069 A CN 112991069A CN 202010238049 A CN202010238049 A CN 202010238049A CN 112991069 A CN112991069 A CN 112991069A
Authority
CN
China
Prior art keywords
user
target virtual
virtual resource
resource
information
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.)
Granted
Application number
CN202010238049.6A
Other languages
Chinese (zh)
Other versions
CN112991069B (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
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN202010238049.6A priority Critical patent/CN112991069B/en
Publication of CN112991069A publication Critical patent/CN112991069A/en
Application granted granted Critical
Publication of CN112991069B publication Critical patent/CN112991069B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/06Asset management; Financial planning or analysis
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/62Protecting access to data via a platform, e.g. using keys or access control rules
    • G06F21/6218Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The application discloses a resource processing method, a resource processing device, resource processing equipment and a storage medium, and belongs to the technical field of block chains. The present application provides for the transfer of a virtual resource from a blockchain of a blockchain system to a target virtual resource by responding to an ownership grant request for the target virtual resource, acquiring user information of a user to be admitted and resource information of a target virtual resource, and based on the user information and the resource information, verifying the assigned qualification of the user to be assigned and the target virtual resource to determine the feasibility and validity of the transfer, responding to the passing of the verification of the assigned qualification of the user to be assigned and the target virtual resource, performing virtual money transfer in the blockchain system, storing ownership transfer records of the target virtual resource on the blockchain, updating ownership of the target virtual resource from an original user to the user to be transfered, the transfer of the target virtual resources is realized, and the transfer steps are executed based on the block chain, so that the safety of the transfer process of the target virtual resources can be improved.

Description

Resource processing method, device, equipment and storage medium
Technical Field
The present application relates to the field of block chaining technologies, and in particular, to a resource processing method, apparatus, device, and storage medium.
Background
The financial product is a product designed and issued by financial institutions such as banks, and the financial institutions can collect funds by issuing the financial product, invest the collected funds into a financial market to obtain investment income, and distribute part of the income to investment users. Among various financial products, the regular financial products generally have higher income, but the retention time of the financial products is longer and the liquidity is poorer. After purchasing the periodic financing product, the user must have due to the periodic financing product to take out the invested fund and obtain higher income. Therefore, how to improve the fluidity of the periodic financing product under the condition of ensuring the benefit is an important research direction.
Disclosure of Invention
The embodiment of the application provides a resource processing method, a resource processing device and a storage medium, which can transfer ownership of a virtual resource and ensure the security of an ownership transfer process. The technical scheme is as follows:
in one aspect, a resource processing method is provided, and the method includes:
receiving an ownership transfer request, wherein the ownership transfer request carries a user identifier of a user to be transferred, a resource identifier of a target virtual resource requested to be transferred and an intelligent contract identifier;
responding to a target intelligent contract indicated by the contract identification, and acquiring user information of the user to be assigned and resource information of the target virtual resource from a block chain of the block chain system based on the user identification of the user to be assigned and the resource identification of the target virtual resource;
verifying the assigned qualification of the user to be assigned and the target virtual resource based on the user information and the resource information to obtain a verification result;
and responding to the assigned qualification of the user to be assigned and the verification result of the target virtual resource, and executing the operation corresponding to the verification result in the target intelligent contract.
In one aspect, an apparatus for processing resources is provided, the apparatus including:
the system comprises a receiving module, a judging module and a judging module, wherein the receiving module is used for receiving an ownership transfer request, and the ownership transfer request carries a user identifier of a user to be transferred, a resource identifier of a target virtual resource requested to be transferred and an intelligent contract identifier;
an obtaining module, configured to, in response to a target intelligent contract indicated by the contract identifier, obtain, from a blockchain of the blockchain system, user information of the user to be assigned and resource information of the target virtual resource based on a user identifier of the user to be assigned and a resource identifier of the target virtual resource;
the verification module is used for verifying the assigned qualification of the user to be assigned and the target virtual resource based on the user information and the resource information to obtain a verification result; and responding to the assigned qualification of the user to be assigned and the verification result of the target virtual resource, and executing the operation corresponding to the verification result in the target intelligent contract.
In a possible implementation manner, the receiving module is configured to receive an ownership transfer request of the target virtual resource, where the ownership transfer request carries a user identifier of an original user of the target virtual resource, a resource identifier of the target virtual resource, transfer information of the target virtual resource, and the intelligent contract identifier;
the obtaining module is configured to, in response to the target intelligent contract indicated by the contract identifier, obtain, from the block chain, user information of the original user and resource information of the target virtual resource based on the user identifier of the original user and the resource identifier of the target virtual resource;
the verification module is used for verifying the validity of the ownership transfer request based on the user information of the original user, the resource information of the target virtual resource and the transfer information of the target virtual resource;
the apparatus further includes an issuing module configured to issue transfer information of the target virtual resource in the blockchain system in response to the ownership transfer request being verified.
In one possible implementation, the verification module is to:
verifying whether the ownership of the original user to the target virtual resource is valid or not based on the user information of the original user and the resource information of the target virtual resource;
verifying whether the transfer information of the target virtual resource is effective or not based on the resource information of the target virtual resource;
verifying whether the target virtual resource is in a tradable state or not based on the transaction state information in the resource information of the target virtual resource;
and determining that the ownership transfer request is valid in response to whether the ownership of the originally belonging user is valid, the transfer information of the target virtual resource is valid, and the target virtual resource is in a tradable state.
In one possible implementation, the publishing module is to:
adding the transfer information of the target virtual resource into a transaction list of a target transaction platform in the blockchain system, wherein the transaction list is used for storing the transfer information of each virtual resource to be granted.
In one possible implementation, the verification module is to:
verifying the assigned qualification of the assigned user based on the user information of the user to be assigned and the virtual currency corresponding to the target virtual resource;
and verifying the target virtual resource based on the ownership information and the transaction state information in the resource information to obtain a verification result.
In one possible implementation, the verification module is to:
acquiring the number of virtual currencies in a target account from the user information of the user to be admitted;
and if the number of the virtual currency in the target account is larger than or equal to the number of the virtual currency corresponding to the target virtual resource, determining that the user to be granted has the granted qualification of the target virtual resource.
In one possible implementation, the apparatus further includes:
the input module is used for inputting the user information of the user to be admitted and the resource information of the target virtual resource into a target model, and the target model determines the matching score between the user information of the user to be admitted and the resource information;
and the sending module is used for sending the matching score to the user to be transfered, and the user to be transfered determines whether to execute the step of virtual money transfer or not based on the matching score.
In one possible implementation, the verification module is to:
responding to the granted qualification of the user to be granted and the verification of the target virtual resource, and initiating a virtual money transfer request in the blockchain system, wherein the virtual money transfer request is used for transferring the virtual money corresponding to the target virtual resource from the account of the user to be granted to the account of the original user of the target virtual resource;
and in response to the virtual money transfer request, storing an ownership transfer record of the target virtual resource on the blockchain, wherein the ownership transfer record is used for recording that the ownership of the target virtual resource is updated from the original user to the to-be-assigned user.
In one possible implementation, the verification module is to:
responding to the granted qualification of the user to be granted and the verification of the target virtual resource, calling a target intelligent contract in the blockchain system, and setting the transaction state of the target virtual resource to be a pre-transaction state by the target intelligent contract;
initiating the virtual money transfer request in the blockchain system through the target intelligent contract, and executing the step of transferring the virtual money corresponding to the target virtual resource from the account of the user to be transfered to the account of the original user.
In one possible implementation, the apparatus further includes:
the setting module is used for calling the target intelligent contract in the block chain system, and the target intelligent contract sets the transaction state of the target virtual resource to be a transaction completion state;
and the deleting module is used for deleting the transfer information of the target virtual resource in the transaction list of the target transaction platform in the blockchain system.
In one possible implementation, the verification module is to:
adding the ownership transfer record to a memory pool of a node device in the blockchain system, wherein the memory pool is used for storing data which is not added to a blockchain;
constructing, by the node device, a chunk based on the ownership transfer record;
the block containing the ownership transfer record is stored in the blockchain.
In one possible implementation, the verification module is to:
and outputting transfer refusal information in response to the condition that any one of the transferee qualification of the user to be transfered and the target virtual resource fails to be verified.
In one aspect, a computer device is provided that includes one or more processors and one or more memories having at least one program code stored therein, the at least one program code being loaded and executed by the one or more processors to perform operations performed by the resource processing method.
In one aspect, a computer-readable storage medium having at least one program code stored therein is provided, the at least one program code being loaded and executed by a processor to implement the operations performed by the resource processing method.
According to the technical scheme provided by the embodiment of the application, the user information of the user to be assigned and the resource information of the target virtual resource are acquired from the block chain of the block chain system in response to the ownership assignment request of the target virtual resource, the accuracy of the user information and the resource information can be ensured as the data stored in the block chain can not be deleted and tampered, therefore, the assigned qualification of the user to be assigned and the target virtual resource are verified based on the user information and the resource information, the feasibility and the legality of the transfer can be determined, the virtual money transfer is performed in the block chain system in response to the passing of the assigned qualification of the user to be assigned and the verification of the target virtual resource, the ownership assignment record of the target virtual resource is stored on the block chain, and the ownership of the target virtual resource is updated from the original user to the user to be assigned, the transfer of the target virtual resources is realized, and the transfer steps are executed based on the block chain, so that the safety of the transfer process of the target virtual resources can be improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic diagram of an implementation environment of a resource processing method according to an embodiment of the present application;
fig. 2 is a flowchart of a resource processing method provided in an embodiment of the present application;
FIG. 3 is a flow chart of a resource transfer method provided by an embodiment of the present application;
FIG. 4 is a schematic diagram of a details page provided by an embodiment of the present application;
FIG. 5 is a schematic illustration of an assignment page provided by an embodiment of the present application;
FIG. 6 is a schematic diagram of a transaction publication page provided in an embodiment of the present application;
fig. 7 is a schematic diagram of a successful publication page provided in an embodiment of the present application;
FIG. 8 is a flow chart of a resource assignor method provided in an embodiment of the present application;
FIG. 9 is a schematic diagram of a transaction details page provided by an embodiment of the present application;
FIG. 10 is a schematic diagram of data interaction in a resource processing process according to an embodiment of the present application;
fig. 11 is a schematic structural diagram of a resource processing apparatus according to an embodiment of the present application;
fig. 12 is a schematic structural diagram of a terminal according to an embodiment of the present application;
fig. 13 is a schematic structural diagram of a server according to an embodiment of the present application.
Detailed Description
To make the objects, technical solutions and advantages of the present application more clear, embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
In order to facilitate understanding of the technical processes of the embodiments of the present application, some terms referred to in the embodiments of the present application are explained below:
block chain (Block chain): the method is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, a consensus mechanism, an encryption algorithm and the like. The blockchain is essentially a decentralized database, which is a string of data blocks associated by cryptography, each data block containing information about a network transaction for verifying the validity (anti-counterfeiting) of the information and generating the next block, each block containing a timestamp and a link to the previous block. In a narrow sense, a blockchain is a distributed ledger of data blocks assembled in a sequential manner into a chain data structure in chronological order and cryptographically secured as non-falsifiable and non-forgeable, i.e. the data in the blockchain will be irreversible once recorded.
Consensus mechanism (Consensus mechanism): the block chain system is a mathematical algorithm for establishing trust and obtaining rights and interests among different nodes. In the block chain system, the verification and confirmation of the transaction can be completed in a short time through the voting of special nodes, and if a plurality of nodes with irrelevant benefits can achieve consensus on a transaction, all the nodes in the system can also achieve consensus on the transaction.
Smart contract (Smart contract): is a computer protocol intended to propagate, validate or execute contracts in an informational manner. Each node in the blockchain system can automatically execute a contract program according to a specific condition, can operate data stored in the chain, and is an important way for a user to interact with the blockchain and realize business logic by using the blockchain. The goal of smart contracts is to provide a secure method over traditional contracts and to reduce other transaction costs associated with the contracts, which allows for trusted transactions that are traceable and irreversible without third parties.
Public key (public key) and private key (private key): is a key pair (i.e., a public key and a private key) obtained by an algorithm, the public key being a public part of the key pair, and the private key being a non-public part. The public key is typically used to encrypt session keys, verify digital signatures, or encrypt data that can be decrypted with a corresponding private key. The pair of keys derived by such an algorithm can be guaranteed to be unique. When such a key pair is used, if one of the keys is used to encrypt a piece of data, the other key must be used to decrypt the encrypted piece of data. For example, encrypting data with a public key necessitates decryption with the private key, and if encrypting with the private key, also must decrypt with the public key, otherwise decryption will not succeed.
Fig. 1 is a schematic diagram of an implementation environment of a resource processing method according to an embodiment of the present disclosure, and referring to fig. 1, the implementation environment may include a terminal 100, a server 110, and a blockchain system 120.
The terminal 100 may be, but is not limited to, a smart phone, a tablet computer, a notebook computer, a desktop computer, a smart speaker, a smart watch, and the like. The terminal 100 may be a terminal used by any user, and the terminal 100 is installed and operated with a client of a target trading platform, and the target trading platform may support trading of virtual resources, and the virtual resources may be financial products and the like. For example, the client of the target trading platform running in the terminal 100 may log in an account of any user, and any user may transfer or purchase a virtual resource such as a financial product through the target trading platform. The terminal 100 may be generally referred to as one of a plurality of terminals, and the present embodiment is illustrated only by the terminal 100.
The server 110 may be a background server of the target trading platform, and the server 110 may be used for processing trading data generated in the virtual resource trading process. The server 110 may be an independent physical server, a server cluster or a distributed system formed by a plurality of physical servers, or a cloud server providing basic cloud computing services such as a cloud service, a cloud database, cloud computing, a cloud function, cloud storage, a Network service, cloud communication, a middleware service, a domain name service, a security service, a CDN (Content Delivery Network), a big data and artificial intelligence platform.
The blockchain system 120 may include a plurality of node devices 1201, and the node devices 1201 may be any form of computer device in a network, such as a server, a host, a user terminal, etc. The node devices 1201 and the node devices 1201 can share data, that is, each node device 1201 can jointly maintain a blockchain in the blockchain system 120. Among them, the node devices 1201 may establish a P2P network based on a Peer-To-Peer (P2P) protocol. The P2P Protocol is an application layer Protocol that runs on top of the Transmission Control Protocol (TCP) Protocol. Each node device 1201 may receive input information during normal operation, and maintain shared data in the blockchain system 120 based on the received input information, i.e., maintain a blockchain in the blockchain system 120. In order to ensure information intercommunication in the blockchain system 120, an information connection may exist between each node device 1201 in the blockchain system 120, and the node devices 1201 may perform information transmission through the information connection. For example, when any node device in the blockchain system receives input information, other node devices in the blockchain system may also acquire the input information and store the input information as data in shared data, so that the data stored on all node devices in the blockchain system are consistent. In this embodiment, the node device 1201 may obtain the transaction data sent by the server 120, process the transaction data, and record the transaction process of the virtual resource.
In the embodiment of the present application, both the terminal 100 and the server 110 can be registered as node devices in the blockchain system 120. The terminal 100, the server 110 and the blockchain system 120 may be directly or indirectly connected through wired or wireless communication to realize data transmission.
Those skilled in the art will appreciate that the number of terminals, servers, and node devices may be greater or fewer. The number and the device type of the terminal, the server and the node device are not limited in the embodiment of the application.
According to the technical scheme, the target virtual resources with certain values can flow among users in an ownership transfer mode, and the users holding the target virtual resources at different time periods can obtain reasonable benefits. For example, in the financial field, the target virtual resource may be a periodic financial product issued by a financial institution, and in a normal case, after a user purchases the periodic financial product, that is, the target virtual resource, the user needs to hold the target virtual resource within a fixed holding period to obtain a higher benefit, and if an asset invested in the target virtual resource is paid in advance, the obtained benefit is greatly reduced. By combining the technical scheme provided by the embodiment of the application, the holding user of the target virtual resource can transfer the ownership of the target virtual resource within a fixed holding period, and the ownership is continuously held by the ownership transfered user. That is, the target virtual resource is held by the user for the fixed holding period, and the assets put into the target virtual resource do not need to be withdrawn. In this case, the user holding the target virtual resource in different time periods can obtain a high profit and improve the liquidity of the target virtual resource.
Fig. 2 is a flowchart of a resource processing method according to an embodiment of the present application, and as shown in fig. 2, the method may be applied to a node device of a blockchain system, and the method specifically includes the following steps:
201. and receiving an ownership transfer request, wherein the ownership transfer request carries the user identification of the user to be transferred, the resource identification of the requested target virtual resource to be transferred and the intelligent contract identification.
The target virtual resource can be any type of financial product, for example, a periodic financial product, and the target virtual resource can be traded in the target trading platform. The to-be-granted user is a user who will acquire ownership of the target virtual resource, that is, the sending user of the ownership granted request.
The target virtual resource can be transferred by the original user, that is, by the user who currently owns the target virtual resource, and the original user can transmit an ownership transfer request for the target virtual resource to the node device in the blockchain system through the client of the target trading platform to transfer the ownership of the target virtual resource. And the node equipment responds to the ownership transfer request, and releases the transfer information of the target virtual resource in the blockchain system, and other users of the target trading platform can acquire the transfer information released in the blockchain system.
After the user to be granted obtains the transfer information of the target virtual resource through the client of the target trading platform, that is, after it is determined that the ownership of the target virtual resource needs to be transferred, an ownership granting request may be sent to the node device to obtain the ownership of the target virtual resource.
202. And responding to a target intelligent contract indicated by the contract identification, and acquiring user information of the user to be assigned and resource information of the target virtual resource from a block chain of a block chain system based on the user identification of the user to be assigned and the resource identification of the target virtual resource.
The target intelligent contract may be used to indicate data processing logic in the ownership transaction process of the target virtual resource, and may include processing logic for ownership transfer requests and processing logic for ownership transfer requests.
In this embodiment, the blockchain of the blockchain system may store user information of each user of the target trading platform and resource information of each virtual resource. After receiving the ownership granting request, the node device may invoke a target intelligent contract indicated by the contract identifier, and obtain information and resource information from the block chain through the target intelligent contract, so as to perform subsequent user authentication to be granted and target virtual resource authentication based on the user information and the resource information. Due to the fact that the data stored in the block chain cannot be tampered and deleted, accuracy and comprehensiveness of the user information and the resource information can be guaranteed, and the influence on the follow-up user verification process to be given and the target virtual resource verification process due to inaccurate data is avoided.
203. And verifying the assigned qualification of the user to be assigned and the target virtual resource based on the user information and the resource information to obtain a verification result.
The granted qualification refers to that the user to be granted needs to satisfy the granted condition of the target virtual resource, for example, when the number of virtual currencies included in the account of the user to be granted is greater than or equal to the number of virtual currencies corresponding to the target virtual resource, the user to be granted has the granted qualification of the target virtual resource, that is, sufficient assets need to be present in the account of the user to be granted to purchase the target virtual resource. Of course, it may also be determined whether the user to be granted has the granted qualification based on other information, for example, whether the user information of the user to be granted includes a bad transaction record, and the like, which is not limited in this embodiment of the application.
In this embodiment of the present application, verifying the target virtual resource may include verifying the validity of the target virtual resource, that is, verifying whether an ownership user of the target virtual resource is the original owner user; may include verifying the transactional state of the target virtual resource, i.e., verifying whether the target virtual resource is tradable. Of course, the virtual resource may also be verified from other aspects, which is not limited in this embodiment of the present application.
In the above technical solution, the user qualification and the target virtual resource of the user to be granted are verified, so that the ownership granting request can be ensured to be valid, and illegal transactions are avoided.
204. And responding to the assigned qualification of the user to be assigned and the verification result of the target virtual resource, and executing the operation corresponding to the verification result in the target intelligent contract.
In this embodiment, if the granted qualification of the user to be granted and the verification of the target virtual resource pass, the virtual money transfer may be performed in the blockchain system, and the virtual money corresponding to the target virtual resource is transferred from the account of the user to be granted to the account of the original user of the target virtual resource. That is, the user to be granted pays a certain amount of virtual money to the original user of the target virtual resource to purchase the target virtual resource and obtain ownership of the target virtual resource. The number of virtual currencies corresponding to the target virtual resource may be set by the original user of the target virtual resource. In one possible implementation, the node device may further store an ownership transfer record in the blockchain, and specifically, the node device may package the ownership transfer record and other transaction information into a chunk, perform consensus on the chunk by each node device in the blockchain system, and add the chunk to the tail of the blockchain in response to the chunk passing the consensus. The ownership transfer record may be used to record that the ownership of the target virtual resource is updated from the original user to the to-be-granted user, and the ownership transfer record may include information such as a resource identifier of the target virtual resource, a user identifier of the original user, a user identifier of the to-be-granted user, and a number of virtual currencies corresponding to the target virtual resource and a timestamp.
In this embodiment of the application, if any one of the assigned qualification of the user to be assigned and the target virtual resource fails to be verified, transfer rejection information may be output, and the blockchain system may feed back a result of the transaction failure to the user to be assigned.
The above-mentioned embodiment is only a brief introduction to an embodiment of the present application, and the technical solution provided in the embodiment of the present application can ensure the accuracy of obtaining the user information and the resource information by obtaining the user information of the user to be granted and the resource information of the target virtual resource from the blockchain of the blockchain system in response to the ownership grant request for the target virtual resource, since the data stored in the blockchain cannot be deleted or tampered, so that the availability and the validity of the transfer can be determined by verifying the grant of the user to be granted and the target virtual resource based on the user information and the resource information, performing virtual money transfer in the blockchain system in response to the grant of the user to be granted and the verification of the target virtual resource, storing the transfer record of the target virtual resource on the blockchain, and updating the ownership of the target virtual resource from the original user to the user to be granted so as to realize the transfer of the target virtual resource, and executing the transfer step based on the block chain, so that the safety of the transfer process of the target virtual resource can be improved.
The above embodiment describes a process of acquiring ownership of a target virtual resource by a user to be granted, where the target virtual resource may be a virtual resource transferred by an original user to which the target virtual resource belongs, and the process of transferring ownership of the target virtual resource by the original user is shown in fig. 3. Fig. 3 is a flowchart of a resource transfer method provided in an embodiment of the present application, where the method may be applied in the implementation environment shown in fig. 1, and referring to fig. 3, the method may specifically include the following steps:
301. the first terminal sends an ownership transfer request for the target virtual resource to the server.
The first terminal may be a terminal used by an original user of the target virtual resource, and the original user may transfer ownership of the target virtual resource through a client of a target trading platform running in the first terminal. The server may be a background server of the target trading platform, and the server may process data generated by a client of the target trading platform. In the embodiment of the present application, the virtual resource may be a financial product issued by a financial institution such as a bank.
In this embodiment of the present application, the ownership transfer request may carry the user identifier of the original user, the resource identifier of the target virtual resource, and transfer information of the target virtual resource. The user identifier may be used to uniquely indicate a user, and the user identifier may be represented as a certificate number, an account address, and the like, which is not limited in this embodiment of the application. The resource identifier may be used to uniquely indicate a virtual resource. The transfer information of the target virtual resource may include a transfer interest rate of the target virtual resource, a number of virtual currencies corresponding to the target virtual resource, and a transfer share of the target virtual resource. The transfer interest rate of the target virtual resource and the transfer share of the target virtual resource may be set by the original user, and the number of virtual currencies corresponding to the target virtual resource, that is, the number of virtual currencies paid by the target virtual resource purchased by the transferee, may be determined based on the transfer interest rate of the target virtual resource and the transfer share of the target virtual resource. Of course, the transfer information of the target virtual resource may further include information such as remaining holding time of the target virtual resource, which is not limited in the embodiment of the present application.
In a possible implementation manner, the first terminal may display a detail page of the target virtual resource, referring to fig. 4, where fig. 4 is a schematic diagram of a detail page provided by an embodiment of the present application, and the detail page may include an information display area 401 of the target virtual resource and an assignment control 402. Taking the target virtual resource as a periodic financing product as an example, the information display area 401 may display information such as a holding period, a deposit time, an expiration time, an interest rate, and a total interest of the periodic financing product. When the first terminal detects that the original user triggers the assignment control 402, the first terminal may display an assignment page of the target virtual resource, where the assignment page is used to collect assignment information of the target virtual resource.
Referring to fig. 5, fig. 5 is a schematic diagram of an assignment page provided by an embodiment of the present application, and the assignment page may include an assignment share display area 501, an assignment rate setting area 502, an information display area 503, and a confirmation control 504. The transfer share display area 501 may display the total share of the target virtual resource held by the original user, that is, all shares held by the original user need to be transferred in the current virtual resource transfer process. Of course, the originally affiliated user may also set the transfer share, and only transfer a part of shares in one virtual resource transfer process, which is not limited in this application embodiment. In this embodiment of the application, the original user may set the transfer interest rate of the target virtual resource in the transfer interest setting area 502 based on the interest rate interval corresponding to the target virtual resource, and the first terminal may determine the number of virtual currencies corresponding to the target virtual resource in the resource transfer process based on the transfer interest rate and the transfer share set by the original user. In a possible implementation manner, for a virtual resource, multiple interest rate intervals may be set based on the remaining holding duration of the virtual resource, that is, different remaining holding durations correspond to different interest rate intervals, for example, when the remaining holding duration of the target virtual resource is less than or equal to 2 years, the transfer interest rate may be set in a first interest rate interval, and when the remaining holding duration of the target virtual resource is greater than 2 years, the transfer interest rate may be set in the first interest rate interval. In a possible implementation manner, the higher the transfer interest rate set by the original user is, the higher the profit obtained after the target virtual resource is purchased by the transferee user is, the larger the number of virtual currencies corresponding to the target virtual resource determined based on the transfer share of the transfer interest rate is, that is, the larger the number of virtual currencies paid by the transferee user for purchasing the target virtual resource is. It should be noted that the above description of the relationship between the number of virtual currencies corresponding to the target virtual resource and the transfer interest rate and transfer share is only an exemplary description, and the embodiment of the present application does not limit which calculation method is specifically adopted to determine the number of virtual currencies corresponding to the target virtual resource. When the first terminal detects that the original user triggers the confirmation control 504, the first terminal may obtain information, such as transfer share, transfer interest rate, and number of virtual currencies corresponding to the target virtual resource, collected by the transfer page, as transfer information of the target virtual resource, and generate an ownership transfer request of the target virtual resource based on the transfer information.
The first terminal can send the ownership transfer request of the target virtual resource to a background server of the target trading platform, and the server performs data processing based on the ownership transfer request.
302. And the server responds to the ownership transfer request of the target virtual resource and verifies the target virtual resource and the transfer information of the target virtual resource.
In one possible implementation, the server may perform preliminary verification on the target virtual resource and the transfer information of the target virtual resource based on data stored in the local database. The local database may store user information of each user and resource information of each virtual resource in the target trading platform. For example, the server may obtain the user information of the original user from the local data based on the user identifier of the original user, and verify whether the virtual resource held by the original user includes the target virtual resource, that is, verify whether the ownership user of the target virtual resource is the target user; based on the resource identifier of the target virtual resource, resource information of the target virtual resource is acquired from a local database, the resource information may include information such as a interest rate interval and a transaction state corresponding to the target virtual resource, and the server may compare the assignment information of the target virtual resource with the resource information, verify whether the interest rate of the assignment of the target virtual resource is within the interest rate interval, and verify whether the target virtual resource is in a tradable state. It should be noted that the above description of the verification method for the target virtual resource and the assignment information is only an exemplary description, and the embodiment of the present application does not limit which verification method is specifically adopted.
If the target virtual resource and the transfer information of the target virtual resource are verified, the server may continue to execute the following step 303; if any one of the verification of the target virtual resource and the transfer information of the target virtual resource fails, the server does not need to execute the following step 303, and the server may feed back the information of the transaction failure to the original user.
303. And in response to the verification of the target virtual resource and the transfer information of the target virtual resource, the server sends an ownership transfer request of the target virtual resource to the node equipment in the blockchain system.
In this embodiment, after determining that the transfer information of the target virtual resource and the target virtual resource passes verification, the server may broadcast the ownership transfer request to each node device of the blockchain system, and each node device verifies whether the ownership transfer request is valid based on data in the blockchain, that is, step 304 is executed.
In the embodiment of the application, the target virtual resource and the transfer information are preliminarily verified based on the information stored in the local database of the server, that is, whether the ownership transfer transaction of the target virtual resource is legal or not is preliminarily verified, and after the server passes the verification, the ownership transfer request is sent to the block chain system, and the block chain system conducts verification again. The ownership transfer transaction is primarily screened by the server, so that the data processing amount of the blockchain system can be reduced, and invalid operation of the blockchain is avoided. Of course, the server may also directly send the received ownership transfer request to the blockchain system, which is not limited in this embodiment of the present invention.
304. The node equipment acquires user information of an original user and resource information of a target virtual resource from the block chain, and verifies the validity of the ownership transfer request based on the acquired user information, resource information and transfer information of the target virtual resource.
Taking an example that one node device verifies the ownership transfer request, in one possible implementation manner, the ownership transfer request may carry a contract identifier of a target intelligent contract, the node device may invoke the target intelligent contract based on the contract identifier, obtain, based on the target intelligent contract, user information of the original user and resource information of the target virtual resource, and perform a subsequent verification step of the ownership transfer request based on the obtained information. In this embodiment of the present application, the node device may verify whether the ownership of the target virtual resource by the original belonging user is valid based on the user information of the original belonging user and the resource information of the target virtual resource; verifying whether the transfer information of the target virtual resource is effective or not based on the resource information of the target virtual resource; and verifying whether the target virtual resource is in a tradable state or not based on the transaction state information in the resource information of the target virtual resource. In response to that the ownership of the target virtual resource is valid by the original user, the transfer information of the target virtual resource is valid, and the target virtual resource is in a tradable state, it may be determined that the ownership transfer request is valid. The verification process is the same as the verification process of the target virtual resource and the transfer information in step 302, and is not described herein again.
In one possible implementation, the node device may also verify a digital signature carried by the ownership transfer request. For example, the first terminal and the server may both register in the blockchain system, and the public key and the private key are assigned to the first terminal and the server by the blockchain system. The first terminal may add its private key signature to the ownership transfer request when sending the ownership transfer request to the server, and after receiving the ownership transfer request, the server may apply the public key of the first terminal to match the private key signature, and if matching is successful, may determine that the ownership transfer request is valid; similarly, when the server sends the ownership transfer request to the node device, the server may add its private key signature to the ownership transfer request, and after the node device receives the ownership transfer request, the node device may verify the ownership transfer request by using the public key of the server.
It should be noted that the above description of the method for node device to authenticate the target virtual resource and transfer information is only an exemplary description, and the embodiment of the present application does not limit which authentication method is specifically adopted. If the ownership transfer request is verified, the server may proceed to step 305; if the ownership transfer request fails to be verified, the server does not need to perform step 305, and the server may feed back information of the transaction failure to the original belonging user.
It should be noted that, in the above step 302, step 303, and step 404, in response to the target intelligent contract indicated by the contract identifier, based on the user identifier of the original user and the resource identifier of the target virtual resource, the user information of the original user and the resource information of the target virtual resource are obtained from the block chain; and verifying the validity of the ownership transfer request based on the user information of the original user, the resource information of the target virtual resource and the transfer information of the target virtual resource. In the embodiment of the application, because the data stored in the blockchain cannot be deleted and tampered, the comprehensiveness and accuracy of the node device for acquiring the user information and the resource information can be ensured, the accuracy of the verification result can be further ensured, the ownership transfer request is ensured to be effective, and the condition of illegal transaction is avoided.
305. And responding to the verification of the ownership transfer request, and the node equipment issues transfer information of the target virtual resource in the blockchain system.
In one possible implementation manner, after determining that the ownership transfer request passes the verification, the node device in the blockchain system may feed back the verification result to the server, and the server modifies the resource information in the local database, for example, may modify the transaction state of the target virtual resource to a waited state. After the server finishes modifying the resource information of the target virtual resource, the server may send a publishing request for the target virtual resource to the blockchain system, and the node device in the blockchain system executes the step of publishing the target virtual resource.
In a possible implementation manner, the node device may add the assignment information of the target virtual resource to a transaction list of a target transaction platform in the blockchain system, and in this embodiment of the present application, the node device may maintain a transaction list of at least one transaction platform, where the transaction list may be used to store assignment information of each virtual resource to be granted in each transaction platform. In this embodiment, the node device further needs to update the transaction status of the target virtual resource in the blockchain system. For example, first, the node device may generate a transaction status update record, where the transaction status update record may include information that the target virtual resource is in a to-be-granted state; then, storing the transaction state updating record into a memory pool, and packing data in the memory pool based on a target period to construct a block; finally, based on the consensus mechanism, the newly constructed block is added to the tail of the block chain to complete the update of the transaction state. The memory pool may be used to store data not linked in the blockchain system, and the target period may be set by a developer, which is not limited in the embodiment of the present application. In one possible implementation, the updating process of the transaction state may be completed based on a target intelligent contract, that is, in response to the verification of the ownership transfer request, the node device may invoke the target intelligent contract in the blockchain system, and the target intelligent contract sets the transaction state of the target virtual resource to the to-be-yielded state.
The above description of the assignment information distribution method for the target virtual resource is merely an exemplary description, and the embodiment of the present application does not limit which assignment information distribution method is specifically adopted.
In the embodiment of the application, the transaction state information of the target virtual resource is modified in the blockchain system, and the blockchain system records the transfer information of the target virtual resource, so that the transfer information can be prevented from being tampered, and the ownership transfer transaction is guaranteed to be real and effective.
306. And the node equipment sends the target virtual resource release result to the server.
In this embodiment, after the blockchain system completes the publishing of the target virtual resource, the publishing result of the target virtual resource may be fed back to the server.
In response to that the target virtual resource is successfully published in the blockchain system, the server may perform data synchronization based on the transaction list corresponding to the target transaction platform, that is, the server may update display information of a transaction bulletin page of the target transaction platform based on the transaction list, add assignment information of the target virtual resource to the transaction bulletin page, and the first terminal may display the assignment information of the target virtual resource in the transaction bulletin page in a link or hyperlink manner. Referring to fig. 6, fig. 6 is a schematic diagram of a transaction bulletin page provided in the embodiment of the present application. The page may display transfer information 601 of the target virtual resource transferred by the original user, or may display transfer information of virtual resources transferred by other users. In a possible implementation manner, the server may further send a prompt message that the target virtual resource is successfully issued to the first terminal, where the prompt message may be displayed in the first terminal in a form of a short message or a push message. The prompt message may further include a link of a page which is successfully published, and the first terminal may display the page which is successfully published when detecting a click operation of the original user on the link. Fig. 7 is a schematic diagram of a successful issue page provided in an embodiment of the present application, where the successful issue page may include an information display area 701, and the information display area 701 may display the transfer share, the transfer interest rate, the number of virtual currencies corresponding to the target virtual resource, and the effective time of the transfer transaction. For example, the effective time of the transfer transaction may be set to seven days, if the target virtual resource is not transferred within seven days, the blockchain system may delete the transfer information of the target virtual resource from the transaction list of the target transaction platform, the transfer information of the target virtual resource is no longer displayed on the transaction bulletin page, and the originally affiliated user may initiate an ownership transfer request to the target virtual resource again.
In response to that the target virtual resource fails to be published in the blockchain system, the server may send a prompt message indicating that the target virtual resource fails to be published to the first terminal, and the first terminal displays the prompt message indicating that the target virtual resource fails to be published, so as to prompt the original user to resubmit the publishing request of the target virtual resource.
In the embodiment of the application, the original user of the target virtual resource can transfer the ownership of the target virtual resource, and the target virtual resource can flow in an ownership transfer mode, so that partial income is obtained in advance. For example, when the target virtual resource is a periodic financing product, a user can transfer the periodic financing product in a holding period, different users can hold the periodic financing product in different time periods, and the liquidity of the periodic financing product is improved under the condition of obtaining and guaranteeing benefits.
In the embodiment of the present application, each user may purchase a virtual resource transferred by another user to obtain ownership of the virtual resource. Fig. 8 is a flowchart of a resource assignment method provided in an embodiment of the present application, where the method may be applied in an implementation environment shown in fig. 1, and referring to fig. 8, the method may specifically include the following steps:
801. the second terminal sends an ownership granted request for the target virtual resource to the server.
The second terminal may be a terminal used by a to-be-granted user of the target virtual resource, and the to-be-granted user may purchase the target virtual resource through a client of a target trading platform running in the second terminal to obtain ownership of the target virtual resource. In this embodiment of the application, the ownership transference request may carry information such as a user identifier of the user to be transfered, a resource identifier of the target virtual resource requested to be transfered, and the like.
In one possible implementation manner, the second terminal may display a trading publicity page of the target trading platform, and the transfer information of the target virtual resource may be displayed on the trading publicity page in a hyperlink form. When the second terminal detects the click operation of the to-be-assigned user on the hyperlink corresponding to the transfer information of the target virtual resource, the transaction detail page of the target virtual resource can be displayed. Fig. 9 is a schematic diagram of a transaction detail page provided in an embodiment of the present application, and referring to fig. 9, the transaction detail page may include an information display area 901 and a purchase control 902, where the information display area may display transfer information of the target virtual resource, for example, information such as a transfer share, a transfer rate, and an effective time of the current transfer transaction of the target virtual resource. When the second terminal detects the click operation of the to-be-granted user on the purchase control, the second terminal can acquire the resource identifier of the target virtual resource and the user identifier of the current login user in the client, namely the user identifier of the to-be-granted user, and generates an ownership granting request of the target virtual resource based on the resource identifier of the target virtual resource and the user identifier of the to-be-granted user.
The second terminal can send the ownership granted request of the target virtual resource to a background server of the target trading platform, and the server performs data processing based on the ownership granted request.
802. The server responds to the ownership granted request of the target virtual resource, and performs preliminary verification on the ownership granted request.
In one possible implementation manner, after receiving the ownership granting request, the server may perform preliminary verification on the target virtual resource and the granting qualification of the user to be granted based on the data stored in the local database. For example, the server may obtain the user information of the to-be-transfered user from the local database based on the user identifier of the to-be-transfered user, further obtain the number of the virtual money included in the target account of the to-be-transfered user, and determine whether the virtual money of the to-be-transfered user is sufficient, that is, determine whether the fund for purchasing the target virtual resource by the to-be-transfered user is sufficient. For example, the publishing platform of the target virtual resource may limit payment through a certain target account when purchasing the target virtual resource, which is not limited in the embodiment of the present application. The server can also acquire resource information of the target virtual resource from local data based on the resource identifier of the target virtual resource, judge whether the transaction state of the target virtual resource is a to-be-granted state, judge whether an ownership user of the target virtual resource is the original user and judge whether the transfer interest rate corresponding to the target virtual resource is correct.
If the granted qualification of the user to be granted and the target virtual resource are both verified, it may be determined that the ownership granted request is primarily verified, and the server may continue to perform the following step 803; if any one of the granted qualification of the user to be granted and the target virtual resource fails to be verified, the ownership granted request fails to be primarily verified, the server does not need to execute the following step 803, and the server can feed back the transaction failure information to the user to be granted.
It should be noted that the above description of the verification method of the ownership granted request is only an exemplary description, and the embodiment of the present application does not limit which verification method is specifically adopted.
803. And in response to the initial verification of the ownership granted request of the target virtual resource, the server sends the ownership granted request of the target virtual resource to the node equipment in the blockchain system.
In this embodiment, after the server determines that the ownership granted request of the target virtual resource passes the preliminary verification, the server may broadcast the ownership granted request to each node device of the blockchain system, and each node device verifies whether the ownership granted request is valid again based on the data in the blockchain, that is, the following step 804 is performed.
In the embodiment of the application, the ownership granted request is preliminarily verified based on information stored in a local database of the server, and after the server passes the verification, the ownership granted request is sent to the blockchain system and is verified again by the blockchain system. The server preliminarily screens the ownership granted requests, so that the data processing amount of the block chain system can be reduced, and invalid operation of the block chain is avoided. Of course, the server may also directly send the received ownership granted request to the blockchain system, which is not limited in this embodiment.
804. The node equipment acquires user information of a user to be assigned and resource information of a target virtual resource based on a block chain of a block chain system, and verifies the assigned qualification and the target virtual resource of the user to be assigned based on the user information and the resource information.
Taking an example that one node device verifies the ownership granted request, in one possible implementation manner, the ownership granted request may carry a contract identifier of a target intelligent contract, the node device may invoke the target intelligent contract based on the contract identifier, obtain user information of the user to be granted and resource information of the target virtual resource based on the target intelligent contract, and perform subsequent steps of verifying the granted qualification and the target virtual resource based on the obtained information. In this embodiment, the node device may verify the granted qualification of the granted user based on the user information of the to-be-granted user and the virtual currency corresponding to the target virtual resource. For example, the node device may obtain the number of virtual currencies in the target account from the user information of the to-be-granted user, and if the number of virtual currencies in the target account is greater than or equal to the number of virtual currencies corresponding to the target virtual resource, it may be determined that the to-be-granted user has the granted qualification of the target virtual resource. The node device can also verify the target virtual resource based on ownership information and transaction state information in the resource information. In response to the transferee user having the transferee qualification and the ownership information and transaction status information of the target virtual resource being correct, it may be determined that the ownership transferee request is valid. The verification process is the same as the verification process of the ownership granted request by the server in step 802, and details are not described herein.
In one possible implementation, the node device may also verify a digital signature carried by the ownership transference request. For example, the second terminal and the server may both register in the blockchain system, and the public key and the private key are assigned to the first terminal and the server by the blockchain system. When the second terminal and the server send the ownership granted request, the private key signature of the second terminal and the private key signature of the server can be added to the ownership granted request, a receiver of the ownership granted request applies a corresponding public key to match the private key signature, and whether the ownership granted request is valid or not is determined based on a matching result. The process of verifying the ownership transfer request based on the key pair is the same as the process of verifying the ownership transfer request based on the key pair in step 304, and is not described herein again.
It should be noted that the above description of the method for verifying the ownership granted request by the node device is only an exemplary illustration, and the embodiment of the present application does not limit which verification method is specifically adopted.
In one possible implementation, the node device may further calculate, through a target model, a matching score of the to-be-admitted user with the target virtual resource, and the to-be-admitted user may determine whether to continue to trade the target virtual resource, i.e., whether to perform a subsequent virtual money transfer step, based on the matching score. The target model may be a model constructed based on a deep neural network, and the specific structure of the target model is not limited in the embodiment of the present application. In this embodiment of the application, the node device may input the user information of the to-be-assigned user and the resource information of the target virtual resource into a target model, and the target model may perform data analysis based on the user information of the to-be-assigned user and the resource information of the target virtual resource, extract the user characteristics of the to-be-assigned user and the resource characteristics of the target virtual resource, and further determine a matching score between the user information of the to-be-assigned user and the resource information based on the user characteristics and the resource characteristics. For example, the target model may determine the investment preference type of the to-be-assigned user based on the user information, determine characteristics such as the profitability and the duration of holding of the target virtual resource based on the resource information, and obtain the matching score according to the matching degree between the investment preference type of the to-be-assigned user and the target virtual resource, where the higher the matching between the target virtual resource and the investment preference type of the to-be-assigned user is, the higher the matching score is. The above description of the matching score calculation method is merely an exemplary description, and the present embodiment is not limited thereto.
The node device may send the matching score to the transferee user, the step of determining by the transferee user whether to perform a virtual money transfer based on the matching score. If the transferee user determines to terminate the transaction, the node device does not need to perform step 805 described below, and if the transferee user determines to continue the transaction, the node device may continue to perform step 805 described below. In the embodiment of the application, the matching score is fed back to the user to be given back, so that the risk in the virtual resource transaction process can be reduced, the user is prevented from purchasing the virtual resource which is not in accordance with the investment preference of the user, and the transaction risk is reduced.
If the ownership granted request is authenticated and the transferee user determines to continue the transaction, the node device may continue to step 805; if the ownership granted request fails or the to-be-granted user terminates the transaction, the node device does not need to perform the following step 805, and the node device may feed back information of the transaction failure to the server.
It should be noted that, in the above step 802, step 803, and step 804, in response to the target intelligent contract indicated by the contract identifier, based on the user identifier of the user to be admitted and the resource identifier of the target virtual resource, the user information of the user to be admitted and the resource information of the target virtual resource are obtained from the blockchain of the blockchain system; and verifying the assigned qualification of the user to be assigned and the target virtual resource based on the user information and the resource information. In the embodiment of the application, because the data stored in the blockchain cannot be deleted and tampered, the comprehensiveness and accuracy of obtaining the user information and the resource information when the node equipment verifies the ownership granted request can be ensured, the accuracy of the verification result can be further ensured, the validity of the ownership granted request can be ensured, and the condition of illegal transaction can be avoided.
805. The node device initiates a virtual money transfer request in the blockchain system in response to the granted qualification of the user to be granted and the target virtual resource verification passing.
The virtual money transfer request may be used to transfer the virtual money corresponding to the target virtual resource from the account of the user to be granted to the account of the user to which the target virtual resource belongs.
In a possible implementation manner, in response to the granted qualification of the user to be granted and the verification of the target virtual resource passing, the node device may invoke a target intelligent contract in the blockchain system, and the target intelligent contract sets the transaction state of the target virtual resource to a pre-transaction state, that is, locks the target virtual resource, so as to avoid transaction conflict caused by initiating a transaction to the target virtual resource by other users. Of course, a locking time may also be set for the target virtual resource, for example, the locking time may be set to 5 seconds, that is, the duration of the transaction state of the target virtual resource is 5 seconds, if the blockchain system does not complete the subsequent virtual money transfer step within 5 seconds, it may be determined that the transaction is failed, and the transaction state of the target virtual resource is recovered to the to-be-granted state.
In a possible implementation manner, after the target virtual resource is locked, the virtual money transfer request may be initiated in the blockchain system through the target intelligent contract, and the step of transferring the virtual money corresponding to the target virtual resource from the account of the user to be granted to the account of the user to which the target virtual resource belongs is performed. For example, the node device may send a request for virtual money transfer to the server based on the target intelligent contract, and in response to the request, the server may perform a step of virtual money transfer based on the target intelligent contract, that is, deducting virtual money corresponding to the target virtual resource from the target account of the user to be transfered, and transferring the virtual money to the account of the original user. In the embodiment of the application, the transaction safety can be improved by completing the virtual money transfer based on the intelligent contracts in the blockchain system. In one possible implementation manner, in response to the completion of the virtual money transfer step, the node device may set the transaction state of the target virtual resource to a transaction completion state through the target smart contract, and delete the transfer information of the target virtual resource in the transaction list of the target transaction platform in the blockchain system. The server can update the display information of the transaction bulletin page and the data in the local database based on the data in the blockchain system, and the second terminal does not display the transfer information of the target virtual resource any more.
In a possible implementation manner, after the virtual money transfer is completed, that is, after the transaction of the target virtual resource is completed, the server may send a prompt message of completion of the transaction to the one terminal and the second terminal to notify the original user and the user to be granted that the ownership transfer of the target virtual resource is completed.
806. The node device stores an ownership transfer record for the target virtual resource on the blockchain in response to the virtual money transfer request.
And the ownership transfer record is used for recording that the ownership of the target virtual resource is updated from the original user to the to-be-assigned user.
In a possible implementation manner, the ownership transfer record may be added to a memory pool of a node device in the blockchain system, and the node device may construct a block based on the ownership transfer record, that is, the node device may pack data in the memory pool according to a target cycle, construct a block, and store the block including the ownership transfer record into the blockchain based on a common recognition mechanism. It should be noted that, the embodiment of the present application does not limit the specific method for storing the ownership transfer record to the block chain.
All the above optional technical solutions may be combined arbitrarily to form optional embodiments of the present application, and are not described herein again.
According to the technical scheme provided by the embodiment of the application, the user information of the user to be assigned and the resource information of the target virtual resource are acquired from the block chain of the block chain system in response to the ownership assignment request of the target virtual resource, the accuracy of the user information and the resource information can be ensured as the data stored in the block chain can not be deleted and tampered, therefore, the assigned qualification of the user to be assigned and the target virtual resource are verified based on the user information and the resource information, the feasibility and the legality of the transfer can be determined, the virtual money transfer is performed in the block chain system in response to the passing of the assigned qualification of the user to be assigned and the verification of the target virtual resource, the ownership assignment record of the target virtual resource is stored on the block chain, and the ownership of the target virtual resource is updated from the original user to the user to be assigned, the transfer of the target virtual resources is realized, and the transfer steps are executed based on the block chain, so that the safety of the transfer process of the target virtual resources can be improved. Fig. 10 is a schematic diagram of data interaction in a resource processing process according to an embodiment of the present application, referring to fig. 10, in the resource processing process, a user may send a request, which may be an ownership transfer request, or the like, to a server 1002 of a target application platform through a client 1001 of a target trading platform, and perform data validation to a blockchain system 1003 by the server 1002, and the blockchain system 1003 may feed back a data validation result to the server 1002, and then feed back data to the client 1001 by the server 1002, that is, feed back to the user. In the resource processing process, namely, transaction data generated in the transaction process are verified by the blockchain system, so that the security of the transaction can be ensured.
Fig. 11 is a schematic structural diagram of a resource processing apparatus according to an embodiment of the present application, and referring to fig. 11, the apparatus includes:
a receiving module 1101, configured to receive an ownership granted request, where the ownership granted request carries a user identifier of a user to be granted, a resource identifier of a target virtual resource requested to be granted, and an intelligent contract identifier;
an obtaining module 1102, configured to, in response to a target intelligent contract indicated by the contract identifier, obtain, from a blockchain of the blockchain system, user information of the user to be admitted and resource information of the target virtual resource based on the user identifier of the user to be admitted and the resource identifier of the target virtual resource;
a verification module 1103, configured to verify the granted qualification of the user to be granted and the target virtual resource based on the user information and the resource information to obtain a verification result; and responding to the assigned qualification of the user to be assigned and the verification result of the target virtual resource, and executing the operation corresponding to the verification result in the target intelligent contract.
In a possible implementation manner, the receiving module 1101 is configured to receive an ownership transfer request of the target virtual resource, where the ownership transfer request carries a user identifier of the original user, a resource identifier of the target virtual resource, transfer information of the target virtual resource, and the intelligent contract identifier;
the obtaining module 1102 is configured to, in response to the target intelligent contract indicated by the contract identifier, obtain, from the block chain, user information of the original user and resource information of the target virtual resource based on the user identifier of the original user and the resource identifier of the target virtual resource;
the verifying module 1103 is configured to verify the validity of the ownership transfer request based on the user information of the original user, the resource information of the target virtual resource, and the transfer information of the target virtual resource;
the apparatus further includes an issuing module configured to issue transfer information of the target virtual resource in the blockchain system in response to the ownership transfer request being verified.
In one possible implementation, the verification module 1103 is configured to:
verifying whether the ownership of the original user to the target virtual resource is valid or not based on the user information of the original user and the resource information of the target virtual resource;
verifying whether the transfer information of the target virtual resource is effective or not based on the resource information of the target virtual resource;
verifying whether the target virtual resource is in a tradable state or not based on the transaction state information in the resource information of the target virtual resource;
and determining that the ownership transfer request is valid in response to whether the ownership of the originally belonging user is valid, the transfer information of the target virtual resource is valid, and the target virtual resource is in a tradable state.
In one possible implementation, the publishing module is to:
adding the transfer information of the target virtual resource into a transaction list of a target transaction platform in the blockchain system, wherein the transaction list is used for storing the transfer information of each virtual resource to be granted.
In one possible implementation, the verification module 1103 is configured to:
verifying the assigned qualification of the assigned user based on the user information of the user to be assigned and the virtual currency corresponding to the target virtual resource;
and verifying the target virtual resource based on the ownership information and the transaction state information in the resource information to obtain a verification result.
In one possible implementation, the verification module 1103 is configured to:
acquiring the number of virtual currencies in a target account from the user information of the user to be admitted;
and if the number of the virtual currency in the target account is larger than or equal to the number of the virtual currency corresponding to the target virtual resource, determining that the user to be granted has the granted qualification of the target virtual resource.
In one possible implementation, the apparatus further includes:
the input module is used for inputting the user information of the user to be admitted and the resource information of the target virtual resource into a target model, and the target model determines the matching score between the user information of the user to be admitted and the resource information;
and the sending module is used for sending the matching score to the user to be transfered, and the user to be transfered determines whether to execute the step of virtual money transfer or not based on the matching score.
In one possible implementation, the verification module 1103 is configured to:
responding to the granted qualification of the user to be granted and the verification of the target virtual resource, and initiating a virtual money transfer request in the blockchain system, wherein the virtual money transfer request is used for transferring the virtual money corresponding to the target virtual resource from the account of the user to be granted to the account of the original user of the target virtual resource;
and in response to the virtual money transfer request, storing an ownership transfer record of the target virtual resource on the blockchain, wherein the ownership transfer record is used for recording that the ownership of the target virtual resource is updated from the original user to the to-be-assigned user.
In one possible implementation, the verification module 1103 is configured to:
responding to the granted qualification of the user to be granted and the verification of the target virtual resource, calling a target intelligent contract in the blockchain system, and setting the transaction state of the target virtual resource to be a pre-transaction state by the target intelligent contract;
initiating the virtual money transfer request in the blockchain system through the target intelligent contract, and executing the step of transferring the virtual money corresponding to the target virtual resource from the account of the user to be transfered to the account of the original user.
In one possible implementation, the apparatus further includes:
the setting module is used for calling the target intelligent contract in the block chain system, and the target intelligent contract sets the transaction state of the target virtual resource to be a transaction completion state;
and the deleting module is used for deleting the transfer information of the target virtual resource in the transaction list of the target transaction platform in the blockchain system.
In one possible implementation, the verification module 1103 is configured to:
adding the ownership transfer record to a memory pool of a node device in the blockchain system, wherein the memory pool is used for storing data which is not added to a blockchain;
constructing, by the node device, a chunk based on the ownership transfer record;
the block containing the ownership transfer record is stored in the blockchain.
In one possible implementation, the verification module 1103 is configured to:
and outputting transfer refusal information in response to the condition that any one of the transferee qualification of the user to be transfered and the target virtual resource fails to be verified.
The device provided by the embodiment of the application acquires the user information of the user to be granted and the resource information of the target virtual resource from the block chain of the block chain system in response to the ownership granting request for the target virtual resource, can ensure the accuracy of acquiring the user information and the resource information because the data stored in the block chain is undeletable and untrustable, so that the feasibility and the validity of the transfer can be determined by verifying the granted qualification of the user to be granted and the target virtual resource based on the user information and the resource information, and the ownership of the target virtual resource is updated from the original user to the user to be granted in response to the passing of the granted qualification of the user to be granted and the verification of the target virtual resource by performing virtual money transfer in the block chain system, storing the ownership transfer record of the target virtual resource on the block chain, the transfer of the target virtual resource is realized, and the ownership transfer is carried out based on the block chain, so that the safety of the ownership transfer process of the target virtual resource can be improved.
It should be noted that: in the resource processing apparatus provided in the foregoing embodiment, when performing resource processing, only the division of the functional modules is illustrated, and in practical applications, the function allocation may be performed by different functional modules according to needs, that is, the internal structure of the apparatus is divided into different functional modules to perform all or part of the functions described above. In addition, the resource processing apparatus and the resource processing method provided in the foregoing embodiments belong to the same concept, and specific implementation processes thereof are described in the method embodiments and are not described herein again.
The computer device provided by the above technical solution can be implemented as a terminal or a server, for example, fig. 12 is a schematic structural diagram of a terminal provided in an embodiment of the present application. The terminal 1200 may be: a smart phone, a tablet computer, an MP3 player (Moving Picture Experts Group Audio Layer III, motion video Experts compression standard Audio Layer 3), an MP4 player (Moving Picture Experts Group Audio Layer IV, motion video Experts compression standard Audio Layer 4), a notebook computer, or a desktop computer. Terminal 1200 may also be referred to by other names such as user equipment, portable terminal, laptop terminal, desktop terminal, and so forth.
In general, terminal 1200 includes: one or more processors 1201 and one or more memories 1202.
The processor 1201 may include one or more processing cores, such as a 4-core processor, an 8-core processor, or the like. The processor 1201 may be implemented in at least one hardware form of a DSP (Digital Signal Processing), an FPGA (Field-Programmable Gate Array), and a PLA (Programmable Logic Array). The processor 1201 may also include a main processor and a coprocessor, where the main processor is a processor for Processing data in an awake state, and is also called a Central Processing Unit (CPU); a coprocessor is a low power processor for processing data in a standby state. In some embodiments, the processor 1201 may be integrated with a GPU (Graphics Processing Unit) that is responsible for rendering and drawing content that the display screen needs to display. In some embodiments, the processor 1201 may further include an AI (Artificial Intelligence) processor for processing a computing operation related to machine learning.
Memory 1202 may include one or more computer-readable storage media, which may be non-transitory. Memory 1202 may also include high-speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In some embodiments, a non-transitory computer readable storage medium in the memory 1202 is used to store at least one program code for execution by the processor 1201 to implement the resource handling methods provided by the method embodiments herein.
In some embodiments, the terminal 1200 may further optionally include: a peripheral interface 1203 and at least one peripheral. The processor 1201, memory 1202, and peripheral interface 1203 may be connected by a bus or signal line. Various peripheral devices may be connected to peripheral interface 1203 via a bus, signal line, or circuit board. Specifically, the peripheral device includes: at least one of radio frequency circuitry 1204, display 1205, camera assembly 1206, audio circuitry 1207, positioning assembly 1208, and power supply 1209.
The peripheral interface 1203 may be used to connect at least one peripheral associated with I/O (Input/Output) to the processor 1201 and the memory 1202. In some embodiments, the processor 1201, memory 1202, and peripheral interface 1203 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 1201, the memory 1202 and the peripheral device interface 1203 may be implemented on a separate chip or circuit board, which is not limited in this embodiment.
The Radio Frequency circuit 1204 is used for receiving and transmitting RF (Radio Frequency) signals, also called electromagnetic signals. The radio frequency circuit 1204 communicates with a communication network and other communication devices by electromagnetic signals. The radio frequency circuit 1204 converts an electric signal into an electromagnetic signal to transmit, or converts a received electromagnetic signal into an electric signal. Optionally, the radio frequency circuit 1204 comprises: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a subscriber identity module card, and so forth. The radio frequency circuit 1204 may communicate with other terminals through at least one wireless communication protocol. The wireless communication protocols include, but are not limited to: metropolitan area networks, various generation mobile communication networks (2G, 3G, 4G, and 5G), Wireless local area networks, and/or WiFi (Wireless Fidelity) networks. In some embodiments, the rf circuit 1204 may further include NFC (Near Field Communication) related circuits, which are not limited in this application.
The display screen 1205 is used to display a UI (User Interface). The UI may include graphics, text, icons, video, and any combination thereof. When the display screen 1205 is a touch display screen, the display screen 1205 also has the ability to acquire touch signals on or over the surface of the display screen 1205. The touch signal may be input to the processor 1201 as a control signal for processing. At this point, the display 1205 may also be used to provide virtual buttons and/or a virtual keyboard, also referred to as soft buttons and/or a soft keyboard. In some embodiments, the display 1205 may be one, providing the front panel of the terminal 1200; in other embodiments, the display 1205 can be at least two, respectively disposed on different surfaces of the terminal 1200 or in a folded design; in some embodiments, the display 1205 may be a flexible display disposed on a curved surface or on a folded surface of the terminal 1200. Even further, the display screen 1205 may be arranged in a non-rectangular irregular figure, i.e., a shaped screen. The Display panel 1205 can be made of LCD (Liquid Crystal Display), OLED (Organic Light-Emitting Diode), or other materials.
Camera assembly 1206 is used to capture images or video. Optionally, camera assembly 1206 includes a front camera and a rear camera. Generally, a front camera is disposed at a front panel of the terminal, and a rear camera is disposed at a rear surface of the terminal. In some embodiments, the number of the rear cameras is at least two, and each rear camera is any one of a main camera, a depth-of-field camera, a wide-angle camera and a telephoto camera, so that the main camera and the depth-of-field camera are fused to realize a background blurring function, and the main camera and the wide-angle camera are fused to realize panoramic shooting and VR (Virtual Reality) shooting functions or other fusion shooting functions. In some embodiments, camera assembly 1206 may also include a flash. The flash lamp can be a monochrome temperature flash lamp or a bicolor temperature flash lamp. The double-color-temperature flash lamp is a combination of a warm-light flash lamp and a cold-light flash lamp, and can be used for light compensation at different color temperatures.
The audio circuitry 1207 may include a microphone and a speaker. The microphone is used for collecting sound waves of a user and the environment, converting the sound waves into electric signals, and inputting the electric signals into the processor 1201 for processing or inputting the electric signals into the radio frequency circuit 1204 to achieve voice communication. For stereo capture or noise reduction purposes, multiple microphones may be provided at different locations of terminal 1200. The microphone may also be an array microphone or an omni-directional pick-up microphone. The speaker is used to convert electrical signals from the processor 1201 or the radio frequency circuit 1204 into sound waves. The loudspeaker can be a traditional film loudspeaker or a piezoelectric ceramic loudspeaker. When the speaker is a piezoelectric ceramic speaker, the speaker can be used for purposes such as converting an electric signal into a sound wave audible to a human being, or converting an electric signal into a sound wave inaudible to a human being to measure a distance. In some embodiments, the audio circuitry 1207 may also include a headphone jack.
The positioning component 1208 is configured to locate a current geographic Location of the terminal 1200 to implement navigation or LBS (Location Based Service). The Positioning component 1208 can be a Positioning component based on the united states GPS (Global Positioning System), the chinese beidou System, the russian graves System, or the european union galileo System.
The power supply 1209 is used to provide power to various components within the terminal 1200. The power source 1209 may be alternating current, direct current, disposable or rechargeable. When the power source 1209 includes a rechargeable battery, the rechargeable battery may support wired or wireless charging. The rechargeable battery may also be used to support fast charge technology.
In some embodiments, terminal 1200 also includes one or more sensors 1210. The one or more sensors 1210 include, but are not limited to: acceleration sensor 1211, gyro sensor 1212, pressure sensor 1213, fingerprint sensor 1214, optical sensor 1215, and proximity sensor 1216.
The acceleration sensor 1211 can detect magnitudes of accelerations on three coordinate axes of the coordinate system established with the terminal 1200. For example, the acceleration sensor 1211 may be used to detect components of the gravitational acceleration in three coordinate axes. The processor 1201 may control the display screen 1205 to display the user interface in a landscape view or a portrait view according to the gravitational acceleration signal collected by the acceleration sensor 1211. The acceleration sensor 1211 may also be used for acquisition of motion data of a game or a user.
The gyro sensor 1212 may detect a body direction and a rotation angle of the terminal 1200, and the gyro sensor 1212 may collect a 3D motion of the user on the terminal 1200 in cooperation with the acceleration sensor 1211. The processor 1201 can implement the following functions according to the data collected by the gyro sensor 1212: motion sensing (such as changing the UI according to a user's tilting operation), image stabilization at the time of photographing, game control, and inertial navigation.
Pressure sensors 1213 may be disposed on the side frames of terminal 1200 and/or underlying display 1205. When the pressure sensor 1213 is disposed on the side frame of the terminal 1200, the user's holding signal of the terminal 1200 can be detected, and the processor 1201 performs left-right hand recognition or shortcut operation according to the holding signal collected by the pressure sensor 1213. When the pressure sensor 1213 is disposed at a lower layer of the display screen 1205, the processor 1201 controls the operability control on the UI interface according to the pressure operation of the user on the display screen 1205. The operability control comprises at least one of a button control, a scroll bar control, an icon control and a menu control.
The fingerprint sensor 1214 is used for collecting a fingerprint of the user, and the processor 1201 identifies the user according to the fingerprint collected by the fingerprint sensor 1214, or the fingerprint sensor 1214 identifies the user according to the collected fingerprint. When the user identity is identified as a trusted identity, the processor 1201 authorizes the user to perform relevant sensitive operations, including unlocking a screen, viewing encrypted information, downloading software, paying, changing settings, and the like. The fingerprint sensor 1214 may be provided on the front, back, or side of the terminal 1200. When a physical button or vendor Logo is provided on the terminal 1200, the fingerprint sensor 1214 may be integrated with the physical button or vendor Logo.
The optical sensor 1215 is used to collect the ambient light intensity. In one embodiment, the processor 1201 may control the display brightness of the display 1205 according to the ambient light intensity collected by the optical sensor 1215. Specifically, when the ambient light intensity is high, the display luminance of the display panel 1205 is increased; when the ambient light intensity is low, the display brightness of the display panel 1205 is turned down. In another embodiment, processor 1201 may also dynamically adjust the camera head 1206 shooting parameters based on the ambient light intensity collected by optical sensor 1215.
A proximity sensor 1216, also known as a distance sensor, is typically disposed on the front panel of the terminal 1200. The proximity sensor 1216 is used to collect a distance between the user and the front surface of the terminal 1200. In one embodiment, when the proximity sensor 1216 detects that the distance between the user and the front surface of the terminal 1200 gradually decreases, the processor 1201 controls the display 1205 to switch from the bright screen state to the dark screen state; when the proximity sensor 1216 detects that the distance between the user and the front surface of the terminal 1200 gradually becomes larger, the processor 1201 controls the display 1205 to switch from the breath-screen state to the bright-screen state.
Those skilled in the art will appreciate that the configuration shown in fig. 12 is not intended to be limiting of terminal 1200 and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components may be used.
Fig. 13 is a schematic structural diagram of a server 1300 according to an embodiment of the present application, where the server 1300 may generate a relatively large difference due to different configurations or performances, and may include one or more processors (CPUs) 1301 and one or more memories 1302, where at least one program code is stored in the one or more memories 1302, and is loaded and executed by the one or more processors 1301 to implement the methods provided by the foregoing method embodiments. Certainly, the server 1300 may further include components such as a wired or wireless network interface, a keyboard, and an input/output interface, so as to perform input and output, and the server 1300 may further include other components for implementing the functions of the device, which is not described herein again.
In an exemplary embodiment, a computer readable storage medium, such as a memory including at least one program code, which is executable by a processor to perform the resource handling method in the above embodiments, is also provided. For example, the computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a Compact Disc Read-Only Memory (CD-ROM), a magnetic tape, a floppy disk, an optical data storage device, and the like.
It will be understood by those skilled in the art that all or part of the steps of implementing the above embodiments may be implemented by hardware, or implemented by at least one program code associated with hardware, where the program code is stored in a computer readable storage medium, such as a read only memory, a magnetic or optical disk, etc.
The above description is only exemplary of the present application and should not be taken as limiting, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present application should be included in the protection scope of the present application.

Claims (15)

1. A resource processing method applied to a node device in a blockchain system, the method comprising:
receiving an ownership transfer request, wherein the ownership transfer request carries a user identifier of a user to be transferred, a resource identifier of a target virtual resource requested to be transferred and an intelligent contract identifier;
responding to a target intelligent contract indicated by the contract identification, and acquiring user information of the user to be assigned and resource information of the target virtual resource from a block chain of the block chain system based on the user identification of the user to be assigned and the resource identification of the target virtual resource;
verifying the assigned qualification of the user to be assigned and the target virtual resource based on the user information and the resource information to obtain a verification result;
and responding to the assigned qualification of the user to be assigned and the verification result of the target virtual resource, and executing the operation corresponding to the verification result in the target intelligent contract.
2. The method of claim 1, wherein prior to receiving the ownership grant request, the method further comprises:
receiving an ownership transfer request of the target virtual resource, wherein the ownership transfer request carries a user identifier of an original user of the target virtual resource, a resource identifier of the target virtual resource, transfer information of the target virtual resource and the intelligent contract identifier;
responding to the target intelligent contract indicated by the contract identification, and acquiring user information of the original user and resource information of the target virtual resource from the block chain based on the user identification of the original user and the resource identification of the target virtual resource;
verifying the validity of the ownership transfer request based on the user information of the original user, the resource information of the target virtual resource and the transfer information of the target virtual resource;
and issuing transfer information of the target virtual resource in the blockchain system in response to the verification of the ownership transfer request.
3. The method of claim 2, wherein the verifying the validity of the ownership transfer request based on the user information of the original user, the resource information of the target virtual resource, and the transfer information of the target virtual resource comprises:
verifying whether ownership of the target virtual resource by the original user is valid or not based on user information of the original user and resource information of the target virtual resource;
verifying whether the transfer information of the target virtual resource is effective or not based on the resource information of the target virtual resource;
verifying whether the target virtual resource is in a tradable state or not based on transaction state information in the resource information of the target virtual resource;
and determining that the ownership transfer request is valid in response to whether the ownership of the originally belonging user is valid, the transfer information of the target virtual resource is valid, and the target virtual resource is in a tradable state.
4. The method of claim 2, wherein the publishing transfer information of the target virtual resource in the blockchain system comprises:
adding the transfer information of the target virtual resource into a transaction list of a target transaction platform in the blockchain system, wherein the transaction list is used for storing the transfer information of each virtual resource to be granted.
5. The method according to claim 1, wherein the verifying the granted qualification of the user to be granted and the target virtual resource to obtain a verification result based on the user information and the resource information comprises:
verifying the assigned qualification of the assigned user based on the user information of the user to be assigned and the virtual currency corresponding to the target virtual resource;
and verifying the target virtual resource based on ownership information and transaction state information in the resource information to obtain a verification result.
6. The method according to claim 5, wherein the verifying the granted qualification of the granted user based on the user information of the to-be-granted user and the virtual currency corresponding to the target virtual resource comprises:
acquiring the number of virtual currencies in a target account from the user information of the user to be admitted;
and if the number of the virtual currencies in the target account is greater than or equal to the number of the virtual currencies corresponding to the target virtual resources, determining that the user to be granted has the granted qualification of the target virtual resources.
7. The method of claim 5, wherein the target virtual resource is verified based on ownership information and transaction status information in the resource information to obtain a verification result, and thereafter, the method further comprises:
inputting the user information of the user to be admitted and the resource information of the target virtual resource into a target model, and determining a matching score between the user information of the user to be admitted and the resource information by the target model;
a step of sending the matching score to the transferee user, and determining by the transferee user whether to perform a virtual money transfer based on the matching score.
8. The method according to claim 1, wherein the performing, in response to the granted qualification of the user to be granted and the verification result of the target virtual resource, the operation corresponding to the verification result in the target smart contract comprises:
in response to the granted qualification of the user to be granted and the verification of the target virtual resource passing, initiating a virtual money transfer request in the blockchain system, wherein the virtual money transfer request is used for transferring the virtual money corresponding to the target virtual resource from the account of the user to be granted to the account of the original user of the target virtual resource;
in response to the virtual money transfer request, storing an ownership transfer record of the target virtual resource on the blockchain, wherein the ownership transfer record is used for recording that the ownership of the target virtual resource is updated from the original user to the user to be transfered.
9. The method of claim 8, wherein said initiating a virtual money transfer request in the blockchain system in response to the transferee user's transferee qualification and the target virtual resource verification passing comprises:
responding to the passed qualification of the user to be passed and the verification of the target virtual resource, calling a target intelligent contract in the blockchain system, and setting the transaction state of the target virtual resource to be a pre-transaction state by the target intelligent contract;
initiating the virtual money transfer request in the blockchain system through the target intelligent contract, and executing the step of transferring the virtual money corresponding to the target virtual resource from the account of the user to be transfered to the account of the original user.
10. The method of claim 8, wherein after initiating a virtual money transfer request in the blockchain system in response to the transferee user's transferee qualification and the target virtual resource verification passing, the method further comprises:
calling the target intelligent contract in the blockchain system, and setting the transaction state of the target virtual resource to be a transaction completion state by the target intelligent contract;
and deleting the transfer information of the target virtual resource in a transaction list of a target transaction platform in the blockchain system.
11. The method of claim 8, wherein said storing an ownership transfer record of said target virtual resource on said blockchain in response to said virtual money transfer request comprises:
adding the ownership transfer record to a memory pool of a node device in the blockchain system, wherein the memory pool is used for storing data which is not added to a blockchain;
constructing, by the node device, a chunk based on the ownership transfer record;
storing the block containing the ownership transfer record into the block chain.
12. The method according to claim 1, wherein the performing, in response to the granted qualification of the user to be granted and the verification result of the target virtual resource, the operation corresponding to the verification result in the target smart contract comprises:
and outputting transfer refusal information in response to the condition that any one of the transferee qualification of the user to be transfered and the target virtual resource fails to be verified.
13. An apparatus for resource handling, the apparatus comprising:
the system comprises a receiving module, a judging module and a judging module, wherein the receiving module is used for receiving an ownership transfer request, and the ownership transfer request carries a user identifier of a user to be transferred, a resource identifier of a target virtual resource requested to be transferred and an intelligent contract identifier;
an obtaining module, configured to, in response to a target intelligent contract indicated by the contract identifier, obtain, from a block chain of the block chain system, user information of the user to be admitted and resource information of the target virtual resource based on a user identifier of the user to be admitted and a resource identifier of the target virtual resource;
the verification module is used for verifying the assigned qualification of the user to be assigned and the target virtual resource based on the user information and the resource information to obtain a verification result; and responding to the assigned qualification of the user to be assigned and the verification result of the target virtual resource, and executing the operation corresponding to the verification result in the target intelligent contract.
14. A computer device comprising one or more processors and one or more memories having at least one program code stored therein, the at least one program code loaded and executed by the one or more processors to perform operations performed by the resource processing method of any one of claims 1 to 12.
15. A computer-readable storage medium having stored therein at least one program code, the at least one program code being loaded and executed by a processor to perform operations performed by the resource handling method of any of claims 1 to 12.
CN202010238049.6A 2020-03-30 2020-03-30 Resource processing method, device, equipment and storage medium Active CN112991069B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010238049.6A CN112991069B (en) 2020-03-30 2020-03-30 Resource processing method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010238049.6A CN112991069B (en) 2020-03-30 2020-03-30 Resource processing method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112991069A true CN112991069A (en) 2021-06-18
CN112991069B CN112991069B (en) 2023-08-15

Family

ID=76344340

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010238049.6A Active CN112991069B (en) 2020-03-30 2020-03-30 Resource processing method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112991069B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023134282A1 (en) * 2022-01-11 2023-07-20 腾讯科技(深圳)有限公司 Blockchain-based data processing method and apparatus, device, storage medium and program product

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108510412A (en) * 2018-04-04 2018-09-07 广州科创空间科技服务有限公司 Intellectual property transfer management method, electronic equipment and storage medium based on alliance's chain
WO2019001139A1 (en) * 2017-06-26 2019-01-03 华为技术有限公司 Method and device for running chaincode
CN109684876A (en) * 2018-12-01 2019-04-26 河南中欧企业咨询有限公司 A kind of contract business management method and system based on block chain
CN110290489A (en) * 2018-03-19 2019-09-27 杨世腾 The storage of network flow resource and shared plateform system
CN110555766A (en) * 2018-06-01 2019-12-10 厦门本能管家科技有限公司 Off-center asset exchange method and device
CN110582775A (en) * 2017-04-17 2019-12-17 科因普拉格株式会社 Method for managing file based on block chain by using UTXO basic protocol and file management server using the same
US20200067697A1 (en) * 2017-03-22 2020-02-27 NEC Laboratories Europe GmbH Method for operating a blockchain

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20200067697A1 (en) * 2017-03-22 2020-02-27 NEC Laboratories Europe GmbH Method for operating a blockchain
CN110582775A (en) * 2017-04-17 2019-12-17 科因普拉格株式会社 Method for managing file based on block chain by using UTXO basic protocol and file management server using the same
WO2019001139A1 (en) * 2017-06-26 2019-01-03 华为技术有限公司 Method and device for running chaincode
CN110290489A (en) * 2018-03-19 2019-09-27 杨世腾 The storage of network flow resource and shared plateform system
CN108510412A (en) * 2018-04-04 2018-09-07 广州科创空间科技服务有限公司 Intellectual property transfer management method, electronic equipment and storage medium based on alliance's chain
CN110555766A (en) * 2018-06-01 2019-12-10 厦门本能管家科技有限公司 Off-center asset exchange method and device
CN109684876A (en) * 2018-12-01 2019-04-26 河南中欧企业咨询有限公司 A kind of contract business management method and system based on block chain

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
孔繁超;: "基于区块链的开放获取资源建设与管理", 情报理论与实践, no. 05 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023134282A1 (en) * 2022-01-11 2023-07-20 腾讯科技(深圳)有限公司 Blockchain-based data processing method and apparatus, device, storage medium and program product

Also Published As

Publication number Publication date
CN112991069B (en) 2023-08-15

Similar Documents

Publication Publication Date Title
CN109615516B (en) Resource transfer method, device, electronic equipment and storage medium
CN109598142B (en) Credit right certificate generation method and device, electronic equipment and storage medium
CN109615515B (en) Credit right certificate transfer method, device, electronic equipment and storage medium
CN108696514B (en) Resource collection task management method, device, storage medium and system
CN111401867A (en) Resource transfer method and device based on block chain, node equipment and storage medium
CN110889772B (en) Policy processing method and device, computer equipment and storage medium
CN110598482A (en) Block chain-based digital certificate management method, device, equipment and storage medium
WO2021164321A1 (en) Block processing method and apparatus, and data query method and apparatus based on blockchain
CN111340482B (en) Conflict detection method, device, node equipment and storage medium
CN111080443B (en) Block chain-based service processing method, device, equipment and storage medium
CN110689460A (en) Traffic accident data processing method, device, equipment and medium based on block chain
CN110555780B (en) Insurance data processing method, device and equipment based on block chain and storage medium
CN111598709A (en) Medical insurance data processing system, method, device, equipment and storage medium
CN110597924B (en) Block chain-based user identification processing method, device, equipment and storage medium
CN111506884A (en) User invitation method, device, computer equipment and computer readable storage medium
CN111667371B (en) Resource aggregation method, system, device and storage medium based on block chain
CN111260347A (en) Resource processing method, device and equipment based on block chain and storage medium
CN110599328B (en) Block chain based risk user determination method, device, equipment and storage medium
CN111212074B (en) Blockchain-based qualification identification method, device, equipment and storage medium
CN112036887A (en) Resource transfer method, device, equipment and storage medium
CN110659975B (en) Resource transfer method, device, equipment and storage medium based on block chain
CN112991069B (en) Resource processing method, device, equipment and storage medium
CN110570289A (en) service processing method, device, equipment and storage medium based on block chain
CN111327427B (en) Method, device, node equipment, system and storage medium for submitting alternative blocks
CN112258206A (en) Prop resource obtaining method and device, electronic equipment and storage medium

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
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 40045975

Country of ref document: HK

GR01 Patent grant
GR01 Patent grant