CN112734411A - Transaction method, device, equipment and storage medium based on block chain - Google Patents
Transaction method, device, equipment and storage medium based on block chain Download PDFInfo
- Publication number
- CN112734411A CN112734411A CN202110036334.4A CN202110036334A CN112734411A CN 112734411 A CN112734411 A CN 112734411A CN 202110036334 A CN202110036334 A CN 202110036334A CN 112734411 A CN112734411 A CN 112734411A
- Authority
- CN
- China
- Prior art keywords
- user node
- transaction
- storage address
- amount
- resources
- 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.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 80
- 238000012546 transfer Methods 0.000 claims description 23
- 238000004891 communication Methods 0.000 claims description 16
- 238000004590 computer program Methods 0.000 claims description 9
- 230000008569 process Effects 0.000 abstract description 16
- 238000010586 diagram Methods 0.000 description 5
- 230000009471 action Effects 0.000 description 3
- 238000011161 development Methods 0.000 description 2
- RWSOTUBLDIXVET-UHFFFAOYSA-N Dihydrogen sulfide Chemical compound S RWSOTUBLDIXVET-UHFFFAOYSA-N 0.000 description 1
- 239000010779 crude oil Substances 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 239000000835 fiber Substances 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- PCHJSUWPFVWCPO-UHFFFAOYSA-N gold Chemical compound [Au] PCHJSUWPFVWCPO-UHFFFAOYSA-N 0.000 description 1
- 239000010931 gold Substances 0.000 description 1
- 229910052737 gold Inorganic materials 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q20/00—Payment architectures, schemes or protocols
- G06Q20/04—Payment circuits
- G06Q20/06—Private payment circuits, e.g. involving electronic currency used among participants of a common payment scheme
- G06Q20/065—Private payment circuits, e.g. involving electronic currency used among participants of a common payment scheme using e-cash
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q20/00—Payment architectures, schemes or protocols
- G06Q20/02—Payment architectures, schemes or protocols involving a neutral party, e.g. certification authority, notary or trusted third party [TTP]
- G06Q20/023—Payment architectures, schemes or protocols involving a neutral party, e.g. certification authority, notary or trusted third party [TTP] the neutral party being a clearing house
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q20/00—Payment architectures, schemes or protocols
- G06Q20/08—Payment architectures
- G06Q20/085—Payment architectures involving remote charge determination or related payment systems
- G06Q20/0855—Payment architectures involving remote charge determination or related payment systems involving a third party
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q20/00—Payment architectures, schemes or protocols
- G06Q20/38—Payment protocols; Details thereof
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q40/00—Finance; Insurance; Tax strategies; Processing of corporate or income taxes
- G06Q40/04—Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1097—Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]
Landscapes
- Business, Economics & Management (AREA)
- Accounting & Taxation (AREA)
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Finance (AREA)
- Theoretical Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Strategic Management (AREA)
- General Business, Economics & Management (AREA)
- Development Economics (AREA)
- Technology Law (AREA)
- Marketing (AREA)
- Economics (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)
Abstract
The application relates to a transaction method, a transaction device, transaction equipment and a transaction storage medium based on a block chain, and relates to the field of block chains. The transaction method based on the block chain comprises the following steps: acquiring a transaction request initiated by a first user node; delivering a first amount of real resources to a third party platform through a transaction account bound by a first user node; after the third-party platform determines that the delivery is successful, distributing a second amount of virtual resources corresponding to the first amount of real resources to the storage address of the first user node; transferring a second number of virtual resources from the storage address of the first user node to the storage address of the second user node; and after the second user node determines that the second amount of virtual resources are received, delivering the first amount of real resources to the transaction account bound to the second user node through the third party platform, and clearing the virtual resources in the storage address of the second user node. The method and the device are used for solving the problem of cooperation and mutual trust of transaction parties in the transaction process.
Description
Technical Field
The present application relates to the field of blockchains, and in particular, to a method, an apparatus, a device, and a storage medium for transaction based on blockchains.
Background
With the development of the internet, cross-border e-commerce becomes more and more common, the life style of people is being affected slowly, mutual cooperation and trust problems exist among transaction parties in the transaction process, and the pain problem also becomes an important bottleneck of the development of the cross-border e-commerce.
Disclosure of Invention
The application provides a transaction method, a device, equipment and a storage medium based on a block chain, which are used for solving the problem of cooperative mutual trust of transaction parties in a transaction process.
In a first aspect, an embodiment of the present application provides a transaction method based on a blockchain, which is applied to a blockchain platform, and includes:
acquiring a transaction request initiated by a first user node, wherein the transaction request comprises a storage address of a second user node and a first quantity of real resources required to be transacted;
delivering the first amount of real resources to a third party platform through the transaction account bound by the first user node;
after the third-party platform determines that the delivery is successful, allocating a second amount of virtual resources corresponding to the first amount of real resources to the storage address of the first user node;
after the first user node determines that the second quantity of virtual resources are received, transferring the second quantity of virtual resources from the storage address of the first user node to the storage address of the second user node;
and after the second user node determines to receive the second amount of virtual resources, delivering the first amount of real resources to the transaction account bound to the second user node through the third party platform, and clearing the virtual resources in the storage address of the second user node.
Optionally, after the delivering, by the third party platform, the first amount of real resources to the transaction account bound to the second user node, the method further includes:
generating a transaction record by using the identifier of the first user node, the identifier of the second user node, the identifier of the third-party platform, the identifier of the transaction account bound by the first user node, the identifier of the transaction account bound by the second user node, the storage address of the first user node, the storage address of the second user node, the storage address of the third-party platform, the first quantity and the second quantity;
storing the transaction record in a designated block.
Optionally, the storing the transaction record after the designated block further includes:
acquiring a transaction record query request initiated by the first user node;
and acquiring a transaction record corresponding to the identifier of the first user node from the appointed block of the block chain platform according to the identifier of the first user node.
Optionally, the allocating, to the storage address of the first user node, a second number of virtual resources corresponding to the first number of real resources includes:
transferring the second number of virtual resources from the storage address of the third party platform to the storage address of the first user node;
the clearing the virtual resource in the storage address of the second user node includes:
transferring the second number of virtual resources from the storage address of the second user node to the storage address of the third party platform.
Optionally, the first user node is located within the jurisdiction of a first country and the second user node is located within the jurisdiction of a second country.
In a second aspect, an embodiment of the present application provides a block chain-based transaction method, applied to a first user node, including:
sending a transaction request to a blockchain platform, wherein the transaction request comprises a storage address of a second user node and a first quantity of real resources required to be transacted;
acquiring a first delivery request sent by the block chain platform;
delivering the first amount of real resources to a third party platform through a transaction account bound by a first user node according to the first delivery request;
after receiving a second amount of virtual resources at the storage address of the first user node, sending a virtual resource transfer request to the blockchain platform, where the virtual resource transfer request is used to request to transfer the second amount of virtual resources from the storage address of the first user node to the storage address of the second user node.
In a third aspect, an embodiment of the present application provides a block chain-based transaction method, applied to a second user node, including:
after receiving a second amount of virtual resources at a storage address of a second user node, sending a second delivery request to a blockchain platform, wherein the second delivery request is used for requesting delivery of a first amount of real resources to a transaction account bound to the second user node through a third-party platform;
and after the storage address of the second user node receives a second amount of virtual resources, sending a virtual resource zero clearing request to the block chain platform, wherein the virtual resource zero clearing request is used for requesting to zero the virtual resources in the storage address of the second user node.
In a fourth aspect, an embodiment of the present application provides a transaction method based on a blockchain, which is applied to a third party platform, and includes:
acquiring a first amount of real resources delivered by a transaction account bound by a first user node;
after determining that the delivery is successful, sending a virtual resource allocation request to a block chain platform, wherein the virtual resource allocation request is used for requesting allocation of a second amount of virtual resources corresponding to the first amount of real resources to a storage address of the first user node;
and acquiring a third delivery request sent by the blockchain platform, wherein the third delivery request is used for requesting delivery of the first amount of real resources to a transaction account bound to a second user node.
In a fifth aspect, an embodiment of the present application provides a blockchain-based transaction apparatus configured on a blockchain platform, including:
the transaction request acquisition module is used for acquiring a transaction request initiated by a first user node, wherein the transaction request comprises a storage address of a second user node and a first quantity of real resources required to be transacted;
the first real resource delivery module is used for delivering the first amount of real resources to a third-party platform through the transaction account bound by the first user node;
the virtual resource allocation module is used for allocating a second amount of virtual resources corresponding to the first amount of real resources to the storage address of the first user node after the third-party platform determines that the delivery is successful;
a virtual resource transfer module, configured to transfer the second number of virtual resources from the storage address of the first user node to the storage address of the second user node after the first user node determines that the second number of virtual resources are received;
and the second real resource delivery module is used for delivering the first quantity of real resources to the transaction account bound to the second user node through the third party platform after the second user node determines to receive the second quantity of virtual resources, and clearing the virtual resources in the storage address of the second user node.
In a sixth aspect, an embodiment of the present application provides an electronic device, including: the system comprises a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory are communicated with each other through the communication bus;
the memory for storing a computer program;
the processor is configured to execute a program stored in the memory to implement the blockchain-based transaction method according to the first aspect, or implement the blockchain-based transaction method according to the second aspect, or implement the blockchain-based transaction method according to the third aspect, or implement the blockchain-based transaction method according to the fourth aspect.
In a seventh aspect, an embodiment of the present application provides a computer-readable storage medium, which stores a computer program, and when executed by a processor, the computer program implements the blockchain-based transaction method according to the first aspect, or implements the blockchain-based transaction method according to the second aspect, or implements the blockchain-based transaction method according to the third aspect, or implements the blockchain-based transaction method according to the fourth aspect.
Compared with the prior art, the technical scheme provided by the embodiment of the application has the following advantages: in the method provided by the embodiment of the application, a block chain platform obtains a transaction request initiated by a first user node, delivers a first amount of real resources to a third-party platform through a transaction account bound by the first user node, allocates a second amount of virtual resources corresponding to the first amount of real resources to a storage address of the first user node after the third-party platform determines that the delivery is successful, transfers the second amount of virtual resources from the storage address of the first user node to a storage address of a second user node after the first user node determines that the second amount of virtual resources are received, delivers the first amount of real resources to the transaction account bound by the second user node through the third-party platform after the second user node determines that the second amount of virtual resources are received, and clears the virtual resources in the storage address of the second user node. According to the method, the transaction process of the first user node, the third party platform and the second user node is carried out on the block link platform, the transaction information can be stored on the block link platform, and the first user node, the third party platform and the second user node can mutually cooperate and trust by utilizing the traceability and the non-tamper property of the block link, so that the problem of cooperation and mutual trust of transaction parties in the transaction process is solved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without inventive exercise.
FIG. 1 is a block chain system according to an embodiment of the present invention;
fig. 2 is a schematic flow chart of a method for blockchain-based transaction applied to a blockchain platform in an embodiment of the present application;
FIG. 3 is a block chain system architecture according to an embodiment of the present application;
fig. 4 is a flowchart illustrating a method for blockchain-based transaction applied to a first user node according to an embodiment of the present disclosure;
fig. 5 is a flowchart illustrating a method for blockchain-based transaction applied to a second user node according to an embodiment of the present disclosure;
fig. 6 is a flowchart illustrating a method for blockchain-based transaction applied to a third-party platform according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of a blockchain-based transaction apparatus configured on a blockchain platform according to an embodiment of the present disclosure;
fig. 8 is a schematic structural diagram of a blockchain-based transaction apparatus configured in a first user node according to an embodiment of the present invention;
fig. 9 is a schematic structural diagram of a blockchain-based transaction apparatus configured in a second user node according to an embodiment of the present application;
fig. 10 is a schematic structural diagram of a blockchain-based transaction apparatus configured on a third party platform according to an embodiment of the present disclosure;
fig. 11 is a schematic structural diagram of an electronic device in an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
As shown in fig. 1, the blockchain system in the embodiment of the present application includes a blockchain platform 101, a first user node 102, a second user node 103, and a third party platform 104.
The block chain-based transaction method provided in the embodiment of the application mainly realizes a transaction process by the cooperation of a plurality of parts, such as a block chain platform, a first user node, a second user node, a third party platform and the like. The following embodiments describe blockchain based transaction methods from a number of different perspectives.
As shown in fig. 2, the method flow of blockchain-based transaction applied to a blockchain platform mainly includes:
The real resources comprise crude oil, gold, RMB and other resources capable of performing real equivalent exchange.
It should be noted that the types included in the real resources listed herein are only examples, and do not limit the scope of the present application, and other types may be included in the real resources as needed.
In one embodiment, the first user node is located within the jurisdiction of a first country and the second user node is located within the jurisdiction of a second country. For example: the first user node is in china and the second user node is in the united states. The block chain-based transaction method provided by the embodiment of the application can be applied to cross-country transactions, so that intermediate links are reduced, and the transaction cost is reduced. As shown in fig. 3, the blockchain system in one embodiment includes an inbound user 301, an outbound user 302, an inbound third party payment platform 303, an outbound third party payment platform 304, a database 305, and a blockchain 306.
In a specific embodiment, the first user node is located in the jurisdiction of the first country, the second user node is located in the jurisdiction of the second country, and the third party platform may be located in the jurisdiction of the first country, or located in the jurisdiction of the second country, or the third party platform is divided into a first sub-platform and a second sub-platform, where the first sub-platform is located in the jurisdiction of the first country and the second sub-platform is located in the jurisdiction of the second country. A third party platform needs to be able to transact with the first user node and the second user node.
The virtual resource is used for indicating that the transaction account bound by the first user node delivers a first amount of real resources to the third-party platform. The virtual resource may be a numerical value or other form of characteristic value, and does not limit the scope of the present application. In a specific embodiment, a second number of virtual resources corresponding to the first number of real resources are allocated to the storage address of the first user node, and a specific method flow includes: the second number of virtual resources is transferred from the storage address of the third party platform to the storage address of the first user node.
The virtual resource is used for indicating that the third-party platform needs to deliver the real resource of the first quantity to the transaction account bound by the second user node. The virtual resource may be a numerical value or other form of characteristic value, and does not limit the scope of the present application.
In a specific embodiment, after the first amount of real resources are delivered to the transaction account bound to the second user node through the third party platform, a specific method flow further includes: and generating a transaction record by using the identifier of the first user node, the identifier of the second user node, the identifier of the third-party platform, the identifier of the transaction account bound by the first user node, the identifier of the transaction account bound by the second user node, the storage address of the first user node, the storage address of the second user node, the storage address of the third-party platform, the first quantity and the second quantity, and storing the transaction record in a specified block.
The transaction record may further include information such as a transaction serial number, a type of real resource, and a type of virtual resource.
It should be noted that the information or parameters included in the transaction record listed herein are only examples, and do not limit the scope of the present application, and other information may be included in the transaction record as needed.
The transaction records are stored in the designated blocks, so that the transaction information in the whole transaction process is guaranteed to be stored in the block chain platform, the first quantity and the second quantity can be checked conveniently, the transaction information can be inquired conveniently, the transaction information cannot be tampered and can be traced.
In one embodiment, after the transaction record is stored in the designated block, a transaction record query request initiated by the first user node is obtained, and the transaction record corresponding to the identifier of the first user node is obtained from the designated block of the blockchain platform according to the identifier of the first user node. The first user node is facilitated to query the transaction records for each transaction process in which the first user node participates.
In one embodiment, after the transaction record is stored in the designated block, a transaction record query request initiated by the second user node is obtained, and the transaction record corresponding to the identifier of the second user node is obtained from the designated block of the block chain platform according to the identifier of the second user node. The second user node is facilitated to query the transaction records of each transaction process in which the second user node participates.
In one embodiment, after the transaction record is stored in the designated block, a transaction record query request initiated by a third-party platform is acquired, and the transaction record corresponding to the identifier of the third-party platform is acquired from the designated block of the block chain platform according to the identifier of the third-party platform. And the third-party platform is convenient to inquire the transaction record of each transaction process participated by the third-party platform.
In a specific embodiment, the virtual resource in the storage address of the second user node is cleared, and a specific method flow includes: and transferring the second quantity of virtual resources from the storage address of the second user node to the storage address of the third-party platform.
As shown in fig. 4, the method flow applied to the blockchain-based transaction of the first user node mainly includes:
As shown in fig. 5, the method flow applied to the blockchain-based transaction of the second user node mainly includes:
As shown in fig. 6, the method flow of blockchain-based transaction applied to the third party platform mainly includes:
In summary, in the embodiment of the present application, the method performs transactions based on the blockchain. In the method, a blockchain platform acquires a transaction request initiated by a first user node, delivers a first amount of real resources to a third-party platform through a transaction account bound by the first user node, distributes a second amount of virtual resources corresponding to the first amount of real resources to a storage address of the first user node after the third-party platform determines that the delivery is successful, transfers the second amount of virtual resources from the storage address of the first user node to a storage address of a second user node after the first user node determines that the second amount of virtual resources are received, delivers the first amount of real resources to the transaction account bound by the second user node through the third-party platform after the second user node determines that the second amount of virtual resources are received, and resets the virtual resources in the storage address of the second user node. According to the method, the transaction process of the first user node, the third party platform and the second user node is carried out on the block link platform, the transaction information can be stored on the block link platform, and the first user node, the third party platform and the second user node can mutually cooperate and trust by utilizing the traceability and the non-tamper property of the block link, so that the problem of cooperation and mutual trust of transaction parties in the transaction process is solved.
Based on the same concept, the present application provides a blockchain-based transaction apparatus configured on a blockchain platform, and the specific implementation of the apparatus may refer to the description of the method embodiment, and repeated descriptions are omitted, as shown in fig. 7, the apparatus mainly includes:
a transaction request obtaining module 701, configured to obtain a transaction request initiated by a first user node, where the transaction request includes a storage address of a second user node and a first quantity of real resources to be transacted;
a first real resource delivering module 702, configured to deliver the first amount of real resources to a third party platform through the transaction account bound to the first user node;
a virtual resource allocation module 703, configured to allocate, to the storage address of the first user node, a second number of virtual resources corresponding to the first number of real resources after the third-party platform determines that the delivery is successful;
a virtual resource transferring module 704, configured to, after the first user node determines that the second number of virtual resources are received, transfer the second number of virtual resources from the storage address of the first user node to the storage address of the second user node;
a second real resource delivering module 705, configured to deliver, by the third party platform, the first amount of real resources to the transaction account bound to the second user node after the second user node determines that the second amount of virtual resources are received, and clear the virtual resources in the storage address of the second user node.
Based on the same concept, an embodiment of the present application provides a blockchain-based transaction apparatus configured at a first user node, and the specific implementation of the apparatus may refer to the description of the method embodiment, and repeated details are not repeated, as shown in fig. 8, the apparatus mainly includes:
a transaction request sending module 801, configured to send a transaction request to the blockchain platform, where the transaction request includes a storage address of the second user node and a first amount of real resources to be transacted;
a first delivery request obtaining module 802, configured to obtain a first delivery request sent by the blockchain platform;
a third real resource delivering module 803, configured to deliver, according to the first delivery request, the first amount of real resources to a third party platform through a transaction account bound to the first user node;
a virtual resource transfer request sending module 804, configured to send a virtual resource transfer request to the blockchain platform after the storage address of the first user node receives a second number of virtual resources, where the virtual resource transfer request is used to request to transfer the second number of virtual resources from the storage address of the first user node to the storage address of the second user node.
Based on the same concept, an embodiment of the present application provides a block chain-based transaction apparatus configured at a second user node, and the specific implementation of the apparatus may refer to the description of the method embodiment, and repeated details are not repeated, as shown in fig. 9, the apparatus mainly includes:
a second delivery request sending module 901, configured to send a second delivery request to the blockchain platform after receiving a second amount of virtual resources at a storage address of a second user node, where the second delivery request is used to request to deliver a first amount of real resources to a transaction account bound to the second user node through a third-party platform;
a virtual resource clear request sending module 902, configured to send a virtual resource clear request to the blockchain platform after the storage address of the second user node receives the second number of virtual resources, where the virtual resource clear request is used to request to clear the virtual resources in the storage address of the second user node.
Based on the same concept, the embodiment of the present application provides a blockchain-based transaction apparatus configured on a third party platform, and the specific implementation of the apparatus may refer to the description of the method embodiment, and repeated descriptions are omitted, as shown in fig. 10, the apparatus mainly includes:
a real resource obtaining module 1001, configured to obtain a first amount of real resources delivered by a transaction account bound by a first user node;
a virtual resource allocation request sending module 1002, configured to send a virtual resource allocation request to the blockchain platform after determining that the delivery is successful, where the virtual resource allocation request is used to request to allocate, to the storage address of the first user node, a second number of virtual resources corresponding to the first number of real resources;
a third delivery request obtaining module 1003, configured to obtain a third delivery request sent by the blockchain platform, where the third delivery request is used to request to deliver the first amount of real resources to a transaction account bound to a second user node.
Based on the same concept, an embodiment of the present application further provides an electronic device, as shown in fig. 11, the electronic device mainly includes: the device comprises a processor 1101, a communication interface 1102, a memory 1103 and a communication bus 1104, wherein the processor 1101, the communication interface 1102 and the memory 1103 are communicated with each other through the communication bus 1104. Wherein, the memory 1103 stores therein a program executable by the processor 1101, and the processor 1101 executes the program stored in the memory 1103, so as to implement the following steps:
acquiring a transaction request initiated by a first user node, wherein the transaction request comprises a storage address of a second user node and a first quantity of real resources required to be transacted; delivering a first amount of real resources to a third party platform through a transaction account bound by a first user node; after the third-party platform determines that the delivery is successful, distributing a second amount of virtual resources corresponding to the first amount of real resources to the storage address of the first user node; after the first user node determines that the second quantity of virtual resources are received, transferring the second quantity of virtual resources from the storage address of the first user node to the storage address of the second user node; after the second user node determines to receive the second amount of virtual resources, delivering the first amount of real resources to the transaction account bound to the second user node through the third party platform, and resetting the virtual resources in the storage address of the second user node;
or,
sending a transaction request to the blockchain platform, wherein the transaction request comprises a storage address of the second user node and a first quantity of real resources required to be transacted; acquiring a first delivery request sent by a block chain platform; according to the first delivery request, delivering a first amount of real resources to a third-party platform through a transaction account bound by a first user node; after receiving a second amount of virtual resources from the storage address of the first user node, sending a virtual resource transfer request to the block chain platform, wherein the virtual resource transfer request is used for requesting to transfer the second amount of virtual resources from the storage address of the first user node to the storage address of the second user node;
or,
after receiving a second amount of virtual resources at the storage address of the second user node, sending a second delivery request to the blockchain platform, wherein the second delivery request is used for requesting delivery of a first amount of real resources to a transaction account bound to the second user node through a third-party platform; after receiving a second amount of virtual resources from the storage address of the second user node, sending a virtual resource zero clearing request to the block chain platform, wherein the virtual resource zero clearing request is used for requesting to zero the virtual resources in the storage address of the second user node;
or,
acquiring a first amount of real resources delivered by a transaction account bound by a first user node; after the delivery is determined to be successful, sending a virtual resource allocation request to the block chain platform, wherein the virtual resource allocation request is used for requesting allocation of a second amount of virtual resources corresponding to the first amount of real resources to the storage address of the first user node; and acquiring a third delivery request sent by the blockchain platform, wherein the third delivery request is used for requesting delivery of the first amount of real resources to the transaction account bound to the second user node.
The communication bus 1104 mentioned in the above electronic device may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus 1104 may be divided into an address bus, a data bus, a control bus, and the like. For ease of illustration, only one thick line is shown in FIG. 11, but this is not intended to represent only one bus or type of bus.
The communication interface 1102 is used for communication between the electronic apparatus and other apparatuses.
The Memory 1103 may include a Random Access Memory (RAM) or a non-volatile Memory (non-volatile Memory), such as at least one disk Memory. Alternatively, the memory may also be at least one storage device located remotely from the aforementioned processor 1101.
The Processor 1101 may be a general-purpose Processor, which includes a Central Processing Unit (CPU), a Network Processor (NP), and the like, and may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic devices, discrete gates or transistor logic devices, and discrete hardware components.
In yet another embodiment of the present application, there is also provided a computer-readable storage medium having stored therein a computer program which, when run on a computer, causes the computer to execute the blockchain-based transaction method described in the above embodiment.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the application to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored on a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, from one website site, computer, server, or data center to another website site, computer, server, or data center via wire (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wirelessly (e.g., infrared, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that includes one or more of the available media. The available media may be magnetic media (e.g., floppy disks, hard disks, tapes, etc.), optical media (e.g., DVDs), or semiconductor media (e.g., solid state drives), among others.
It is noted that, in this document, relational terms such as "first" and "second," and the like, may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The foregoing are merely exemplary embodiments of the present invention, which enable those skilled in the art to understand or practice the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
Claims (11)
1. A transaction method based on a block chain is characterized in that the transaction method is applied to a block chain platform and comprises the following steps:
acquiring a transaction request initiated by a first user node, wherein the transaction request comprises a storage address of a second user node and a first quantity of real resources required to be transacted;
delivering the first amount of real resources to a third party platform through the transaction account bound by the first user node;
after the third-party platform determines that the delivery is successful, allocating a second amount of virtual resources corresponding to the first amount of real resources to the storage address of the first user node;
after the first user node determines that the second quantity of virtual resources are received, transferring the second quantity of virtual resources from the storage address of the first user node to the storage address of the second user node;
and after the second user node determines to receive the second amount of virtual resources, delivering the first amount of real resources to the transaction account bound to the second user node through the third party platform, and clearing the virtual resources in the storage address of the second user node.
2. The blockchain-based transaction method of claim 1, further comprising, after the delivering the first amount of real resources to the second user node-bound transaction account through the third party platform:
generating a transaction record by using the identifier of the first user node, the identifier of the second user node, the identifier of the third-party platform, the identifier of the transaction account bound by the first user node, the identifier of the transaction account bound by the second user node, the storage address of the first user node, the storage address of the second user node, the storage address of the third-party platform, the first quantity and the second quantity;
storing the transaction record in a designated block.
3. The blockchain-based transaction method of claim 2, wherein storing the transaction record after the designated block further comprises:
acquiring a transaction record query request initiated by the first user node;
and acquiring a transaction record corresponding to the identifier of the first user node from the appointed block of the block chain platform according to the identifier of the first user node.
4. The blockchain-based transaction method of claim 1, wherein the allocating a second amount of virtual resources corresponding to the first amount of real resources to the storage address of the first user node comprises:
transferring the second number of virtual resources from the storage address of the third party platform to the storage address of the first user node;
the clearing the virtual resource in the storage address of the second user node includes:
transferring the second number of virtual resources from the storage address of the second user node to the storage address of the third party platform.
5. The blockchain-based transaction method of claim 1, wherein the first user node is located within a jurisdiction of a first country and the second user node is located within a jurisdiction of a second country.
6. A transaction method based on a block chain is applied to a first user node and comprises the following steps:
sending a transaction request to a blockchain platform, wherein the transaction request comprises a storage address of a second user node and a first quantity of real resources required to be transacted;
acquiring a first delivery request sent by the block chain platform;
delivering the first amount of real resources to a third party platform through a transaction account bound by a first user node according to the first delivery request;
after receiving a second amount of virtual resources at the storage address of the first user node, sending a virtual resource transfer request to the blockchain platform, where the virtual resource transfer request is used to request to transfer the second amount of virtual resources from the storage address of the first user node to the storage address of the second user node.
7. A transaction method based on a block chain is applied to a second user node and comprises the following steps:
after receiving a second amount of virtual resources at a storage address of a second user node, sending a second delivery request to a blockchain platform, wherein the second delivery request is used for requesting delivery of a first amount of real resources to a transaction account bound to the second user node through a third-party platform;
and after the storage address of the second user node receives a second amount of virtual resources, sending a virtual resource zero clearing request to the block chain platform, wherein the virtual resource zero clearing request is used for requesting to zero the virtual resources in the storage address of the second user node.
8. A transaction method based on a blockchain is applied to a third-party platform and comprises the following steps:
acquiring a first amount of real resources delivered by a transaction account bound by a first user node;
after determining that the delivery is successful, sending a virtual resource allocation request to a block chain platform, wherein the virtual resource allocation request is used for requesting allocation of a second amount of virtual resources corresponding to the first amount of real resources to a storage address of the first user node;
and acquiring a third delivery request sent by the blockchain platform, wherein the third delivery request is used for requesting delivery of the first amount of real resources to a transaction account bound to a second user node.
9. A blockchain-based transaction apparatus configured on a blockchain platform, comprising:
the transaction request acquisition module is used for acquiring a transaction request initiated by a first user node, wherein the transaction request comprises a storage address of a second user node and a first quantity of real resources required to be transacted;
the first real resource delivery module is used for delivering the first amount of real resources to a third-party platform through the transaction account bound by the first user node;
the virtual resource allocation module is used for allocating a second amount of virtual resources corresponding to the first amount of real resources to the storage address of the first user node after the third-party platform determines that the delivery is successful;
a virtual resource transfer module, configured to transfer the second number of virtual resources from the storage address of the first user node to the storage address of the second user node after the first user node determines that the second number of virtual resources are received;
and the second real resource delivery module is used for delivering the first quantity of real resources to the transaction account bound to the second user node through the third party platform after the second user node determines to receive the second quantity of virtual resources, and clearing the virtual resources in the storage address of the second user node.
10. An electronic device, comprising: the system comprises a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory are communicated with each other through the communication bus;
the memory for storing a computer program;
the processor, configured to execute a program stored in the memory, to implement the blockchain based transaction method of any one of claims 1 to 5, or to implement the blockchain based transaction method of claim 6, or to implement the blockchain based transaction method of claim 7, or to implement the blockchain based transaction method of claim 8.
11. A computer-readable storage medium, storing a computer program, wherein the computer program, when executed by a processor, implements the blockchain-based transaction method of any one of claims 1 to 5, or implements the blockchain-based transaction method of claim 6, or implements the blockchain-based transaction method of claim 7, or implements the blockchain-based transaction method of claim 8.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110036334.4A CN112734411A (en) | 2021-01-12 | 2021-01-12 | Transaction method, device, equipment and storage medium based on block chain |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110036334.4A CN112734411A (en) | 2021-01-12 | 2021-01-12 | Transaction method, device, equipment and storage medium based on block chain |
Publications (1)
Publication Number | Publication Date |
---|---|
CN112734411A true CN112734411A (en) | 2021-04-30 |
Family
ID=75590543
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110036334.4A Pending CN112734411A (en) | 2021-01-12 | 2021-01-12 | Transaction method, device, equipment and storage medium based on block chain |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112734411A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113516403A (en) * | 2021-07-28 | 2021-10-19 | 中国建设银行股份有限公司 | Delivery flow monitoring method and device, server and computer storage medium |
CN114298701A (en) * | 2021-12-29 | 2022-04-08 | 中国科学技术大学先进技术研究院 | Method, device, equipment and storage medium for compensating virtual resources in transaction |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109961288A (en) * | 2019-03-22 | 2019-07-02 | 北京沃东天骏信息技术有限公司 | Method of commerce and device based on Proxy Signature |
US10410190B1 (en) * | 2018-07-31 | 2019-09-10 | Morgan Stanley Services Group Inc. | Network of computing nodes and a method of operating the computing nodes to effectuate real-time bank account-to-bank account money transfer |
CN110599182A (en) * | 2019-09-27 | 2019-12-20 | 腾讯科技(深圳)有限公司 | Resource management method and device |
US20200074455A1 (en) * | 2018-08-31 | 2020-03-05 | Jpmorgan Chase Bank, N.A. | Systems and methods for token-based cross-currency interoperability |
US20200151682A1 (en) * | 2018-11-09 | 2020-05-14 | Visa International Service Association | Digital fiat currency |
-
2021
- 2021-01-12 CN CN202110036334.4A patent/CN112734411A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US10410190B1 (en) * | 2018-07-31 | 2019-09-10 | Morgan Stanley Services Group Inc. | Network of computing nodes and a method of operating the computing nodes to effectuate real-time bank account-to-bank account money transfer |
US20200074455A1 (en) * | 2018-08-31 | 2020-03-05 | Jpmorgan Chase Bank, N.A. | Systems and methods for token-based cross-currency interoperability |
US20200151682A1 (en) * | 2018-11-09 | 2020-05-14 | Visa International Service Association | Digital fiat currency |
CN109961288A (en) * | 2019-03-22 | 2019-07-02 | 北京沃东天骏信息技术有限公司 | Method of commerce and device based on Proxy Signature |
CN110599182A (en) * | 2019-09-27 | 2019-12-20 | 腾讯科技(深圳)有限公司 | Resource management method and device |
Non-Patent Citations (1)
Title |
---|
郑红梅等: "区块链金融:智能社会与行业场景应用实战:图解版", 30 June 2020, 北京:中国铁道出版社有限公司, pages: 303 - 304 * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113516403A (en) * | 2021-07-28 | 2021-10-19 | 中国建设银行股份有限公司 | Delivery flow monitoring method and device, server and computer storage medium |
CN114298701A (en) * | 2021-12-29 | 2022-04-08 | 中国科学技术大学先进技术研究院 | Method, device, equipment and storage medium for compensating virtual resources in transaction |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107682397B (en) | Customer resources acquisition methods, device, terminal device and storage medium | |
CN110599182B (en) | Resource management method and device | |
CN112734411A (en) | Transaction method, device, equipment and storage medium based on block chain | |
CN111461763A (en) | Resource allocation method and device | |
CN109076024A (en) | data control method and terminal device | |
TW202037114A (en) | Block chain-based data checking system and method, computing device and storage medium | |
CN109472699B (en) | Automatic artificial intelligence data sharing method and device based on block chain | |
CN108647988B (en) | Advertisement information processing system, method and device and electronic equipment | |
CN107330680A (en) | Red packet control method, device, computer equipment and computer-readable recording medium | |
CN108733768A (en) | transaction data consistency processing method, electronic device and storage medium | |
WO2021027478A1 (en) | Sim card resource allocation method and system, terminal device, and storage medium | |
CN112035542B (en) | Information query method, device, electronic equipment and readable storage medium | |
CN110288774A (en) | A kind of vehicle sharing method, device, server and readable storage medium storing program for executing | |
CN110597919A (en) | Data management method, device and equipment based on block chain and storage medium | |
US20200014632A1 (en) | Resource path monitoring | |
CN111666539A (en) | Real estate resource management method, device, server and storage medium | |
CN113095936A (en) | Entrusted order processing method, entrusted order processing device, computer equipment and storage medium | |
CN105160540A (en) | Online-to-offline service popularization system and method | |
CN114360744A (en) | Remote inquiry method, device and system based on Internet | |
CN112633954B (en) | Rights and interests processing method and device based on block chain | |
CN110009320B (en) | Resource conversion method, device, system, storage medium and computer equipment | |
CN108876339B (en) | E-pet transaction method and device based on certificate | |
CN110784324B (en) | Node admission method and device | |
CN112714198A (en) | File transmission method and system of ESB system | |
CN107734006A (en) | A kind of statistical log sending method, device and electronic equipment |
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 |