CN110599182B - Resource management method and device - Google Patents

Resource management method and device Download PDF

Info

Publication number
CN110599182B
CN110599182B CN201910922622.2A CN201910922622A CN110599182B CN 110599182 B CN110599182 B CN 110599182B CN 201910922622 A CN201910922622 A CN 201910922622A CN 110599182 B CN110599182 B CN 110599182B
Authority
CN
China
Prior art keywords
user
account
transaction
target virtual
virtual resource
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910922622.2A
Other languages
Chinese (zh)
Other versions
CN110599182A (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 CN201910922622.2A priority Critical patent/CN110599182B/en
Publication of CN110599182A publication Critical patent/CN110599182A/en
Application granted granted Critical
Publication of CN110599182B publication Critical patent/CN110599182B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/382Payment protocols; Details thereof insuring higher security of transaction
    • G06Q20/3827Use of message hashing
    • 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/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
    • 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

Landscapes

  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Engineering & Computer Science (AREA)
  • Finance (AREA)
  • Physics & Mathematics (AREA)
  • Strategic Management (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Technology Law (AREA)
  • Development Economics (AREA)
  • Computer Security & Cryptography (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

The embodiment of the invention provides a resource management method and device, wherein the method comprises the following steps: acquiring a hanging transaction submitted by a first user through first terminal equipment, wherein the hanging transaction comprises the number and the price of target virtual resources to be transacted; if the buying transaction submitted by the second user for the target virtual resource through the second terminal equipment is obtained, calling an intelligent contract to lock the target virtual resource, and sending a payment link for the target virtual resource to the second terminal equipment; after the intelligent contract detects that the second user finishes payment by using the payment link, transferring the target virtual resource from the account of the first user to the account of the second user, and rapidly and efficiently finishing the transaction of the virtual resource through a blockchain, thereby effectively ensuring the safety and avoiding the defects of low transaction efficiency, long transaction period and the like caused by intermediary matching.

Description

Resource management method and device
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method and an apparatus for resource management.
Background
At present, for the virtual resources such as bonds, the trade market does not pass through a securities exchange, but is serially connected among several bond intermediaries licensed nationally to conduct trade, and a unified hanger and a barking system are not provided, so that each bond trade needs to be matched by the intermediaries, the trade efficiency is low, the barking period is long, usually T+0 negotiable trade is carried out, T+1 barking can be carried out, and how to provide a quick and efficient virtual resource trade scheme has become a problem to be solved urgently.
Disclosure of Invention
The embodiment of the invention provides a resource management method and a resource management device, which can rapidly and efficiently complete the transaction of virtual resources through a blockchain, effectively ensure the safety, and avoid the defects of low transaction efficiency, long transaction period and the like caused by intermediary matching.
In a first aspect, an embodiment of the present invention provides a resource management method applied to a blockchain network, where the blockchain network includes a plurality of nodes, the method including:
acquiring a hanging transaction submitted by a first user through first terminal equipment, wherein the hanging transaction comprises the number and the price of target virtual resources to be transacted;
if the buying transaction submitted by the second user for the target virtual resource through the second terminal equipment is obtained, calling an intelligent contract to lock the target virtual resource, and sending a payment link for the target virtual resource to the second terminal equipment;
and after the intelligent contract detects that the second user finishes payment by using the payment link, transferring the target virtual resource from the account of the first user to the account of the second user.
In a second aspect, an embodiment of the present invention provides a resource management method, which is applied to a first terminal device corresponding to a first user, where the method includes:
Submitting a hanging transaction of the first user to a target node, wherein the target node is any one of a plurality of nodes included in a blockchain network, the hanging transaction comprises the quantity and the price of target virtual resources to be transacted, the hanging transaction enables the target node to call an intelligent contract to lock the target virtual resources when acquiring a purchase transaction submitted by a second user for the target virtual resources through a second terminal device, and sends a payment link for the target virtual resources to the second terminal device, and after the intelligent contract detects that the second user finishes payment by using the payment link, the target virtual resources are transferred from an account of the first user to an account of the second user;
and receiving a notification message that the target node successfully carries out the hanging transaction after transferring the target virtual resource from the account of the first user to the account of the second user.
In a third aspect, an embodiment of the present invention provides a resource management method, applied to a second terminal device corresponding to a second user, where the method includes:
submitting a buying transaction of the second user for a target virtual resource to a target node, wherein the target node is any one of a plurality of nodes included in a blockchain network, the buying transaction enables the target node to call an intelligent contract to lock the target virtual resource, and a payment link for the target virtual resource is sent to the second terminal equipment, and the target virtual resource is a virtual resource to be transacted, which is included in a hanging transaction submitted to the target node by a first terminal equipment corresponding to a first user;
Receiving the payment link sent by the target node, wherein the payment link is used for the second user to pay for the target virtual resource, so that the target node transfers the target virtual resource from the account of the first user to the account of the second user after the intelligent contract detects that the second user finishes paying by using the payment link;
and receiving a notification message which is sent by the target node and is successful in the purchase transaction after the target virtual resource is transferred from the account of the first user to the account of the second user.
In a fourth aspect, an embodiment of the present invention provides a resource management apparatus applied to a blockchain network, the blockchain network including a plurality of nodes, the apparatus including:
the system comprises an acquisition module, a first terminal device and a second terminal device, wherein the acquisition module is used for acquiring a hanging transaction submitted by a first user through the first terminal device, and the hanging transaction comprises the number and the price of target virtual resources to be transacted;
the processing module is used for calling an intelligent contract to lock the target virtual resource if acquiring a buying transaction submitted by a second user for the target virtual resource through a second terminal device;
a sending module, configured to send a payment link for the target virtual resource to the second terminal device;
The processing module is further configured to transfer the target virtual resource from the account of the first user to the account of the second user after the smart contract detects that the second user completes payment using the payment link.
In a fifth aspect, an embodiment of the present invention provides a resource management device, which is applied to a first terminal device corresponding to a first user, where the device includes:
a submitting module, configured to submit a hanging transaction of the first user to a target node, where the target node is any one of a plurality of nodes included in a blockchain network, the hanging transaction includes a number and a price of target virtual resources to be transacted, the hanging transaction makes the target node call an intelligent contract to lock the target virtual resources when acquiring a purchase transaction submitted by a second user for the target virtual resources through a second terminal device, send a payment link for the target virtual resources to the second terminal device, and transfer the target virtual resources from an account of the first user to an account of the second user after the intelligent contract detects that the second user completes payment using the payment link;
And the receiving module is used for receiving a notification message that the target node successfully carries out the hanging transaction after transferring the target virtual resource from the account of the first user to the account of the second user.
In a sixth aspect, an embodiment of the present invention provides a resource management device, which is applied to a second terminal device corresponding to a second user, where the device includes:
the system comprises a target node, a target virtual resource, a first terminal device and a second terminal device, wherein the target node is any one of a plurality of nodes included in a blockchain network, is used for calling an intelligent contract to lock the target virtual resource by the target node, and sending a payment link for the target virtual resource to the second terminal device, and the target virtual resource is a virtual resource to be transacted included in a hanging disk transaction submitted to the target node by the first terminal device corresponding to a first user;
the receiving module is used for receiving the payment link sent by the target node, and the payment link is used for the second user to pay for the target virtual resource, so that the target node transfers the target virtual resource from the account of the first user to the account of the second user after the intelligent contract detects that the second user finishes paying by using the payment link;
The receiving module is further configured to receive a notification message that the target node is successful in the purchase transaction, where the notification message is sent by the target node after transferring the target virtual resource from the account of the first user to the account of the second user.
In a seventh aspect, an embodiment of the present invention provides a node device, applied to a blockchain network, where the blockchain network includes a plurality of nodes, the node device includes a processor, a network interface, and a storage device, where the processor, the network interface, and the storage device are connected to each other, the network interface is controlled by the processor to send and receive data, and the storage device is used to store a computer program, where the computer program includes program instructions, and the processor is configured to invoke the program instructions to perform the resource management method described in the first aspect.
In an eighth aspect, an embodiment of the present invention provides a terminal device, where the terminal device includes a processor, a network interface, and a storage device, where the processor, the network interface, and the storage device are connected to each other, where the network interface is controlled by the processor to send and receive data, and the storage device is used to store a computer program, where the computer program includes program instructions, and the processor is configured to invoke the program instructions to perform the resource management method in the second aspect or the third aspect.
In a ninth aspect, an embodiment of the present invention provides a computer storage medium, where program instructions are stored, the program instructions being configured to implement the resource management method according to the first aspect, the second aspect, or the third aspect when executed.
According to the embodiment of the invention, the hanging transaction submitted by the first user through the first terminal equipment can be obtained, the hanging transaction comprises the number and the price of the target virtual resources to be transacted, if the buying transaction submitted by the second user through the second terminal equipment for the target virtual resources is obtained, the intelligent contract is called to lock the target virtual resources, the payment link for the target virtual resources is sent to the second terminal equipment, after the intelligent contract detects that the second user finishes payment, the target virtual resources are transferred from the account of the first user to the account of the second user, and the unified hanging rack and the transaction system are provided, so that the transaction of the virtual resources can be completed quickly and efficiently through a block chain, the safety is effectively ensured, and the defects of low transaction efficiency, long transaction period and the like caused by intermediary matching are avoided.
Drawings
In order to more clearly illustrate the embodiments of the invention or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, it being obvious that the drawings in the following description are only some embodiments of the invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1a is a schematic diagram of a resource management system according to an embodiment of the present invention;
FIG. 1b is a block chain architecture diagram according to an embodiment of the present invention;
FIG. 1c is a schematic diagram illustrating a process of generating a new block according to an embodiment of the present invention;
FIG. 1d is a schematic illustration of a basic business process of a bond transaction according to an embodiment of the present invention;
FIG. 2 is a schematic flow chart of a resource management method according to an embodiment of the present invention;
FIG. 3 is a flowchart illustrating another resource management method according to an embodiment of the present invention;
FIG. 4 is a flowchart of another resource management method according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a resource management device according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of another resource management device according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of another resource management device according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of a node device according to an embodiment of the present invention;
fig. 9 is a schematic structural diagram of a terminal device according to an embodiment of the present invention;
fig. 10 is a schematic structural diagram of another terminal device according to an embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Aiming at the problems that the trading efficiency is low, the trading period is long and the like commonly existing in virtual resources such as bonds at present, the embodiment of the invention provides a resource management method which can quickly and efficiently finish the trading of the virtual resources through a blockchain and effectively ensure the safety.
Referring to fig. 1a, an architecture diagram of a resource management system according to an embodiment of the present invention is provided, where the resource management system includes a blockchain network 10, a first terminal device 102, and a second terminal device 103, and the architecture diagram includes:
the blockchain network 10 refers to a network for data sharing from node to node, and a plurality of nodes 101 may be included in the blockchain network. Each node 101 may receive input information while operating normally and maintain shared data (i.e., blockchains) within the blockchain network based on the received input information. In order To ensure information intercommunication in the blockchain network, information connection can exist between every two nodes, point-To-point (P2P) communication can be realized between any two nodes, and particularly P2P communication can be performed through a wired communication link or a wireless communication link. For example, when any node in the blockchain network receives input information, other nodes acquire the input information according to a consensus algorithm, and store the input information as data in shared data, so that the data stored on all nodes in the blockchain network are consistent.
The first terminal device 102 and the second terminal device 103 may access the blockchain network and may communicate with nodes in the blockchain network, e.g., initiate a hanging transaction, a buying transaction, etc., to the nodes. The first terminal device 102 and the second terminal device 103 may be specifically a smart phone, a tablet computer, a notebook computer, a desktop computer, an in-vehicle smart terminal, etc., which is not limited in the embodiment of the present invention.
It should be noted that the number of nodes shown in fig. 1a is merely illustrative, and any number of nodes may be deployed according to actual needs, and the first terminal device 102 and the second terminal device 103 may communicate with the same node in the blockchain network, or may respectively communicate with different nodes in the blockchain network.
Each node in the blockchain network has a node identifier corresponding to the node identifier, and each node in the blockchain network can store the node identifiers of other nodes in the blockchain network, so that the generated blocks can be broadcast to other nodes in the blockchain network according to the node identifiers of the other nodes. Each node can maintain a node identification list shown in the following table, and the node names and the node identifications are correspondingly stored in the node identification list. The node identifier may be an internet protocol (Internet Protocol, IP) address, or any other information that can be used to identify the node, and the table is described only by way of example as an IP address.
Node name Node identification
Node 1 117.114.151.174
Node 2 117.116.189.145
Node N 119.123.789.258
Wherein each node in the blockchain network stores one and the same blockchain. The blockchain is composed of a plurality of blocks, see fig. 1b, the blockchain is composed of a plurality of blocks, the starting block comprises a block head and a block main body, the block head stores an input information characteristic value, a version number, a time stamp and a difficulty value, and the block main body stores input information; the next block of the starting block takes the starting block as a father block, the next block also comprises a block head and a block main body, the block head stores the input information characteristic value of the current block, the block head characteristic value of the father block, the version number, the timestamp and the difficulty value, and the like, so that the block data stored in each block in the block chain are associated with the block data stored in the father block, and the safety of the input information in the block is ensured.
When each block in the blockchain is generated, referring to fig. 1c, when the node where the blockchain is located receives input information, checking the input information, after the checking is completed, storing the input information into a memory pool, and updating a hash tree used for recording the input information; then, updating the update time stamp to the time of receiving the input information, trying different random numbers, and calculating the characteristic value for a plurality of times, so that the calculated characteristic value can meet the following formula:
SHA256(SHA256(version+prev_hash+merkle_root+ntime+nbits+x))<TARGET
Wherein SHA256 is a eigenvalue algorithm used to calculate eigenvalues; version (version number) is version information of the related block protocol in the block chain; the prev_hash is the block header characteristic value of the parent block of the current block; the merkle_root is a characteristic value of input information; ntime is the update time of the update timestamp; the nbits is the current difficulty, is a fixed value in a period of time, and is determined again after exceeding a fixed period of time; x is a random number; TARGET is a eigenvalue threshold that can be determined from nbits.
Thus, when the random number meeting the formula is calculated, the information can be correspondingly stored to generate the block head and the block main body, and the current block is obtained. And then, the node where the blockchain is located sends the newly generated blocks to other nodes in the blockchain network where the newly generated blocks are located according to the node identifications of other nodes in the blockchain network, the other nodes verify the newly generated blocks, and the newly generated blocks are added into the blockchain stored in the newly generated blocks after the verification is completed.
The intelligent contract is a code implementation for executing when a certain condition is met, a developer can define contract logic through a programming language, issue the contract logic to a blockchain (intelligent contract registration), call a key or trigger execution according to the logic of contract clauses to complete the contract logic, and simultaneously provide functions of upgrading and logging off the intelligent contract.
In some possible embodiments, a node 101 of the blockchain network may obtain a hanging transaction submitted by a first user through a first terminal device 102, where the hanging transaction includes a quantity and a price of a target virtual resource to be transacted, if a purchase transaction submitted by a second user for the target virtual resource through a second terminal device 103 is received, the node 101 invokes an intelligent contract to lock the target virtual resource, and sends a payment link for the target virtual resource to the second terminal device, after the intelligent contract detects that the second user completes payment by using the payment link, the node 101 transfers the target virtual resource from the account of the first user to the account of the second user, so that the transaction of the virtual resource can be completed quickly and efficiently through the blockchain, and security is effectively ensured.
In some possible embodiments, a certain node 101 of the blockchain network may broadcast the hanging transaction and the buying transaction to other nodes in the blockchain network, and after the other nodes pass the common identification verification of the hanging transaction and the buying transaction, the node 101 writes the hanging transaction and the buying transaction into a block, so that each transaction record can be uplink, tamper is effectively prevented, and validity and traceability of transaction data are ensured.
In some possible implementations, taking an example that the virtual resource is a bond, referring to fig. 1d, the basic business flow of a bond transaction provided by the embodiment of the present invention specifically includes: the seller submits a hanging transaction to the blockchain network aiming at the bond assets to be sold, the buyer submits a buying transaction to the hanging transaction of the seller, the intelligent contract of the blockchain network automatically matches the transactions of the buyers and sellers, after the matching is successful, the bond assets on the chain of the hanging of the seller are transferred to the account of the buyer, the bond transaction record is written into a block in the blockchain, and the bond transaction record can be sent to a bond registering center for registering.
The implementation details of the technical scheme of the embodiment of the invention are described in detail below:
referring to fig. 2, a flow chart of a resource management method provided by the resource management system shown in fig. 1a according to an embodiment of the present invention is mainly described from a node side, the resource management method is applied to a blockchain network, the blockchain network includes a plurality of nodes, and the resource management method includes the following steps:
201. the node obtains a hanging transaction submitted by a first user through a first terminal device, wherein the hanging transaction comprises the quantity and the price of target virtual resources to be transacted.
The virtual resource involved in the embodiment of the present invention may specifically include securities such as bonds.
Specifically, the first user may refer to a user who wants to sell virtual resources, the first user may act as a seller at this time, and may access the first terminal device to the blockchain network, a node in the blockchain network may receive a hanging transaction submitted by the first user through the first terminal device, and may broadcast the hanging transaction to other nodes in the blockchain network, and after the hanging transaction passes the common verification, other nodes record the hanging transaction, where the hanging transaction may include the number of target virtual resources to be transacted (i.e., the number of virtual resources the first user wants to sell), and a price, for example, a bond, where the hanging transaction may include the number of bonds to be transacted and the price of each bond, for example, sell 10 a bonds, and the price is 100 yuan/bond.
202. And if the node acquires a buying transaction submitted by a second user for the target virtual resource through the second terminal equipment, calling an intelligent contract to lock the target virtual resource, and sending a payment link for the target virtual resource to the second terminal equipment.
Specifically, if the second user refers to a user who wants to buy the virtual resource, the second user is taken as a buyer at this time, the second terminal device may be accessed into the blockchain network to query the hanging transaction submitted by other users, if the second user is interested in the target virtual resource in the hanging transaction submitted by the first user to buy the virtual resource, a node in the blockchain network may receive the buy transaction submitted by the second user through the second terminal device, after receiving the buy transaction, the node may invoke the intelligent contract to lock the target virtual resource, generate a payment link for the target virtual resource, and then send the payment link to the second terminal device, where the payment link is used for the second user to pay the cost for buying the target virtual resource.
It should be noted that, the node for receiving the hanging transaction submitted by the first user through the first terminal device and the node for receiving the purchase transaction submitted by the second user through the second terminal device may be the same node in the blockchain network or may be different nodes in the blockchain network, which is not limited by the embodiment of the present invention.
203. And after the intelligent contract detects that the second user finishes payment by using the payment link, the node transfers the target virtual resource from the account of the first user to the account of the second user.
Specifically, the second terminal device may display the payment link, the second user may skip to the payment platform (for example, a Unionpay or a third party payment mechanism) to pay the fee by clicking the payment link, the intelligent contract of the node may detect the payment state of the second user, and when detecting the payment success notification returned by the payment platform, confirm that the second user completes the payment, and transfer the target virtual resource from the account of the first user to the account of the second user, so as to complete the quick transaction of the virtual resource, where the account of the first user and the account of the second user refer to the blockchain account registered in advance, and the t+0 quick transaction of the virtual resource such as the bond may be implemented through the blockchain.
In some possible embodiments, the user may perform the uplink operation on the virtual asset held by the user in the transaction market outside the blockchain, when the node receives the virtual asset uplink request of the user, the node may acquire the virtual resource holding amount of the first user and the virtual resource holding amount of the second user, create accounts (i.e., blockchain accounts) for the first user and the second user respectively, then bind the virtual resource holding amount of the first user to the account of the first user, bind the virtual resource holding amount of the second user to the account of the second user, and write the uplink record of the virtual resource of the user into the block after the other node consensus verification is passed, so that the user may perform the transaction of the virtual resource through the blockchain subsequently.
In some possible embodiments, after the node sends the payment link for the target virtual resource to the second terminal device, the node may invoke the intelligent contract to detect the payment state of the second user paying by using the payment link, if the payment is not completed within a preset time period (for example, 10 minutes), the node may deduct a preset first number (for example, 1 minimum transaction unit) or a preset first proportion (for example, 0.005% of the target virtual resource) of the virtual resource from the account of the second user, may transfer the deducted virtual resource (i.e., the on-chain asset) into the account of the current node as an incentive to provide the node with an algorithm, and release the lock on the target virtual resource, and it may be seen that if the user times out when buying the virtual resource, the node may automatically deduct a part of the procedure fee from its account as a penalty for the second user.
In some possible embodiments, before the node locks the target virtual resource for the second user, the node may invoke the smart contract to deduct a predetermined second number (e.g., 2 minimum transaction units) or a predetermined second proportion (e.g., 0.01% of the target virtual resource) of the virtual resource from the account of the second user, i.e., deduct a fee corresponding to the purchase transaction from the on-chain asset, and then lock the target virtual resource for the second user.
In summary, the user's on-chain assets (i.e., virtual resources held) are only used to pay the process fees in the transaction process, and the corresponding fees for buying and selling themselves are completed by the intelligent contract to the bank payment system.
In some possible embodiments, the specific implementation manner of transferring the target virtual resource from the account of the first user to the account of the second user after the node detects that the second user completes payment using the payment link by the smart contract may be: after the intelligent contract detects that the second user finishes payment by using the payment link, the node generates a transaction (marked as a transfer transaction of the target virtual resource), wherein the transfer transaction of the target virtual resource specifically comprises the following data: the method comprises the steps of verifying account addresses of a first user (namely a seller), account addresses of a second user (namely a buyer), the number of target virtual resources, transfer directions of the target virtual resources (namely, transfer from the account of the first user to the account of the second user), transfer time, transaction prices, subscription fees paid by the second user, commission amounts and the like, broadcasting transfer transactions of the target virtual resources to other nodes in a blockchain network, transferring the target virtual resources from the account of the first user to the account of the second user after the common verification of the transfer transactions of the target virtual resources by the other nodes is passed, writing the transfer transactions of the target virtual resources into a block, broadcasting the block to other nodes in the blockchain network, adding the block into a local account after the other nodes verify the block is legal, thereby completing convenient transactions of the virtual resources, and uploading a resource transfer record and being unable to be tampered.
In some possible embodiments, after transferring the target virtual resource from the account of the first user to the account of the second user, the node may send a transfer transaction of the target virtual resource to the virtual resource registry, so that the virtual resource registry records a transfer direction of the target virtual resource, i.e., from the account of the first user to the account of the second user, so that the transaction record is also recorded at a location other than the blockchain, facilitating a subsequent verification of the transaction record between users.
In some possible embodiments, the node may also perform a linking operation on the hanging transaction and the buy transaction, namely: the node broadcasts a hanging transaction and a buying transaction to other nodes, wherein the hanging transaction can specifically comprise the following data: the first user (i.e., seller) account address, the number of target virtual resources to be transacted, price, time of hanging up, etc., the purchase transaction may specifically include the following data: after the account address, the submitting time and the like of the second user (namely the buyer) pass the common identification verification of the hanging transaction and the buying transaction by other nodes, the hanging transaction and the buying transaction are written into a block, the block is also required to be broadcasted to other nodes in the blockchain network, and after the other nodes verify that the block is legal, the block is added into an account book of the second user, so that the user actions such as the completion of the hanging transaction and the buying transaction are recorded and are uplink, and cannot be tampered.
In the embodiment of the invention, the node can acquire the hanging transaction submitted by the first user through the first terminal equipment, the hanging transaction comprises the quantity and the price of the target virtual resources to be transacted, if the second user acquires the buying transaction submitted by the second terminal equipment for the target virtual resources, the intelligent contract is called to lock the target virtual resources, the payment link for the target virtual resources is sent to the second terminal equipment, after the intelligent contract detects that the second user finishes the payment, the target virtual resources are transferred from the account of the first user to the account of the second user, and therefore, the unified hanging rack and the transaction system are provided, so that the transaction of the virtual resources can be completed quickly and efficiently through a blockchain, the safety is effectively ensured, and the defects of low transaction efficiency, long transaction period and the like caused by intermediary matching are avoided.
Please refer to fig. 3, which is a flowchart of another resource management method provided by the resource management system shown in fig. 1a according to an embodiment of the present invention, wherein the resource management method according to the embodiment of the present invention is mainly described from a first terminal device side corresponding to a first user, and the resource management method includes the following steps:
301. The method comprises the steps that a first terminal device submits a hanging transaction of a first user to a target node, wherein the target node is any one of a plurality of nodes included in a blockchain network, the hanging transaction comprises the quantity and the price of target virtual resources to be transacted, the hanging transaction enables the target node to call an intelligent contract to lock the target virtual resources when acquiring a buying transaction submitted by a second user for the target virtual resources through a second terminal device, and sends a payment link for the target virtual resources to the second terminal device, and after the intelligent contract detects that the second user finishes payment by using the payment link, the target virtual resources are transferred from an account of the first user to an account of the second user.
Wherein a hanging transaction of a first user (i.e., seller) may be submitted to any one node in the blockchain network, herein denoted as a target node, through a first terminal device.
302. And the first terminal equipment receives a notification message that the target node successfully carries out the hanging transaction after transferring the target virtual resource from the account of the first user to the account of the second user.
The specific implementation of steps 301 and 302 may be referred to the specific description in the foregoing embodiments, and will not be repeated here.
In the embodiment of the invention, the first terminal equipment submits the hanging transaction of the seller to the target node, wherein the hanging transaction comprises the quantity and the price of the target virtual resources to be transacted, the target node calls the intelligent contract to lock the target virtual resources when acquiring the buying transaction submitted by the buyer through the second terminal equipment, sends the payment link aiming at the target virtual resources to the second terminal equipment, and transfers the target virtual resources from the account of the seller to the account of the buyer after the intelligent contract detects that the buyer finishes the payment, and the first terminal equipment receives the notification message that the hanging transaction sent by the target node is successful, so that the seller can conveniently sell the held virtual resources, the transaction of the virtual resources and the buyer can be efficiently completed, and the safety is effectively ensured.
Please refer to fig. 4, which is a flowchart of another resource management method provided by the resource management system shown in fig. 1a according to an embodiment of the present invention, wherein the resource management method according to the embodiment of the present invention is mainly described from a second terminal device side corresponding to a second user, and the resource management method includes the following steps:
401. The method comprises the steps that a second terminal device submits a buying transaction of a second user for a target virtual resource to a target node, wherein the target node is any one of a plurality of nodes included in a blockchain network, the buying transaction enables the target node to call an intelligent contract to lock the target virtual resource, a payment link for the target virtual resource is sent to the second terminal device, and the target virtual resource is a virtual resource to be transacted, which is included in a hanging disk transaction submitted to the target node by a first terminal device corresponding to a first user.
Wherein the hanging transaction of the second user (i.e., buyer) may be submitted to any one node in the blockchain network, here denoted as target node, through the second terminal device.
402. And the second terminal equipment receives the payment link sent by the target node, wherein the payment link is used for the second user to pay for the target virtual resource, so that the target node transfers the target virtual resource from the account of the first user to the account of the second user after the intelligent contract detects that the second user finishes paying by using the payment link.
403. And the second terminal equipment receives a notification message that the target node successfully performs the purchase transaction after transferring the target virtual resource from the account of the first user to the account of the second user.
The specific implementation of steps 401 to 403 may be referred to the specific description in the foregoing embodiments, and will not be repeated here.
In the embodiment of the invention, the second terminal equipment submits the buying transaction of the buyer for the target virtual resource to the target node, the buying transaction enables the target node to call the intelligent contract to lock the target virtual resource, and sends the payment link for the target virtual resource to the second terminal equipment, the second terminal equipment receives the payment link, and the buyer pays the target virtual resource through the payment link, so that the target node transfers the target virtual resource from the account of the seller to the account of the buyer after the intelligent contract detects that the buyer finishes the payment, and the second terminal equipment receives the notification message of successful buying transaction sent by the target node, thereby the buyer can conveniently buy the virtual resource, efficiently finish the transaction of the virtual resource with the seller, and effectively ensure the safety.
The embodiment of the present invention also provides a computer storage medium having stored therein program instructions for implementing the corresponding method described in the above embodiment when executed.
Referring to fig. 5, a schematic structural diagram of a resource management device according to an embodiment of the present invention is applied to a blockchain network, where the blockchain network includes a plurality of nodes, and the device includes:
an obtaining module 501, configured to obtain a hanging transaction submitted by a first user through a first terminal device, where the hanging transaction includes a number and a price of target virtual resources to be transacted;
the processing module 502 is configured to invoke an intelligent contract to lock the target virtual resource if a purchase transaction submitted by the second user for the target virtual resource through the second terminal device is acquired;
a sending module 503, configured to send a payment link for the target virtual resource to the second terminal device;
the processing module 502 is further configured to transfer the target virtual resource from the account of the first user to the account of the second user after the smart contract detects that the second user completes payment using the payment link.
Optionally, the obtaining module 501 is further configured to obtain a virtual resource holding amount of the first user and a virtual resource holding amount of the second user;
The processing module 502 is further configured to create accounts for the first user and the second user, respectively;
the processing module 502 is further configured to bind the virtual resource holding capacity of the first user to the account of the first user, and bind the virtual resource holding capacity of the second user to the account of the second user.
Optionally, the processing module 502 is further configured to:
and if the intelligent contract detects that the second user does not complete payment by using the payment link within the preset time period, deducting a preset first quantity or a preset first proportion of virtual resources from the account of the second user, transferring the virtual resources deducted from the account of the second user to the account of the current node, and unlocking the target virtual resources.
Optionally, the processing module 502 is specifically configured to:
and calling an intelligent contract to deduct a preset second quantity or a preset second proportion of virtual resources from the account of the second user, and locking the target virtual resources.
Optionally, the processing module 502 is specifically configured to:
generating a transfer transaction of the target virtual resource after the intelligent contract detects that the second user finishes payment by using the payment link;
Broadcasting a transfer transaction of the target virtual resource to other nodes of the plurality of nodes;
and after the transfer transaction consensus verification of the other nodes on the target virtual resource is passed, transferring the target virtual resource from the account of the first user to the account of the second user, and writing the transfer transaction of the target virtual resource into a block.
Optionally, the sending module 503 is further configured to send a transfer transaction of the target virtual resource to a virtual resource registration center, so that the virtual resource registration center records that the target virtual resource is transferred from the account of the first user to the account of the second user.
Optionally, the sending module 503 is further configured to broadcast the hanging transaction and the purchase transaction to other nodes in the plurality of nodes;
the processing module 502 is further configured to write the hanging transaction and the buying transaction into a block after the other nodes pass the identification verification of the hanging transaction and the buying transaction.
It should be noted that, the functions of each functional module of the resource management device in the embodiment of the present invention may be specifically implemented according to the method in the embodiment of the method, and the specific implementation process may refer to the related description of the embodiment of the method, which is not repeated herein.
Fig. 6 is a schematic structural diagram of another resource management device according to an embodiment of the present invention, where the resource management device according to the embodiment of the present invention is applied to a first terminal device corresponding to a first user, and the device includes:
a submitting module 601, configured to submit a hanging transaction of the first user to a target node, where the target node is any one of a plurality of nodes included in a blockchain network, the hanging transaction includes a number and a price of target virtual resources to be transacted, the hanging transaction causes the target node to invoke an intelligent contract to lock the target virtual resources when acquiring a purchase transaction submitted by a second user for the target virtual resources through a second terminal device, and send a payment link for the target virtual resources to the second terminal device, and transfer the target virtual resources from an account of the first user to an account of the second user after the intelligent contract detects that the second user completes payment using the payment link;
and the receiving module 602 is configured to receive a notification message that the target node sends a successful hanging transaction after transferring the target virtual resource from the account of the first user to the account of the second user.
It should be noted that, the functions of each functional module of the resource management device in the embodiment of the present invention may be specifically implemented according to the method in the embodiment of the method, and the specific implementation process may refer to the related description of the embodiment of the method, which is not repeated herein.
Fig. 7 is a schematic structural diagram of another resource management device according to an embodiment of the present invention, where the resource management device according to the embodiment of the present invention is applied to a second terminal device corresponding to a second user, and the device includes:
a submitting module 701, configured to submit, to a target node, a purchase transaction of the second user for a target virtual resource, where the target node is any one of a plurality of nodes included in a blockchain network, the purchase transaction causes the target node to invoke an intelligent contract to lock the target virtual resource, and send, to the second terminal device, a payment link for the target virtual resource, where the target virtual resource is a virtual resource to be transacted included in a hanging transaction that is submitted to the target node by a first terminal device corresponding to a first user;
a receiving module 702, configured to receive the payment link sent by the target node, where the payment link is used for the second user to pay for the target virtual resource, so that the target node transfers the target virtual resource from the account of the first user to the account of the second user after the intelligent contract detects that the second user finishes paying by using the payment link;
The receiving module 702 is further configured to receive a notification message that the target node is successful in a purchase transaction sent after transferring the target virtual resource from the account of the first user to the account of the second user.
It should be noted that, the functions of each functional module of the resource management device in the embodiment of the present invention may be specifically implemented according to the method in the embodiment of the method, and the specific implementation process may refer to the related description of the embodiment of the method, which is not repeated herein.
Referring to fig. 8, a schematic structural diagram of a node device according to an embodiment of the present invention includes a power supply module and other structures, and includes a processor 801, a storage device 802, and a network interface 803. Data may be interacted between the processor 801, the storage 802, and the network interface 803.
The storage device 802 may include volatile memory (RAM), such as random-access memory (RAM); the storage device 802 may also include a non-volatile memory (non-volatile memory), such as a flash memory (flash memory), a Solid State Drive (SSD), etc.; the storage device 802 may also include a combination of the types of memory described above.
The processor 801 may be a central processing unit 801 (central processing unit, CPU). In one embodiment, the processor 801 may also be a graphics processor 801 (Graphics Processing Unit, GPU). The processor 801 may also be a combination of a CPU and a GPU. In one embodiment, the storage device 802 is configured to store program instructions. The processor 801 may call the program instructions to perform the following operations:
acquiring a hanging transaction submitted by a first user through first terminal equipment, wherein the hanging transaction comprises the number and the price of target virtual resources to be transacted;
if the buying transaction submitted by the second user for the target virtual resource through the second terminal equipment is obtained, calling an intelligent contract to lock the target virtual resource;
sending a payment link for the target virtual resource to the second terminal device;
and after the intelligent contract detects that the second user finishes payment by using the payment link, transferring the target virtual resource from the account of the first user to the account of the second user.
Optionally, the processor 801 is further configured to:
acquiring the virtual resource holding capacity of the first user and the virtual resource holding capacity of the second user;
Creating an account for the first user and the second user, respectively;
binding the virtual resource holding capacity of the first user to the account of the first user, and binding the virtual resource holding capacity of the second user to the account of the second user.
Optionally, the processor 801 is further configured to:
and if the intelligent contract detects that the second user does not complete payment by using the payment link within the preset time period, deducting a preset first quantity or a preset first proportion of virtual resources from the account of the second user, transferring the virtual resources deducted from the account of the second user to the account of the current node, and unlocking the target virtual resources.
Optionally, the processor 801 is specifically configured to:
and calling an intelligent contract to deduct a preset second quantity or a preset second proportion of virtual resources from the account of the second user, and locking the target virtual resources.
Optionally, the processor 801 is specifically configured to:
generating a transfer transaction of the target virtual resource after the intelligent contract detects that the second user finishes payment by using the payment link;
Broadcasting a transfer transaction of the target virtual resource to other nodes of the plurality of nodes;
and after the transfer transaction consensus verification of the other nodes on the target virtual resource is passed, transferring the target virtual resource from the account of the first user to the account of the second user, and writing the transfer transaction of the target virtual resource into a block.
Optionally, the processor 801 is further configured to send a transfer transaction of the target virtual resource to a virtual resource registry, so that the virtual resource registry records the transfer of the target virtual resource from the account of the first user to the account of the second user.
Optionally, the processor 801 is further configured to:
broadcasting the hanging transaction and the buy transaction to other nodes of the plurality of nodes;
and after the other nodes pass the common identification verification of the hanging transaction and the buying transaction, writing the hanging transaction and the buying transaction into a block.
In particular, the processor 801, the storage 802 and the network interface 803 described in the embodiments of the present invention may perform the implementation described in the related embodiments of a resource management method provided in fig. 2 of the embodiments of the present invention, and may also perform the implementation described in the related embodiments of a resource management device provided in fig. 5 of the embodiments of the present invention, which are not described herein again.
Referring to fig. 9, a schematic structural diagram of a terminal device according to an embodiment of the present invention corresponds to the first terminal device described above, and the terminal device includes a power supply module and other structures, and includes a processor 901, a storage device 902, and a network interface 903. Data may be exchanged between the processor 901, the storage device 902, and the network interface 903.
The storage 902 may include volatile memory (RAM), such as random-access memory (RAM); the storage 902 may also include a non-volatile memory (non-volatile memory), such as a flash memory (flash memory), a Solid State Drive (SSD), etc.; the storage 902 may also include a combination of the types of memory described above.
The processor 901 may be a central processor 901 (central processing unit, CPU). In one embodiment, the processor 901 may also be a graphics processor 901 (Graphics Processing Unit, GPU). The processor 901 may also be a combination of a CPU and a GPU. In one embodiment, the storage 902 is configured to store program instructions. The processor 901 may call the program instructions to perform the following operations:
Submitting a hanging transaction of the first user to a target node, wherein the target node is any one of a plurality of nodes included in a blockchain network, the hanging transaction comprises the quantity and the price of target virtual resources to be transacted, the hanging transaction enables the target node to call an intelligent contract to lock the target virtual resources when acquiring a purchase transaction submitted by a second user for the target virtual resources through a second terminal device, and sends a payment link for the target virtual resources to the second terminal device, and after the intelligent contract detects that the second user finishes payment by using the payment link, the target virtual resources are transferred from an account of the first user to an account of the second user;
and receiving a notification message that the target node successfully carries out the hanging transaction after transferring the target virtual resource from the account of the first user to the account of the second user.
In a specific implementation, the processor 901, the storage device 902 and the network interface 903 described in the embodiments of the present invention may perform the implementation described in the related embodiments of a resource management method provided in fig. 3 of the embodiments of the present invention, and may also perform the implementation described in the related embodiments of a resource management device provided in fig. 6 of the embodiments of the present invention, which are not described herein again.
Referring to fig. 10, a schematic structural diagram of another terminal device according to an embodiment of the present invention corresponds to the second terminal device described above, and includes a power supply module and other structures, and includes a processor 1001, a storage device 1002, and a network interface 1003. Data may be exchanged between the processor 1001, the storage device 1002, and the network interface 1003.
The storage device 1002 may include volatile memory (RAM), such as random-access memory (RAM); the storage device 1002 may also include a non-volatile memory (non-volatile memory), such as a flash memory (flash memory), a Solid State Drive (SSD), etc.; the storage device 1002 may also include a combination of the types of memory described above.
The processor 1001 may be a central processing unit 1001 (central processing unit, CPU). In one embodiment, the processor 1001 may also be a graphics processor 1001 (Graphics Processing Unit, GPU). The processor 1001 may be a combination of a CPU and a GPU. In one embodiment, the storage device 1002 is configured to store program instructions. The processor 1001 may call the program instructions to perform the following operations:
Submitting a buying transaction of the second user for a target virtual resource to a target node, wherein the target node is any one of a plurality of nodes included in a blockchain network, the buying transaction enables the target node to call an intelligent contract to lock the target virtual resource, and a payment link for the target virtual resource is sent to the second terminal equipment, and the target virtual resource is a virtual resource to be transacted, which is included in a hanging transaction submitted to the target node by a first terminal equipment corresponding to a first user;
receiving the payment link sent by the target node, wherein the payment link is used for the second user to pay for the target virtual resource, so that the target node transfers the target virtual resource from the account of the first user to the account of the second user after the intelligent contract detects that the second user finishes paying by using the payment link;
and receiving a notification message which is sent by the target node and is successful in the purchase transaction after the target virtual resource is transferred from the account of the first user to the account of the second user.
In particular, the processor 1001, the storage device 1002 and the network interface 1003 described in the embodiment of the present invention may perform the implementation described in the related embodiment of a resource management method provided in fig. 4 of the embodiment of the present invention, and may also perform the implementation described in the related embodiment of a resource management device provided in fig. 7 of the embodiment of the present invention, which is not described herein again.
In the foregoing embodiments, the descriptions of the embodiments are emphasized, and for parts of one embodiment that are not described in detail, reference may be made to related descriptions of other embodiments.
It should be noted that, for simplicity of description, the foregoing method embodiments are all described as a series of acts, but it should be understood by those skilled in the art that the present application is not limited by the order of acts described, as some steps may be performed in other orders or concurrently in accordance with the present application. Further, those skilled in the art will also appreciate that the embodiments described in the specification are all preferred embodiments, and that the acts and modules referred to are not necessarily required for the present application.
In the several embodiments provided by the present application, it should be understood that the disclosed apparatus may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, such as the above-described division of units, merely a division of logic functions, and there may be additional manners of dividing in actual implementation, such as multiple units or components may be combined or integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, or may be in electrical or other forms.
The units described above as separate components may or may not be physically separate, and components shown as units may or may not be physical units, may be located in one place, or may be distributed over a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present invention may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units described above, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on this understanding, the technical solution of the present invention may be embodied in essence or a part contributing to the prior art or all or part of the technical solution in the form of a software product stored in a storage medium, including several instructions for causing a computer device (which may be a personal computer, a server or a network device, etc., in particular may be a processor in the computer device) to perform all or part of the steps of the above-mentioned method of the various embodiments of the present invention. Wherein the aforementioned storage medium may comprise: a U-disk, a removable hard disk, a magnetic disk, an optical disk, a Read-Only Memory (abbreviated as ROM), a random access Memory (abbreviated as Random Access Memory, RAM), or the like.
The above embodiments are only for illustrating the technical solution of the present invention, and not for limiting the same; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims (9)

1. A method of resource management, applied to a blockchain network, the blockchain network including a plurality of nodes, the method comprising:
when a virtual asset uplink request is received, acquiring the virtual resource holding capacity of a first user and the virtual resource holding capacity of a second user in a transaction market outside a blockchain, binding the virtual resource holding capacity of the first user into an account of the first user, and binding the virtual resource holding capacity of the second user into an account of the second user; wherein the account of the first user and the account of the second user are registered blockchain accounts;
Acquiring a hanging transaction submitted by a first user through first terminal equipment, wherein the hanging transaction comprises the quantity and the price of target virtual resources to be transacted;
if the buying transaction submitted by the second user for the target virtual resource through the second terminal equipment is acquired, an intelligent contract is called to deduct a preset second quantity or a preset second proportion of virtual resources from an account of the second user, the preset second quantity or the preset second proportion of virtual resources are transferred to an account of a current node, the target virtual resource is locked, and a payment link for the target virtual resource is sent to the second terminal equipment;
after the smart contract detects that the second user completes payment using the payment link, transferring the target virtual resource from the account of the first user to the account of the second user, and sending a transfer transaction of the target virtual resource to a virtual resource registry, such that the virtual resource registry records the transfer of the target virtual resource from the account of the first user to the account of the second user, the transfer transaction comprising: the account address of the first user, the account address of the second user, the number of the target virtual resources, the transfer direction, the transfer time, the transaction price, and the subscription fee and the commission amount paid by the second user;
And if the intelligent contract detects that the second user does not complete payment by using the payment link within the preset time period, deducting a preset first quantity or a preset first proportion of virtual resources from an account of the second user, transferring the preset first quantity or the preset first proportion of virtual resources to the account of the current node, and unlocking the target virtual resources.
2. The method of claim 1, wherein transferring the target virtual resource from the account of the first user to the account of the second user after the smart contract detects that the second user completes payment using the payment link comprises:
generating a transfer transaction of the target virtual resource after the intelligent contract detects that the second user finishes payment by using the payment link;
broadcasting a transfer transaction of the target virtual resource to other nodes of the plurality of nodes;
and after the transfer transaction consensus verification of the other nodes on the target virtual resource is passed, transferring the target virtual resource from the account of the first user to the account of the second user, and writing the transfer transaction of the target virtual resource into a block.
3. The method according to claim 1, wherein the method further comprises:
broadcasting the hanging transaction and the buy transaction to other nodes of the plurality of nodes;
and after the other nodes pass the common identification verification of the hanging transaction and the buying transaction, writing the hanging transaction and the buying transaction into a block.
4. A resource management method, applied to a first terminal device corresponding to a first user, the method comprising:
submitting a hanging transaction of the first user to a target node, wherein the target node is any one of a plurality of nodes included in a blockchain network, the hanging transaction comprises the quantity and price of target virtual resources to be transacted, the hanging transaction enables the target node to call an intelligent contract to deduct a preset second quantity or preset second proportion of virtual resources from an account of a second user when acquiring a purchase transaction submitted by the second user for the target virtual resources through a second terminal device, transfers the preset second quantity or preset second proportion of virtual resources to the account of the target node, locks the target virtual resources, and sends a payment link for the target virtual resources to the second terminal device, and after the intelligent contract detects that the second user finishes payment by using the payment link, transfers the target virtual resources from the account of the first user to the account of the second user, and sends a transfer transaction of the target virtual resources to a virtual registration center to record the transfer of the target virtual resources from the account of the second user, and the target virtual resources comprise the second user: the account address of the first user, the account address of the second user, the number of the target virtual resources, the transfer direction, the transfer time, the transaction price, and the subscription fee and the commission amount paid by the second user; when the intelligent contract detects that the second user does not complete payment by using the payment link within a preset duration, deducting a preset first quantity or a preset first proportion of virtual resources from an account of the second user, transferring the preset first quantity or the preset first proportion of virtual resources to the account of the target node, and unlocking the target virtual resources; the account of the first user and the account of the second user are registered blockchain accounts, the account of the first user is bound with the virtual resource holding amount of the first user in the transaction market outside the blockchain, and the account of the second user is bound with the virtual resource holding amount of the second user in the transaction market outside the blockchain;
And receiving a notification message that the target node successfully carries out the hanging transaction after transferring the target virtual resource from the account of the first user to the account of the second user.
5. A resource management method, applied to a second terminal device corresponding to a second user, the method comprising:
submitting a buying transaction of the second user for a target virtual resource to a target node, wherein the target node is any one node of a plurality of nodes included in a blockchain network, the buying transaction enables the target node to call an intelligent contract to deduct a preset second number or a preset second proportion of virtual resources from an account of the second user, the preset second number or the preset second proportion of virtual resources are transferred to the account of the target node, the target virtual resource is locked, and a payment link for the target virtual resource is sent to the second terminal equipment, wherein the target virtual resource is a virtual resource to be transacted included in a hanging transaction submitted to the target node by a first terminal equipment corresponding to a first user;
receiving the payment link sent by the target node, where the payment link is used for the second user to pay for the target virtual resource, so that the target node transfers the target virtual resource from the account of the first user to the account of the second user after the intelligent contract detects that the second user finishes paying by using the payment link, and sending a transfer transaction of the target virtual resource to a virtual resource registration center, so that the virtual resource registration center records that the target virtual resource is transferred from the account of the first user to the account of the second user, where the transfer transaction includes: the account address of the first user, the account address of the second user, the number of the target virtual resources, the transfer direction, the transfer time, the transaction price, and the subscription fee and the commission amount paid by the second user; when the intelligent contract detects that the second user does not complete payment by using the payment link within a preset duration, deducting a preset first quantity or a preset first proportion of virtual resources from an account of the second user, transferring the preset first quantity or the preset first proportion of virtual resources to the account of the target node, and unlocking the target virtual resources; the account of the first user and the account of the second user are registered blockchain accounts, the account of the first user is bound with the virtual resource holding amount of the first user in the transaction market outside the blockchain, and the account of the second user is bound with the virtual resource holding amount of the second user in the transaction market outside the blockchain;
And receiving a notification message which is sent by the target node and is successful in the purchase transaction after the target virtual resource is transferred from the account of the first user to the account of the second user.
6. A resource management apparatus, characterized in that the apparatus comprises means for performing the resource management method of any one of claims 1 to 3 or the resource management method of claim 4 or the resource management method of claim 5.
7. A node device, characterized in that the node device comprises a processor, a network interface and a storage means, the processor, the network interface and the storage means being connected to each other, wherein the network interface is controlled by the processor for transceiving data, the storage means being arranged to store a computer program comprising program instructions, the processor being arranged to invoke the program instructions for performing the resource management method of any of claims 1-3.
8. A terminal device, characterized in that the terminal device comprises a processor, a network interface and a storage means, the processor, the network interface and the storage means being connected to each other, wherein the network interface is controlled by the processor for transceiving data, the storage means being arranged to store a computer program comprising program instructions, the processor being arranged to invoke the program instructions for performing the resource management method of claim 4 or the resource management method of claim 5.
9. A computer readable storage medium, characterized in that the computer readable storage medium stores a computer program comprising program instructions for execution by a processor to perform the resource management method of any one of claims 1 to 3 or the resource management method of claim 4 or the resource management method of claim 5.
CN201910922622.2A 2019-09-27 2019-09-27 Resource management method and device Active CN110599182B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910922622.2A CN110599182B (en) 2019-09-27 2019-09-27 Resource management method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910922622.2A CN110599182B (en) 2019-09-27 2019-09-27 Resource management method and device

Publications (2)

Publication Number Publication Date
CN110599182A CN110599182A (en) 2019-12-20
CN110599182B true CN110599182B (en) 2023-08-22

Family

ID=68864023

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910922622.2A Active CN110599182B (en) 2019-09-27 2019-09-27 Resource management method and device

Country Status (1)

Country Link
CN (1) CN110599182B (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111369237B (en) * 2020-02-28 2023-07-14 腾讯科技(深圳)有限公司 Data processing method and device and computer storage medium
CN112016921B (en) * 2020-03-03 2022-08-19 支付宝(杭州)信息技术有限公司 Transaction processing method, device and equipment
CN111080421A (en) * 2020-03-24 2020-04-28 国网电子商务有限公司 Green power certificate transaction method and device based on block chain
CN111626857A (en) * 2020-05-28 2020-09-04 中国建设银行股份有限公司 Revenue issuing method and device, electronic equipment and computer readable storage medium
CN111506932A (en) * 2020-06-18 2020-08-07 海南安迈云网络技术有限公司 Block chain calculation uplink implementation method
CN112101919B (en) * 2020-09-16 2024-04-12 财付通支付科技有限公司 Data processing method and device, electronic equipment and storage medium
CN112734411A (en) * 2021-01-12 2021-04-30 杭州趣链科技有限公司 Transaction method, device, equipment and storage medium based on block chain
CN113191754A (en) * 2021-04-26 2021-07-30 飞呗科技有限公司 Game equipment transaction method, device, equipment and system based on block chain
CN115456778B (en) * 2022-09-01 2024-02-02 中信建投证券股份有限公司 Bond block chain updating method and device
CN115827254A (en) * 2023-02-09 2023-03-21 中国证券登记结算有限责任公司 Resource processing method, device and system

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103927659A (en) * 2014-04-18 2014-07-16 刘志望 Immediate transfer and secure payment method of virtual currency
CN108074081A (en) * 2017-12-08 2018-05-25 上海策赢网络科技有限公司 The transfer method and device of a kind of virtual resource
CN108389046A (en) * 2018-02-07 2018-08-10 西安交通大学 Secret protection method of commerce based on block chain technology in a kind of e-commerce
CN109345259A (en) * 2018-09-29 2019-02-15 腾讯科技(深圳)有限公司 Virtual resource transfer method, device, medium and electronic equipment based on block chain
CN109636362A (en) * 2018-11-14 2019-04-16 深圳前海达闼云端智能科技有限公司 Virtual asset transaction method and device and block chain network node
CN110135989A (en) * 2019-04-26 2019-08-16 深圳市元征科技股份有限公司 A kind of virtual resource transfer method and block chain node device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103927659A (en) * 2014-04-18 2014-07-16 刘志望 Immediate transfer and secure payment method of virtual currency
CN108074081A (en) * 2017-12-08 2018-05-25 上海策赢网络科技有限公司 The transfer method and device of a kind of virtual resource
CN108389046A (en) * 2018-02-07 2018-08-10 西安交通大学 Secret protection method of commerce based on block chain technology in a kind of e-commerce
CN109345259A (en) * 2018-09-29 2019-02-15 腾讯科技(深圳)有限公司 Virtual resource transfer method, device, medium and electronic equipment based on block chain
CN109636362A (en) * 2018-11-14 2019-04-16 深圳前海达闼云端智能科技有限公司 Virtual asset transaction method and device and block chain network node
CN110135989A (en) * 2019-04-26 2019-08-16 深圳市元征科技股份有限公司 A kind of virtual resource transfer method and block chain node device

Also Published As

Publication number Publication date
CN110599182A (en) 2019-12-20

Similar Documents

Publication Publication Date Title
CN110599182B (en) Resource management method and device
US20220198447A1 (en) Target object management method, smart contract, and management device
KR102573433B1 (en) Platform for trading energy using block chain and method thereof
US20220230175A1 (en) Method to be executed by computer system, and computer system
US20200211092A1 (en) Adaptive product listing using blockchain inventory and smart contracts
US20190303926A1 (en) Blockchain loan transaction systems and methods
JP2022103306A (en) Method for splitting blockchain-registered digital asset and autonomous computing agent
JP6457391B2 (en) Method and system for distributing data streams
CN110659993A (en) Resource management method and device based on block chain network
CN110148046A (en) A kind of payment management method and device
CN109726249B (en) Decentralized chip research and development transaction data storage method and system
CN110738471A (en) bill management method based on block chain network and related equipment
CN109903159A (en) Domain name method of commerce and device based on block chain
CN115131034A (en) Block chain-based rights and interests digital collection verification method and equipment
RU2635874C2 (en) Method of providing safe e-commerce transactions
CN110619584B (en) Block chain access system and method and application in crowd funding digital transaction
JP7340336B2 (en) Virtual currency distribution system
CA2995865C (en) Electronic-certificate-based transaction method and system
TWI701626B (en) Data service processing method and device
CN108876339B (en) E-pet transaction method and device based on certificate
WO2023201359A2 (en) Method, controller, and computer readable medium for detecting expiration of a unique cryptographic identifier on a distributed transfer network
CN111178892A (en) Block chain-based data flow processing method and device and block chain system
CN115983853A (en) Client side green electricity application service method and system based on block chain and electronic equipment
CN110852891B (en) Data processing method and device based on rolling stock and readable storage medium
CN110599146B (en) Data processing method, device, terminal, node 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
GR01 Patent grant
GR01 Patent grant