WO2022183837A1 - Transaction method, computer device, and storage medium - Google Patents

Transaction method, computer device, and storage medium Download PDF

Info

Publication number
WO2022183837A1
WO2022183837A1 PCT/CN2021/143840 CN2021143840W WO2022183837A1 WO 2022183837 A1 WO2022183837 A1 WO 2022183837A1 CN 2021143840 W CN2021143840 W CN 2021143840W WO 2022183837 A1 WO2022183837 A1 WO 2022183837A1
Authority
WO
WIPO (PCT)
Prior art keywords
commodity
transaction
user
token
attribute
Prior art date
Application number
PCT/CN2021/143840
Other languages
French (fr)
Chinese (zh)
Inventor
王志文
吴思进
Original Assignee
杭州复杂美科技有限公司
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 杭州复杂美科技有限公司 filed Critical 杭州复杂美科技有限公司
Publication of WO2022183837A1 publication Critical patent/WO2022183837A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/08Logistics, e.g. warehousing, loading or distribution; Inventory or stock management
    • G06Q10/083Shipping
    • G06Q10/0833Tracking
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/23Updating
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
    • 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/04Payment circuits
    • G06Q20/06Private payment circuits, e.g. involving electronic currency used among participants of a common payment scheme
    • G06Q20/065Private payment circuits, e.g. involving electronic currency used among participants of a common payment scheme using e-cash
    • 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/40Authorisation, e.g. identification of payer or payee, verification of customer or shop credentials; Review and approval of payers, e.g. check credit lines or negative lists
    • G06Q20/405Establishing or using transaction specific rules
    • 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

Definitions

  • the present application relates to the field of blockchain technology, and in particular to a transaction method, computer equipment and storage medium.
  • the logistics system on the blockchain basically adopts the mode of deposit, that is, the entire process of logistics is stored on the blockchain, so that it cannot be tampered with.
  • the courier needs to transport item A from Beijing to Guangzhou, and the courier assumes that A should pass through Hangzhou, and a transaction tx1 is generated, indicating that item A is sent to Guangzhou via Hangzhou; in reality, the courier changes the route so that A Passing through Hefei, but the courier does not remember that tx1 has been generated, and a transaction tx2 is generated, indicating that A is sent to Guangzhou through Hefei; since there is only a certificate on the blockchain, it is recorded on the blockchain that A is sent to Guangzhou through Hangzhou. Guangzhou, and recorded A route Hefei to Guangzhou.
  • the above mechanism has no constraints on conflicting logistics information.
  • the present invention provides a transaction method suitable for blockchain nodes, including:
  • the first registered commodity transaction is generated by the first merchant end of the first merchant in response to the first merchant's request to sell the first commodity through the blockchain;
  • the first commodity token of the first commodity is generated, and the first commodity token is transferred to the first merchant account of the first merchant; wherein, the first commodity token includes the first commodity token. commodity address attribute and first commodity holder attribute;
  • the first subscription transaction is generated by the first user terminal of the first user in response to the first user's request to purchase the second commodity of the second merchant, and the first subscription transaction includes the first subscription transaction of the first user. delivery address;
  • the first package transaction is generated by the first terminal of the first deliveryman who collects the second commodity in response to the second commodity;
  • the first goods receipt transaction is generated by the first user terminal in response to the first user signing for the second commodity
  • the frozen assets are unfrozen and transferred to the first merchant account of the second merchant, and the frozen second commodity token is unfrozen and transferred to the first user of the first user account, and update the attribute of the second commodity holder to the first user, and update the attribute of the second commodity address to the first delivery address.
  • the present invention provides a transaction method suitable for blockchain nodes, including:
  • the first subscription transaction is generated by the first user terminal of the first user in response to the first user's request to purchase the first commodity of the first merchant, and the first subscription transaction includes the first subscription transaction of the first user. delivery address;
  • the first logistics token is generated and frozen according to the first delivery transaction; wherein the first logistics token includes the first holder attribute and the first address attribute;
  • the first package transaction is generated by the first terminal of the first deliveryman who picks up the second commodity in response to picking up the second commodity;
  • the first goods receipt transaction is generated by the first user terminal in response to the first user signing for the first commodity
  • the frozen assets are unfrozen and transferred to the first merchant account of the first merchant, and the frozen first logistics token is unfrozen and transferred to the first user of the first user account, and update the first holder attribute to the first user, and update the first address attribute to the first shipping address.
  • the present invention also provides an apparatus comprising one or more processors and a memory, wherein the memory contains instructions executable by the one or more processors to cause the one or more processors to perform various functions according to the present invention.
  • the transaction method provided by the embodiment.
  • the present invention further provides a storage medium storing a computer program, the computer program causing a computer to execute the transaction method provided according to each embodiment of the present invention.
  • the transaction method, computer device and storage medium provided by various embodiments of the present invention generate a first commodity token of the first commodity when the first registered commodity transaction is successfully executed, and transfer the first commodity token to the first merchant the first merchant account; when the first delivery transaction is successfully executed, the second commodity token corresponding to the second commodity subscribed by the first user is frozen; when the first collection transaction is successfully executed, the frozen second commodity
  • the second commodity holder attribute of the commodity certificate is updated to the first deliveryman, and the second commodity address attribute of the second commodity certificate is updated to the first collection area; when the first receiving transaction is executed successfully , unfreeze the frozen second commodity token and transfer it to the first user account of the first user, update the second commodity holder attribute to the first user, and update the second commodity address attribute to the first account
  • the method of the delivery address prevents conflicting logistics information from being recorded on the blockchain.
  • FIG. 1 is a flowchart of a transaction method provided by an embodiment of the present invention.
  • FIG. 2 is a flowchart of another transaction method provided by an embodiment of the present invention.
  • FIG. 3 is a schematic structural diagram of a computer device according to an embodiment of the present invention.
  • FIG. 1 is a flowchart of a transaction method provided by an embodiment of the present invention. As shown in Figure 1, in this embodiment, the present invention provides a transaction method suitable for blockchain nodes, including:
  • S10 Receive the first registered commodity transaction; wherein, the first registered commodity transaction is generated by the first merchant end of the first merchant in response to the first merchant's request to sell the first commodity through the blockchain;
  • S12 Receive a first subscription transaction; wherein, the first subscription transaction is generated by the first user terminal of the first user in response to the first user's request to purchase the second commodity of the second merchant, and the first subscription transaction includes the first subscription transaction of the first user. a delivery address;
  • S14 Receive a first shipping transaction; wherein the first shipping transaction is generated by the second merchant terminal of the second merchant in response to sending the second product to the first user, and the first shipping transaction includes the second shipping transaction of the second product.
  • S16 Receive the first package transaction; wherein, the first package transaction is generated by the first terminal of the first deliveryman who collects the second commodity in response to the collection of the second commodity;
  • S18 Receive the first receiving transaction; wherein, the first receiving transaction is generated by the first user terminal in response to the first user signing for the second commodity;
  • merchant A requests to sell commodity A through the blockchain
  • merchant B requests to sell commodity B through the blockchain
  • merchant C requests to sell commodity C through the blockchain
  • user a purchases a commodity A with 10 tokens YYY ;
  • the merchant side of Merchant A responds to Merchant A's request to sell Commodity A through the blockchain, and generates a registered commodity transaction tx1;
  • the blockchain node executes step S10 and receives tx1;
  • the blockchain node executes step S11, and when the execution of tx1 is successful, the token AAA of commodity A is generated;
  • the merchant side of Merchant B responds to Merchant B's request to sell Commodity B through the blockchain, and generates a registered commodity transaction tx2;
  • the blockchain node executes step S10 and receives tx2;
  • the blockchain node executes step S11, and when the execution of tx2 is successful, the token BBB of commodity B is generated;
  • the merchant side of Merchant C responds to Merchant C's request to sell Commodity C through the blockchain, and generates a registered commodity transaction tx3;
  • the blockchain node executes step S10 and receives tx3;
  • the blockchain node executes step S11, and when the execution of tx3 is successful, the token CCC of commodity C is generated;
  • the user terminal of user a responds to user a's request to purchase a commodity A through 10 tokens YYY, and generates a subscription transaction tx4, where tx4 includes the delivery address of user a;
  • the blockchain node executes step S12 and receives tx4;
  • the blockchain node executes step S13, and freezes 10 YYYs of user a when the execution of tx4 is successful;
  • the merchant side of merchant A In response to sending a commodity A to user a, the merchant side of merchant A generates a delivery transaction tx5, where tx5 includes 1AAA;
  • the blockchain node executes step S14 and receives tx5;
  • the blockchain node executes step S15, and freezes 1AAA when the execution of tx5 is successful;
  • the terminal of the deliveryman D who collects the product A, responds to the collecting product A, and generates the product collecting transaction tx6;
  • the blockchain node executes step S16 and receives tx6;
  • the blockchain node executes step S17, and when the execution of tx6 is successful, updates the commodity holder attribute of 1AAA to the deliveryman D, and updates the 1AAA commodity address attribute to the collection area where the deliveryman D is located;
  • the user terminal of user a generates a receipt transaction tx7 in response to the receipt of commodity A by user a;
  • the blockchain node executes step S18 and receives tx7;
  • the blockchain node executes step S19, when the execution of tx7 is successful, it unfreezes and transfers 10YYY to the merchant account of merchant A, unfreezes and transfers 1AAA to the user account of user a, and updates the property of the commodity holder of 1AAA For user a, and, update the commodity address attribute of 1AAA to the delivery address of a.
  • the above embodiment prevents conflicting logistics information from being recorded on the blockchain.
  • the commodity token is further configured with an owner attribute, and freezing the second commodity token corresponding to the second commodity subscribed by the first user includes:
  • the blockchain node freezes 1AAA, and updates the commodity owner attribute of 1AAA to user a.
  • the commodity shipping address of each commodity is recorded on the blockchain, and the assets used for subscribing for the second commodity paid in the first subscription transaction to freeze include:
  • the first collection area includes:
  • the delivery address of commodity A is Beijing, and the delivery address of user a is Hangzhou;
  • the blockchain node freezes 1AAA
  • Blockchain nodes plan logistics routes according to Beijing and Hangzhou;
  • the blockchain node judges whether the collection area where the deliveryman is located is included in the planned logistics route:
  • the first pick-up area where the first deliveryman is located may be configured not to be included in the operation of the logistics route according to actual needs, for example, the same technical effect can be achieved by thawing 1AAA.
  • the first goods receipt transaction before receiving the first goods receipt transaction, it also includes:
  • the first sorting transaction is generated by a second terminal of the first sorting center sorting the second commodity in response to sorting the second commodity delivered by the first deliveryman;
  • the logistics information may be sorted and forwarded for many times. As long as the frozen 1AAA commodity holder attribute and commodity address attribute are updated according to the actual situation, it can prevent The technical effect of documenting conflicting logistics information.
  • freezing the second commodity token corresponding to the second commodity subscribed by the first user includes:
  • the second commodity token corresponding to the second commodity subscribed by the first user is frozen, and the second commodity address attribute of the second commodity token is updated to the delivery address of the second commodity.
  • 1AAA is frozen, and the commodity address attribute of the frozen 1AAA is updated to the delivery address of commodity A.
  • the above method also includes:
  • the first collection transaction is generated by the terminal of the deliveryman who finally delivered the second commodity in response to the first user being temporarily unable to sign for the first commodity;
  • the first duration can be configured according to actual requirements, for example, 24h, which can achieve the same technical effect.
  • FIG. 2 is a flowchart of another transaction method provided by an embodiment of the present invention. As shown in FIG. 2, in this embodiment, the present invention provides a transaction method suitable for blockchain nodes, including:
  • S21 Receive a first subscription transaction; wherein, the first subscription transaction is generated by the first user terminal of the first user in response to the first user's request to purchase the first commodity of the first merchant, and the first subscription transaction includes the first subscription transaction of the first user. a delivery address;
  • S23 Receive the first shipping transaction; wherein, the first shipping transaction is generated by the first merchant terminal of the first merchant in response to sending the first commodity to the first user;
  • S25 Receive the first package transaction; wherein, the first package transaction is generated by the first terminal of the first deliveryman who collects the second commodity in response to the collection of the second commodity;
  • S27 Receive the first receiving transaction; wherein, the first receiving transaction is generated by the first user terminal in response to the first user signing for the first commodity;
  • S28 Unfreeze and transfer the frozen assets to the first merchant account of the first merchant when the first receiving transaction is successfully executed, and unfreeze and transfer the frozen first logistics token to the first user's first account a user account, and the first holder attribute is updated to the first user, and the first address attribute is updated to the first shipping address.
  • the blockchain node generates a logistics token according to the shipping transaction, and the logistics token includes an address attribute and a holder attribute.
  • the real-time update of the address attribute and holder attribute of the logistics token can also achieve the technical effect of preventing conflicting logistics information from being recorded on the blockchain.
  • each merchant holds a commodity token corresponding to the sold commodity on the blockchain, and when the first delivery transaction is successfully executed, generating and freezing the first logistics token according to the first delivery transaction includes:
  • the first logistics token is generated and frozen according to the first delivery transaction and the first commodity token corresponding to the first commodity; wherein, the first commodity token is the first logistics token. sub-token.
  • the commodity token like the existing technology, does not include the property of the commodity address and the property of the commodity holder; however, the commodity token is used as a sub-pass of the logistics token, and the address and holder attributes of the logistics token are updated in real time, which is equivalent to The commodity token also updates the address attribute and holder attribute in real time, which can also achieve the technical effect of preventing conflicting logistics information from being recorded on the blockchain.
  • the logistics token is configured with an owner attribute, and generating and freezing the first logistics token according to the first shipment transaction includes:
  • the commodity shipping address of each commodity is recorded on the blockchain, and freezing the assets paid by the first subscription transaction for subscribing the first commodity includes:
  • An address attribute updated to the first collection area includes:
  • update the first holder attribute of the frozen first logistics pass to the first deliveryman, and update the first address attribute of the first logistics pass to the first bag receiving area.
  • the first goods receipt transaction before receiving the first goods receipt transaction, it also includes:
  • the first sorting transaction is generated by a terminal of the first sorting center sorting the first commodity in response to sorting the first commodity delivered by the first deliveryman;
  • the first forwarding transaction is generated by a terminal of a second deliveryman who forwarded the first item in response to forwarding the first item;
  • generating and freezing the first logistics token according to the first shipping transaction includes:
  • a first logistics token is generated and frozen according to the first delivery transaction, and the first address attribute of the first logistics token is updated to the delivery address of the first commodity.
  • the above method also includes:
  • the first collection transaction is generated by the terminal of the deliveryman who finally delivered the first commodity in response to the first user being temporarily unable to sign for the first commodity;
  • the frozen assets will be unfrozen and transferred to the first merchant account of the first merchant
  • the frozen first logistics token will be unfrozen and transferred to the first user account of the first user
  • the first holding The person attribute is updated to the first user
  • the first address attribute is updated to the first delivery address; wherein the first arbitration transaction is generated by the first user terminal in response to the first user not receiving the first commodity.
  • the above method also includes:
  • the first logistics token is destroyed.
  • FIG. 3 is a schematic structural diagram of a computer device according to an embodiment of the present invention.
  • the present application also provides a computer device, comprising one or more central processing units (CPUs) 301 , which can operate according to a program stored in a read only memory (ROM) 302 or Various appropriate actions and processes are executed from the program loaded into the random access memory (RAM) 303 from the storage section 308 .
  • ROM read only memory
  • RAM random access memory
  • various programs and data necessary for the operation of the computer device are also stored.
  • the CPU 301 , the ROM 302 , and the RAM 303 are connected to each other through a bus 304 .
  • An input/output (I/O) interface 305 is also connected to bus 304 .
  • the following components are connected to the I/O interface 305: an input section 306 including a keyboard, a mouse, etc.; an output section 307 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 308 including a hard disk, etc. ; and a communication section 309 including a network interface card such as a LAN card, a modem, and the like. The communication section 309 performs communication processing via a network such as the Internet.
  • a drive 310 is also connected to the I/O interface 305 as needed.
  • a removable medium 311, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is mounted on the drive 310 as needed so that a computer program read therefrom is installed into the storage section 308 as needed.
  • the method described in any of the above embodiments may be implemented as a computer software program.
  • embodiments of the present disclosure include a computer program product comprising a computer program tangibly embodied on a machine-readable medium, the computer program containing program code for performing any of the methods described above.
  • the computer program may be downloaded and installed from the network via the communication portion 309 and/or installed from the removable medium 311 .
  • the present application also provides a computer-readable storage medium.
  • the computer-readable storage medium may be a computer-readable storage medium included in the apparatus of the foregoing embodiment; A computer readable storage medium in a computer device.
  • the computer-readable storage medium stores one or more programs that are used by one or more processors to perform the methods described in the present application.
  • each block in the flowchart or block diagrams may represent a module, segment, or portion of code that contains one or more logical functions for implementing the specified functions executable instructions.
  • the functions noted in the blocks may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved.
  • each block of the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations can be implemented by dedicated hardware-based systems that perform the specified functions or operations , or can be implemented by a combination of dedicated hardware and computer instructions.
  • the units or modules involved in the embodiments of the present application may be implemented in a software manner, and may also be implemented in a hardware manner.
  • the described units or modules may also be provided in the processor, for example, each of the units may be a software program provided in a computer or a mobile smart device, or may be a separately configured hardware device. Wherein, the names of these units or modules do not constitute limitations on the units or modules themselves under certain circumstances.

Abstract

A transaction method, a computer device, and a storage medium. The method comprises: when a first registered commodity transaction is successfully executed, generating a first commodity token of a first commodity, and transferring the first commodity token to a first merchant account of a first merchant; when a first delivery transaction is successfully executed, freezing a second commodity token corresponding to a second commodity subscribed by a first user; when a first commodity collection transaction is successfully executed, updating a second commodity holder attribute of the frozen second commodity token to a first deliveryman, and updating a second commodity address attribute of the second commodity token to a first collection area; and when a first commodity receiving transaction is successfully executed, unfreezing the frozen second commodity token and transferring same to a first user account of the first user, updating the second commodity holder attribute to the first user, and updating the second commodity address attribute to a first receiving address. The present method prevents conflicting logistics information from being recorded on a blockchain.

Description

交易方法、计算机设备和存储介质Transaction method, computer equipment and storage medium 技术领域technical field
本申请涉及区块链技术领域,具体涉及一种交易方法、计算机设备和存储介质。The present application relates to the field of blockchain technology, and in particular to a transaction method, computer equipment and storage medium.
背景技术Background technique
目前,区块链上的物流系统基本上采用存证的模式,即,把物流的整个过程都保存在区块链上,实现不能篡改。At present, the logistics system on the blockchain basically adopts the mode of deposit, that is, the entire process of logistics is stored on the blockchain, so that it cannot be tampered with.
假设有如下场景,快递员需要将物品A从北京运往广州,快递员设想A应当路过杭州,则生成一笔交易tx1,表示物品A途径杭州发往广州;而实际中快递员变更路线,使得A路过合肥,而快递员不记得曾生成过tx1,又生成一笔交易tx2,表示A途径合肥发往广州;由于区块链上只有存证,所以区块链上记录了A既途径杭州发往广州,又记录了A途径合肥发往广州。上述机制对相冲突的物流信息没有约束。Suppose there is the following scenario, the courier needs to transport item A from Beijing to Guangzhou, and the courier assumes that A should pass through Hangzhou, and a transaction tx1 is generated, indicating that item A is sent to Guangzhou via Hangzhou; in reality, the courier changes the route so that A Passing through Hefei, but the courier does not remember that tx1 has been generated, and a transaction tx2 is generated, indicating that A is sent to Guangzhou through Hefei; since there is only a certificate on the blockchain, it is recorded on the blockchain that A is sent to Guangzhou through Hangzhou. Guangzhou, and recorded A route Hefei to Guangzhou. The above mechanism has no constraints on conflicting logistics information.
发明内容SUMMARY OF THE INVENTION
鉴于现有技术中的上述缺陷或不足,期望提供一种防止区块链上记录有相冲突的物流信息的交易方法、计算机设备和存储介质。In view of the above-mentioned defects or deficiencies in the prior art, it is desirable to provide a transaction method, computer device and storage medium that prevent conflicting logistics information from being recorded on the blockchain.
第一方面,本发明提供一种适用于区块链节点的交易方法,包括:In a first aspect, the present invention provides a transaction method suitable for blockchain nodes, including:
接收第一注册商品交易;其中,第一注册商品交易由第一商家的第一商家端响应于第一商家请求通过区块链出售第一商品所生成;Receive a first registered commodity transaction; wherein, the first registered commodity transaction is generated by the first merchant end of the first merchant in response to the first merchant's request to sell the first commodity through the blockchain;
在执行第一注册商品交易成功时,生成第一商品的第一商品通证,并将第一商品通证划转至第一商家的第一商家账户;其中,第一商品通证包括第一商品地址属性和第一商品持有人属性;When the first registered commodity transaction is successfully executed, the first commodity token of the first commodity is generated, and the first commodity token is transferred to the first merchant account of the first merchant; wherein, the first commodity token includes the first commodity token. commodity address attribute and first commodity holder attribute;
接收第一认购交易;其中,第一认购交易由第一用户的第一用户端响应于第一用户请求购买第二商家的第二商品所生成,第一认购交 易包括第一用户的第一收货地址;Receive a first subscription transaction; wherein, the first subscription transaction is generated by the first user terminal of the first user in response to the first user's request to purchase the second commodity of the second merchant, and the first subscription transaction includes the first subscription transaction of the first user. delivery address;
在执行第一认购交易成功时,冻结第一认购交易支付的用于认购第二商品的资产;When the execution of the first subscription transaction is successful, freeze the assets paid in the first subscription transaction for subscribing for the second commodity;
接收第一发货交易;其中,第一发货交易由第二商家的第二商家端响应于向第一用户发送第二商品所生成,第一发货交易包括第二商品的第二商品通证的通证名称;Receiving a first shipping transaction; wherein the first shipping transaction is generated by the second merchant end of the second merchant in response to sending the second product to the first user, and the first shipping transaction includes the second product communication of the second product. Token name of the certificate;
在执行第一发货交易成功时,冻结第一用户所认购的第二商品对应的第二商品通证;When the execution of the first delivery transaction is successful, freeze the second commodity token corresponding to the second commodity subscribed by the first user;
接收第一揽货交易;其中,第一揽货交易由揽收第二商品的第一送货员的第一终端响应于揽收第二商品所生成;receiving a first package transaction; wherein, the first package transaction is generated by the first terminal of the first deliveryman who collects the second commodity in response to the second commodity;
在执行第一揽货交易成功时,将所冻结的第二商品通证的第二商品持有人属性更新为第一送货员,以及,将第二商品通证的第二商品地址属性更新为第一揽收区域;When the first collection transaction is successfully executed, update the second commodity holder attribute of the frozen second commodity token to the first deliveryman, and update the second commodity address attribute of the second commodity token It is the first collection area;
接收第一收货交易;其中,第一收货交易由第一用户端响应于第一用户签收第二商品时所生成;receiving a first goods receipt transaction; wherein, the first goods receipt transaction is generated by the first user terminal in response to the first user signing for the second commodity;
在执行第一收货交易成功时,将所冻结的资产解冻并划转至第二商家的第一商家账户,将所冻结的第二商品通证解冻并划转至第一用户的第一用户账户,并将第二商品持有人属性更新为第一用户,以及,将第二商品地址属性更新为第一收货地址。When the execution of the first receiving transaction is successful, the frozen assets are unfrozen and transferred to the first merchant account of the second merchant, and the frozen second commodity token is unfrozen and transferred to the first user of the first user account, and update the attribute of the second commodity holder to the first user, and update the attribute of the second commodity address to the first delivery address.
第二方面,本发明提供一种适用于区块链节点的交易方法,包括:In a second aspect, the present invention provides a transaction method suitable for blockchain nodes, including:
接收第一认购交易;其中,第一认购交易由第一用户的第一用户端响应于第一用户请求购买第一商家的第一商品所生成,第一认购交易包括第一用户的第一收货地址;Receive a first subscription transaction; wherein, the first subscription transaction is generated by the first user terminal of the first user in response to the first user's request to purchase the first commodity of the first merchant, and the first subscription transaction includes the first subscription transaction of the first user. delivery address;
在执行第一认购交易成功时,冻结第一认购交易支付的用于认购第一商品的资产;When the execution of the first subscription transaction is successful, freeze the assets paid in the first subscription transaction for subscribing for the first commodity;
接收第一发货交易;其中,第一发货交易由第一商家的第一商家端响应于向第一用户发送第一商品所生成;receiving a first shipping transaction; wherein the first shipping transaction is generated by the first merchant end of the first merchant in response to sending the first commodity to the first user;
在执行第一发货交易成功时,根据第一发货交易生成并冻结第一物流通证;其中,第一物流通证包括第一持有人属性和第一地址属性;When the execution of the first delivery transaction is successful, the first logistics token is generated and frozen according to the first delivery transaction; wherein the first logistics token includes the first holder attribute and the first address attribute;
接收第一揽货交易;其中,第一揽货交易由揽收第二商品的第一 送货员的第一终端响应于揽收第二商品所生成;Receive a first package transaction; wherein, the first package transaction is generated by the first terminal of the first deliveryman who picks up the second commodity in response to picking up the second commodity;
在执行第一揽货交易成功时,将所冻结的第一物流通证的第一持有人属性更新为第一送货员,以及,将第一物流通证的第一地址属性更新为第一揽收区域;When the execution of the first collection transaction is successful, update the first holder attribute of the frozen first logistics pass to the first deliveryman, and update the first address attribute of the first logistics pass to the first collection area;
接收第一收货交易;其中,第一收货交易由第一用户端响应于第一用户签收第一商品时所生成;receiving a first goods receipt transaction; wherein, the first goods receipt transaction is generated by the first user terminal in response to the first user signing for the first commodity;
在执行第一收货交易成功时,将所冻结的资产解冻并划转至第一商家的第一商家账户,将所冻结的第一物流通证解冻并划转至第一用户的第一用户账户,并将第一持有人属性更新为第一用户,以及,将第一地址属性更新为第一收货地址。When the execution of the first receipt transaction is successful, the frozen assets are unfrozen and transferred to the first merchant account of the first merchant, and the frozen first logistics token is unfrozen and transferred to the first user of the first user account, and update the first holder attribute to the first user, and update the first address attribute to the first shipping address.
第三方面,本发明还提供一种设备,包括一个或多个处理器和存储器,其中存储器包含可由该一个或多个处理器执行的指令以使得该一个或多个处理器执行根据本发明各实施例提供的交易方法。In a third aspect, the present invention also provides an apparatus comprising one or more processors and a memory, wherein the memory contains instructions executable by the one or more processors to cause the one or more processors to perform various functions according to the present invention. The transaction method provided by the embodiment.
第四方面,本发明还提供一种存储有计算机程序的存储介质,该计算机程序使计算机执行根据本发明各实施例提供的交易方法。In a fourth aspect, the present invention further provides a storage medium storing a computer program, the computer program causing a computer to execute the transaction method provided according to each embodiment of the present invention.
本发明诸多实施例提供的交易方法、计算机设备和存储介质通过在执行第一注册商品交易成功时,生成第一商品的第一商品通证,并将第一商品通证划转至第一商家的第一商家账户;在执行第一发货交易成功时,冻结第一用户所认购的第二商品对应的第二商品通证;在执行第一揽货交易成功时,将所冻结的第二商品通证的第二商品持有人属性更新为第一送货员,以及,将第二商品通证的第二商品地址属性更新为第一揽收区域;在执行第一收货交易成功时,将所冻结的第二商品通证解冻并划转至第一用户的第一用户账户,并将第二商品持有人属性更新为第一用户,将第二商品地址属性更新为第一收货地址的方法,防止区块链上记录有相冲突的物流信息。The transaction method, computer device and storage medium provided by various embodiments of the present invention generate a first commodity token of the first commodity when the first registered commodity transaction is successfully executed, and transfer the first commodity token to the first merchant the first merchant account; when the first delivery transaction is successfully executed, the second commodity token corresponding to the second commodity subscribed by the first user is frozen; when the first collection transaction is successfully executed, the frozen second commodity The second commodity holder attribute of the commodity certificate is updated to the first deliveryman, and the second commodity address attribute of the second commodity certificate is updated to the first collection area; when the first receiving transaction is executed successfully , unfreeze the frozen second commodity token and transfer it to the first user account of the first user, update the second commodity holder attribute to the first user, and update the second commodity address attribute to the first account The method of the delivery address prevents conflicting logistics information from being recorded on the blockchain.
附图说明Description of drawings
通过阅读参照以下附图所作的对非限制性实施例所作的详细描述,本申请的其它特征、目的和优点将会变得更明显:Other features, objects and advantages of the present application will become more apparent by reading the detailed description of non-limiting embodiments made with reference to the following drawings:
图1为本发明一实施例提供的一种交易方法的流程图。FIG. 1 is a flowchart of a transaction method provided by an embodiment of the present invention.
图2为本发明一实施例提供的另一种交易方法的流程图。FIG. 2 is a flowchart of another transaction method provided by an embodiment of the present invention.
图3为本发明一实施例提供的一种计算机设备的结构示意图。FIG. 3 is a schematic structural diagram of a computer device according to an embodiment of the present invention.
具体实施方式Detailed ways
下面结合附图和实施例对本申请作进一步的详细说明。可以理解的是,此处所描述的具体实施例仅仅用于解释相关发明,而非对该发明的限定。另外还需要说明的是,为了便于描述,附图中仅示出了与发明相关的部分。The present application will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the related invention, but not to limit the invention. In addition, it should be noted that, for the convenience of description, only the parts related to the invention are shown in the drawings.
需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。下面将参考附图并结合实施例来详细说明本申请。It should be noted that the embodiments in the present application and the features of the embodiments may be combined with each other in the case of no conflict. The present application will be described in detail below with reference to the accompanying drawings and in conjunction with the embodiments.
图1为本发明一实施例提供的一种交易方法的流程图。如图1所示,在本实施例中,本发明提供一种适用于区块链节点的交易方法,包括:FIG. 1 is a flowchart of a transaction method provided by an embodiment of the present invention. As shown in Figure 1, in this embodiment, the present invention provides a transaction method suitable for blockchain nodes, including:
S10:接收第一注册商品交易;其中,第一注册商品交易由第一商家的第一商家端响应于第一商家请求通过区块链出售第一商品所生成;S10: Receive the first registered commodity transaction; wherein, the first registered commodity transaction is generated by the first merchant end of the first merchant in response to the first merchant's request to sell the first commodity through the blockchain;
S11:在执行第一注册商品交易成功时,生成第一商品的第一商品通证,并将第一商品通证划转至第一商家的第一商家账户;其中,第一商品通证包括第一商品地址属性和第一商品持有人属性;S11: When executing the first registered commodity transaction successfully, generate a first commodity token of the first commodity, and transfer the first commodity token to the first merchant account of the first merchant; wherein the first commodity token includes The first commodity address attribute and the first commodity holder attribute;
S12:接收第一认购交易;其中,第一认购交易由第一用户的第一用户端响应于第一用户请求购买第二商家的第二商品所生成,第一认购交易包括第一用户的第一收货地址;S12: Receive a first subscription transaction; wherein, the first subscription transaction is generated by the first user terminal of the first user in response to the first user's request to purchase the second commodity of the second merchant, and the first subscription transaction includes the first subscription transaction of the first user. a delivery address;
S13:在执行第一认购交易成功时,冻结第一认购交易支付的用于认购第二商品的资产;S13: When the execution of the first subscription transaction is successful, freeze the assets paid in the first subscription transaction for subscribing for the second commodity;
S14:接收第一发货交易;其中,第一发货交易由第二商家的第二商家端响应于向第一用户发送第二商品所生成,第一发货交易包括第二商品的第二商品通证的通证名称;S14: Receive a first shipping transaction; wherein the first shipping transaction is generated by the second merchant terminal of the second merchant in response to sending the second product to the first user, and the first shipping transaction includes the second shipping transaction of the second product. The token name of the commodity token;
S15:在执行第一发货交易成功时,冻结第一用户所认购的第二商品对应的第二商品通证;S15: When the execution of the first delivery transaction is successful, freeze the second commodity token corresponding to the second commodity subscribed by the first user;
S16:接收第一揽货交易;其中,第一揽货交易由揽收第二商品的第一送货员的第一终端响应于揽收第二商品所生成;S16: Receive the first package transaction; wherein, the first package transaction is generated by the first terminal of the first deliveryman who collects the second commodity in response to the collection of the second commodity;
S17:在执行第一揽货交易成功时,将所冻结的第二商品通证的第二商品持有人属性更新为第一送货员,以及,将第二商品通证的第二商品地址属性更新为第一揽收区域;S17: When the execution of the first collection transaction is successful, update the second commodity holder attribute of the frozen second commodity token to the first deliveryman, and update the second commodity address of the second commodity token The attribute is updated to the first collection area;
S18:接收第一收货交易;其中,第一收货交易由第一用户端响应于第一用户签收第二商品时所生成;S18: Receive the first receiving transaction; wherein, the first receiving transaction is generated by the first user terminal in response to the first user signing for the second commodity;
S19:在执行第一收货交易成功时,将所冻结的资产解冻并划转至第二商家的第一商家账户,将所冻结的第二商品通证解冻并划转至第一用户的第一用户账户,并将第二商品持有人属性更新为第一用户,以及,将第二商品地址属性更新为第一收货地址。S19: Unfreeze and transfer the frozen assets to the first merchant account of the second merchant when the first receiving transaction is successfully executed, and unfreeze and transfer the frozen second commodity token to the first user's first merchant account. a user account, and update the attribute of the second commodity holder to the first user, and update the attribute of the second commodity address to the first delivery address.
具体地,假设商家甲请求通过区块链出售商品A、商家乙请求通过区块链出售商品B、商家丙请求通过区块链出售商品C;用户a通过10个通证YYY购买一件商品A;Specifically, it is assumed that merchant A requests to sell commodity A through the blockchain, merchant B requests to sell commodity B through the blockchain, and merchant C requests to sell commodity C through the blockchain; user a purchases a commodity A with 10 tokens YYY ;
商家甲的商家端响应于商家甲请求通过区块链出售商品A,生成注册商品交易tx1;The merchant side of Merchant A responds to Merchant A's request to sell Commodity A through the blockchain, and generates a registered commodity transaction tx1;
区块链节点执行步骤S10,接收tx1;The blockchain node executes step S10 and receives tx1;
区块链节点执行步骤S11,在执行tx1成功时,生成商品A的通证AAA;The blockchain node executes step S11, and when the execution of tx1 is successful, the token AAA of commodity A is generated;
商家乙的商家端响应于商家乙请求通过区块链出售货品B,生成注册商品交易tx2;The merchant side of Merchant B responds to Merchant B's request to sell Commodity B through the blockchain, and generates a registered commodity transaction tx2;
区块链节点执行步骤S10,接收tx2;The blockchain node executes step S10 and receives tx2;
区块链节点执行步骤S11,在执行tx2成功时,生成商品B的通证BBB;The blockchain node executes step S11, and when the execution of tx2 is successful, the token BBB of commodity B is generated;
商家丙的商家端响应于商家丙请求通过区块链出售货品C,生成注册商品交易tx3;The merchant side of Merchant C responds to Merchant C's request to sell Commodity C through the blockchain, and generates a registered commodity transaction tx3;
区块链节点执行步骤S10,接收tx3;The blockchain node executes step S10 and receives tx3;
区块链节点执行步骤S11,在执行tx3成功时,生成商品C的通证CCC;The blockchain node executes step S11, and when the execution of tx3 is successful, the token CCC of commodity C is generated;
用户a的用户端响应于用户a请求通过10个通证YYY购买一件 商品A,生成认购交易tx4,tx4包括用户a的收货地址;The user terminal of user a responds to user a's request to purchase a commodity A through 10 tokens YYY, and generates a subscription transaction tx4, where tx4 includes the delivery address of user a;
区块链节点执行步骤S12,接收tx4;The blockchain node executes step S12 and receives tx4;
区块链节点执行步骤S13,在执行tx4成功时,冻结用户a的10个YYY;The blockchain node executes step S13, and freezes 10 YYYs of user a when the execution of tx4 is successful;
商家甲的商家端响应于向用户a发送一件商品A,生成发货交易tx5,tx5包括1AAA;In response to sending a commodity A to user a, the merchant side of merchant A generates a delivery transaction tx5, where tx5 includes 1AAA;
区块链节点执行步骤S14,接收tx5;The blockchain node executes step S14 and receives tx5;
区块链节点执行步骤S15,在执行tx5成功时,冻结1AAA;The blockchain node executes step S15, and freezes 1AAA when the execution of tx5 is successful;
揽收商品A的送货员丁的终端响应于揽收商品A,生成揽货交易tx6;The terminal of the deliveryman D, who collects the product A, responds to the collecting product A, and generates the product collecting transaction tx6;
区块链节点执行步骤S16,接收tx6;The blockchain node executes step S16 and receives tx6;
区块链节点执行步骤S17,在执行tx6成功时,将1AAA的商品持有人属性更新为送货员丁,以及,将1AAA的商品地址属性更新为送货员丁所在的揽收区域;The blockchain node executes step S17, and when the execution of tx6 is successful, updates the commodity holder attribute of 1AAA to the deliveryman D, and updates the 1AAA commodity address attribute to the collection area where the deliveryman D is located;
用户a的用户端响应于用户a签收商品A,生成收货交易tx7;The user terminal of user a generates a receipt transaction tx7 in response to the receipt of commodity A by user a;
区块链节点执行步骤S18,接收tx7;The blockchain node executes step S18 and receives tx7;
区块链节点执行步骤S19,在执行tx7成功时,将10YYY解冻并划转至商家甲的商家账户,将1AAA解冻并划转至用户a的用户账户,并将1AAA的商品持有人属性更新为用户a,以及,将1AAA的商品地址属性更新为a的收货地址。The blockchain node executes step S19, when the execution of tx7 is successful, it unfreezes and transfers 10YYY to the merchant account of merchant A, unfreezes and transfers 1AAA to the user account of user a, and updates the property of the commodity holder of 1AAA For user a, and, update the commodity address attribute of 1AAA to the delivery address of a.
上述实施例防止区块链上记录有相冲突的物流信息。The above embodiment prevents conflicting logistics information from being recorded on the blockchain.
优选地,商品通证还配置有拥有人属性,冻结第一用户所认购的第二商品对应的第二商品通证包括:Preferably, the commodity token is further configured with an owner attribute, and freezing the second commodity token corresponding to the second commodity subscribed by the first user includes:
冻结第一用户所认购的第二商品对应的第二商品通证;Freeze the second commodity token corresponding to the second commodity subscribed by the first user;
将所冻结的第二商品通证的第二商品拥有人属性更新为第一用户。Update the second commodity owner attribute of the frozen second commodity token to the first user.
具体地,区块链节点冻结1AAA,并将1AAA的商品拥有人属性更新为用户a。Specifically, the blockchain node freezes 1AAA, and updates the commodity owner attribute of 1AAA to user a.
优选地,区块链上记录有各商品的商品发货地址,冻结第一认购交易支付的用于认购第二商品的资产包括:Preferably, the commodity shipping address of each commodity is recorded on the blockchain, and the assets used for subscribing for the second commodity paid in the first subscription transaction to freeze include:
冻结第一认购交易支付的用于认购第二商品的资产;Freeze the assets paid in the first subscription transaction for subscribing for the second commodity;
根据第二商品的发货地址、第一收货地址规划物流路线;Plan the logistics route according to the delivery address of the second product and the first delivery address;
在执行第一揽货交易成功时,将所冻结的第二商品通证的第二商品持有人属性更新为第一送货员,以及,将第二商品通证的第二商品地址属性更新为第一揽收区域包括:When the first collection transaction is successfully executed, update the second commodity holder attribute of the frozen second commodity token to the first deliveryman, and update the second commodity address attribute of the second commodity token The first collection area includes:
判断第一送货员所在的第一揽收区域是否包括于物流路线:Determine whether the first collection area where the first deliveryman is located is included in the logistics route:
是,则将所冻结的第二商品通证的第二商品持有人属性更新为第一送货员,以及,将第二商品通证的第二商品地址属性更新为第一揽收区域。If yes, update the second commodity holder attribute of the frozen second commodity token to the first deliveryman, and update the second commodity address attribute of the second commodity token to the first collection area.
具体地,假设商品A的发货地址是北京,用户a的收货地址是杭州;Specifically, it is assumed that the delivery address of commodity A is Beijing, and the delivery address of user a is Hangzhou;
区块链节点冻结1AAA;The blockchain node freezes 1AAA;
区块链节点根据北京、杭州规划物流路线;Blockchain nodes plan logistics routes according to Beijing and Hangzhou;
区块链节点判断送货员丁所在的揽收区域是否包括于所规划的物流路线:The blockchain node judges whether the collection area where the deliveryman is located is included in the planned logistics route:
是,则将1AAA的商品持有人属性更新为送货员丁,以及,将1AAA的商品地址属性更新为送货员丁所在的揽收区域。If yes, update the commodity holder attribute of 1AAA to the deliveryman D, and update the commodity address attribute of 1AAA to the collection area where the deliveryman D is located.
在更多实施例中,还可以根据实际需求配置第一送货员所在的第一揽收区域不包括于物流路线的操作,例如配置为,将1AAA解冻,可实现相同的技术效果。In more embodiments, the first pick-up area where the first deliveryman is located may be configured not to be included in the operation of the logistics route according to actual needs, for example, the same technical effect can be achieved by thawing 1AAA.
进一步优选地,接收第一收货交易前,还包括:Further preferably, before receiving the first goods receipt transaction, it also includes:
接收第一分拣交易;其中,第一分拣交易由分拣第二商品的第一分拣中心的第二终端响应于分拣第一送货员所投递的第二商品所生成;receiving a first sorting transaction; wherein the first sorting transaction is generated by a second terminal of the first sorting center sorting the second commodity in response to sorting the second commodity delivered by the first deliveryman;
判断第一分拣中心所在地是否包括于物流路线:Determine whether the location of the first sorting center is included in the logistics route:
是,则将第二商品持有人属性更新为第一分拣中心,以及,将第二商品地址属性更新为第一分拣中心所在地;If yes, update the attribute of the second commodity holder to the first sorting center, and update the second commodity address attribute to the location of the first sorting center;
接收第一转送交易;其中,第一转送交易由转送第二商品的第二送货员的第三终端响应于转送第二商品所生成;receiving a first forwarding transaction; wherein the first forwarding transaction was generated by a third terminal of a second deliveryman who forwarded the second item in response to forwarding the second item;
判断第二送货员所在的第一转送区域是否包括于物流路线:Determine whether the first transfer area where the second deliveryman is located is included in the logistics route:
是,则将第二商品持有人属性更新为第二送货员,以及,将第二商品地址属性更新为第一转送区域。If yes, update the attribute of the second commodity holder to the second deliveryman, and update the attribute of the second commodity address to the first forwarding area.
在商品A最终到达用户a之前,物流信息可能会经过多次分拣、转送,只要所冻结的1AAA的商品持有人属性和商品地址属性根据实际情况进行更新,就可以实现防止区块链上记录有相冲突的物流信息的技术效果。Before commodity A finally reaches user a, the logistics information may be sorted and forwarded for many times. As long as the frozen 1AAA commodity holder attribute and commodity address attribute are updated according to the actual situation, it can prevent The technical effect of documenting conflicting logistics information.
优选地,在执行第一发货交易成功时,冻结第一用户所认购的第二商品对应的第二商品通证包括:Preferably, when the execution of the first delivery transaction is successful, freezing the second commodity token corresponding to the second commodity subscribed by the first user includes:
在执行第一发货交易成功时,冻结第一用户所认购的第二商品对应的第二商品通证,将第二商品通证的第二商品地址属性更新为第二商品的发货地址。When the execution of the first delivery transaction is successful, the second commodity token corresponding to the second commodity subscribed by the first user is frozen, and the second commodity address attribute of the second commodity token is updated to the delivery address of the second commodity.
具体地,在执行tx5成功时,冻结1AAA,将所冻结的1AAA的商品地址属性更新为商品A的发货地址。Specifically, when the execution of tx5 is successful, 1AAA is frozen, and the commodity address attribute of the frozen 1AAA is updated to the delivery address of commodity A.
优选地,上述方法还包括:Preferably, the above method also includes:
接收第一代收交易;其中,第一代收交易由最终派送第二商品的送货员的终端响应于第一用户暂时无法签收第一商品所生成;Receive a first collection transaction; wherein, the first collection transaction is generated by the terminal of the deliveryman who finally delivered the second commodity in response to the first user being temporarily unable to sign for the first commodity;
在第一时长内,判断是否接收到第一仲裁交易:Within the first time period, determine whether the first arbitration transaction is received:
否,则将所冻结的资产解冻并划转至第二商家的第一商家账户,将所冻结的第二商品通证解冻并划转至第一用户的第一用户账户,并将第二商品持有人属性更新为第一用户,以及,将第二商品地址属性更新为第一收货地址;其中,第一仲裁交易由第一用户端响应于第一用户未收到第一商品所生成。If not, then unfreeze and transfer the frozen assets to the first merchant account of the second merchant, unfreeze and transfer the frozen second commodity token to the first user account of the first user, and transfer the second commodity The holder attribute is updated to the first user, and the second commodity address attribute is updated to the first delivery address; wherein the first arbitration transaction is generated by the first client in response to the first user not receiving the first commodity .
在更多实施例中,第一时长可以根据实际需求进行配置,例如配置为24h,可实现相同的技术效果。In more embodiments, the first duration can be configured according to actual requirements, for example, 24h, which can achieve the same technical effect.
图2为本发明一实施例提供的另一种交易方法的流程图。如图2所示,在本实施例中,本发明提供一种适用于区块链节点的交易方法,包括:FIG. 2 is a flowchart of another transaction method provided by an embodiment of the present invention. As shown in FIG. 2, in this embodiment, the present invention provides a transaction method suitable for blockchain nodes, including:
S21:接收第一认购交易;其中,第一认购交易由第一用户的第一用户端响应于第一用户请求购买第一商家的第一商品所生成,第一认购交易包括第一用户的第一收货地址;S21: Receive a first subscription transaction; wherein, the first subscription transaction is generated by the first user terminal of the first user in response to the first user's request to purchase the first commodity of the first merchant, and the first subscription transaction includes the first subscription transaction of the first user. a delivery address;
S22:在执行第一认购交易成功时,冻结第一认购交易支付的用于认购第一商品的资产;S22: when the execution of the first subscription transaction is successful, freeze the assets paid in the first subscription transaction for subscribing for the first commodity;
S23:接收第一发货交易;其中,第一发货交易由第一商家的第一商家端响应于向第一用户发送第一商品所生成;S23: Receive the first shipping transaction; wherein, the first shipping transaction is generated by the first merchant terminal of the first merchant in response to sending the first commodity to the first user;
S24:在执行第一发货交易成功时,根据第一发货交易生成并冻结第一物流通证;其中,第一物流通证包括第一持有人属性和第一地址属性;S24: When the execution of the first delivery transaction is successful, generate and freeze the first logistics token according to the first delivery transaction; wherein the first logistics token includes the first holder attribute and the first address attribute;
S25:接收第一揽货交易;其中,第一揽货交易由揽收第二商品的第一送货员的第一终端响应于揽收第二商品所生成;S25: Receive the first package transaction; wherein, the first package transaction is generated by the first terminal of the first deliveryman who collects the second commodity in response to the collection of the second commodity;
S26:在执行第一揽货交易成功时,将所冻结的第一物流通证的第一持有人属性更新为第一送货员,以及,将第一物流通证的第一地址属性更新为第一揽收区域;S26: When the execution of the first collection transaction is successful, update the first holder attribute of the frozen first logistics pass to the first deliveryman, and update the first address attribute of the first logistics pass It is the first collection area;
S27:接收第一收货交易;其中,第一收货交易由第一用户端响应于第一用户签收第一商品时所生成;S27: Receive the first receiving transaction; wherein, the first receiving transaction is generated by the first user terminal in response to the first user signing for the first commodity;
S28:在执行第一收货交易成功时,将所冻结的资产解冻并划转至第一商家的第一商家账户,将所冻结的第一物流通证解冻并划转至第一用户的第一用户账户,并将第一持有人属性更新为第一用户,以及,将第一地址属性更新为第一收货地址。S28: Unfreeze and transfer the frozen assets to the first merchant account of the first merchant when the first receiving transaction is successfully executed, and unfreeze and transfer the frozen first logistics token to the first user's first account a user account, and the first holder attribute is updated to the first user, and the first address attribute is updated to the first shipping address.
上述实施例与图1所示的实施例的不同之处在于,区块链节点根据发货交易生成物流通证,物流通证包括地址属性和持有人属性。物流通证的地址属性和持有人属性实时更新,同样能实现防止区块链上记录有相冲突的物流信息的技术效果。The difference between the above embodiment and the embodiment shown in FIG. 1 is that the blockchain node generates a logistics token according to the shipping transaction, and the logistics token includes an address attribute and a holder attribute. The real-time update of the address attribute and holder attribute of the logistics token can also achieve the technical effect of preventing conflicting logistics information from being recorded on the blockchain.
优选地,各商家在区块链上持有所出售商品对应的商品通证,在执行第一发货交易成功时,根据第一发货交易生成并冻结第一物流通证包括:Preferably, each merchant holds a commodity token corresponding to the sold commodity on the blockchain, and when the first delivery transaction is successfully executed, generating and freezing the first logistics token according to the first delivery transaction includes:
在执行第一发货交易成功时,根据第一发货交易、第一商品对应的第一商品通证生成并冻结第一物流通证;其中,第一商品通证为第一物流通证的子通证。When the execution of the first delivery transaction is successful, the first logistics token is generated and frozen according to the first delivery transaction and the first commodity token corresponding to the first commodity; wherein, the first commodity token is the first logistics token. sub-token.
商品通证与现有技术一样,不包括商品地址属性和商品持有人属性;但商品通证作为物流通证的子通证,物流通证的地址属性和持有 人属性实时更新,相当于商品通证也实时更新了地址属性和持有人属性,同样能实现防止区块链上记录有相冲突的物流信息的技术效果。The commodity token, like the existing technology, does not include the property of the commodity address and the property of the commodity holder; however, the commodity token is used as a sub-pass of the logistics token, and the address and holder attributes of the logistics token are updated in real time, which is equivalent to The commodity token also updates the address attribute and holder attribute in real time, which can also achieve the technical effect of preventing conflicting logistics information from being recorded on the blockchain.
优选地,物流通证配置有拥有人属性,根据第一发货交易生成并冻结第一物流通证包括:Preferably, the logistics token is configured with an owner attribute, and generating and freezing the first logistics token according to the first shipment transaction includes:
根据第一发货交易生成并冻结第一物流通证;Generate and freeze the first logistics token according to the first shipment transaction;
将所冻结的第一物流通证的拥有人属性更新为第一用户。Update the owner attribute of the frozen first logistics token to the first user.
优选地,区块链上记录有各商品的商品发货地址,冻结所述第一认购交易支付的用于认购所述第一商品的资产包括:Preferably, the commodity shipping address of each commodity is recorded on the blockchain, and freezing the assets paid by the first subscription transaction for subscribing the first commodity includes:
冻结所述第一认购交易支付的用于认购所述第一商品的资产;Freeze the assets paid by the first subscription transaction for subscribing the first commodity;
根据第一商品的发货地址、第一收货地址规划物流路线;Plan the logistics route according to the delivery address and the first delivery address of the first product;
在执行第一揽货交易成功时,将所冻结的所述第一物流通证的第一持有人属性更新为所述第一送货员,以及,将所述第一物流通证的第一地址属性更新为第一揽收区域包括:When the execution of the first collection transaction is successful, update the frozen first holder attribute of the first logistics pass to the first deliveryman, and update the first logistics pass of the first logistics pass An address attribute updated to the first collection area includes:
判断第一送货员所在的第一揽收区域是否包括于物流路线:Determine whether the first collection area where the first deliveryman is located is included in the logistics route:
是,则所冻结的所述第一物流通证的第一持有人属性更新为所述第一送货员,以及,将所述第一物流通证的第一地址属性更新为第一揽收区域。If yes, update the first holder attribute of the frozen first logistics pass to the first deliveryman, and update the first address attribute of the first logistics pass to the first bag receiving area.
进一步优选地,接收第一收货交易前,还包括:Further preferably, before receiving the first goods receipt transaction, it also includes:
接收第一分拣交易;其中,第一分拣交易由分拣第一商品的第一分拣中心的终端响应于分拣第一送货员所投递的第一商品所生成;receiving a first sorting transaction; wherein the first sorting transaction is generated by a terminal of the first sorting center sorting the first commodity in response to sorting the first commodity delivered by the first deliveryman;
判断第一分拣中心所在地是否包括于物流路线:Determine whether the location of the first sorting center is included in the logistics route:
是,则将第一持有人属性更新为第一分拣中心,以及,将第一地址属性更新为第一分拣中心所在地;If yes, update the attribute of the first holder to the first sorting center, and update the attribute of the first address to the location of the first sorting center;
接收第一转送交易;其中,第一转送交易由转送第一商品的第二送货员的终端响应于转送第一商品所生成;receiving a first forwarding transaction; wherein the first forwarding transaction is generated by a terminal of a second deliveryman who forwarded the first item in response to forwarding the first item;
判断第二送货员所在的第一转送区域是否包括于物流路线:Determine whether the first transfer area where the second deliveryman is located is included in the logistics route:
是,则将第一持有人属性更新为第二送货员,以及,将第一地址属性更新为第一转送区域。If yes, update the first holder attribute to the second deliveryman, and update the first address attribute to the first forwarding area.
优选地,在执行第一发货交易成功时,根据第一发货交易生成并冻结第一物流通证包括:Preferably, when the execution of the first shipping transaction is successful, generating and freezing the first logistics token according to the first shipping transaction includes:
在执行第一发货交易成功时,根据所述第一发货交易生成并冻结第一物流通证,将第一物流通证的第一地址属性更新为第一商品的发货地址。When the execution of the first delivery transaction is successful, a first logistics token is generated and frozen according to the first delivery transaction, and the first address attribute of the first logistics token is updated to the delivery address of the first commodity.
优选地,上述方法还包括:Preferably, the above method also includes:
接收第一代收交易;其中,第一代收交易由最终派送第一商品的送货员的终端响应于第一用户暂时无法签收第一商品所生成;Receive the first collection transaction; wherein, the first collection transaction is generated by the terminal of the deliveryman who finally delivered the first commodity in response to the first user being temporarily unable to sign for the first commodity;
在第一时长内,判断是否接收到第一仲裁交易:Within the first time period, determine whether the first arbitration transaction is received:
否,则将所冻结的资产解冻并划转至第一商家的第一商家账户,将所冻结的第一物流通证解冻并划转至第一用户的第一用户账户,并将第一持有人属性更新为第一用户,以及,将第一地址属性更新为第一收货地址;其中,第一仲裁交易由第一用户端响应于第一用户未收到第一商品所生成。No, the frozen assets will be unfrozen and transferred to the first merchant account of the first merchant, the frozen first logistics token will be unfrozen and transferred to the first user account of the first user, and the first holding The person attribute is updated to the first user, and the first address attribute is updated to the first delivery address; wherein the first arbitration transaction is generated by the first user terminal in response to the first user not receiving the first commodity.
优选地,上述方法还包括:Preferably, the above method also includes:
在执行第一收货交易成功后的第二时长后,销毁第一物流通证。After a second period of time after the first receipt transaction is successfully executed, the first logistics token is destroyed.
图3为本发明一实施例提供的一种计算机设备的结构示意图。如图3所示,作为另一方面,本申请还提供了一种计算机设备,包括一个或多个中央处理单元(CPU)301,其可以根据存储在只读存储器(ROM)302中的程序或者从存储部分308加载到随机访问存储器(RAM)303中的程序而执行各种适当的动作和处理。在RAM303中,还存储有计算机设备操作所需的各种程序和数据。CPU301、ROM302以及RAM303通过总线304彼此相连。输入/输出(I/O)接口305也连接至总线304。FIG. 3 is a schematic structural diagram of a computer device according to an embodiment of the present invention. As shown in FIG. 3 , as another aspect, the present application also provides a computer device, comprising one or more central processing units (CPUs) 301 , which can operate according to a program stored in a read only memory (ROM) 302 or Various appropriate actions and processes are executed from the program loaded into the random access memory (RAM) 303 from the storage section 308 . In the RAM 303, various programs and data necessary for the operation of the computer device are also stored. The CPU 301 , the ROM 302 , and the RAM 303 are connected to each other through a bus 304 . An input/output (I/O) interface 305 is also connected to bus 304 .
以下部件连接至I/O接口305:包括键盘、鼠标等的输入部分306;包括诸如阴极射线管(CRT)、液晶显示器(LCD)等以及扬声器等的输出部分307;包括硬盘等的存储部分308;以及包括诸如LAN卡、调制解调器等的网络接口卡的通信部分309。通信部分309经由诸如因特网的网络执行通信处理。驱动器310也根据需要连接至I/O接口305。可拆卸介质311,诸如磁盘、光盘、磁光盘、半导体存储器等等,根据需要安装在驱动器310上,以便于从其上读出的计算机程序根据需要被安装入存储部分308。The following components are connected to the I/O interface 305: an input section 306 including a keyboard, a mouse, etc.; an output section 307 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 308 including a hard disk, etc. ; and a communication section 309 including a network interface card such as a LAN card, a modem, and the like. The communication section 309 performs communication processing via a network such as the Internet. A drive 310 is also connected to the I/O interface 305 as needed. A removable medium 311, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is mounted on the drive 310 as needed so that a computer program read therefrom is installed into the storage section 308 as needed.
特别地,根据本公开的实施例,上述任一实施例描述的方法可以被实现为计算机软件程序。例如,本公开的实施例包括一种计算机程序产品,其包括有形地包含在机器可读介质上的计算机程序,所述计算机程序包含用于执行上述任一方法的程序代码。在这样的实施例中,该计算机程序可以通过通信部分309从网络上被下载和安装,和/或从可拆卸介质311被安装。In particular, according to an embodiment of the present disclosure, the method described in any of the above embodiments may be implemented as a computer software program. For example, embodiments of the present disclosure include a computer program product comprising a computer program tangibly embodied on a machine-readable medium, the computer program containing program code for performing any of the methods described above. In such an embodiment, the computer program may be downloaded and installed from the network via the communication portion 309 and/or installed from the removable medium 311 .
作为又一方面,本申请还提供了一种计算机可读存储介质,该计算机可读存储介质可以是上述实施例的装置中所包含的计算机可读存储介质;也可以是单独存在,未装配入计算机设备中的计算机可读存储介质。计算机可读存储介质存储有一个或者一个以上程序,该程序被一个或者一个以上的处理器用来执行描述于本申请提供的方法。As yet another aspect, the present application also provides a computer-readable storage medium. The computer-readable storage medium may be a computer-readable storage medium included in the apparatus of the foregoing embodiment; A computer readable storage medium in a computer device. The computer-readable storage medium stores one or more programs that are used by one or more processors to perform the methods described in the present application.
附图中的流程图和框图,图示了按照本发明各种实施例的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段、或代码的一部分,该模块、程序段、或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个接连地表示的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这根据所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以通过执行规定的功能或操作的专用的基于硬件的系统来实现,或者可以通过专用硬件与计算机指令的组合来实现。The flowchart and block diagrams in the Figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code that contains one or more logical functions for implementing the specified functions executable instructions. It should also be noted that, in some alternative implementations, the functions noted in the blocks may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It is also noted that each block of the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations, can be implemented by dedicated hardware-based systems that perform the specified functions or operations , or can be implemented by a combination of dedicated hardware and computer instructions.
描述于本申请实施例中所涉及到的单元或模块可以通过软件的方式实现,也可以通过硬件的方式来实现。所描述的单元或模块也可以设置在处理器中,例如,各所述单元可以是设置在计算机或移动智能设备中的软件程序,也可以是单独配置的硬件装置。其中,这些单元或模块的名称在某种情况下并不构成对该单元或模块本身的限定。The units or modules involved in the embodiments of the present application may be implemented in a software manner, and may also be implemented in a hardware manner. The described units or modules may also be provided in the processor, for example, each of the units may be a software program provided in a computer or a mobile smart device, or may be a separately configured hardware device. Wherein, the names of these units or modules do not constitute limitations on the units or modules themselves under certain circumstances.
以上描述仅为本申请的较佳实施例以及对所运用技术原理的说明。本领域技术人员应当理解,本申请中所涉及的发明范围,并不限于上述技术特征的特定组合而成的技术方案,同时也应涵盖在不脱离 本申请构思的情况下,由上述技术特征或其等同特征进行任意组合而形成的其它技术方案。例如上述特征与本申请中公开的(但不限于)具有类似功能的技术特征进行互相替换而形成的技术方案。The above description is only a preferred embodiment of the present application and an illustration of the applied technical principles. Those skilled in the art should understand that the scope of the invention involved in the present application is not limited to the technical solutions formed by the specific combination of the above-mentioned technical features, and should also cover, without departing from the concept of the present application, the above-mentioned technical features or Other technical solutions formed by any combination of its equivalent features. For example, a technical solution is formed by replacing the above-mentioned features with the technical features disclosed in this application (but not limited to) with similar functions.

Claims (10)

  1. 一种交易方法,其特征在于,所述方法适用于区块链节点,所述方法包括:A transaction method, characterized in that the method is applicable to a blockchain node, and the method includes:
    接收第一注册商品交易;其中,所述第一注册商品交易由第一商家的第一商家端响应于所述第一商家请求通过区块链出售第一商品所生成;Receive a first registered commodity transaction; wherein, the first registered commodity transaction is generated by a first merchant terminal of a first merchant in response to a request by the first merchant to sell the first commodity through the blockchain;
    在执行所述第一注册商品交易成功时,生成第一商品的第一商品通证,并将所述第一商品通证划转至所述第一商家的第一商家账户;其中,所述第一商品通证包括第一商品地址属性和第一商品持有人属性;When the execution of the first registered commodity transaction is successful, a first commodity token of the first commodity is generated, and the first commodity token is transferred to the first merchant account of the first merchant; wherein, the The first commodity token includes the first commodity address attribute and the first commodity holder attribute;
    接收第一认购交易;其中,所述第一认购交易由第一用户的第一用户端响应于所述第一用户请求购买第二商家的第二商品所生成,所述第一认购交易包括所述第一用户的第一收货地址;Receive a first subscription transaction; wherein, the first subscription transaction is generated by the first user terminal of the first user in response to the first user's request to purchase the second commodity of the second merchant, and the first subscription transaction includes the the first delivery address of the first user;
    在执行所述第一认购交易成功时,冻结所述第一认购交易支付的用于认购所述第二商品的资产;When the execution of the first subscription transaction is successful, freezing the assets paid in the first subscription transaction for subscribing for the second commodity;
    接收第一发货交易;其中,所述第一发货交易由所述第二商家的第二商家端响应于向所述第一用户发送所述第二商品所生成,所述第一发货交易包括所述第二商品的第二商品通证的通证名称;Receive a first shipping transaction; wherein the first shipping transaction is generated by a second merchant end of the second merchant in response to sending the second product to the first user, and the first shipping transaction is The token name of the second commodity token whose transaction includes the second commodity;
    在执行所述第一发货交易成功时,冻结所述第一用户所认购的第二商品对应的第二商品通证;When the execution of the first delivery transaction is successful, freezing the second commodity token corresponding to the second commodity subscribed by the first user;
    接收第一揽货交易;其中,所述第一揽货交易由揽收所述第二商品的第一送货员的第一终端响应于揽收所述第二商品所生成;receiving a first package transaction; wherein, the first package transaction is generated by a first terminal of a first deliveryman who picks up the second commodity in response to picking up the second commodity;
    在执行所述第一揽货交易成功时,将所冻结的所述第二商品通证的第二商品持有人属性更新为所述第一送货员,以及,将所述第二商品通证的第二商品地址属性更新为第一揽收区域;When the execution of the first collection transaction is successful, update the second commodity holder attribute of the frozen second commodity token to the first deliveryman, and update the second commodity token The second commodity address attribute of the certificate is updated to the first collection area;
    接收第一收货交易;其中,所述第一收货交易由所述第一用户端响应于第一用户签收所述第二商品时所生成;receiving a first goods receipt transaction; wherein, the first goods receipt transaction is generated by the first user terminal in response to the first user signing for the second commodity;
    在执行所述第一收货交易成功时,将所冻结的资产解冻并划转至所述第二商家的第一商家账户,将所冻结的第二商品通证解冻并划转 至所述第一用户的第一用户账户,并将所述第二商品持有人属性更新为所述第一用户,以及,将所述第二商品地址属性更新为所述第一收货地址。When the execution of the first goods receipt transaction is successful, the frozen assets are unfrozen and transferred to the first merchant account of the second merchant, and the frozen second commodity token is unfrozen and transferred to the first merchant account of the second merchant. A first user account of a user, and the second commodity holder attribute is updated to the first user, and the second commodity address attribute is updated to the first shipping address.
  2. 根据权利要求1所述的方法,其特征在于,商品通证还配置有商品拥有人属性,所述冻结所述第一用户所认购的第二商品对应的第二商品通证包括:The method according to claim 1, wherein the commodity token is further configured with a commodity owner attribute, and the freezing of the second commodity token corresponding to the second commodity subscribed by the first user comprises:
    冻结所述第一用户所认购的第二商品对应的第二商品通证;Freeze the second commodity token corresponding to the second commodity subscribed by the first user;
    将所冻结的所述第二商品通证的第二商品拥有人属性更新为所述第一用户。Update the second commodity owner attribute of the frozen second commodity token to the first user.
  3. 根据权利要求1所述的方法,其特征在于,区块链上记录有各商品的商品发货地址,所述冻结所述第一认购交易支付的用于认购所述第二商品的资产包括:The method according to claim 1, wherein the commodity shipping address of each commodity is recorded on the blockchain, and the freezing of the assets paid by the first subscription transaction for subscribing the second commodity comprises:
    冻结所述第一认购交易支付的用于认购所述第二商品的资产;Freeze the assets paid by the first subscription transaction for subscribing the second commodity;
    根据所述第二商品的发货地址、所述第一收货地址规划物流路线;Planning a logistics route according to the delivery address of the second commodity and the first delivery address;
    所述在执行所述第一揽货交易成功时,将所冻结的所述第二商品通证的第二商品持有人属性更新为所述第一送货员,以及,将所述第二商品通证的第二商品地址属性更新为第一揽收区域包括:updating the second commodity holder attribute of the frozen second commodity token to the first deliveryman, and updating the second commodity The second commodity address attribute of the commodity certificate is updated to the first collection area including:
    判断所述第一送货员所在的第一揽收区域是否包括于所述物流路线:Determine whether the first collection area where the first deliveryman is located is included in the logistics route:
    是,则将所冻结的所述第二商品通证的第二商品持有人属性更新为所述第一送货员,以及,将所述第二商品通证的第二商品地址属性更新为第一揽收区域。If yes, update the second commodity holder attribute of the frozen second commodity token to the first deliveryman, and update the second commodity address attribute of the second commodity token to The first collection area.
  4. 根据权利要求3所述的方法,其特征在于,所述接收第一收货交易前,还包括:The method according to claim 3, wherein before the receiving the first goods receipt transaction, the method further comprises:
    接收第一分拣交易;其中,所述第一分拣交易由分拣所述第二商品的第一分拣中心的第二终端响应于分拣所述第一送货员所投递的所述第二商品所生成;receiving a first sorting transaction; wherein the first sorting transaction is performed by a second terminal of a first sorting center sorting the second item in response to sorting the delivery by the first deliveryman generated by the second commodity;
    判断所述第一分拣中心所在地是否包括于所述物流路线:Determine whether the location of the first sorting center is included in the logistics route:
    是,则将所述第二商品持有人属性更新为所述第一分拣中心,以及,将所述第二商品地址属性更新为第一分拣中心所在地;If yes, update the attribute of the second commodity holder to the first sorting center, and update the second commodity address attribute to the location of the first sorting center;
    接收第一转送交易;其中,所述第一转送交易由转送所述第二商品的第二送货员的第三终端响应于转送所述第二商品所生成;receiving a first forwarding transaction; wherein the first forwarding transaction was generated by a third terminal of a second deliveryman who forwarded the second item in response to forwarding the second item;
    判断所述第二送货员所在的第一转送区域是否包括于所述物流路线:Determine whether the first transfer area where the second deliveryman is located is included in the logistics route:
    是,则将所述第二商品持有人属性更新为所述第二送货员,以及,将所述第二商品地址属性更新为第一转送区域。If yes, update the attribute of the second commodity holder to the second deliveryman, and update the attribute of the second commodity address to the first forwarding area.
  5. 根据权利要求1-4任一项所述的方法,其特征在于,所述在执行所述第一发货交易成功时,冻结所述第一用户所认购的第二商品对应的第二商品通证包括:The method according to any one of claims 1 to 4, wherein when the first delivery transaction is successfully executed, freezing the second commodity communication corresponding to the second commodity subscribed by the first user The certificate includes:
    在执行所述第一发货交易成功时,冻结所述第一用户所认购的第二商品对应的第二商品通证,将所述第二商品通证的第二商品地址属性更新为所述第二商品的发货地址。When the execution of the first delivery transaction is successful, the second commodity token corresponding to the second commodity subscribed by the first user is frozen, and the second commodity address attribute of the second commodity token is updated to the The shipping address of the second item.
  6. 根据权利要求1-4任一项所述的方法,其特征在于,还包括:The method according to any one of claims 1-4, further comprising:
    接收第一代收交易;其中,所述第一代收交易由最终派送所述第二商品的送货员的终端响应于所述第一用户暂时无法签收所述第一商品所生成;Receive a first collection transaction; wherein, the first collection transaction is generated by the terminal of the deliveryman who finally delivered the second commodity in response to the first user being temporarily unable to sign for the first commodity;
    在第一时长内,判断是否接收到第一仲裁交易:Within the first time period, determine whether the first arbitration transaction is received:
    否,则将所冻结的资产解冻并划转至所述第二商家的第一商家账户,将所冻结的第二商品通证解冻并划转至所述第一用户的第一用户账户,并将所述第二商品持有人属性更新为所述第一用户,以及,将所述第二商品地址属性更新为所述第一收货地址;其中,所述第一仲裁交易由所述第一用户端响应于所述第一用户未收到所述第一商品所生成。If not, unfreeze and transfer the frozen assets to the first merchant account of the second merchant, unfreeze and transfer the frozen second commodity token to the first user account of the first user, and updating the attribute of the second commodity holder to the first user, and updating the attribute of the second commodity address to the first delivery address; wherein the first arbitration transaction is performed by the first Generated by a user terminal in response to the first user not receiving the first commodity.
  7. 一种交易方法,其特征在于,所述方法适用于区块链节点,所 述方法包括:A transaction method, characterized in that the method is applicable to a blockchain node, and the method comprises:
    接收第一认购交易;其中,所述第一认购交易由第一用户的第一用户端响应于所述第一用户请求购买第一商家的第一商品所生成,所述第一认购交易包括所述第一用户的第一收货地址;Receive a first subscription transaction; wherein, the first subscription transaction is generated by the first user terminal of the first user in response to the first user's request to purchase the first commodity of the first merchant, and the first subscription transaction includes the the first delivery address of the first user;
    在执行所述第一认购交易成功时,冻结所述第一认购交易支付的用于认购所述第一商品的资产;When the execution of the first subscription transaction is successful, freezing the assets paid in the first subscription transaction for subscribing the first commodity;
    接收第一发货交易;其中,所述第一发货交易由所述第一商家的第一商家端响应于向所述第一用户发送所述第一商品所生成;receiving a first shipping transaction; wherein the first shipping transaction is generated by a first merchant end of the first merchant in response to sending the first commodity to the first user;
    在执行所述第一发货交易成功时,根据所述第一发货交易生成并冻结第一物流通证;其中,所述第一物流通证包括第一持有人属性和第一地址属性;When the execution of the first delivery transaction is successful, a first logistics token is generated and frozen according to the first delivery transaction; wherein the first logistics token includes a first holder attribute and a first address attribute ;
    接收第一揽货交易;其中,所述第一揽货交易由揽收所述第二商品的第一送货员的第一终端响应于揽收所述第二商品所生成;receiving a first package transaction; wherein, the first package transaction is generated by a first terminal of a first deliveryman who picks up the second commodity in response to picking up the second commodity;
    在执行所述第一揽货交易成功时,将所冻结的所述第一物流通证的第一持有人属性更新为所述第一送货员,以及,将所述第一物流通证的第一地址属性更新为第一揽收区域;When the execution of the first collection transaction is successful, update the frozen first holder attribute of the first logistics pass to the first deliveryman, and update the first logistics pass The first address attribute of is updated to the first collection area;
    接收第一收货交易;其中,所述第一收货交易由所述第一用户端响应于第一用户签收所述第一商品时所生成;receiving a first goods receipt transaction; wherein, the first goods receipt transaction is generated by the first user terminal in response to the first user signing for the first commodity;
    在执行所述第一收货交易成功时,将所冻结的资产解冻并划转至所述第一商家的第一商家账户,将所冻结的第一物流通证解冻并划转至所述第一用户的第一用户账户,并将所述第一持有人属性更新为所述第一用户,以及,将所述第一地址属性更新为所述第一收货地址。When the first receiving transaction is successfully executed, the frozen assets are unfrozen and transferred to the first merchant account of the first merchant, and the frozen first logistics token is unfrozen and transferred to the first merchant account. A first user account of a user, and the first holder attribute is updated to the first user, and the first address attribute is updated to the first shipping address.
  8. 根据权利要求7所述的方法,其特征在于,各商家在区块链上持有所出售商品对应的商品通证,所述在执行所述第一发货交易成功时,根据所述第一发货交易生成并冻结第一物流通证包括:The method according to claim 7, wherein each merchant holds a commodity certificate corresponding to the sold commodity on the blockchain, and when the first delivery transaction is successfully executed, according to the first The delivery transaction generates and freezes the first logistics token including:
    在执行所述第一发货交易成功时,根据所述第一发货交易、所述第一商品对应的第一商品通证生成并冻结第一物流通证;其中,所述第一商品通证为所述第一物流通证的子通证。When the execution of the first delivery transaction is successful, a first logistics token is generated and frozen according to the first delivery transaction and the first commodity token corresponding to the first commodity; wherein, the first commodity token The certificate is a sub-token of the first logistics certificate.
  9. 一种计算机设备,其特征在于,所述设备包括:A computer device, characterized in that the device comprises:
    一个或多个处理器;one or more processors;
    存储器,用于存储一个或多个程序,memory for storing one or more programs,
    当所述一个或多个程序被所述一个或多个处理器执行时,使得所述一个或多个处理器执行如权利要求1-8中任一项所述的方法。The one or more programs, when executed by the one or more processors, cause the one or more processors to perform the method of any of claims 1-8.
  10. 一种存储有计算机程序的存储介质,其特征在于,该程序被处理器执行时实现如权利要求1-8中任一项所述的方法。A storage medium storing a computer program, characterized in that, when the program is executed by a processor, the method according to any one of claims 1-8 is implemented.
PCT/CN2021/143840 2021-03-05 2021-12-31 Transaction method, computer device, and storage medium WO2022183837A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110246900.4A CN112950117B (en) 2021-03-05 2021-03-05 Transaction method, computer device and storage medium
CN202110246900.4 2021-03-05

Publications (1)

Publication Number Publication Date
WO2022183837A1 true WO2022183837A1 (en) 2022-09-09

Family

ID=76228535

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/143840 WO2022183837A1 (en) 2021-03-05 2021-12-31 Transaction method, computer device, and storage medium

Country Status (2)

Country Link
CN (1) CN112950117B (en)
WO (1) WO2022183837A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112950117B (en) * 2021-03-05 2022-07-15 杭州复杂美科技有限公司 Transaction method, computer device and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109272388A (en) * 2018-09-25 2019-01-25 杭州复杂美科技有限公司 A kind of purchase method based on block chain, equipment and storage medium
CN109389466A (en) * 2018-09-25 2019-02-26 杭州复杂美科技有限公司 A kind of delivery of cargo method, equipment and storage medium based on block chain
US20190266568A1 (en) * 2018-02-28 2019-08-29 Walmart Apollo, Llc Blockchain-based system and method for crowdsourced delivery
WO2019214312A1 (en) * 2018-05-11 2019-11-14 阿里巴巴集团控股有限公司 Blockchain-based logistics information transmission method, system and device
CN110580618A (en) * 2018-06-11 2019-12-17 触信(厦门)智能科技有限公司 Commodity transaction method and system for block chain intelligent contracts
CN112950117A (en) * 2021-03-05 2021-06-11 杭州复杂美科技有限公司 Transaction method, computer device and storage medium

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10504193B2 (en) * 2014-03-31 2019-12-10 Monticello Enterprises LLC System and method for providing a universal shopping cart
US20170085555A1 (en) * 2015-07-14 2017-03-23 Fmr Llc Point-to-Point Transaction Guidance Apparatuses, Methods and Systems
CN110728511B (en) * 2018-06-28 2022-08-09 本无链科技(深圳)有限公司 Commodity transaction method and system based on block chain
CN109636590A (en) * 2018-12-21 2019-04-16 众安信息技术服务有限公司 Based on the logical method and apparatus for confirming existing P2P digital asset transfer of block chain
CN111612392A (en) * 2020-04-03 2020-09-01 上海明略人工智能(集团)有限公司 Logistics monitoring method and system based on block chain
CN111476584A (en) * 2020-04-08 2020-07-31 杭州复杂美科技有限公司 Public welfare consumption method, equipment and storage medium
CN113592478A (en) * 2021-08-02 2021-11-02 杭州复杂美科技有限公司 Digital commodity transaction method, computer device and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190266568A1 (en) * 2018-02-28 2019-08-29 Walmart Apollo, Llc Blockchain-based system and method for crowdsourced delivery
WO2019214312A1 (en) * 2018-05-11 2019-11-14 阿里巴巴集团控股有限公司 Blockchain-based logistics information transmission method, system and device
CN110580618A (en) * 2018-06-11 2019-12-17 触信(厦门)智能科技有限公司 Commodity transaction method and system for block chain intelligent contracts
CN109272388A (en) * 2018-09-25 2019-01-25 杭州复杂美科技有限公司 A kind of purchase method based on block chain, equipment and storage medium
CN109389466A (en) * 2018-09-25 2019-02-26 杭州复杂美科技有限公司 A kind of delivery of cargo method, equipment and storage medium based on block chain
CN112950117A (en) * 2021-03-05 2021-06-11 杭州复杂美科技有限公司 Transaction method, computer device and storage medium

Also Published As

Publication number Publication date
CN112950117A (en) 2021-06-11
CN112950117B (en) 2022-07-15

Similar Documents

Publication Publication Date Title
CN103886079B (en) A kind of data processing method and system
WO2020043046A1 (en) Parallel chain cross-chain transaction method, device and storage medium
US8473316B1 (en) System and method for order processing state management
US20150206116A1 (en) Method for synchronizing orders between remote and central web-base point of sale systems
WO2022121346A1 (en) Wallet retrieval method and device, and storage medium
CN108921559B (en) Cross-chain transaction verification method, device and storage medium
WO2022183837A1 (en) Transaction method, computer device, and storage medium
EP3989144A1 (en) Blockchain-based logistics physical item handover method, platform and storage medium
WO2020192328A1 (en) Blockchain-based order state updating method, apparatus and device, and storage medium
CN108038767A (en) Electric business order asynchronous distribution system and method based on message queue
TW201710964A (en) Method and apparatus for processing logistics path information
US9116969B2 (en) Generation of electronic pedigree
CN110795447A (en) Data processing method, data processing system, electronic device, and medium
CN109146488A (en) Assets match method, assets match system, equipment and storage medium
US20100211480A1 (en) Handling Taxes In Computer-Based Sales Transactions
CN113592478A (en) Digital commodity transaction method, computer device and storage medium
CN109493015A (en) A kind of assets transfer method, equipment and storage medium
US10248987B1 (en) Using digital item tracking to drive e-commerce
US20140244484A1 (en) Network computing environment collection and notification of point of sale information
US9727899B2 (en) Manufacturing and distribution to avoid counterfeit products
WO2022206225A1 (en) Cross-border declaration method for order, system, apparatus, and computing device
CN114418482A (en) Order information processing method and device, electronic equipment and computer readable medium
KR20190044309A (en) Method for providing forwarding service
CN109409920B (en) Method, device and storage medium for issuing scores of sub-merchants
CN113592470A (en) Service processing method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21928908

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21928908

Country of ref document: EP

Kind code of ref document: A1