WO2021239089A1 - 交易处理方法、装置、设备及系统 - Google Patents

交易处理方法、装置、设备及系统 Download PDF

Info

Publication number
WO2021239089A1
WO2021239089A1 PCT/CN2021/096605 CN2021096605W WO2021239089A1 WO 2021239089 A1 WO2021239089 A1 WO 2021239089A1 CN 2021096605 W CN2021096605 W CN 2021096605W WO 2021239089 A1 WO2021239089 A1 WO 2021239089A1
Authority
WO
WIPO (PCT)
Prior art keywords
information
transaction
blockchain
request
logistics
Prior art date
Application number
PCT/CN2021/096605
Other languages
English (en)
French (fr)
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 WO2021239089A1 publication Critical patent/WO2021239089A1/zh

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
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/08Payment architectures
    • G06Q20/085Payment architectures involving remote charge determination or related payment systems
    • 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
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/64Protecting data integrity, e.g. using checksums, certificates or signatures
    • 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/0838Historical data
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/382Payment protocols; Details thereof insuring higher security of transaction
    • G06Q20/3829Payment protocols; Details thereof insuring higher security of transaction involving key management
    • 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/389Keeping log of transactions for guaranteeing non-repudiation of a transaction
    • 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

  • This document relates to the field of data processing technology, in particular to a transaction processing method, device, equipment and system.
  • the embodiment of this specification provides a transaction processing method, which is applied to the first blockchain node of the first blockchain.
  • the method includes receiving a first transaction request sent by a logistics platform.
  • the first transaction request is sent based on a payment request sent by the carrier of the waybill.
  • the waybill is generated by the logistics platform based on the consignment request of the shipper.
  • the payment request is sent when the carrier applies for the first quantity of resources corresponding to the cargo transportation after the cargo transportation of the waybill is completed; the transaction request includes transaction information.
  • Invoke the smart contract in the first blockchain Based on the smart contract, it is determined whether the transaction information meets preset transaction conditions according to the logistics information of the logistics platform stored in the first blockchain. If it is, a second transaction request is generated according to the transaction information.
  • the second transaction request is sent to the second blockchain node of the second blockchain.
  • the second blockchain node In order to enable the second blockchain node to perform resource transfer processing based on the resources issued to the designated resource account of the logistics platform according to the second transaction request. To transfer the first amount of resources to the carrier. And save the resource transfer result information of the resource transfer processing in the second blockchain.
  • the embodiment of this specification provides a transaction processing method, which is applied to the first blockchain node of the first blockchain.
  • the method includes receiving a first transaction request sent by a logistics platform.
  • the first transaction request is sent based on a payment request sent by the carrier of the waybill.
  • the waybill is generated by the logistics platform based on the consignment request of the shipper.
  • the payment request is sent when the carrier applies for the first quantity of resources corresponding to the cargo transportation after the cargo transportation of the waybill is completed; the transaction request includes transaction information.
  • Invoking the smart contract in the first blockchain based on the smart contract according to the logistics information of the logistics platform stored in the first blockchain. It is determined whether the transaction information meets the preset transaction conditions.
  • the resource management agency In order to enable the resource management agency to perform resource transfer processing based on the resources issued to the designated resource account of the logistics platform according to the second transaction request.
  • To transfer the first amount of resources to the carrier and save the resource transfer result information of the resource transfer processing in the second blockchain.
  • the embodiment of this specification provides a transaction processing method.
  • This method is applied to logistics platforms.
  • the method includes receiving a spending request sent by a carrier. Wherein, the expenditure request is sent when the carrier completes the cargo transportation of the waybill and applies for the first quantity of resources corresponding to the cargo transportation.
  • the waybill is generated by the logistics platform based on the consignment request of the shipper.
  • the disbursement request includes disbursement information. If it is determined that the first method is used for resource transfer processing, the transaction information is determined according to the expenditure information. According to the transaction information, a first transaction request is sent to the first blockchain node connected to the first blockchain.
  • the first blockchain node determines that the transaction information satisfies the preset transaction conditions based on the logistics information in the first blockchain, it is based on the second blockchain corresponding to the resource management institution.
  • the cross-chain transmission channel of the blockchain Send a second transaction request to the second blockchain node of the second blockchain.
  • the second blockchain node In order to enable the second blockchain node to perform resource transfer processing based on the resources issued to the designated resource account of the logistics platform according to the second transaction request, so as to transfer the first amount to the carrier H.
  • the embodiment of this specification provides a transaction processing device, which is applied to the first blockchain node of the first blockchain.
  • the device includes a receiving module, which receives the first transaction request sent by the logistics platform.
  • the first transaction request is sent based on a payment request sent by the carrier of the waybill.
  • the waybill is generated by the logistics platform based on the consignment request of the shipper.
  • the expenditure request is sent when the carrier applies for the first quantity of resources corresponding to the cargo transportation after completing the cargo transportation of the waybill.
  • the transaction request includes transaction information.
  • the device also includes a determining module, which invokes the smart contract in the first blockchain. Based on the smart contract, it is determined whether the transaction information meets preset transaction conditions according to the logistics information of the logistics platform stored in the first blockchain.
  • the device also includes a sending module, which generates a second transaction request according to the transaction information if the determination result of the determining module is yes.
  • the second transaction request is sent to the second blockchain node of the second blockchain.
  • the second blockchain node In order to enable the second blockchain node to perform resource transfer processing based on the resources issued to the designated resource account of the logistics platform according to the second transaction request. To transfer the first amount of resources to the carrier. And save the resource transfer result information of the resource transfer processing in the second blockchain.
  • the embodiment of this specification provides a transaction processing device, which is applied to the first blockchain node of the first blockchain.
  • the device includes a receiving module, which receives the first transaction request sent by the logistics platform.
  • the first transaction request is sent based on a payment request sent by the carrier of the waybill.
  • the waybill is generated by the logistics platform based on the consignment request of the shipper.
  • the expenditure request is sent when the carrier applies for the first quantity of resources corresponding to the cargo transportation after the cargo transportation of the waybill is completed.
  • the transaction request includes transaction information.
  • the device also includes a determination module, which calls the smart contract in the first blockchain. Based on the smart contract, it is determined whether the transaction information meets preset transaction conditions according to the logistics information of the logistics platform stored in the first blockchain.
  • the device also includes a sending module, which sends a second transaction request to the resource management institution according to the transaction information if the determination result of the determining module is yes.
  • a sending module which sends a second transaction request to the resource management institution according to the transaction information if the determination result of the determining module is yes.
  • the embodiment of this specification provides a transaction processing device, which is applied to a logistics platform.
  • the device includes a receiving module, which receives the spending request sent by the carrier. Wherein, the expenditure request is sent when the carrier completes the cargo transportation of the waybill and applies for the first quantity of resources corresponding to the cargo transportation.
  • the waybill is generated by the logistics platform based on the consignment request of the shipper.
  • the disbursement request includes disbursement information.
  • the device also includes a determining module, if it is determined that the first method is used for resource transfer processing, the transaction information is determined according to the payment information.
  • the device also includes a sending module, which sends a first transaction request to a first blockchain node connected to the first blockchain according to the transaction information.
  • the cross-chain transmission channel of the blockchain sends a second transaction request to the second blockchain node of the second blockchain.
  • the second blockchain node In order to enable the second blockchain node to perform resource transfer processing based on the resources issued to the designated resource account of the logistics platform according to the second transaction request. To transfer the first amount of resources to the carrier.
  • the embodiment of this specification provides a transaction processing system, including a logistics platform, a first blockchain, and a second blockchain corresponding to a resource management institution.
  • the logistics platform receives the payment request sent by the carrier.
  • the expenditure request is sent when the carrier completes the cargo transportation of the waybill and applies for the first quantity of resources corresponding to the cargo transportation.
  • the waybill is generated by the logistics platform based on the consignment request of the shipper. If it is determined to use the first method for resource transfer processing, the transaction information is determined according to the spending information included in the spending request. According to the transaction information, a first transaction request is sent to the first blockchain node of the first blockchain.
  • the first blockchain node of the first blockchain receives the first transaction request sent by the logistics platform.
  • the smart contract in the first blockchain Based on the smart contract, it is determined whether the transaction information included in the first transaction request meets a preset transaction condition according to the logistics information of the logistics platform stored in the first blockchain. If it is, a second transaction request is generated according to the transaction information. Based on the cross-chain transmission channel of the first block chain and the second block chain, the second transaction request is sent to the second block chain node of the second block chain.
  • the second blockchain node of the second blockchain performs resource transfer processing based on the resources issued to the designated resource account of the logistics platform according to the received second transaction request. To transfer the first amount of resources to the carrier. And save the resource transfer result information of the resource transfer processing in the second blockchain.
  • the embodiment of this specification provides a transaction processing system, including a logistics platform, a first blockchain, a resource management institution, and a second blockchain.
  • the logistics platform receives the payment request sent by the carrier.
  • the expenditure request is sent when the carrier completes the cargo transportation of the waybill and applies for the first quantity of resources corresponding to the cargo transportation.
  • the waybill is generated by the logistics platform based on the consignment request of the shipper. If it is determined to use the first method for resource transfer processing, the transaction information is determined according to the spending information included in the spending request. According to the transaction information, a first transaction request is sent to the first blockchain node of the first blockchain.
  • the first blockchain node of the first blockchain receives the first transaction request sent by the logistics platform.
  • Invoke the smart contract in the first blockchain Based on the smart contract, it is determined whether the transaction information included in the first transaction request meets a preset transaction condition according to the logistics information of the logistics platform stored in the first blockchain. If yes, send a second transaction request to the resource management institution according to the transaction information. The resource management institution receives the second transaction request sent by the blockchain node. According to the second transaction request, resource transfer processing is performed based on the resources issued to the designated resource account of the logistics platform. To transfer the first amount of resources to the carrier. And save the resource transfer result information of the resource transfer processing in the second blockchain.
  • the embodiments of this specification provide a transaction processing device including a processor and a memory arranged to store computer-executable instructions. When executed, the computer-executable instructions cause the processor to receive the first transaction request sent by the logistics platform.
  • the first transaction request is sent based on a payment request sent by the carrier of the waybill.
  • the waybill is generated by the logistics platform based on the consignment request of the shipper.
  • the payment request is sent when the carrier applies for the first quantity of resources corresponding to the cargo transportation after the cargo transportation of the waybill is completed; the transaction request includes transaction information.
  • Invoke the smart contract in the first blockchain Based on the smart contract, it is determined whether the transaction information meets preset transaction conditions according to the logistics information of the logistics platform stored in the first blockchain.
  • a second transaction request is generated according to the transaction information.
  • the second transaction request is sent to the second blockchain node of the second blockchain.
  • the second blockchain node In order to enable the second blockchain node to perform resource transfer processing based on the resources issued to the designated resource account of the logistics platform according to the second transaction request.
  • the embodiments of this specification provide a transaction processing device including a processor and a memory arranged to store computer-executable instructions. When executed, the computer-executable instructions cause the processor to receive the first transaction request sent by the logistics platform.
  • the first transaction request is sent based on a payment request sent by the carrier of the waybill.
  • the waybill is generated by the logistics platform based on the consignment request of the shipper.
  • the payment request is sent when the carrier applies for the first quantity of resources corresponding to the cargo transportation after the cargo transportation of the waybill is completed; the transaction request includes transaction information.
  • Invoking the smart contract in the first blockchain based on the smart contract according to the logistics information of the logistics platform stored in the first blockchain. It is determined whether the transaction information meets the preset transaction conditions.
  • the resource management agency In order to enable the resource management agency to perform resource transfer processing based on the resources issued to the designated resource account of the logistics platform according to the second transaction request.
  • To transfer the first amount of resources to the carrier and save the resource transfer result information of the resource transfer processing in the second blockchain.
  • the embodiments of this specification provide a transaction processing device including a processor and a memory arranged to store computer-executable instructions.
  • the computer-executable instructions when executed, cause the processor to receive a spending request sent by a carrier.
  • the expenditure request is sent when the carrier completes the cargo transportation of the waybill and applies for the first quantity of resources corresponding to the cargo transportation.
  • the waybill is generated by the logistics platform based on the consignment request of the shipper.
  • the disbursement request includes disbursement information. If it is determined that the first method is used for resource transfer processing, the transaction information is determined according to the expenditure information. According to the transaction information, a first transaction request is sent to the first blockchain node connected to the first blockchain.
  • the first blockchain node determines that the transaction information satisfies the preset transaction conditions based on the logistics information in the first blockchain, it is based on the second blockchain corresponding to the resource management institution.
  • the cross-chain transmission channel of the blockchain Send a second transaction request to the second blockchain node of the second blockchain.
  • the second blockchain node In order to enable the second blockchain node to perform resource transfer processing based on the resources issued to the designated resource account of the logistics platform according to the second transaction request, so as to transfer the first amount to the carrier H.
  • the embodiment of this specification provides a storage medium.
  • the storage medium is used to store computer-executable instructions.
  • the computer-executable instructions receive the first transaction request sent by the logistics platform when being executed by the processor.
  • the first transaction request is sent based on a payment request sent by the carrier of the waybill.
  • the waybill is generated by the logistics platform based on the consignment request of the shipper.
  • the payment request is sent when the carrier applies for the first quantity of resources corresponding to the cargo transportation after the cargo transportation of the waybill is completed; the transaction request includes transaction information.
  • Invoke the smart contract in the first blockchain Based on the smart contract, it is determined whether the transaction information meets preset transaction conditions according to the logistics information of the logistics platform stored in the first blockchain.
  • a second transaction request is generated according to the transaction information.
  • the second transaction request is sent to the second blockchain node of the second blockchain.
  • the second blockchain node In order to enable the second blockchain node to perform resource transfer processing based on the resources issued to the designated resource account of the logistics platform according to the second transaction request.
  • the embodiment of this specification provides a storage medium.
  • the storage medium is used to store computer-executable instructions.
  • the computer-executable instructions receive the first transaction request sent by the logistics platform when being executed by the processor.
  • the first transaction request is sent based on a payment request sent by the carrier of the waybill.
  • the waybill is generated by the logistics platform based on the consignment request of the shipper.
  • the payment request is sent when the carrier applies for the first quantity of resources corresponding to the cargo transportation after the cargo transportation of the waybill is completed; the transaction request includes transaction information.
  • Invoking the smart contract in the first blockchain based on the smart contract according to the logistics information of the logistics platform stored in the first blockchain. It is determined whether the transaction information meets the preset transaction conditions.
  • the resource management agency In order to enable the resource management agency to perform resource transfer processing based on the resources issued to the designated resource account of the logistics platform according to the second transaction request.
  • To transfer the first amount of resources to the carrier and save the resource transfer result information of the resource transfer processing in the second blockchain.
  • the embodiment of this specification provides a storage medium.
  • the storage medium is used to store computer-executable instructions.
  • the computer-executable instructions When executed by the processor, they receive a spending request sent by the carrier.
  • the expenditure request is sent when the carrier completes the cargo transportation of the waybill and applies for the first quantity of resources corresponding to the cargo transportation.
  • the waybill is generated by the logistics platform based on the consignment request of the shipper.
  • the disbursement request includes disbursement information. If it is determined that the first method is used for resource transfer processing, the transaction information is determined according to the expenditure information. According to the transaction information, a first transaction request is sent to the first blockchain node connected to the first blockchain.
  • the first blockchain node determines that the transaction information satisfies the preset transaction conditions based on the logistics information in the first blockchain, it is based on the second blockchain corresponding to the resource management institution.
  • the cross-chain transmission channel of the blockchain Send a second transaction request to the second blockchain node of the second blockchain.
  • the second blockchain node In order to enable the second blockchain node to perform resource transfer processing based on the resources issued to the designated resource account of the logistics platform according to the second transaction request, so as to transfer the first amount to the carrier H.
  • FIG. 1 is a schematic diagram of the first scenario of a transaction processing method provided by an embodiment of this specification
  • FIG. 2 is a schematic diagram of the first flow of a transaction processing method provided by an embodiment of this specification
  • FIG. 3 is a schematic diagram of the second flow of a transaction processing method provided by an embodiment of this specification.
  • FIG. 4 is a schematic diagram of a third process of a transaction processing method provided by an embodiment of this specification.
  • FIG. 5 is a schematic diagram of a fourth flow of a transaction processing method provided by an embodiment of the specification.
  • FIG. 6 is a schematic diagram of the fifth flow of a transaction processing method provided by an embodiment of this specification.
  • FIG. 7 is a schematic diagram of a second scenario of a transaction processing method provided by an embodiment of this specification.
  • FIG. 8 is a schematic diagram of the sixth flow of a transaction processing method provided by an embodiment of the specification.
  • FIG. 9 is a schematic diagram of the seventh flow of a transaction processing method provided by an embodiment of the specification.
  • FIG. 10 is a schematic diagram of the eighth flow of a transaction processing method provided by an embodiment of the specification.
  • FIG. 11 is a schematic diagram of a ninth flow of a transaction processing method provided by an embodiment of this specification.
  • FIG. 12 is a schematic diagram of the tenth flow of a transaction processing method provided by an embodiment of this specification.
  • FIG. 13 is a schematic diagram of the first module composition of a transaction processing device provided by an embodiment of this specification.
  • FIG. 14 is a schematic diagram of the composition of a second type of module of a transaction processing device provided by an embodiment of this specification.
  • 15 is a schematic diagram of the composition of the third module of a transaction processing device provided by an embodiment of the specification.
  • 16 is a schematic diagram of the first composition of a transaction processing system provided by an embodiment of the specification.
  • FIG. 17 is a schematic diagram of the second composition of a transaction processing system provided by an embodiment of the specification.
  • FIG. 18 is a schematic structural diagram of a transaction processing device provided by an embodiment of this specification.
  • Figure 1 is a schematic diagram of an application scenario of a transaction processing method provided by an embodiment of this specification.
  • the scenario includes: a logistics platform, a first blockchain node connected to the first blockchain, and a second blockchain node connected to the first blockchain.
  • the second blockchain node of the second blockchain is stored in the first blockchain.
  • the resource management organization has deployed node equipment, which is connected to the second blockchain, which is the second blockchain node; that is, the resource management organization acts as a node connected to the second blockchain and performs on-chain operations. Relevant management operations of the resource, and save the relevant information of the resource management operation in the second blockchain.
  • the logistics platform generates a waybill based on the shipper’s consignment request, and determines the carrier of the waybill; when the carrier completes the transportation of the goods corresponding to the waybill, when applying for the first quantity of resources corresponding to the transportation of the goods, it sends it to the logistics platform Expense application.
  • the logistics platform determines the transaction information according to the payment information included in the payment application, generates a first transaction request according to the transaction information, and sends the first transaction request to the first blockchain node of the first blockchain.
  • the first block chain node When the first block chain node receives the first transaction request, it calls the smart contract in the first block chain, and based on the smart contract, according to the logistics information of the logistics platform stored in the first block chain, it is determined that the first transaction request includes Whether the transaction information meets the preset transaction conditions. If yes, generate a second transaction request based on the transaction information, and send the first block chain to the second block chain node of the second block chain based on the cross-chain transmission channel of the second block chain corresponding to the first block chain and the resource management institution 2. Transaction request.
  • the second blockchain node performs resource transfer processing based on the resources issued to the designated resource account of the logistics platform, so as to transfer the first amount of resources to the carrier and transfer the processed resources
  • the transfer result information is stored in the second blockchain; and the second blockchain sends the resource transfer result information to the first blockchain node based on the cross-chain transmission channel; the first blockchain node transfers the received resource
  • the result information is sent to the logistics platform, so that the logistics platform sends the request result information of the expense request to the carrier. Therefore, by storing the logistics information in the first blockchain and storing the resource transfer result information of the resource transfer processing in the second blockchain, the authenticity and validity of each information is ensured, and the false waybill is avoided.
  • the risk of illegal operation of resources, and makes logistics business and resource transfer business traceable; in addition, the cross-chain transmission of data not only breaks the data island, realizes the interconnection and intercommunication of data, but also facilitates the mining of logistics information and other data. Potential value.
  • Figure 2 is a schematic flow chart of a transaction processing method provided by an embodiment of this specification.
  • the method in Figure 2 can be executed by the first blockchain node in Figure 1. As shown in Figure 2, the method includes the following steps: S102.
  • the logistics platform receives the first transaction request sent by the logistics platform; where the first transaction request is sent based on the payment request sent by the carrier of the waybill; the waybill is generated by the logistics platform based on the consignment request of the shipper; the payment request is the carrier After the cargo transportation of the waybill is completed, it is sent when applying for the first quantity of resources corresponding to the cargo transportation; the transaction request includes transaction information; specifically, the logistics platform generates the waybill based on the consignment information included in the consignment request based on the consignor’s consignment request, and Determine the carrier of the waybill; among them, the consignment information includes the cargo information of the goods to be consigned, the information of the place of departure, the information of the place of delivery, etc.
  • the carrier transports the goods to be consigned on the waybill from the place of departure to the place of delivery, that is, after the carrier completes the transportation of the goods on the waybill, and applies for the first quantity of resources corresponding to the transportation of the goods, it sends an application for expenditure to the logistics platform.
  • the logistics platform determines that no resources have been transferred to the carrier, the transaction information is determined according to the payment information included in the payment application, and the first transaction request is generated based on the transaction information, and sent to the first blockchain node of the first blockchain The first transaction request.
  • the payment information includes the identification information of the waybill, the first quantity of resources applied for, the user information of the carrier, etc., the user information of the carrier, such as name, mobile phone number, ID number, account information of the resource account, etc.; logistics platform
  • the payment information is determined as transaction information, or a preset form of transaction information is generated based on the payment information.
  • Resources can be physical resources, such as currency, etc., or virtual resources, such as electronic currency, points, etc.
  • step S104 the smart contract in the first blockchain is called, and based on the smart contract, it is determined whether the transaction information meets the preset transaction conditions according to the logistics information of the logistics platform stored in the first blockchain; where the logistics information includes the information of the waybill Information of each logistics stage, such as the shipper’s user information and waybill identification information in the waybill generation stage, the carrier's user information in the waybill distribution stage, and the carrier’s means of transportation identification information, etc., the departure location and departure information in the departure stage Time information, etc., delivery location information, delivery time information, etc. in the delivery stage, resource transfer result information in the resource transfer stage, etc.
  • the logistics information includes the information of the waybill Information of each logistics stage, such as the shipper’s user information and waybill identification information in the waybill generation stage, the carrier's user information in the waybill distribution stage, and the carrier’s means of transportation identification information, etc., the departure location and departure information in the departure stage Time information, etc., delivery location information, delivery time information
  • Step S106 if yes, generate a second transaction request based on the transaction information; based on the cross-chain transmission channel of the second blockchain corresponding to the first blockchain and the resource management institution, to the second blockchain of the second blockchain
  • the node sends a second transaction request; so that the second blockchain node performs resource transfer processing based on the resources in the designated resource account issued to the logistics platform according to the second transaction request, so as to transfer the first amount of resources to the carrier, and Save the resource transfer result information of the resource transfer process in the second blockchain.
  • the cross-chain transmission channel is the communication link constructed according to the relevant protocol, and the relevant interface is defined at the same time, and the cross-chain transmission of data can be realized by calling the interface.
  • the first transaction request and the second transaction request may be the same or different.
  • the request failure information is sent to the logistics platform.
  • the second blockchain node when the second blockchain node receives the second transaction request, it determines the account information of the designated resource account of the logistics platform and the resource account information of the carrier; according to the determined account information, transfers the pre-collected resources to The designated resource account of the logistics platform, and transfer the first amount of resources from the designated resource account of the logistics platform to the resource account of the carrier; save the resource transfer result information in the second blockchain.
  • determining the account information of the designated resource account of the logistics platform can be the account information of the designated resource account of the logistics platform obtained from the second transaction request, and can also be the digital identity information of the logistics platform included in the second transaction request.
  • the associated resource account information is obtained, and the obtained resource account information is determined as the account information of the designated resource account of the logistics platform.
  • the pre-collected resources may be the resources obtained by the second blockchain node based on the service data of the logistics platform pre-pushed by the first blockchain node for resource collection and processing; wherein, the service data is based on at least one of which is in a transportation termination state and The shipper did not provide the data generated by the relevant information of the waybill for the resources required for transportation.
  • the first blockchain node when it receives the first transaction request sent by the logistics platform, if it is determined that the transaction data is valid based on the smart contract and the logistics information of the logistics platform stored in the first blockchain, it is based on the cross-chain
  • the transmission channel sends the second transaction to the second block chain node of the second block chain, so that the second block chain node performs resource transfer processing, and saves the resource transfer result information in the second block chain. Therefore, by storing the logistics information in the first blockchain and storing the resource transfer result information in the second blockchain, the authenticity and validity of each information is ensured, and the illegal operation of resources based on false waybills is avoided. Risks, and make the logistics business and resource transfer business traceable. Furthermore, the cross-chain transmission of data not only breaks the data islands and realizes the interconnection and intercommunication of data, but also helps to tap the potential value of data such as logistics information.
  • the logistics node sends the logistics information of each waybill at each logistics stage to the first blockchain node, so that the first blockchain node
  • the logistics information is stored in the first blockchain, and the transaction information is verified based on the stored logistics information.
  • step S102 before step S102, it also includes: step S100-2, receiving the logistics information of the waybill sent by the logistics platform; specifically, after the logistics platform generates the waybill based on the consignment request of the shipper and determines the carrier, Receive the logistics information sent by the shipper and/or the carrier at each logistics stage of the waybill, and send the received logistics information and the identification information of the waybill to the first blockchain node; the first blockchain node receives the information sent by the logistics platform Logistics information and identification information of the waybill.
  • step S100-4 the received logistics information and the waybill identification information of the waybill are associated and stored in the first blockchain.
  • the authenticity and validity of the logistics information is ensured, and it provides a basis for the first blockchain node to verify whether the transaction information meets the transaction conditions.
  • the first blockchain node verifies the transaction information based on the smart contract. Specifically, as shown in Fig.
  • step S104 includes the following steps S104-2 and S104-4; step S104-2, invoking the smart contract in the first block chain, based on the smart contract according to the storage in the first block chain
  • the logistics information of the logistics platform to determine whether the transaction information meets the first preset condition; where the first preset condition includes one or more of the following: query from the first blockchain according to the waybill identification information in the transaction information
  • the user information of the carrier in the associated logistics information and transaction information is valid, and the user information of the carrier in the transaction information includes the specified type of information; take the first preset condition including the above items as an example for illustration, the first block
  • the chain node calls the smart contract in the first blockchain.
  • the associated logistics information is queried from the first blockchain based on the waybill identification information in the transaction information. If the associated logistics information is not queried, the transaction information is determined If the transaction conditions are not met, the request failure information is sent to the logistics platform; if the associated logistics information is queried, it is determined whether the user information of the carrier included in the queried logistics information matches the user information of the carrier included in the transaction information, if If it does not match, it is determined that the transaction information does not meet the transaction conditions, and the request failure information is sent to the logistics platform; if it matches, it is determined whether the user information of the carrier in the transaction information includes the specified type of information, and if it does, it is determined that the transaction information meets the transaction Conditions; if not included, it is determined that the transaction information does not meet the transaction conditions, and the request failure information is sent to the logistics platform.
  • the designated type of information such as name, ID number, resource account information, mobile phone number, etc., can be set according to needs in actual applications.
  • the first preset condition is not limited to the above conditions.
  • it can also include the associated resource transfer success information that is not queried from the first blockchain according to the waybill identification information, and the number of resources to be transferred included in the transaction information. Whether it exceeds the preset number, etc., it can be set according to actual needs.
  • Step S104-4 if yes, it is determined that the transaction information meets the preset transaction conditions.
  • step S106 includes the following step S106-2:
  • Step S106-2 Generate a second transaction request based on the transaction information; based on the cross-chain transmission channel of the second blockchain corresponding to the first blockchain and the resource management institution, to the second blockchain node of the second blockchain Send a second transaction request; so that the second blockchain node performs resource transfer processing based on the resources in the designated resource account issued to the logistics platform according to the second transaction request, so as to transfer the first amount of resources to the carrier, and
  • the resource transfer result information of the resource transfer process is stored in the second blockchain.
  • the transaction information By verifying the transaction information, the validity of the transaction information is ensured and the subsequent resource transfer processing can proceed smoothly.
  • the transaction information is verified based on smart contracts, which improves the efficiency and accuracy of verification.
  • the logistics platform is sending the first transaction request.
  • the transaction information is signed based on the private key corresponding to its digital identity information to obtain the ciphertext data of the transaction information, and based on the ciphertext data of the transaction information and the digital identity information of the logistics platform, send it to the first blockchain
  • the node sends the first transaction request; among them, digital identity information such as DID (full English name: Decentralized Identifiers, full Chinese name: distributed identity).
  • step S102 includes the following steps S102-2: step S102-2, receiving the first transaction request sent by the logistics platform; wherein the first transaction request is based on the payment sent by the carrier of the waybill The request is sent; the waybill is generated by the logistics platform based on the shipper’s consignment request; the expense request is sent when the carrier completes the cargo transportation of the waybill and applies for the first quantity of resources corresponding to the cargo transportation; the transaction request includes transaction information The ciphertext data and the digital identity information of the logistics platform; corresponding to step S102-2, as shown in Figure 5, after step S102, it also includes: step S103, obtaining the public key corresponding to the digital identity information, and using the obtained public key to encrypt The text data is decrypted and the transaction information is obtained.
  • obtaining the public key corresponding to the digital identity information includes: querying the associated document (did doc) from the blockchain according to the digital identity information, and obtaining the public key from the queried document; or, according to the digital identity information to the designated security
  • the organization sends a public key acquisition request and receives the public key sent by the security organization.
  • the logistics platform Since the private key corresponding to the digital identity information is only held by the logistics platform, by sending the ciphertext data of the transaction information to the first blockchain node, when the first blockchain node performs the ciphertext data according to the obtained public key When the decryption process is successful, it can be determined that the first transaction request comes from the logistics platform and not forged by other users.
  • the second blockchain node when it obtains the resource transfer result information, it sends the resource transfer result information to the first blockchain node based on the cross-chain transmission channel. In order to send the resource transfer result information to the logistics platform through the first blockchain node. Specifically, as shown in FIG. 6, after step S106, it further includes: step S108, based on the cross-chain transmission channel receiving the resource transfer result information sent by the second blockchain node, and saving the resource transfer result information to the first blockchain In; Among them, the resource transfer result information includes waybill identification information and status information that characterizes whether the transfer is successful.
  • Step S110 Send the resource transfer result information to the logistics platform, so that the logistics platform sends the request result information of the disbursement request to the carrier according to the resource transfer result information.
  • the first blockchain node when it receives the first transaction request sent by the logistics platform, if it is determined that the transaction data is valid based on the smart contract and the logistics information of the logistics platform stored in the first blockchain, it is based on the cross-chain
  • the transmission channel sends the second transaction to the second block chain node of the second block chain, so that the second block chain node performs resource transfer processing, and saves the resource transfer result information in the second block chain. Therefore, by storing the logistics information in the first blockchain and storing the resource transfer result information in the second blockchain, the authenticity and validity of each information is ensured, and the illegal operation of resources based on false waybills is avoided. Risks, and make the logistics business and resource transfer business traceable. Furthermore, the cross-chain transmission of data not only breaks the data islands and realizes the interconnection and intercommunication of data, but also helps to tap the potential value of data such as logistics information.
  • the resource management agency acts as the second blockchain node of the second blockchain and performs processing such as resource transfer on the chain based on the received second transaction request.
  • the resource management institution as the second blockchain node of the second blockchain, can also perform processing such as resource transfer under the chain when receiving the second transaction request, and save the processing result information to In the second blockchain.
  • the resource management institution may not be a node in the second blockchain.
  • the application scenarios of the transaction processing method include: logistics platform, resource management institution, access The first blockchain node of the first blockchain, and the second blockchain node connected to the second blockchain.
  • the smart contract in the first block chain is called, and the first transaction is determined based on the smart contract according to the logistics information of the logistics platform stored in the first block chain Whether the transaction information included in the request meets the preset transaction conditions. If it is, a second transaction request is generated according to the transaction information, and the second transaction request is sent to the resource management institution.
  • the resource management agency performs resource transfer processing based on the resources in the designated resource account issued to the logistics platform to transfer the first amount of resources to the carrier, and the resource transfer result information of the resource transfer processing Send to the second blockchain node so that the second blockchain node saves the resource transfer result information in the second blockchain; or the resource transfer agency sends the resource transfer result information and transaction information to the second block Chain node, so that the second block chain node associates and saves the resource transfer result information and transaction information in the second block chain. And, the resource management agency sends the resource transfer result information to the first blockchain node; the first blockchain node sends the received resource transfer result information to the logistics platform, so that the logistics platform sends a payment request to the carrier Request result information.
  • the resource transfer agency acts as a transit for cross-chain transmission of data, which not only breaks the data islands and realizes the interconnection of data, but also helps to tap the potential value of data such as logistics information.
  • Fig. 8 is a schematic flow chart of another transaction processing method provided by an embodiment of this specification. The method in Fig. 8 can be executed by the first blockchain node in Fig. 7. As shown in Fig.
  • Step S202 receiving the first transaction request sent by the logistics platform; wherein the first transaction request is sent based on the payment request sent by the carrier of the waybill; the waybill is generated by the logistics platform based on the consignment request of the shipper; the payment request is the carrier
  • the transaction request includes transaction information
  • step S204 the smart contract in the first blockchain is called, based on the smart contract according to the first block
  • the logistics information of the logistics platform stored in the chain determines whether the transaction information meets the preset transaction conditions; in step S206, if yes, a second transaction request is sent to the resource management institution according to the transaction information, so that the resource management institution can follow the second transaction request , Perform resource transfer processing based on the resources issued to the designated resource account of the logistics platform to transfer the first amount of resources to the carrier, and save the resource transfer result information of the resource transfer processing in the second blockchain.
  • step S202 to step S204 is the same as the implementation process of step S102 to step S104, which can be referred to the foregoing related description, and the repetitive parts will not be repeated here.
  • the resource management institution After the resource management institution performs the resource transfer processing, it sends the resource transfer result to the second blockchain node, so that the second blockchain node saves the resource transfer result in the second blockchain; or, the resource management institution transfers the resource
  • the transfer result and transaction information are sent to the second blockchain node, so that the second blockchain node associates the resource transfer result and transaction information to the second blockchain.
  • the resource management institution sends the resource transfer result information to the first blockchain node.
  • it further includes: receiving the resource transfer result information sent by the resource management structure, and save the resource transfer result information in the first block In the chain, the resource transfer result information is sent to the logistics platform, so that the logistics platform sends the request result information of the disbursement request to the carrier according to the resource transfer result information.
  • step S206 may further include: if so, based on the cross-chain transmission channel of the second blockchain corresponding to the first blockchain and the resource management institution, to the second blockchain of the second blockchain.
  • the blockchain node sends the second transaction request; so that the second blockchain node sends the second transaction request to the resource management agency, so that the resource management structure is based on the resources issued to the designated resource account of the logistics platform Perform resource transfer processing to transfer the first amount of resources to the carrier, and send the resource transfer result information to the second blockchain node, so that the second blockchain node saves the resource transfer result information to In the second blockchain.
  • the logistics platform can also grant the resource management institution the right to view part of the logistics information in the first blockchain.
  • the resource management institution when it receives the second transaction request, it can also be based on The granted authority accesses the corresponding logistics information in the first blockchain, and performs resource transfer processing when the transaction information is verified according to the accessed logistics information.
  • the first blockchain node when it receives the first transaction request sent by the logistics platform, if it is determined based on the smart contract that the transaction data is valid according to the logistics information of the logistics platform stored in the first blockchain, then it will send a notification to the resource management
  • the organization sends a second transaction to enable the resource management organization to perform resource transfer processing and save the resource transfer result information in the second blockchain. Therefore, by storing the logistics information in the first blockchain and storing the resource transfer result information in the second blockchain, the authenticity and validity of each information is ensured, and the illegal operation of resources based on false waybills is avoided. Risks, and make the logistics business and resource transfer business traceable.
  • the resource management agency as a transit for cross-chain transmission of data not only breaks the data island and realizes the interconnection of data, but also helps to tap the potential value of data such as logistics information.
  • FIG. 9 is a schematic flow diagram of another transaction processing method provided by an embodiment of the specification.
  • the method includes: step S302, receiving a payment request sent by the carrier; wherein the payment request is completed by the carrier After the goods are transported, the waybill is sent when applying for the first quantity of resources corresponding to the transportation of the goods; the waybill is generated by the logistics platform based on the shipper’s consignment request; the payment request includes payment information; specifically, before step S302, it also includes: Receive the consignment request sent by the shipper; generate the consignment note according to the consignment request including the consignment information, and determine the carrier of the consignment note; the shipper and/or the carrier send the logistics information of the consignment note to the logistics platform at each logistics stage of the consignment note, and the logistics The platform sends the logistics information of the received way
  • Step S304 if it is determined that the first method is used for resource transfer processing, the transaction information is determined according to the payment information;
  • determining the transaction information based on the payment information can be the determination of the payment information as transaction information, and the transaction information can also be generated based on the payment information according to a preset method.
  • Step S306 According to the transaction information, send a first transaction request to the first blockchain node of the first blockchain, so that the first blockchain node determines that the transaction information meets the pre-determined transaction information based on the logistics information in the first blockchain.
  • send a second transaction request to the second blockchain node of the second blockchain based on the cross-chain transmission channel of the second blockchain corresponding to the first blockchain and the resource management institution;
  • the second blockchain node performs resource transfer processing based on the resources in the designated resource account issued to the logistics platform to transfer the first amount of resources to the carrier, and save the resource transfer result information to the second In the blockchain.
  • the logistics platform when it receives the disbursement request sent by the carrier, if it determines to use the first method for resource transfer processing, it sends the first transaction request to the first blockchain node of the first blockchain , So that when the first block chain node determines that the transaction information meets the preset transaction conditions based on the smart contract, the first block chain is based on the cross-chain transmission channel of the second block chain corresponding to the resource management institution to the second block chain.
  • the second block chain node of the block chain sends a second transaction request; so that the second block chain node performs resource transfer processing according to the second transaction request, and saves the resource transfer result information in the second block chain.
  • the logistics information in the first blockchain and storing the resource transfer result information in the second blockchain, the authenticity and validity of each information is ensured, and the illegal operation of resources based on false waybills is avoided. Risks, and make the logistics business and resource transfer business traceable. Furthermore, the cross-chain transmission of data not only breaks the data islands and realizes the interconnection and intercommunication of data, but also helps to tap the potential value of data such as logistics information.
  • the logistics platform when it receives the payment application, it can also send a query request to the first blockchain node according to the corresponding air waybill identification information, so that the first block
  • the chain node queries the associated resource transfer success information from the blockchain according to the identification information of the waybill, and returns the query result; if the query result indicates that the associated resource transfer success information is queried, it is determined that the resource has been transferred to the carrier and the carrier Sending request failure information; if the query result indicates that the associated resource transfer success information is not queried, it is determined that the resource has not been transferred to the carrier, and step S304 is performed.
  • the logistics platform can transfer resources to the carrier through the first method, and can also transfer resources to the carrier through the second method; among them, the first method is based on The resources collected by the second blockchain node are transferred; the second method is to transfer resources based on the existing resources in the resource account of the logistics platform.
  • the logistics platform sends a third transaction request to the resource transfer agency based on the transaction information, so that the resource transfer agency performs resource transfer based on the existing resources in the designated resource account of the logistics platform.
  • the logistics platform transfers resources through the first method, it first needs to determine whether it has the resource collection authority.
  • step S304 includes the following steps S304-2: step S304-2, determining whether the logistics platform currently has resource collection authority, if so, determining transaction information based on the spending information; specifically, based on preset The time information is obtained from the second blockchain node to obtain the resource collection authority information of the logistics platform; where the resource collection authority information is generated after the second blockchain node evaluates the credit of the logistics platform according to a preset evaluation model If the resource collection authority information indicates that it has the resource collection authority, it is determined that the logistics platform has the resource collection authority, and the first method is used for resource transfer processing.
  • the second blockchain node sends an information acquisition request to the first blockchain node at a preset time interval, and receives the logistics information sent by the first blockchain node based on the cross-chain transmission channel; and from the second zone Obtain the historical transaction information of the logistics platform in the block chain; according to the acquired logistics information and transaction information, the credit of the logistics platform is evaluated based on the preset evaluation model.
  • the evaluation result indicates that the credit of the logistics platform is good
  • Generate resource collection authority information that characterizes the resource collection authority
  • the evaluation processing result indicates that the credit of the logistics platform is not good, generate resource collection authority information that characterizes that it does not have the resource collection authority.
  • the logistics platform sends a permission query request to the second blockchain node according to preset time information, and receives resource collection permission information sent by the second blockchain node, and determines whether it currently has resource collection permission based on the resource collection permission information.
  • the preset time information for example, 1:00 AM every day.
  • the logistics platform obtains resource collection authority information from the resource management institution .
  • the logistics platform can determine the method of resource transfer, avoiding unnecessary troubles caused by the poor credit of the logistics platform.
  • step S306 includes: step S306-2, using the private key corresponding to the digital identity information of the logistics platform to encrypt the transaction information to obtain the ciphertext data of the transaction information; step S306-4 , Generate the first transaction request according to the ciphertext data, and send the first transaction request to the first blockchain node connected to the first blockchain, so that the first blockchain node is based on the logistics in the first blockchain
  • the first block chain is sent to the second block chain node of the second block chain.
  • the first blockchain node sends the resource transfer result information to the logistics platform when receiving the resource transfer result information sent by the second blockchain node; correspondingly As shown in Figure 12, after step S306, it also includes: step S308, receiving the resource transfer result information sent by the first blockchain node; step S310, sending the request result information of the disbursement request to the carrier according to the resource transfer result information .
  • the resource management organization is not the second blockchain node in the second blockchain
  • the data interaction between the above-mentioned logistics platform and the second blockchain node can be a logistics platform and a resource management organization The data exchange between them will not be described in detail in this manual.
  • the logistics platform when it receives the disbursement request sent by the carrier, if it determines to use the first method for resource transfer processing, it sends the first transaction request to the first blockchain node of the first blockchain , So that when the first block chain node determines that the transaction information meets the preset transaction conditions based on the smart contract, the first block chain is based on the cross-chain transmission channel of the second block chain corresponding to the resource management institution to the second block chain.
  • the second block chain node of the block chain sends a second transaction request; so that the second block chain node performs resource transfer processing according to the second transaction request, and saves the resource transfer result information in the second block chain.
  • the logistics information in the first blockchain and storing the resource transfer result information in the second blockchain, the authenticity and validity of each information is ensured, and the illegal operation of resources based on false waybills is avoided. Risks, and make the logistics business and resource transfer business traceable. Furthermore, the cross-chain transmission of data not only breaks the data islands and realizes the interconnection and intercommunication of data, but also helps to tap the potential value of data such as logistics information.
  • FIG. 13 is a schematic diagram of the module composition of a transaction processing device provided by an embodiment of the specification. The device is used to execute the transaction processing method described in FIG. 2 to FIG. 6. As shown in FIG.
  • the device includes: a receiving module 401 that receives The first transaction request sent by the logistics platform; wherein, the first transaction request is sent based on the payment request sent by the carrier of the waybill; the waybill is generated by the logistics platform based on the consignment request of the shipper; the payment The usage request is sent when the carrier applies for the first quantity of resources corresponding to the cargo transportation after completing the cargo transportation of the waybill; the transaction request includes transaction information; the determination module 402 calls the first area The smart contract in the block chain, based on the smart contract, determines whether the transaction information meets the preset transaction conditions according to the logistics information of the logistics platform stored in the first blockchain; the sending module 403, if determined The determination result of the module 402 is yes, then a second transaction request is generated according to the transaction information; based on the cross-chain transmission channel of the second block chain corresponding to the first block chain and the resource management institution, to the second block chain
  • the second block chain node of the block chain sends the second transaction request; so that the second block chain
  • the transaction processing device when receiving the first transaction request sent by the logistics platform, if the transaction data is determined to be valid based on the smart contract and the logistics information of the logistics platform stored in the first blockchain, it is based on the cross-chain transmission channel Send the second transaction to the second blockchain node of the second blockchain, so that the second blockchain node performs resource transfer processing, and saves the resource transfer result information in the second blockchain. Therefore, by storing the logistics information in the first blockchain and storing the resource transfer result information in the second blockchain, the authenticity and validity of each information is ensured, and the illegal operation of resources based on false waybills is avoided. Risks, and make the logistics business and resource transfer business traceable. Furthermore, the cross-chain transmission of data not only breaks the data islands and realizes the interconnection and intercommunication of data, but also helps to tap the potential value of data such as logistics information.
  • the transaction information includes: the waybill identification information of the waybill and the user information of the carrier; the determining module 402 is based on the smart contract according to the stored in the first blockchain.
  • the logistics information of the logistics platform determines whether the transaction information satisfies the first preset condition; wherein, the first preset condition includes one or more of the following: according to the identification information of the waybill, from the first blockchain
  • the associated logistics information is queried, the user information is valid, and the user information includes a specified type of information; if so, it is determined that the transaction information meets the preset transaction conditions.
  • the receiving module 401 before receiving the first transaction request sent by the logistics platform, also receives the logistics information of the waybill sent by the logistics platform; and compares the received logistics information with the The waybill identification information of the waybill is associated and stored in the first blockchain.
  • the first transaction request includes: ciphertext data of the transaction information, digital identity information of the logistics platform; wherein the ciphertext data is a private key pair corresponding to the digital identity information Data obtained by signature processing of the transaction information; the device further includes a decryption module; the decryption module obtains the public key corresponding to the digital identity information; uses the public key to decrypt the ciphertext data, Obtain the transaction information.
  • the receiving module 401 further receives the second blockchain node after the sending module 403 sends the second transaction request to the second blockchain node of the second blockchain The resource transfer result information sent; and save the resource transfer result information in the first blockchain; the sending module 403 sends the resource transfer result information to the logistics platform, so that The logistics platform sends the request result information of the disbursement request to the carrier according to the resource transfer result information.
  • the transaction processing device when receiving the first transaction request sent by the logistics platform, if the transaction data is determined to be valid based on the smart contract and the logistics information of the logistics platform stored in the first blockchain, it is based on the cross-chain transmission channel Send the second transaction to the second blockchain node of the second blockchain, so that the second blockchain node performs resource transfer processing, and saves the resource transfer result information in the second blockchain. Therefore, by storing the logistics information in the first blockchain and storing the resource transfer result information in the second blockchain, the authenticity and validity of each information is ensured, and the illegal operation of resources based on false waybills is avoided. Risks, and make the logistics business and resource transfer business traceable. Furthermore, the cross-chain transmission of data not only breaks the data islands and realizes the interconnection and intercommunication of data, but also helps to tap the potential value of data such as logistics information.
  • FIG. 14 is a schematic diagram of the module composition of another transaction processing device provided by an embodiment of the specification. The device is used to execute the transaction processing method described in FIG. 8. As shown in FIG. 14
  • the device includes: a receiving module 501, a receiving logistics platform The first transaction request sent; wherein, the first transaction request is sent based on an expense request sent by the carrier of the waybill; the waybill is generated by the logistics platform based on the consignment request of the shipper; the expense request After the carrier completes the cargo transportation of the waybill, it is sent when the first quantity of resources corresponding to the cargo transportation is applied; the transaction request includes transaction information; the determination module 502 calls the first blockchain According to the smart contract in the smart contract, it is determined whether the transaction information meets the preset transaction conditions according to the logistics information of the logistics platform stored in the first blockchain; the sending module 503, if the determination is If the module determines that the result is yes, then send a second transaction request to the resource management institution according to the transaction information; so that the resource management institution is based on the second transaction request based on the designated resource account issued to the logistics platform
  • the resource of the resource transfer process is performed to transfer the first amount of resources to the carrier, and the resource transfer result information of the
  • the transaction processing device when receiving the first transaction request sent by the logistics platform, if the transaction data is determined to be valid based on the smart contract and the logistics information of the logistics platform stored in the first blockchain, it will be sent to the resource management agency
  • the second transaction allows the resource management agency to perform resource transfer processing and save the resource transfer result information in the second blockchain. Therefore, by storing the logistics information in the first blockchain and storing the resource transfer result information in the second blockchain, the authenticity and validity of each information is ensured, and the illegal operation of resources based on false waybills is avoided. Risks, and make the logistics business and resource transfer business traceable.
  • the resource management agency as a transit for cross-chain transmission of data not only breaks the data island and realizes the interconnection of data, but also helps to tap the potential value of data such as logistics information.
  • the transaction information includes: the waybill identification information of the waybill and the user information of the carrier; the determining module 502, based on the smart contract, according to the stored in the first blockchain
  • the logistics information of the logistics platform determines whether the transaction information satisfies the first preset condition; wherein, the first preset condition includes one or more of the following: according to the identification information of the waybill, from the first blockchain
  • the associated logistics information is queried, the user information is valid, and the user information includes a specified type of information; if so, it is determined that the transaction information meets the preset transaction conditions.
  • the receiving module 501 before receiving the first transaction request sent by the logistics platform, also receives the logistics information of the waybill sent by the logistics platform; and compares the received logistics information with the The waybill identification information of the waybill is associated and stored in the first blockchain.
  • the first transaction request includes: ciphertext data of the transaction information, digital identity information of the logistics platform; wherein the ciphertext data is a private key pair corresponding to the digital identity information Data obtained by signature processing of the transaction information; the device further includes a decryption module; the decryption module obtains the public key corresponding to the digital identity information; uses the public key to decrypt the ciphertext data, Obtain the transaction information.
  • the receiving module 501 after the sending module 503 sends the second transaction request to the resource management institution, further receives the resource transfer result information sent by the resource management institution; and, The resource transfer result information is stored in the first blockchain; the sending module 503 sends the resource transfer result information to the logistics platform, so that the logistics platform sends the information to the logistics platform according to the resource transfer result information
  • the carrier sends request result information of the disbursement request.
  • the transaction processing device when receiving the first transaction request sent by the logistics platform, if the transaction data is determined to be valid based on the smart contract and the logistics information of the logistics platform stored in the first blockchain, it will be sent to the resource management agency
  • the second transaction allows the resource management agency to perform resource transfer processing and save the resource transfer result information in the second blockchain. Therefore, by storing the logistics information in the first blockchain and storing the resource transfer result information in the second blockchain, the authenticity and validity of each information is ensured, and the illegal operation of resources based on false waybills is avoided. Risks, and make the logistics business and resource transfer business traceable.
  • the resource management agency as a transit for cross-chain transmission of data not only breaks the data island and realizes the interconnection of data, but also helps to tap the potential value of data such as logistics information.
  • FIG. 15 is a schematic diagram of the module composition of another transaction processing device provided by an embodiment of the specification. The device is used to execute the transaction processing method described in FIG. 9 to FIG. 12. As shown in FIG.
  • the device includes: a receiving module 601, Receive a disbursement request sent by the carrier; wherein the disbursement request is sent when the carrier completes the cargo transportation of the waybill and applies for the first quantity of resources corresponding to the cargo transportation; the waybill is the
  • the logistics platform is generated based on the consignment request of the shipper; the disbursement request includes disbursement information; the determination module 602, if the first method is determined to be used for resource transfer processing, the transaction information is determined according to the disbursement information; the sending module 603 , According to the transaction information, send a first transaction request to the first blockchain node connected to the first blockchain, so that the first blockchain node is determined based on the logistics information in the first blockchain When the transaction information satisfies the preset transaction conditions, based on the cross-chain transmission channel of the second block chain corresponding to the first block chain and the resource management institution, to the second block of the second block chain The chain node sends a second transaction request; so that the second blockchain node
  • the transaction processing device upon receiving the disbursement request sent by the carrier, if it is determined to use the first method for resource transfer processing, it will send the first block chain node to the first block chain node.
  • Transaction request so that when the first blockchain node determines that the transaction information meets the preset transaction conditions based on the smart contract, based on the cross-chain transmission channel of the first blockchain and the second blockchain corresponding to the resource management institution, send The second block chain node of the second block chain sends a second transaction request; so that the second block chain node performs resource transfer processing according to the second transaction request, and saves the resource transfer result information in the second block chain .
  • the logistics information in the first blockchain and storing the resource transfer result information in the second blockchain, the authenticity and validity of each information is ensured, and the illegal operation of resources based on false waybills is avoided. Risks, and make the logistics business and resource transfer business traceable. Furthermore, the cross-chain transmission of data not only breaks the data islands and realizes the interconnection and intercommunication of data, but also helps to tap the potential value of data such as logistics information.
  • the determining module 602 determines whether the logistics platform currently has the resource collection authority; if so, determines to use the first method for resource transfer processing.
  • the determining module 602 obtains resource collection authority information of the logistics platform from the second blockchain node according to preset time information; wherein, the resource collection authority information is the second The information generated after the blockchain node evaluates the credit of the logistics platform according to a preset evaluation model; and,
  • resource collection authority information indicates that it has the resource collection authority, it is determined that the logistics platform has the resource collection authority.
  • the sending module 603 uses the private key corresponding to the digital identity information of the logistics platform to encrypt the transaction information to obtain the ciphertext data of the transaction information; according to the ciphertext data A first transaction request is generated, and the first transaction request is sent to a first blockchain node that accesses the first blockchain.
  • the receiving module 601 receives the resource sent by the first blockchain node after the sending module 603 sends the first transaction request to the first blockchain node connected to the first blockchain Transfer result information; and,
  • the request result information of the disbursement request is sent to the carrier.
  • the device further includes: a generation module and an acquisition module; the receiving module 601, before receiving the payment request sent by the carrier, also receives the consignment request sent by the shipper; wherein, The consignment request includes consignment information; the generation module generates the consignment note according to the consignment information, and determines the carrier of the consignment note; the acquisition module obtains the logistics information of the consignment note, and sends the information to the first A blockchain node sends the logistics information, so that the first blockchain node saves the logistics information in the first blockchain.
  • the transaction processing device upon receiving the disbursement request sent by the carrier, if it is determined to use the first method for resource transfer processing, it will send the first block chain node to the first block chain node.
  • Transaction request so that when the first blockchain node determines that the transaction information meets the preset transaction conditions based on the smart contract, based on the cross-chain transmission channel of the first blockchain and the second blockchain corresponding to the resource management institution, send The second block chain node of the second block chain sends a second transaction request; so that the second block chain node performs resource transfer processing according to the second transaction request, and saves the resource transfer result information in the second block chain .
  • the logistics information in the first blockchain and storing the resource transfer result information in the second blockchain, the authenticity and validity of each information is ensured, and the illegal operation of resources based on false waybills is avoided. Risks, and make the logistics business and resource transfer business traceable. Furthermore, the cross-chain transmission of data not only breaks the data islands and realizes the interconnection of data, but also helps to tap the potential value of data such as logistics information.
  • FIG. 16 is a schematic diagram of the composition of a transaction processing system provided by an embodiment of this specification.
  • the system includes: a logistics platform 701, a first blockchain 702, and a second blockchain 703 corresponding to a resource management institution
  • the logistics platform 701 receives the expense request sent by the carrier; wherein, the expense request is sent when the carrier completes the cargo transportation of the waybill and applies for the first quantity of resources corresponding to the cargo transportation
  • the waybill is generated by the logistics platform based on the consignment request of the shipper; if it is determined to use the first method for resource transfer processing, the transaction information is determined according to the payment information included in the payment request; according to the transaction information , Send a first transaction request to the first blockchain node of the first blockchain 702; the first blockchain node of the first blockchain 702 receives the first transaction sent by the logistics platform 701 Request; call the smart contract in
  • the first blockchain node when the first blockchain node receives the first transaction request sent by the logistics platform, if the transaction data is determined to be valid based on the smart contract based on the logistics information of the logistics platform stored in the first blockchain, Then send a second transaction to the second blockchain node of the second blockchain based on the cross-chain transmission channel, so that the second blockchain node performs resource transfer processing, and saves the resource transfer result information to the second blockchain middle. Therefore, by storing the logistics information in the first blockchain and storing the resource transfer result information in the second blockchain, the authenticity and validity of each information is ensured, and the illegal operation of resources based on false waybills is avoided. Risks, and make the logistics business and resource transfer business traceable. Furthermore, the cross-chain transmission of data not only breaks the data islands and realizes the interconnection and intercommunication of data, but also helps to tap the potential value of data such as logistics information.
  • FIG. 17 is a schematic diagram of the composition of a transaction processing system provided by an embodiment of the specification.
  • the system includes: a logistics platform 801, a first blockchain 802, a resource management agency 803, and a second blockchain 804
  • the logistics platform 801 receiving the expense request sent by the carrier; wherein, the expense request is sent when the carrier completes the cargo transportation of the waybill and applies for the first quantity of resources corresponding to the cargo transportation
  • the waybill is generated by the logistics platform based on the consignment request of the shipper; if it is determined that the first method is used for resource transfer processing, the transaction information is determined according to the payment information included in the payment request; according to the transaction information , Send a first transaction request to the first blockchain node of the first blockchain 802; the first blockchain node of the first blockchain 802 receives the first transaction sent by the logistics platform 801 Request; call the smart contract in the first block
  • the first blockchain node when the first blockchain node receives the first transaction request sent by the logistics platform, if the transaction data is determined to be valid based on the smart contract based on the logistics information of the logistics platform stored in the first blockchain, Then, the second transaction is sent to the resource management agency, so that the resource management agency performs resource transfer processing, and saves the resource transfer result information in the second blockchain. Therefore, by storing the logistics information in the first blockchain and storing the resource transfer result information in the second blockchain, the authenticity and validity of each information is ensured, and the illegal operation of resources based on false waybills is avoided. Risks, and make the logistics business and resource transfer business traceable. Moreover, the resource management agency as a transit for cross-chain transmission of data not only breaks the data island and realizes the interconnection of data, but also helps to tap the potential value of data such as logistics information.
  • the embodiment of this specification also provides a transaction processing device, which is used to execute the transaction processing method described above.
  • the transaction processing equipment may have relatively large differences due to different configurations or performances, and may include one or more processors 901 and a memory 902.
  • the memory 902 may store one or more storage application programs or data. Among them, the memory 902 may be short-term storage or persistent storage.
  • the application program stored in the memory 902 may include one or more modules (not shown in the figure), and each module may include a series of computer-executable instructions in the transaction processing device.
  • the processor 901 may be configured to communicate with the memory 902, and execute a series of computer-executable instructions in the memory 902 on the transaction processing device.
  • the transaction processing device may also include one or more power supplies 903, one or more wired or wireless network interfaces 904, one or more input and output interfaces 905, one or more keyboards 906, and the like.
  • the transaction processing device includes a memory and one or more programs, wherein one or more programs are stored in the memory, and one or more programs may include one or more modules, and each Each module may include a series of computer-executable instructions for the transaction processing equipment, and is configured to be executed by one or more processors.
  • the one or more programs include computer-executable instructions for performing the following: The first transaction request; wherein the first transaction request is sent based on the payment request sent by the carrier of the waybill; the waybill is generated by the logistics platform based on the consignment request of the shipper; the payment request is After the carrier completes the cargo transportation of the waybill, it is sent when applying for the first quantity of resources corresponding to the cargo transportation; the transaction request includes transaction information; the smart contract in the first blockchain is invoked based on The smart contract determines whether the transaction information meets the preset transaction conditions according to the logistics information of the logistics platform stored in the first blockchain; if so, generates a second transaction request according to the transaction information; Send the second transaction request to the second blockchain node of the second blockchain based on the cross-chain transmission channel of the second blockchain corresponding to the first blockchain and the resource management institution; The second blockchain node performs resource transfer processing based on the resources issued to the designated resource account of the logistics platform according to the second transaction request, so as to transfer the first amount of resources to
  • the transaction processing device when receiving the first transaction request sent by the logistics platform, if the transaction data is determined to be valid based on the smart contract and the logistics information of the logistics platform stored in the first blockchain, it is based on the cross-chain transmission channel Send the second transaction to the second blockchain node of the second blockchain, so that the second blockchain node performs resource transfer processing, and saves the resource transfer result information in the second blockchain. Therefore, by storing the logistics information in the first blockchain and storing the resource transfer result information in the second blockchain, the authenticity and validity of each information is ensured, and the illegal operation of resources based on false waybills is avoided. Risks, and make the logistics business and resource transfer business traceable. Furthermore, the cross-chain transmission of data not only breaks the data islands and realizes the interconnection and intercommunication of data, but also helps to tap the potential value of data such as logistics information.
  • the transaction information includes: the waybill identification information of the waybill and the user information of the carrier; the smart contract is based on the first blockchain
  • Determining whether the transaction information meets preset transaction conditions in the logistics information stored in the logistics platform includes: based on the smart contract according to the logistics information stored in the logistics platform in the first blockchain, Determine whether the transaction information satisfies the first preset condition; wherein, the first preset condition includes one or more of the following: according to the identification information of the waybill, the associated logistics is queried from the first blockchain
  • the user information is valid, and the user information includes a specified type of information; if so, it is determined that the transaction information meets the preset transaction conditions.
  • the method further includes: receiving the logistics information of the waybill sent by the logistics platform; and transferring the received logistics The information is associated with the waybill identification information of the waybill and stored in the first blockchain.
  • the first transaction request includes: ciphertext data of the transaction information, digital identity information of the logistics platform; wherein, the ciphertext data uses the The data obtained by signing the transaction information with the private key corresponding to the digital identity information; determining the transaction based on the smart contract based on the logistics information of the logistics platform stored in the first blockchain Before whether the information meets the preset transaction conditions, the method further includes: obtaining the public key corresponding to the digital identity information; and using the public key to decrypt the ciphertext data to obtain the transaction information.
  • the method further includes: receiving the second blockchain The resource transfer result information sent by the node; save the resource transfer result information in the first blockchain; and send the resource transfer result information to the logistics platform so that the logistics platform can The resource transfer result information sends the request result information of the disbursement request to the carrier.
  • the method further includes: if it is determined that the transaction information does not meet the preset transaction conditions, sending request failure information to the logistics platform.
  • the transaction processing device when receiving the first transaction request sent by the logistics platform, if the transaction data is determined to be valid based on the smart contract and the logistics information of the logistics platform stored in the first blockchain, it is based on the cross-chain transmission channel Send the second transaction to the second blockchain node of the second blockchain, so that the second blockchain node performs resource transfer processing, and saves the resource transfer result information in the second blockchain. Therefore, by storing the logistics information in the first blockchain and storing the resource transfer result information in the second blockchain, the authenticity and validity of each information is ensured, and the illegal operation of resources based on false waybills is avoided. Risks, and make the logistics business and resource transfer business traceable. Furthermore, the cross-chain transmission of data not only breaks the data islands and realizes the interconnection and intercommunication of data, but also helps to tap the potential value of data such as logistics information.
  • the transaction processing device includes a memory and one or more programs, wherein one or more programs are stored in the memory, and the one or more programs may include one or more modules, and Each module may include a series of computer-executable instructions to the transaction processing equipment, and is configured to be executed by one or more processors.
  • the one or more programs include computer-executable instructions for performing the following: The first transaction request; wherein the first transaction request is sent based on the payment request sent by the carrier of the waybill; the waybill is generated by the logistics platform based on the consignment request of the shipper; the payment request is After the carrier completes the cargo transportation of the waybill, it is sent when applying for the first quantity of resources corresponding to the cargo transportation; the transaction request includes transaction information; the smart contract in the first blockchain is invoked, Based on the smart contract, determine whether the transaction information meets the preset transaction conditions according to the logistics information of the logistics platform stored in the first blockchain; if so, send it to the resource management agency according to the transaction information The second transaction request, so that the resource management agency performs resource transfer processing based on the resources issued to the designated resource account of the logistics platform according to the second transaction request, so as to transfer the first transaction to the carrier. And save the resource transfer result information of the resource transfer processing in the second blockchain.
  • the transaction information includes: the waybill identification information of the waybill and the user information of the carrier; the smart contract is based on the first blockchain
  • Determining whether the transaction information meets preset transaction conditions in the logistics information stored in the logistics platform includes: based on the smart contract according to the logistics information stored in the logistics platform in the first blockchain, Determine whether the transaction information satisfies the first preset condition; wherein, the first preset condition includes one or more of the following: according to the identification information of the waybill, the associated logistics is queried from the first blockchain
  • the user information is valid, and the user information includes a specified type of information; if so, it is determined that the transaction information meets the preset transaction conditions.
  • the transaction processing equipment when receiving the first transaction request sent by the logistics platform, if the transaction data is determined to be valid based on the smart contract according to the logistics information of the logistics platform stored in the first blockchain, it will send it to the resource management agency
  • the second transaction allows the resource management agency to perform resource transfer processing and save the resource transfer result information in the second blockchain. Therefore, by storing the logistics information in the first blockchain and storing the resource transfer result information in the second blockchain, the authenticity and validity of each information is ensured, and the illegal operation of resources based on false waybills is avoided. Risks, and make the logistics business and resource transfer business traceable.
  • the resource management agency as a transit for cross-chain transmission of data not only breaks the data island and realizes the interconnection of data, but also helps to tap the potential value of data such as logistics information.
  • the transaction processing device includes a memory and one or more programs, wherein one or more programs are stored in the memory, and the one or more programs may include one or more modules, and Each module may include a series of computer-executable instructions to the transaction processing equipment, and is configured to be executed by one or more processors.
  • the one or more programs include computer-executable instructions for performing the following: The payment request; wherein, the payment request is sent when the carrier applies for the first quantity of resources corresponding to the cargo transportation after completing the cargo transportation of the waybill; the waybill is sent by the logistics platform based on the consignment Generated by the consignment request of the party; the disbursement request includes disbursement information; if it is determined that the first method is used for resource transfer processing, the transaction information is determined according to the disbursement information; according to the transaction information, the first block The first block chain node of the chain sends a first transaction request, so that when the first block chain node determines that the transaction information satisfies the preset transaction conditions based on the logistics information in the first block chain, The first block chain and the cross-chain transmission channel of the second block chain corresponding to the resource management institution send a second transaction request to the second block chain node of the second block chain; so that the second block chain According to the second transaction request, the blockchain node performs resource
  • the transaction processing device when receiving the payment request sent by the carrier, if it is determined to use the first method for resource transfer processing, it will send the first block chain node to the first block chain.
  • Transaction request so that when the first blockchain node determines that the transaction information meets the preset transaction conditions based on the smart contract, based on the cross-chain transmission channel of the first blockchain and the second blockchain corresponding to the resource management institution, send The second block chain node of the second block chain sends a second transaction request; so that the second block chain node performs resource transfer processing according to the second transaction request, and saves the resource transfer result information in the second block chain .
  • the logistics information in the first blockchain and storing the resource transfer result information in the second blockchain, the authenticity and validity of each information is ensured, and the illegal operation of resources based on false waybills is avoided. Risks, and make the logistics business and resource transfer business traceable. Furthermore, the cross-chain transmission of data not only breaks the data islands and realizes the interconnection and intercommunication of data, but also helps to tap the potential value of data such as logistics information.
  • the determining to use the first method for resource transfer processing includes: determining whether the logistics platform currently has resource collection authority; if so, determining to use the first method for resource transfer deal with.
  • the determining whether the logistics platform currently has resource collection authority includes: obtaining the logistics platform from the second blockchain node according to preset time information Resource collection authority information; wherein the resource collection authority information is information generated after the second blockchain node evaluates the credit of the logistics platform according to a preset evaluation model; if the resource collection If the authority information indicates that it has the authority to collect resources, it is determined that the logistics platform has the authority to collect resources.
  • the sending a first transaction request to a first blockchain node connected to the first blockchain according to the transaction information includes: using the logistics platform The private key corresponding to the digital identity information encrypts the transaction information to obtain the cipher text data of the transaction information; generates a first transaction request according to the cipher text data, and sends the data to the first blockchain The first blockchain node sends the first transaction request.
  • the method further includes: receiving the first blockchain node to send The resource transfer result information; according to the resource transfer result information, the request result information of the disbursement request is sent to the carrier.
  • the method further includes: receiving the consignment request sent by the shipper; wherein the consignment request includes consignment information; Generate the waybill according to the consignment information, and determine the carrier of the waybill; obtain the logistics information of the waybill, and send the logistics information to the first blockchain node so that the first The blockchain node saves the logistics information in the first blockchain.
  • the transaction processing device when receiving the payment request sent by the carrier, if it is determined to use the first method for resource transfer processing, it will send the first block chain node to the first block chain.
  • Transaction request so that when the first blockchain node determines that the transaction information meets the preset transaction conditions based on the smart contract, based on the cross-chain transmission channel of the first blockchain and the second blockchain corresponding to the resource management institution, send The second block chain node of the second block chain sends a second transaction request; so that the second block chain node performs resource transfer processing according to the second transaction request, and saves the resource transfer result information in the second block chain .
  • the logistics information in the first blockchain and storing the resource transfer result information in the second blockchain, the authenticity and validity of each information is ensured, and the illegal operation of resources based on false waybills is avoided. Risks, and make the logistics business and resource transfer business traceable. Furthermore, the cross-chain transmission of data not only breaks the data islands and realizes the interconnection and intercommunication of data, but also helps to tap the potential value of data such as logistics information.
  • the embodiment of this specification also provides a storage medium for storing computer-executable instructions.
  • the storage medium may be a U Disk, optical disk, hard disk, etc.
  • the following process can be realized: receiving the first transaction request sent by the logistics platform; wherein, the first transaction request is based on the transportation of the waybill
  • the payment request sent by the party; the waybill is generated by the logistics platform based on the consignment request of the shipper; the payment request is the application for the cargo transportation after the carrier completes the cargo transportation of the waybill
  • the transaction request includes transaction information; the smart contract in the first blockchain is invoked, based on the smart contract according to the stored in the first blockchain
  • the logistics information of the logistics platform determines whether the transaction information meets the preset transaction conditions; if so, a second transaction request is generated according to the transaction information; based
  • the computer-executable instructions stored in the storage medium receive the first transaction request sent by the logistics platform when executed by the processor, and if the transaction is determined based on the smart contract based on the logistics information of the logistics platform stored in the first blockchain If the data is valid, the second transaction is sent to the second blockchain node of the second blockchain based on the cross-chain transmission channel, so that the second blockchain node performs resource transfer processing, and saves the resource transfer result information to the second blockchain.
  • the blockchain Therefore, by storing the logistics information in the first blockchain and storing the resource transfer result information in the second blockchain, the authenticity and validity of each information is ensured, and the illegal operation of resources based on false waybills is avoided. Risks, and make the logistics business and resource transfer business traceable. Furthermore, the cross-chain transmission of data not only breaks the data islands and realizes the interconnection and intercommunication of data, but also helps to tap the potential value of data such as logistics information.
  • the transaction information includes: the waybill identification information of the waybill and the user information of the carrier;
  • the logistics information of the logistics platform stored in the first block chain, and determining whether the transaction information meets preset transaction conditions includes: based on the smart contract and according to all stored in the first block chain According to the logistics information of the logistics platform, it is determined whether the transaction information satisfies the first preset condition; wherein, the first preset condition includes one or more of the following: according to the identification information of the waybill, the first block
  • the associated logistics information is queried in the chain, the user information is valid, and the user information includes a specified type of information; if so, it is determined that the transaction information meets the preset transaction conditions.
  • the method further includes: receiving logistics information of the waybill sent by the logistics platform; The received logistics information and the waybill identification information of the waybill are associated and stored in the first blockchain.
  • the first transaction request includes: ciphertext data of the transaction information, and digital identity information of the logistics platform; wherein, the The ciphertext data is the data obtained by signing the transaction information with the private key corresponding to the digital identity information; the smart contract is based on the logistic platform stored in the first blockchain.
  • Logistics information before determining whether the transaction information meets the preset transaction conditions, further includes: obtaining the public key corresponding to the digital identity information; using the public key to decrypt the ciphertext data to obtain the transaction information.
  • the method further includes: receiving; The resource transfer result information sent by the second blockchain node; save the resource transfer result information in the first blockchain; and send the resource transfer result information to the logistics platform, So that the logistics platform sends the request result information of the disbursement request to the carrier according to the resource transfer result information.
  • the method further includes: if it is determined that the transaction information does not meet the preset transaction conditions, sending a request to the logistics platform Failure information.
  • the computer-executable instructions stored in the storage medium receive the first transaction request sent by the logistics platform when executed by the processor, and if the transaction is determined based on the smart contract based on the logistics information of the logistics platform stored in the first blockchain If the data is valid, the second transaction is sent to the second blockchain node of the second blockchain based on the cross-chain transmission channel, so that the second blockchain node performs resource transfer processing, and saves the resource transfer result information to the second blockchain.
  • the blockchain Therefore, by storing the logistics information in the first blockchain and storing the resource transfer result information in the second blockchain, the authenticity and validity of each information is ensured, and the illegal operation of resources based on false waybills is avoided. Risks, and make the logistics business and resource transfer business traceable. Furthermore, the cross-chain transmission of data not only breaks the data islands and realizes the interconnection and intercommunication of data, but also helps to tap the potential value of data such as logistics information.
  • the storage medium may be a U disk, an optical disk, a hard disk, etc.
  • the computer executable instructions stored in the storage medium can realize the following process when being executed by the processor: receiving the first transaction sent by the logistics platform Request; wherein, the first transaction request is sent based on a payment request sent by the carrier of the waybill; the waybill is generated by the logistics platform based on the consignment request of the shipper; the payment request is the carrier After the cargo transportation of the waybill is completed, it is sent when the first quantity of resources corresponding to the cargo transportation is applied; the transaction request includes transaction information; the smart contract in the first blockchain is invoked, based on the smart The contract determines whether the transaction information meets the preset transaction conditions according to the logistics information of the logistics platform stored in the first blockchain; if so, it sends a second transaction request to the resource management agency based on the transaction information , So that the resource management agency performs resource transfer processing based on the resources issued to the designated resource account of the logistics platform according to the second transaction request
  • the transaction information includes: the waybill identification information of the waybill and the user information of the carrier;
  • the logistics information of the logistics platform stored in the first block chain, and determining whether the transaction information meets preset transaction conditions includes: based on the smart contract and according to all stored in the first block chain According to the logistics information of the logistics platform, it is determined whether the transaction information satisfies the first preset condition; wherein, the first preset condition includes one or more of the following: according to the identification information of the waybill, the first block
  • the associated logistics information is queried in the chain, the user information is valid, and the user information includes a specified type of information; if so, it is determined that the transaction information meets the preset transaction conditions.
  • the computer-executable instructions stored in the storage medium provided by the embodiments of this specification receive the first transaction request sent by the logistics platform when executed by the processor, and if the transaction is determined based on the smart contract based on the logistics information of the logistics platform stored in the first blockchain If the data is valid, a second transaction is sent to the resource management agency to enable the resource management agency to perform resource transfer processing and save the resource transfer result information in the second blockchain. Therefore, by storing the logistics information in the first blockchain and storing the resource transfer result information in the second blockchain, the authenticity and validity of each information is ensured, and the illegal operation of resources based on false waybills is avoided. Risks, and make the logistics business and resource transfer business traceable. Moreover, the resource management agency as a transit for cross-chain transmission of data not only breaks the data island and realizes the interconnection of data, but also helps to tap the potential value of data such as logistics information.
  • the storage medium may be a USB flash drive, an optical disk, a hard disk, etc.
  • the computer executable instructions stored in the storage medium can realize the following process when being executed by the processor: receiving an expense request sent by the carrier ;
  • the payment request is sent when the carrier completes the cargo transportation of the waybill and applies for the first quantity of resources corresponding to the cargo transportation;
  • the waybill is the logistics platform based on the shipper’s consignment request Generated;
  • the spending request includes spending information; if it is determined that the first method is used for resource transfer processing, the transaction information is determined according to the spending information; according to the transaction information, the first block chain first
  • the blockchain node sends a first transaction request, so that when the first blockchain node determines that the transaction information satisfies the preset transaction conditions based on the logistics information in the first blockchain, based on the first zone
  • the block chain and the cross-chain transmission channel of the second block chain corresponding to the resource management institution send a second transaction request to the second block chain no
  • a block chain node sends a first transaction request, so that when the first block chain node determines that the transaction information meets the preset transaction conditions based on the smart contract, it is based on the second block corresponding to the first block chain and the resource management agency
  • the cross-chain transmission channel of the chain sends a second transaction request to the second block chain node of the second block chain; so that the second block chain node performs resource transfer processing according to the second transaction request, and sends the resource transfer result information Save to the second blockchain.
  • the logistics information in the first blockchain and storing the resource transfer result information in the second blockchain, the authenticity and validity of each information is ensured, and the illegal operation of resources based on false waybills is avoided. Risks, and make the logistics business and resource transfer business traceable. Furthermore, the cross-chain transmission of data not only breaks the data islands and realizes the interconnection and intercommunication of data, but also helps to tap the potential value of data such as logistics information.
  • the determining to use the first method for resource transfer processing includes: determining whether the logistics platform currently has resource collection authority; if so, determining Use the first method for resource transfer processing.
  • the determining whether the logistics platform currently has resource collection authority includes: according to preset time information, from the second block The chain node obtains the resource collection authority information of the logistics platform; wherein the resource collection authority information is generated after the second blockchain node evaluates the credit of the logistics platform according to a preset evaluation model Information; if the resource collection authority information indicates that it has resource collection authority, it is determined that the logistics platform has resource collection authority.
  • the sending a first transaction request to a first blockchain node connected to the first blockchain according to the transaction information includes : Use the private key corresponding to the digital identity information of the logistics platform to encrypt the transaction information to obtain the ciphertext data of the transaction information; generate a first transaction request according to the ciphertext data, and send the The first blockchain node of the first blockchain sends the first transaction request.
  • the method further includes: receiving the The resource transfer result information sent by the first blockchain node; according to the resource transfer result information, the request result information of the disbursement request is sent to the carrier.
  • the method further includes: receiving the consignment request sent by the shipper;
  • the consignment request includes consignment information; the consignment note is generated according to the consignment information, and the carrier of the consignment note is determined; the logistics information of the consignment note is acquired, and the logistics information is sent to the first blockchain node , So that the first blockchain node saves the logistics information in the first blockchain.
  • a block chain node sends a first transaction request, so that when the first block chain node determines that the transaction information meets the preset transaction conditions based on the smart contract, it is based on the second block corresponding to the first block chain and the resource management agency
  • the cross-chain transmission channel of the chain sends a second transaction request to the second block chain node of the second block chain; so that the second block chain node performs resource transfer processing according to the second transaction request, and sends the resource transfer result information Save to the second blockchain.
  • the logistics information in the first blockchain and storing the resource transfer result information in the second blockchain, the authenticity and validity of each information is ensured, and the illegal operation of resources based on false waybills is avoided. Risks, and make the logistics business and resource transfer business traceable. Furthermore, the cross-chain transmission of data not only breaks the data islands and realizes the interconnection and intercommunication of data, but also helps to tap the potential value of data such as logistics information.
  • a Programmable Logic Device (such as a Field Programmable Gate Array (FPGA)) is such an integrated circuit whose logic function is determined by the user's programming of the device.
  • HDL Hardware Description Language
  • the controller can be implemented in any suitable manner.
  • the controller can take the form of, for example, a microprocessor or a processor and a computer-readable medium storing computer-readable program codes (such as software or firmware) executable by the (micro)processor. , Logic gates, switches, application specific integrated circuits (ASICs), programmable logic controllers and embedded microcontrollers.
  • controllers include but are not limited to the following microcontrollers: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20 and Silicon Labs C8051F320, the memory controller can also be implemented as a part of the memory control logic.
  • controllers in addition to implementing the controller in a purely computer-readable program code manner, it is completely possible to program the method steps to make the controller use logic gates, switches, application specific integrated circuits, programmable logic controllers, and embedded logic.
  • the same function can be realized in the form of a microcontroller or the like. Therefore, such a controller can be regarded as a hardware component, and the devices included in it for realizing various functions can also be regarded as a structure within the hardware component. Or even, the device for realizing various functions can be regarded as both a software module for realizing the method and a structure within a hardware component.
  • a typical implementation device is a computer.
  • the computer may be, for example, a personal computer, a laptop computer, a cell phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or Any combination of these devices.
  • These computer program instructions can also be stored in a computer-readable memory that can direct a computer or other programmable data processing equipment to work in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture including the instruction device.
  • the device implements the functions specified in one process or multiple processes in the flowchart and/or one block or multiple blocks in the block diagram.
  • These computer program instructions can also be loaded on a computer or other programmable data processing equipment, so that a series of operation steps are executed on the computer or other programmable equipment to produce computer-implemented processing, so as to execute on the computer or other programmable equipment.
  • the instructions provide steps for implementing functions specified in a flow or multiple flows in the flowchart and/or a block or multiple blocks in the block diagram.
  • the computing device includes one or more processors (CPU), input/output interfaces, network interfaces, and memory.
  • processors CPU
  • input/output interfaces network interfaces
  • memory volatile and non-volatile memory
  • the memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and/or non-volatile memory, such as read-only memory (ROM) or flash memory (flash RAM).
  • RAM random access memory
  • ROM read-only memory
  • flash RAM flash memory
  • Computer-readable media includes permanent and non-permanent, removable and non-removable media, and information storage can be realized by any method or technology.
  • Information can be computer-readable instructions, data structures, program modules, or other data.
  • Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, CD-ROM, digital versatile disc (DVD) or other optical storage, Magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media can be used to store information that can be accessed by computing devices. According to the definition in this article, computer-readable media does not include transitory media, such as modulated data signals and carrier waves.
  • program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types.
  • the embodiments of this specification can also be practiced in distributed computing environments. In these distributed computing environments, tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules can be located in local and remote computer storage media including storage devices.

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Theoretical Computer Science (AREA)
  • Accounting & Taxation (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Strategic Management (AREA)
  • General Business, Economics & Management (AREA)
  • Finance (AREA)
  • Economics (AREA)
  • Computer Security & Cryptography (AREA)
  • Marketing (AREA)
  • General Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Development Economics (AREA)
  • General Health & Medical Sciences (AREA)
  • Technology Law (AREA)
  • Computer Hardware Design (AREA)
  • Software Systems (AREA)
  • Health & Medical Sciences (AREA)
  • Data Mining & Analysis (AREA)
  • Computing Systems (AREA)
  • Bioethics (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Human Resources & Organizations (AREA)
  • Operations Research (AREA)
  • Quality & Reliability (AREA)
  • Tourism & Hospitality (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

一种交易处理方法、装置、设备及系统,其中方法包括:第一区块链的第一区块链节点接收物流平台发送的第一交易请求,若基于智能合约根据第一区块链中保存的物流平台的物流信息,确定第一交易请求中的交易信息符合预设的交易条件,则根据交易信息生成第二交易请求,基于第一区块链与资源管理机构对应的第二区块链的跨链传输通道,向第二区块链的第二区块链节点发送第二交易请求;以使第二区块链节点根据第二交易请求,基于发放至物流平台的指定资源账户中的资源进行资源转移处理,以向承运方转移第一数量的资源,并将资源转移处理的资源转移结果信息保存至第二区块链中。

Description

交易处理方法、装置、设备及系统 技术领域
本文件涉及数据处理技术领域,尤其涉及一种交易处理方法、装置、设备及系统。
背景技术
随着经济和电子商务的快速发展,物流业也随之蓬勃发展。当一笔物流业务完成时,银行会基于收到的支付请求向相应的承运方支付劳务费用。然而,由于银行无法校验物流业务的真实性,因此存在虚假物流业务、非法运作资金的风险。
发明内容
本说明书实施例提供了一种交易处理方法,应用于第一区块链的第一区块链节点。该方法包括接收物流平台发送的第一交易请求。其中,所述第一交易请求基于运单的承运方发送的支用请求所发送。所述运单为所述物流平台基于托运方的托运请求所生成。所述支用请求为所述承运方完成所述运单的货物运输之后,申请所述货物运输对应的第一数量的资源时所发送;所述交易请求包括交易信息。调用所述第一区块链中的智能合约。基于所述智能合约根据所述第一区块链中保存的所述物流平台的物流信息,确定所述交易信息是否符合预设的交易条件。若是,则根据所述交易信息生成第二交易请求。基于所述第一区块链与资源管理机构对应的第二区块链的跨链传输通道,向所述第二区块链的第二区块链节点发送所述第二交易请求。以使所述第二区块链节点根据所述第二交易请求,基于发放至所述物流平台的指定资源账户中的资源进行资源转移处理。以向所述承运方转移所述第一数量的资源。并将所述资源转移处理的资源转移结果信息保存至所述第二区块链中。
本说明书实施例提供了一种交易处理方法,应用于第一区块链的第一区块链节点。该方法包括接收物流平台发送的第一交易请求。其中,所述第一交易请求基于运单的承运方发送的支用请求所发送。所述运单为所述物流平台基于托运方的托运请求所生成。所述支用请求为所述承运方完成所述运单的货物运输之后,申请所述货物运输对应的第一数量的资源时所发送;所述交易请求包括交易信息。调用所述第一区块链中的智能合约,基于所述智能合约根据所述第一区块链中保存的所述物流平台的物流信息。确定所述交易信息是否符合预设的交易条件。若是,则根据所述交易信息向资源管理机构发送第二交易请求。以使所述资源管理机构根据所述第二交易请求,基于发放至所述物流平台的指定资源账户中的资源进行资源转移处理。以向所述承运方转移所述第一数量的资源,并将所述资源转移处理的资源转移结果信息保存至所述第二区块链中。
本说明书实施例提供了一种交易处理方法。该方法应用于物流平台。该方法包括接收承运方发送的支用请求。其中,所述支用请求为所述承运方完成运单的货物运输后,申请所述货物运输对应的第一数量的资源时所发送。所述运单为所述物流平台基于托运方的托运请求所生成。所述支用请求包括支用信息。若确定采用第一方式进行资源转移处理,则根据所述支用信息确定交易信息。根据所述交易信息,向接入第一区块链的第一区块链节点发送第一交易请求。以使所述第一区块链节点在基于第一区块链中的物流信息确定所述交易信息满足预设的交易条件时,基于所述第一区块链与资源管理机构对应的第二区块链的跨链传输通道。向所述第二区块链的第二区块链节点发送第二交易请求。以使所述第二区块链节点根据所述第二交易请求,基于发放至所述物流平台的指定资源账户中的资源,进行资源转移处理,以向所述承运方转移所述第一数量的资源。
本说明书实施例提供了一种交易处理装置,应用于第一区块链的第一区块链节点。该装置包括接收模块,接收物流平台发送的第一交易请求。其中,所述第一交易请求基于运单的承运方发送的支用请求所发送。所述运单为所述物流平台基于托运方的托运请求所生成。所述支用请求为所述承运方完成所述运单的货物运输之后,申请所述货物运 输对应的第一数量的资源时所发送。所述交易请求包括交易信息。该装置还包括确定模块,调用所述第一区块链中的智能合约。基于所述智能合约根据所述第一区块链中保存的所述物流平台的物流信息,确定所述交易信息是否符合预设的交易条件。该装置还包括发送模块,其若所述确定模块的确定结果为是,则根据所述交易信息生成第二交易请求。基于所述第一区块链与资源管理机构对应的第二区块链的跨链传输通道,向所述第二区块链的第二区块链节点发送所述第二交易请求。以使所述第二区块链节点根据所述第二交易请求,基于发放至所述物流平台的指定资源账户中的资源进行资源转移处理。以向所述承运方转移所述第一数量的资源。并将所述资源转移处理的资源转移结果信息保存至所述第二区块链中。
本说明书实施例提供了一种交易处理装置,应用于第一区块链的第一区块链节点。该装置包括接收模块,接收物流平台发送的第一交易请求。其中,所述第一交易请求基于运单的承运方发送的支用请求所发送。所述运单为所述物流平台基于托运方的托运请求所生成。所述支用请求为所述承运方完成所述运单的货物运输之后,申请所述货物运输对应的第一数量的资源时所发送。所述交易请求包括交易信息。该装置还包括确定模块,其调用所述第一区块链中的智能合约。基于所述智能合约根据所述第一区块链中保存的所述物流平台的物流信息,确定所述交易信息是否符合预设的交易条件。该装置还包括发送模块,其若所述确定模块的确定结果为是,则根据所述交易信息向资源管理机构发送第二交易请求。以使所述资源管理机构根据所述第二交易请求,基于发放至所述物流平台的指定资源账户中的资源进行资源转移处理。以向所述承运方转移所述第一数量的资源。并将所述资源转移处理的资源转移结果信息保存至所述第二区块链中。
本说明书实施例提供了一种交易处理装置,应用于物流平台。该装置包括接收模块,接收承运方发送的支用请求。其中,所述支用请求为所述承运方完成运单的货物运输后,申请所述货物运输对应的第一数量的资源时所发送。所述运单为所述物流平台基于托运方的托运请求所生成。所述支用请求包括支用信息。该装置还包括确定模块,若确定采用第一方式进行资源转移处理,则根据所述支用信息确定交易信息。该装置还包括发送模块,根据所述交易信息,向接入第一区块链的第一区块链节点发送第一交易请求。以使所述第一区块链节点在基于第一区块链中的物流信息确定所述交易信息满足预设的交易条件时,基于所述第一区块链与资源管理机构对应的第二区块链的跨链传输通道,向所述第二区块链的第二区块链节点发送第二交易请求。以使所述第二区块链节点根据所述第二交易请求,基于发放至所述物流平台的指定资源账户中的资源进行资源转移处理。以向所述承运方转移所述第一数量的资源。
本说明书实施例提供了一种交易处理系统,包括物流平台、第一区块链、资源管理机构对应的第二区块链。所述物流平台,接收承运方发送的支用请求。其中,所述支用请求为所述承运方完成运单的货物运输后,申请所述货物运输对应的第一数量的资源时所发送。所述运单为所述物流平台基于托运方的托运请求所生成。若确定采用第一方式进行资源转移处理,则根据所述支用请求包括的支用信息确定交易信息。根据所述交易信息,向所述第一区块链的第一区块链节点发送第一交易请求。所述第一区块链的第一区块链节点,接收所述物流平台发送的第一交易请求。调用所述第一区块链中的智能合约。基于所述智能合约根据所述第一区块链中保存的所述物流平台的物流信息,确定所述第一交易请求包括的所述交易信息是否符合预设的交易条件。若是,则根据所述交易信息生成第二交易请求。基于所述第一区块链与所述第二区块链的跨链传输通道,向所述第二区块链的第二区块链节点发送所述第二交易请求。所述第二区块链的第二区块链节点,根据接收到的所述第二交易请求,基于发放至所述物流平台的指定资源账户中的资源进行资源转移处理。以向所述承运方转移所述第一数量的资源。并将所述资源转移处理的资源转移结果信息保存至所述第二区块链中。
本说明书实施例提供了一种交易处理系统,包括物流平台、第一区块链、资源管理 机构、第二区块链。所述物流平台,接收承运方发送的支用请求。其中,所述支用请求为所述承运方完成运单的货物运输后,申请所述货物运输对应的第一数量的资源时所发送。所述运单为所述物流平台基于托运方的托运请求所生成。若确定采用第一方式进行资源转移处理,则根据所述支用请求包括的支用信息确定交易信息。根据所述交易信息,向所述第一区块链的第一区块链节点发送第一交易请求。所述第一区块链的第一区块链节点,接收所述物流平台发送的第一交易请求。调用所述第一区块链中的智能合约。基于所述智能合约根据所述第一区块链中保存的所述物流平台的物流信息,确定所述第一交易请求包括的所述交易信息是否符合预设的交易条件。若是,则根据所述交易信息向所述资源管理机构发送第二交易请求。所述资源管理机构,接收所述区块链节点发送的第二交易请求。根据所述第二交易请求基于发放至所述物流平台的指定资源账户中的资源进行资源转移处理。以向所述承运方转移所述第一数量的资源。并将所述资源转移处理的资源转移结果信息保存至所述第二区块链中。
本说明书实施例提供了一种交易处理设备,包括处理器和被安排成存储计算机可执行指令的存储器。所述计算机可执行指令在被执行时使所述处理器接收物流平台发送的第一交易请求。其中,所述第一交易请求基于运单的承运方发送的支用请求所发送。所述运单为所述物流平台基于托运方的托运请求所生成。所述支用请求为所述承运方完成所述运单的货物运输之后,申请所述货物运输对应的第一数量的资源时所发送;所述交易请求包括交易信息。调用所述第一区块链中的智能合约。基于所述智能合约根据所述第一区块链中保存的所述物流平台的物流信息,确定所述交易信息是否符合预设的交易条件。若是,则根据所述交易信息生成第二交易请求。基于所述第一区块链与资源管理机构对应的第二区块链的跨链传输通道,向所述第二区块链的第二区块链节点发送所述第二交易请求。以使所述第二区块链节点根据所述第二交易请求,基于发放至所述物流平台的指定资源账户中的资源进行资源转移处理。以向所述承运方转移所述第一数量的资源。并将所述资源转移处理的资源转移结果信息保存至所述第二区块链中。
本说明书实施例提供了一种交易处理设备,包括处理器和被安排成存储计算机可执行指令的存储器。所述计算机可执行指令在被执行时使所述处理器接收物流平台发送的第一交易请求。其中,所述第一交易请求基于运单的承运方发送的支用请求所发送。所述运单为所述物流平台基于托运方的托运请求所生成。所述支用请求为所述承运方完成所述运单的货物运输之后,申请所述货物运输对应的第一数量的资源时所发送;所述交易请求包括交易信息。调用所述第一区块链中的智能合约,基于所述智能合约根据所述第一区块链中保存的所述物流平台的物流信息。确定所述交易信息是否符合预设的交易条件。若是,则根据所述交易信息向资源管理机构发送第二交易请求。以使所述资源管理机构根据所述第二交易请求,基于发放至所述物流平台的指定资源账户中的资源进行资源转移处理。以向所述承运方转移所述第一数量的资源,并将所述资源转移处理的资源转移结果信息保存至所述第二区块链中。
本说明书实施例提供了一种交易处理设备,包括处理器以及被安排成存储计算机可执行指令的存储器。所述计算机可执行指令在被执行时使所述处理器接收承运方发送的支用请求。其中,所述支用请求为所述承运方完成运单的货物运输后,申请所述货物运输对应的第一数量的资源时所发送。所述运单为所述物流平台基于托运方的托运请求所生成。所述支用请求包括支用信息。若确定采用第一方式进行资源转移处理,则根据所述支用信息确定交易信息。根据所述交易信息,向接入第一区块链的第一区块链节点发送第一交易请求。以使所述第一区块链节点在基于第一区块链中的物流信息确定所述交易信息满足预设的交易条件时,基于所述第一区块链与资源管理机构对应的第二区块链的跨链传输通道。向所述第二区块链的第二区块链节点发送第二交易请求。以使所述第二区块链节点根据所述第二交易请求,基于发放至所述物流平台的指定资源账户中的资源,进行资源转移处理,以向所述承运方转移所述第一数量的资源。
本说明书实施例提供了一种存储介质。该存储介质用于存储计算机可执行指令。所述计算机可执行指令在被处理器执行时接收物流平台发送的第一交易请求。其中,所述第一交易请求基于运单的承运方发送的支用请求所发送。所述运单为所述物流平台基于托运方的托运请求所生成。所述支用请求为所述承运方完成所述运单的货物运输之后,申请所述货物运输对应的第一数量的资源时所发送;所述交易请求包括交易信息。调用所述第一区块链中的智能合约。基于所述智能合约根据所述第一区块链中保存的所述物流平台的物流信息,确定所述交易信息是否符合预设的交易条件。若是,则根据所述交易信息生成第二交易请求。基于所述第一区块链与资源管理机构对应的第二区块链的跨链传输通道,向所述第二区块链的第二区块链节点发送所述第二交易请求。以使所述第二区块链节点根据所述第二交易请求,基于发放至所述物流平台的指定资源账户中的资源进行资源转移处理。以向所述承运方转移所述第一数量的资源。并将所述资源转移处理的资源转移结果信息保存至所述第二区块链中。
本说明书实施例提供了一种存储介质。该存储介质用于存储计算机可执行指令。所述计算机可执行指令在被处理器执行时接收物流平台发送的第一交易请求。其中,所述第一交易请求基于运单的承运方发送的支用请求所发送。所述运单为所述物流平台基于托运方的托运请求所生成。所述支用请求为所述承运方完成所述运单的货物运输之后,申请所述货物运输对应的第一数量的资源时所发送;所述交易请求包括交易信息。调用所述第一区块链中的智能合约,基于所述智能合约根据所述第一区块链中保存的所述物流平台的物流信息。确定所述交易信息是否符合预设的交易条件。若是,则根据所述交易信息向资源管理机构发送第二交易请求。以使所述资源管理机构根据所述第二交易请求,基于发放至所述物流平台的指定资源账户中的资源进行资源转移处理。以向所述承运方转移所述第一数量的资源,并将所述资源转移处理的资源转移结果信息保存至所述第二区块链中。
本说明书实施例提供了一种存储介质。该存储介质用于存储计算机可执行指令。所述计算机可执行指令在被处理器执行时接收承运方发送的支用请求。其中,所述支用请求为所述承运方完成运单的货物运输后,申请所述货物运输对应的第一数量的资源时所发送。所述运单为所述物流平台基于托运方的托运请求所生成。所述支用请求包括支用信息。若确定采用第一方式进行资源转移处理,则根据所述支用信息确定交易信息。根据所述交易信息,向接入第一区块链的第一区块链节点发送第一交易请求。以使所述第一区块链节点在基于第一区块链中的物流信息确定所述交易信息满足预设的交易条件时,基于所述第一区块链与资源管理机构对应的第二区块链的跨链传输通道。向所述第二区块链的第二区块链节点发送第二交易请求。以使所述第二区块链节点根据所述第二交易请求,基于发放至所述物流平台的指定资源账户中的资源,进行资源转移处理,以向所述承运方转移所述第一数量的资源。
附图说明
图1为本说明书实施例提供的一种交易处理方法的第一种场景示意图;
图2为本说明书实施例提供的一种交易处理方法的第一种流程示意图;
图3为本说明书实施例提供的一种交易处理方法的第二种流程示意图;
图4为本说明书实施例提供的一种交易处理方法的第三种流程示意图;
图5为本说明书实施例提供的一种交易处理方法的第四种流程示意图;
图6为本说明书实施例提供的一种交易处理方法的第五种流程示意图;
图7为本说明书实施例提供的一种交易处理方法的第二种场景示意图;
图8为本说明书实施例提供的一种交易处理方法的第六种流程示意图;
图9为本说明书实施例提供的一种交易处理方法的第七种流程示意图;
图10为本说明书实施例提供的一种交易处理方法的第八种流程示意图;
图11为本说明书实施例提供的一种交易处理方法的第九种流程示意图;
图12为本说明书实施例提供的一种交易处理方法的第十种流程示意图;
图13为本说明书实施例提供的一种交易处理装置的第一种模块组成示意图;
图14为本说明书实施例提供的一种交易处理装置的第二种模块组成示意图;
图15为本说明书实施例提供的一种交易处理装置的第三种模块组成示意图;
图16为本说明书实施例提供的一种交易处理系统的第一种组成示意图;
图17为本说明书实施例提供的一种交易处理系统的第二种组成示意图;
图18为本说明书实施例提供的一种交易处理设备的结构示意图。
具体实施方式
图1为本说明书实施例提供的一种交易处理方法的应用场景示意图,如图1所示,该场景包括:物流平台、接入第一区块链的第一区块链节点、接入第二区块链的第二区块链节点。其中,物流平台的物流信息保存于第一区块链中。资源管理机构部署有节点设备,该节点设备接入第二区块链,即为第二区块链节点;也就是说,资源管理机构作为接入第二区块链的节点,在链上进行资源的相关管理操作,并将资源管理操作的相关信息保存至第二区块链中。
具体的,物流平台基于托运方的托运请求生成运单,并确定运单的承运方;当该承运方完成运单对应的货物运输之后,申请该货物运输对应的第一数量的资源时,向物流平台发送支用申请。物流平台根据支用申请包括的支用信息确定交易信息,根据交易信息生成第一交易请求,并向第一区块链的第一区块链节点发送第一交易请求。第一区块链节点接收到第一交易请求时,调用第一区块链中的智能合约,基于智能合约根据第一区块链中保存的物流平台的物流信息,确定第一交易请求包括的交易信息是否符合预设的交易条件。若是,则根据交易信息生成第二交易请求,基于第一区块链与资源管理机构对应的第二区块链的跨链传输通道,向第二区块链的第二区块链节点发送第二交易请求。第二区块链节点根据接收到的第二交易请求,基于发放至物流平台的指定资源账户中的资源进行资源转移处理,以向承运方转移第一数量的资源,并将资源转移处理的资源转移结果信息保存至第二区块链中;以及,第二区块链基于跨链传输通道将资源转移结果信息发送给第一区块链节点;第一区块链节点将接收到的资源转移结果信息发送给物流平台,以使物流平台向承运方发送支用请求的请求结果信息。由此,通过将物流信息保存至第一区块链中,将资源转移处理的资源转移结果信息保存至第二区块链中,确保了各信息的真实性和有效性,避免了基于虚假运单非法运作资源的风险,并使得物流业务以及资源转移业务等可追溯;再者,通过数据的跨链传输,不仅打破了数据孤岛,实现了数据的互联互通,而且有利于挖掘物流信息等数据的潜在价值。
基于上述应用场景架构,本说明书实施例提供了一种交易处理方法。图2为本说明书实施例提供的一种交易处理方法的流程示意图,图2中的方法能够由图1中的第一区块链节点执行,如图2所示,该方法包括以下步骤:步骤S102,接收物流平台发送的第一交易请求;其中,第一交易请求基于运单的承运方发送的支用请求所发送;运单为物流平台基于托运方的托运请求所生成;支用请求为承运方完成运单的货物运输之后,申请货物运输对应的第一数量的资源时所发送;交易请求包括交易信息;具体的,物流平台基于托运方的托运请求,根据托运请求包括的托运信息生成运单,并确定运单的承运方;其中,托运信息包括待托运货物的货物信息、起运地点信息、送达地点信息等。当承运方将运单的待托运货物从起运地点运送至送达地点,即承运方完成运单的货物运输之后,申请该货物运输对应的第一数量的资源时,向物流平台发送支用申请。当物流平台确定未向承运方转移过资源时,根据支用申请包括的支用信息确定交易信息,根据交易信息生成第一交易请求,并向第一区块链的第一区块链节点发送第一交易请求。其中,支用信息包括运单的标识信息、申请的资源的第一数量、承运方的用户信息等,承 运方的用户信息如姓名、手机号码、身份证件号码、资源账户的账户信息等;物流平台将该支用信息确定为交易信息,或者基于支用信息生成预设形式的交易信息。资源可为实体资源,如货币等,还可为虚拟资源,如电子货币、积分等。
步骤S104,调用第一区块链中的智能合约,基于智能合约根据第一区块链中保存的物流平台的物流信息,确定交易信息是否符合预设的交易条件;其中,物流信息包括运单的各物流阶段的信息,如运单生成阶段的托运方的用户信息、运单标识信息等,运单分配阶段的承运方的用户信息、承运方的运输工具的标识信息等,起运阶段的起运地点信息、起运时间信息等,送达阶段的送达地点信息、送达时间信息等,资源转移阶段的资源转移结果信息等。
步骤S106,若是,则根据交易信息生成第二交易请求;基于第一区块链与资源管理机构对应的第二区块链的跨链传输通道,向第二区块链的第二区块链节点发送第二交易请求;以使第二区块链节点根据第二交易请求,基于发放至物流平台的指定资源账户中的资源进行资源转移处理,以向承运方转移第一数量的资源,并将资源转移处理的资源转移结果信息保存至第二区块链中。
其中,跨链传输通道即根据相关协议所构建的通信链路,同时定义相关接口,通过调用该接口即可实现数据的跨链传输。第一交易请求与第二交易请求可相同也可不同。
进一步的,若确定交易信息不符合预设的交易条件,则向物流平台发送请求失败信息。
更进一步的,当第二区块链节点接收到第二交易请求时,确定物流平台的指定资源账户的账户信息和承运方的资源账户信息;根据确定的账户信息,将预先收集的资源转移至物流平台的指定资源账户,并从物流平台的指定资源账户向承运方的资源账户转移第一数量的资源;将资源转移结果信息保存至第二区块链中。其中,确定物流平台的指定资源账户的账户信息,可为从第二交易请求中获取物流平台的指定资源账户的账户信息,还可为根据第二交易请求包括的物流平台的数字身份信息,从预设的数字身份信息与资源账户信息的关联关系中,获取关联的资源账户信息,并将获取的资源账户信息确定为物流平台的指定资源账户的账户信息。预先收集的资源,可为第二区块链节点基于第一区块链节点预先推送的物流平台的业务数据进行资源收集处理所得的资源;其中,业务数据为基于至少一个处于运输终止状态、且托运方未提供运输所需资源的运单的相关信息所生成的数据。
本说明书实施例中,第一区块链节点接收到物流平台发送的第一交易请求时,若基于智能合约根据第一区块链保存的物流平台的物流信息确定交易数据有效,则基于跨链传输通道向第二区块链的第二区块链节点发送第二交易,以使第二区块链节点进行资源转移处理,并将资源转移结果信息保存至第二区块链中。由此,通过将物流信息保存至第一区块链中,将资源转移结果信息保存至第二区块链中,确保了各信息的真实性和有效性,避免了基于虚假运单非法运作资源的风险,并使得物流业务以及资源转移业务等可追溯。再者,通过数据的跨链传输,不仅打破了数据孤岛,实现了数据的互联互通,而且有利于挖掘物流信息等数据的潜在价值。
为了使第一区块链节点能够对交易信息进行验证,本说明书实施例中,物流节点将各运单在各物流阶段的物流信息发送给第一区块链节点,以使第一区块链节点将物流信息保存至第一区块链中,并基于保存的物流信息对交易信息进行验证。相应的,如图3所示,步骤S102之前还包括:步骤S100-2,接收物流平台发送的运单的物流信息;具体的,当物流平台基于托运方的托运请求生成运单并确定承运方之后,接收托运方和/承运方在运单的各物流阶段发送的物流信息,并将接收到的物流信息与运单的标识信息发送给第一区块链节点;第一区块链节点接收物流平台发送的物流信息和运单的标识信息。
步骤S100-4,将接收到的物流信息与运单的运单标识信息关联保存至第一区块链中。
通过将物流平台的各运单的物流信息保存至第一区块链中,确保了物流信息的真实性和有效性,并为第一区块链节点验证交易信息是否符合交易条件提供了依据。
为了避免物流平台基于虚假运单进行交易请求,以及确保第二区块链节点能够顺利的完成资源转移,本说明书实施例中,第一区块链节点基于智能合约对交易信息进行验证。具体的,如图4所示,步骤S104包括以下步骤S104-2和步骤S104-4;步骤S104-2,调用第一区块链中的智能合约,基于智能合约根据第一区块链中保存的物流平台的物流信息,确定交易信息是否满足第一预设条件;其中,第一预设条件包括以下一项或多项:根据交易信息中的运单标识信息从第一区块链中查询到关联的物流信息、交易信息中的承运方的用户信息有效、交易信息中的承运方的用户信息包括指定类型的信息;以第一预设条件包括以上各项为例进行说明,第一区块链节点调用第一区块链中的智能合约,基于智能合约根据交易信息中的运单标识信息从第一区块链中查询关联的物流信息,若未查询到关联的物流信息,则确定交易信息不符合交易条件,向物流平台发送请求失败信息;若查询到关联的物流信息,则确定查询到的物流信息中包括的承运方的用户信息与交易信息包括的承运方的用户信息是否匹配,若不匹配,则确定交易信息不符合交易条件,向物流平台发送请求失败信息;若匹配,则确定交易信息中的承运方的用户信息是否包括指定类型的信息,若包括,则确定交易信息符合交易条件;若不包括,则确定交易信息不符合交易条件,向物流平台发送请求失败信息。其中,指定类型的信息如姓名、身份证件号码、资源账户信息、手机号码等,其可在实际应用中根据需要自行设定。
需要指出的是,第一预设条件不限为上述条件,例如还可包括根据运单标识信息从第一区块链中未查询到关联的资源转移成功信息、交易信息包括的待转移资源的数量是否超过预设数量等,其可在实际应用中根据需要自行设定。
步骤S104-4,若是,则确定交易信息符合预设的交易条件。
与步骤S104-2和步骤S104-4对应的,如图4所示,步骤S106包括以下步骤S106-2:
步骤S106-2,根据交易信息生成第二交易请求;基于第一区块链与资源管理机构对应的第二区块链的跨链传输通道,向第二区块链的第二区块链节点发送第二交易请求;以使第二区块链节点根据第二交易请求,基于发放至物流平台的指定资源账户中的资源进行资源转移处理,以向承运方转移第一数量的资源,并将资源转移处理的资源转移结果信息保存至第二区块链中。
通过对交易信息进行验证,确保了交易信息的有效性,以及确保了后续资源转移处理能够顺利进行。基于智能合约对交易信息进行验证,提升了验证效率和准确率。
进一步的,为了确保物流平台向第一区块链节点发送第一交易请求的过程中,第一交易请求中的交易信息不会被攻击者篡改;本说明书实施例中,物流平台在发送第一交易请求之前,基于其数字身份信息对应的私钥对交易信息进行签名处理,得到交易信息的密文数据,并根据交易信息的密文数据和物流平台的数字身份信息,向第一区块链节点发送第一交易请求;其中,数字身份信息如DID(英文全称:Decentralized Identifiers,中文全称:分布式身份标识)。与之对应的,如图5所示,步骤S102包括以下步骤S102-2:步骤S102-2,接收物流平台发送的第一交易请求;其中,第一交易请求基于运单的承运方发送的支用请求所发送;运单为物流平台基于托运方的托运请求所生成;支用请求为承运方完成运单的货物运输之后,申请货物运输对应的第一数量的资源时所发送;交易请求包括交易信息的密文数据和物流平台的数字身份信息;与步骤S102-2对应的,如图5所示,步骤S102之后还包括:步骤S103,获取数字身份信息对应的公钥,采用获取的公钥对密文数据进行解密处理,得到交易信息。
其中,获取数字身份信息对应的公钥包括:根据数字身份信息从区块链中查询关联的文档(did doc),从查询到的文档中获取公钥;或者,根据数字身份信息向指定的安全机构发送公钥获取请求,并接收该安全机构发送的公钥。
由于数字身份信息对应的私钥只有物流平台持有,因此,通过将交易信息的密文数 据发送给第一区块链节点,当第一区块链节点根据获取的公钥对密文数据进行解密处理成功时,能够确定第一交易请求来自物流平台,而非其他用户伪造。
进一步的,为了使物流平台知晓资源转移结果,本说明书实施例中,第二区块链节点得到资源转移结果信息时,基于跨链传输通道将资源转移结果信息发送给第一区块链节点,以通过第一区块链节点将资源转移结果信息发送给物流平台。具体的,如图6所示,步骤S106之后,还包括:步骤S108,基于跨链传输通道接收第二区块链节点发送的资源转移结果信息,将资源转移结果信息保存至第一区块链中;其中,资源转移结果信息包括运单标识信息和表征是否转移成功的状态信息。
步骤S110,向物流平台发送资源转移结果信息,以使物流平台根据资源转移结果信息向承运方发送支用请求的请求结果信息。
本说明书实施例中,第一区块链节点接收到物流平台发送的第一交易请求时,若基于智能合约根据第一区块链保存的物流平台的物流信息确定交易数据有效,则基于跨链传输通道向第二区块链的第二区块链节点发送第二交易,以使第二区块链节点进行资源转移处理,并将资源转移结果信息保存至第二区块链中。由此,通过将物流信息保存至第一区块链中,将资源转移结果信息保存至第二区块链中,确保了各信息的真实性和有效性,避免了基于虚假运单非法运作资源的风险,并使得物流业务以及资源转移业务等可追溯。再者,通过数据的跨链传输,不仅打破了数据孤岛,实现了数据的互联互通,而且有利于挖掘物流信息等数据的潜在价值。
以上为资源管理机构作为第二区块链的第二区块链节点,基于接收到的第二交易请求在链上进行资源转移等处理的过程。本说明书实施例中,资源管理机构作为第二区块链的第二区块链节点,还可在接收到第二交易请求时,在链下进行资源转移等处理,并将处理结果信息保存至第二区块链中。进一步的,本说明书实施例中,资源管理机构还可不是第二区块链中的节点,相应的,如图7所示,交易处理方法的应用场景包括:物流平台、资源管理机构、接入第一区块链的第一区块链节点、接入第二区块链的第二区块链节点。其中,当第一区块链节点接收到第一交易请求时,调用第一区块链中的智能合约,基于智能合约根据第一区块链中保存的物流平台的物流信息,确定第一交易请求包括的交易信息是否符合预设的交易条件。若是,则根据交易信息生成第二交易请求,向资源管理机构发送第二交易请求。资源管理机构根据接收到的第二交易请求,基于发放至物流平台的指定资源账户中的资源进行资源转移处理,以向承运方转移第一数量的资源,并将资源转移处理的资源转移结果信息发送给第二区块链节点,以使第二区块链节点将资源转移结果信息保存至第二区块链中;或者,资源转移机构将资源转移结果信息和交易信息发送给第二区块链节点,以使第二区块链节点将资源转移结果信息和交易信息关联保存至第二区块链中。以及,资源管理机构将资源转移结果信息发送给第一区块链节点;第一区块链节点将接收到的资源转移结果信息发送给物流平台,以使物流平台向承运方发送支用请求的请求结果信息。由此,通过将物流信息保存至第一区块链中,将资源转移处理的资源转移结果信息保存至第二区块链中,确保了各信息的真实性和有效性,避免了基于虚假运单非法运作资源的风险,并使得物流业务以及资源转移业务等可追溯。再者,资源转移机构作为中转进行数据的跨链传输,不仅打破了数据孤岛,实现了数据的互联互通,而且有利于挖掘物流信息等数据的潜在价值。
基于图7所示的应用场景架构,本说明书实施例还提供了另一种交易处理方法。图8为本说明书实施例提供的另一种交易处理方法的流程示意图,图8中的方法能够由图7中的第一区块链节点执行,如图8所示,该方法包括以下步骤:步骤S202,接收物流平台发送的第一交易请求;其中,第一交易请求基于运单的承运方发送的支用请求所发送;运单为物流平台基于托运方的托运请求所生成;支用请求为承运方完成运单的货物运输之后,申请货物运输对应的第一数量的资源时所发送;交易请求包括交易信息;步骤S204,调用第一区块链中的智能合约,基于智能合约根据第一区块链中保存的物流 平台的物流信息,确定交易信息是否符合预设的交易条件;步骤S206,若是,则根据交易信息向资源管理机构发送第二交易请求,以使资源管理机构根据第二交易请求,基于发放至物流平台的指定资源账户中的资源进行资源转移处理,以向承运方转移第一数量的资源,并将资源转移处理的资源转移结果信息保存至第二区块链中。
其中,步骤S202至步骤S204的实现过程与前述步骤S102至步骤S104的实现过程相同,可参见前述相关描述,重复之处这里不再赘述。
资源管理机构进行资源转移处理之后,将资源转移结果发送给第二区块链节点,以使第二区块链节点将资源转移结果保存至第二区块链中;或者,资源管理机构将资源转移结果和交易信息发送给第二区块链节点,以使第二区块链节点将资源转移结果和交易信息关联保存至第二区块链中。以及,资源管理机构将资源转移结果信息发送给第一区块链节点,相应的,步骤S206之后还包括:接收资源管理结构发送的资源转移结果信息,将资源转移结果信息保存至第一区块链中,并将资源转移结果信息发送给物流平台,以使物流平台根据资源转移结果信息向承运方发送支用请求的请求结果信息。
进一步的,本说明书实施例中,步骤S206还可包括:若是,则基于第一区块链与资源管理机构对应的第二区块链的跨链传输通道,向第二区块链的第二区块链节点发送所述第二交易请求;以使第二区块链节点将第二交易请求发送给资源管理机构,以使资源管理结构基于发放至所述物流平台的指定资源账户中的资源进行资源转移处理,以向所述承运方转移所述第一数量的资源,并将资源转移结果信息发送给第二区块链节点,以使第二区块链节点将资源转移结果信息保存至第二区块链中。
更进一步的,本说明书实施例中,物流平台还可授予资源管理机构查看第一区块链中的部分物流信息的权限,相应地,当资源管理机构接收到第二交易请求时,还可基于授予的权限访问第一区块链中相应的物流信息,并在根据访问到的物流信息对交易信息验证通过时,进行资源转移处理。
本说明书实施例中,第一区块链节点接收到物流平台发送的第一交易请求时,若基于智能合约根据第一区块链保存的物流平台的物流信息确定交易数据有效,则向资源管理机构发送第二交易,以使资源管理机构进行资源转移处理,并将资源转移结果信息保存至第二区块链中。由此,通过将物流信息保存至第一区块链中,将资源转移结果信息保存至第二区块链中,确保了各信息的真实性和有效性,避免了基于虚假运单非法运作资源的风险,并使得物流业务以及资源转移业务等可追溯。再者,资源管理机构作为中转进行数据的跨链传输,不仅打破了数据孤岛,实现了数据的互联互通,而且有利于挖掘物流信息等数据的潜在价值。
对应上述描述的交易处理方法,基于相同的技术构思,本说明书实施例还提供了一种交易处理方法,应用于物流平台。图9为本说明书实施例提供的另一种交易处理方法的流程示意图,如图9所示,该方法包括:步骤S302,接收承运方发送的支用请求;其中,支用请求为承运方完成运单的货物运输后,申请货物运输对应的第一数量的资源时所发送;运单为物流平台基于托运方的托运请求所生成;支用请求包括支用信息;具体的,步骤S302之前还包括:接收托运方发送的托运请求;根据托运请求包括托运信息生成运单,并确定运单的所述承运方;托运方和/或承运方在运单的各物流阶段将运单的物流信息发送给物流平台,物流平台将接收到的运单的物流信息,向第一区块链节点发送物流信息,以使第一区块链节点将流信息保存至第一区块链中。当承运方完成运单的货物运输时,向物流平台发送支用请求。
步骤S304,若确定采用第一方式进行资源转移处理,则根据支用信息确定交易信息;
其中,根据支用信息确定交易信息,可为将支用信息确定为交易信息,还可根据预设方式基于支用信息生成交易信息。
步骤S306,根据交易信息,向第一区块链的第一区块链节点发送第一交易请求,以使第一区块链节点在基于第一区块链中的物流信息确定交易信息满足预设的交易条件 时,基于第一区块链与资源管理机构对应的第二区块链的跨链传输通道,向第二区块链的第二区块链节点发送第二交易请求;以使第二区块链节点根据第二交易请求,基于发放至物流平台的指定资源账户中的资源进行资源转移处理,以向承运方转移第一数量的资源,并将资源转移结果信息保存至第二区块链中。
本说明书实施例中,物流平台在接收到承运方发送的支用请求时,若确定采用第一方式进行资源转移处理,则向第一区块链的第一区块链节点发送第一交易请求,以使第一区块链节点在基于智能合约确定交易信息满足预设的交易条件时,基于第一区块链与资源管理机构对应的第二区块链的跨链传输通道,向第二区块链的第二区块链节点发送第二交易请求;以使第二区块链节点根据第二交易请求进行资源转移处理,并将资源转移结果信息保存至第二区块链中。由此,通过将物流信息保存至第一区块链中,将资源转移结果信息保存至第二区块链中,确保了各信息的真实性和有效性,避免了基于虚假运单非法运作资源的风险,并使得物流业务以及资源转移业务等可追溯。再者,通过数据的跨链传输,不仅打破了数据孤岛,实现了数据的互联互通,而且有利于挖掘物流信息等数据的潜在价值。
为了避免承运方因误操作而重复发送支付申请,物流平台在接收到支用申请时,还可根据相应运单的运单标识信息,向第一区块链节点发送查询请求,以使第一区块链节点根据运单标识信息从区块链中查询关联的资源转移成功信息,并返回查询结果;若查询结果表征查询到关联的资源转移成功信息,则确定已向承运方转移资源,并向承运方发送请求失败信息;若查询结果表征未查询到关联的资源转移成功信息,则确定未向承运方转移资源,执行步骤S304。
为了满足物流平台采用不同方式的资源转移需求,本说明书实施例中,物流平台可通过第一方式向承运方转移资源,还可通过第二方式向承运方转移资源;其中,第一方式即基于第二区块链节点收集的资源进行资源转移;第二方式即基于物流平台的资源账户中已有的资源进行资源转移。当采用第二方式进行资源转移时,物流平台根据交易信息,向资源转移机构发送第三交易请求,以使资源转移机构根据物流平台的指定资源账户中的已有资源进行资源转移。进一步的,物流平台在通过第一方式进行资源转移时,首先需要确定是否具有资源收集权限。具体的,如图10所示,步骤S304包括以下步骤S304-2:步骤S304-2,确定物流平台当前是否具有资源收集权限,若是,则根据支用信息确定交易信息;具体的,根据预设的时间信息,从第二区块链节点获取物流平台的资源收集权限信息;其中,资源收集权限信息为第二区块链节点根据预设的评估模型对物流平台的信用进行评估处理之后所生成的信息;若资源收集权限信息表征具有资源收集权限,则确定物流平台具有资源收集权限,并采用第一方式进行资源转移处理。
更加具体的,第二区块链节点按照预设时间间隔向第一区块链节点发送信息获取请求,并接收第一区块链节点基于跨链传输通道发送的物流信息;以及从第二区块链中获取物流平台的历史交易的交易信息;根据获取的物流信息和交易信息等,基于预设的评估模型对物流平台的信用进行评估处理,当评估处理结果表征物流平台的信用较好时,生成表征具有资源收集权限的资源收集权限信息;当评估处理结果表征物流平台的信用不好时,生成表征不具有资源收集权限的资源收集权限信息。物流平台根据预设的时间信息,向第二区块链节点发送权限查询请求,并接收第二区块链节点发送的资源收集权限信息,根据资源收集权限信息,确定当前是否具有资源收集权限。其中,预设的时间信息,例如每日的凌晨1:00点。
需要指出的是,当资源管理机构不是第二区块链的第二区块链节点时,可由资源管理进行对物流平台的信用进行评估,相应的,物流平台从资源管理机构获取资源收集权限信息。
通过对物流平台的信用进行评估,从而使物流平台确定资源转移方式,避免了因物流平台的信用较差而导致的不必要的麻烦。
进一步的,为了确保交易安全,本说明书实施例中,物流平台在发送第一交易请求之前,首先对交易信息进行签名处理。具体的,如图11所示,步骤S306包括:步骤S306-2,采用物流平台的数字身份信息所对应的私钥,对交易信息进行加密处理,得到交易信息的密文数据;步骤S306-4,根据密文数据生成第一交易请求,向接入第一区块链的第一区块链节点发送第一交易请求,以使第一区块链节点在基于第一区块链中的物流信息确定交易信息满足预设的交易条件时,基于第一区块链与资源管理机构对应的第二区块链的跨链传输通道,向第二区块链的第二区块链节点发送第二交易请求;以使第二区块链节点根据第二交易请求,基于发放至物流平台的指定资源账户中的资源进行资源转移处理,以向承运方转移第一数量的资源,并将资源转移结果信息保存至第二区块链中。
进一步的,为了使物流平台和承运方知晓资源转移结果,第一区块链节点在接收到第二区块链节点发送的资源转移结果信息时,将资源转移结果信息发送给物流平台;相应的,如图12所示,步骤S306之后还包括:步骤S308,接收第一区块链节点发送的资源转移结果信息;步骤S310,根据资源转移结果信息,向承运方发送支用请求的请求结果信息。
需要指出的是,当资源管理机构不是第二区块链中的第二区块链节点时,上述物流平台与第二区块链节点之间的数据交互,均可为物流平台与资源管理机构之间的数据交互,本说明书中不再进行详述。
本说明书实施例中,物流平台在接收到承运方发送的支用请求时,若确定采用第一方式进行资源转移处理,则向第一区块链的第一区块链节点发送第一交易请求,以使第一区块链节点在基于智能合约确定交易信息满足预设的交易条件时,基于第一区块链与资源管理机构对应的第二区块链的跨链传输通道,向第二区块链的第二区块链节点发送第二交易请求;以使第二区块链节点根据第二交易请求进行资源转移处理,并将资源转移结果信息保存至第二区块链中。由此,通过将物流信息保存至第一区块链中,将资源转移结果信息保存至第二区块链中,确保了各信息的真实性和有效性,避免了基于虚假运单非法运作资源的风险,并使得物流业务以及资源转移业务等可追溯。再者,通过数据的跨链传输,不仅打破了数据孤岛,实现了数据的互联互通,而且有利于挖掘物流信息等数据的潜在价值。
对应上述图2至图6描述的交易处理方法,基于相同的技术构思,本说明书实施例还提供了一种交易处理装置。图13为本说明书实施例提供的一种交易处理装置的模块组成示意图,该装置用于执行图2至图6描述的交易处理方法,如图13所示,该装置包括:接收模块401,接收物流平台发送的第一交易请求;其中,所述第一交易请求基于运单的承运方发送的支用请求所发送;所述运单为所述物流平台基于托运方的托运请求所生成;所述支用请求为所述承运方完成所述运单的货物运输之后,申请所述货物运输对应的第一数量的资源时所发送;所述交易请求包括交易信息;确定模块402,调用所述第一区块链中的智能合约,基于所述智能合约根据所述第一区块链中保存的所述物流平台的物流信息,确定所述交易信息是否符合预设的交易条件;发送模块403,若确定模块402的确定结果为是,则根据所述交易信息生成第二交易请求;基于所述第一区块链与资源管理机构对应的第二区块链的跨链传输通道,向所述第二区块链的第二区块链节点发送所述第二交易请求;以使所述第二区块链节点根据所述第二交易请求,基于发放至所述物流平台的指定资源账户中的资源进行资源转移处理,以向所述承运方转移所述第一数量的资源,并将所述资源转移处理的资源转移结果信息保存至所述第二区块链中。
本说明书实施例提供的交易处理装置,接收到物流平台发送的第一交易请求时,若基于智能合约根据第一区块链保存的物流平台的物流信息确定交易数据有效,则基于跨链传输通道向第二区块链的第二区块链节点发送第二交易,以使第二区块链节点进行资 源转移处理,并将资源转移结果信息保存至第二区块链中。由此,通过将物流信息保存至第一区块链中,将资源转移结果信息保存至第二区块链中,确保了各信息的真实性和有效性,避免了基于虚假运单非法运作资源的风险,并使得物流业务以及资源转移业务等可追溯。再者,通过数据的跨链传输,不仅打破了数据孤岛,实现了数据的互联互通,而且有利于挖掘物流信息等数据的潜在价值。
可选地,所述交易信息包括:所述运单的运单标识信息和所述承运方的用户信息;所述确定模块402,基于所述智能合约根据所述第一区块链中保存的所述物流平台的物流信息,确定所述交易信息是否满足第一预设条件;其中,所述第一预设条件包括以下一项或多项:根据所述运单标识信息从所述第一区块链中查询到关联的物流信息、所述用户信息有效、所述用户信息包括指定类型的信息;若是,则确定所述交易信息符合预设的交易条件。
可选地,所述接收模块401,在接收物流平台发送的第一交易请求之前,还接收所述物流平台发送的所述运单的物流信息;以及,将接收到的所述物流信息与所述运单的运单标识信息关联保存至所述第一区块链中。
可选地,所述第一交易请求包括:所述交易信息的密文数据、所述物流平台的数字身份信息;其中,所述密文数据为采用所述数字身份信息所对应的私钥对所述交易信息进行签名处理所得的数据;所述装置还包括解密模块;所述解密模块,获取所述数字身份信息对应的公钥;采用所述公钥对所述密文数据进行解密处理,得到所述交易信息。
可选地,所述接收模块401,在所述发送模块403向所述第二区块链的第二区块链节点发送所述第二交易请求之后,还接收所述第二区块链节点发送的所述资源转移结果信息;以及,将所述资源转移结果信息保存至所述第一区块链中;所述发送模块403,向所述物流平台发送所述资源转移结果信息,以使所述物流平台根据所述资源转移结果信息向所述承运方发送所述支用请求的请求结果信息。
可选地,所述发送模块403,若所述确定模块402确定所述交易信息不符合所述预设的交易条件,则向所述物流平台发送请求失败信息。
本说明书实施例提供的交易处理装置,接收到物流平台发送的第一交易请求时,若基于智能合约根据第一区块链保存的物流平台的物流信息确定交易数据有效,则基于跨链传输通道向第二区块链的第二区块链节点发送第二交易,以使第二区块链节点进行资源转移处理,并将资源转移结果信息保存至第二区块链中。由此,通过将物流信息保存至第一区块链中,将资源转移结果信息保存至第二区块链中,确保了各信息的真实性和有效性,避免了基于虚假运单非法运作资源的风险,并使得物流业务以及资源转移业务等可追溯。再者,通过数据的跨链传输,不仅打破了数据孤岛,实现了数据的互联互通,而且有利于挖掘物流信息等数据的潜在价值。
需要说明的是,本说明书中关于交易处理装置的实施例与本说明书中关于交易处理方法的实施例基于同一发明构思,因此该实施例的具体实施可参见前述对应的交易处理方法的实施,重复之处不再赘述。
进一步的,对应上述图8描述的交易处理方法,基于相同的技术构思,本说明书实施例还提供了另一种交易处理装置。图14为本说明书实施例提供的另一种交易处理装置的模块组成示意图,该装置用于执行图8描述的交易处理方法,如图14所示,该装置包括:接收模块501,接收物流平台发送的第一交易请求;其中,所述第一交易请求基于运单的承运方发送的支用请求所发送;所述运单为所述物流平台基于托运方的托运请求所生成;所述支用请求为所述承运方完成所述运单的货物运输之后,申请所述货物运输对应的第一数量的资源时所发送;所述交易请求包括交易信息;确定模块502,调用所述第一区块链中的智能合约,基于所述智能合约根据所述第一区块链中保存的所述物流平台的物流信息,确定所述交易信息是否符合预设的交易条件;发送模块503,若所述确定模块的确定结果为是,则根据所述交易信息向资源管理机构发送第二交易请求; 以使所述资源管理机构根据所述第二交易请求,基于发放至所述物流平台的指定资源账户中的资源进行资源转移处理,以向所述承运方转移所述第一数量的资源,并将所述资源转移处理的资源转移结果信息保存至所述第二区块链中。
本说明书实施例提供的交易处理装置,接收到物流平台发送的第一交易请求时,若基于智能合约根据第一区块链保存的物流平台的物流信息确定交易数据有效,则向资源管理机构发送第二交易,以使资源管理机构进行资源转移处理,并将资源转移结果信息保存至第二区块链中。由此,通过将物流信息保存至第一区块链中,将资源转移结果信息保存至第二区块链中,确保了各信息的真实性和有效性,避免了基于虚假运单非法运作资源的风险,并使得物流业务以及资源转移业务等可追溯。再者,资源管理机构作为中转进行数据的跨链传输,不仅打破了数据孤岛,实现了数据的互联互通,而且有利于挖掘物流信息等数据的潜在价值。
可选地,所述交易信息包括:所述运单的运单标识信息和所述承运方的用户信息;所述确定模块502,基于所述智能合约根据所述第一区块链中保存的所述物流平台的物流信息,确定所述交易信息是否满足第一预设条件;其中,所述第一预设条件包括以下一项或多项:根据所述运单标识信息从所述第一区块链中查询到关联的物流信息、所述用户信息有效、所述用户信息包括指定类型的信息;若是,则确定所述交易信息符合预设的交易条件。
可选地,所述接收模块501,在接收物流平台发送的第一交易请求之前,还接收所述物流平台发送的所述运单的物流信息;以及,将接收到的所述物流信息与所述运单的运单标识信息关联保存至所述第一区块链中。
可选地,所述第一交易请求包括:所述交易信息的密文数据、所述物流平台的数字身份信息;其中,所述密文数据为采用所述数字身份信息所对应的私钥对所述交易信息进行签名处理所得的数据;所述装置还包括解密模块;所述解密模块,获取所述数字身份信息对应的公钥;采用所述公钥对所述密文数据进行解密处理,得到所述交易信息。
可选地,所述接收模块501,在所述发送模块503向所述资源管理机构发送所述第二交易请求之后,还接收所述资源管理机构发送的所述资源转移结果信息;以及,将所述资源转移结果信息保存至所述第一区块链中;所述发送模块503,向所述物流平台发送所述资源转移结果信息,以使所述物流平台根据所述资源转移结果信息向所述承运方发送所述支用请求的请求结果信息。
可选地,所述发送模块503,若所述确定模块502确定所述交易信息不符合所述预设的交易条件,则向所述物流平台发送请求失败信息。
本说明书实施例提供的交易处理装置,接收到物流平台发送的第一交易请求时,若基于智能合约根据第一区块链保存的物流平台的物流信息确定交易数据有效,则向资源管理机构发送第二交易,以使资源管理机构进行资源转移处理,并将资源转移结果信息保存至第二区块链中。由此,通过将物流信息保存至第一区块链中,将资源转移结果信息保存至第二区块链中,确保了各信息的真实性和有效性,避免了基于虚假运单非法运作资源的风险,并使得物流业务以及资源转移业务等可追溯。再者,资源管理机构作为中转进行数据的跨链传输,不仅打破了数据孤岛,实现了数据的互联互通,而且有利于挖掘物流信息等数据的潜在价值。
需要说明的是,本说明书中关于交易处理装置的实施例与本说明书中关于交易处理方法的实施例基于同一发明构思,因此该实施例的具体实施可参见前述对应的交易处理方法的实施,重复之处不再赘述。
进一步的,对应上述图9至图12描述的交易处理方法,基于相同的技术构思,本说明书实施例还提供了另一种交易处理装置。图15为本说明书实施例提供的另一种交易处理装置的模块组成示意图,该装置用于执行图9至图12描述的交易处理方法,如图15所示,该装置包括:接收模块601,接收承运方发送的支用请求;其中,所述支用请 求为所述承运方完成运单的货物运输后,申请所述货物运输对应的第一数量的资源时所发送;所述运单为所述物流平台基于托运方的托运请求所生成;所述支用请求包括支用信息;确定模块602,若确定采用第一方式进行资源转移处理,则根据所述支用信息确定交易信息;发送模块603,根据所述交易信息,向接入第一区块链的第一区块链节点发送第一交易请求,以使所述第一区块链节点在基于第一区块链中的物流信息确定所述交易信息满足预设的交易条件时,基于所述第一区块链与资源管理机构对应的第二区块链的跨链传输通道,向所述第二区块链的第二区块链节点发送第二交易请求;以使所述第二区块链节点根据所述第二交易请求,基于发放至所述物流平台的指定资源账户中的资源进行资源转移处理,以向所述承运方转移所述第一数量的资源。
本说明书实施例提供的交易处理装置,在接收到承运方发送的支用请求时,若确定采用第一方式进行资源转移处理,则向第一区块链的第一区块链节点发送第一交易请求,以使第一区块链节点在基于智能合约确定交易信息满足预设的交易条件时,基于第一区块链与资源管理机构对应的第二区块链的跨链传输通道,向第二区块链的第二区块链节点发送第二交易请求;以使第二区块链节点根据第二交易请求进行资源转移处理,并将资源转移结果信息保存至第二区块链中。由此,通过将物流信息保存至第一区块链中,将资源转移结果信息保存至第二区块链中,确保了各信息的真实性和有效性,避免了基于虚假运单非法运作资源的风险,并使得物流业务以及资源转移业务等可追溯。再者,通过数据的跨链传输,不仅打破了数据孤岛,实现了数据的互联互通,而且有利于挖掘物流信息等数据的潜在价值。
可选地,所述确定模块602,确定所述物流平台当前是否具有资源收集权限;若是,则确定采用第一方式进行资源转移处理。
可选地,所述确定模块602,根据预设的时间信息,从所述第二区块链节点获取所述物流平台的资源收集权限信息;其中,所述资源收集权限信息为所述第二区块链节点根据预设的评估模型对所述物流平台的信用进行评估处理之后所生成的信息;以及,
若所述资源收集权限信息表征具有资源收集权限,则确定所述物流平台具有资源收集权限。
可选地,所述发送模块603,采用所述物流平台的数字身份信息所对应的私钥,对所述交易信息进行加密处理,得到所述交易信息的密文数据;根据所述密文数据生成第一交易请求,向接入所述第一区块链的第一区块链节点发送所述第一交易请求。
可选地,所述接收模块601,在所述发送模块603向接入第一区块链的第一区块链节点发送第一交易请求之后,接收所述第一区块链节点发送的资源转移结果信息;以及,
根据所述资源转移结果信息,向所述承运方发送所述支用请求的请求结果信息。
可选地,所述装置还包括:生成模块和获取模块;所述接收模块601,所述接收承运方发送的支用请求之前,还接收所述托运方发送的所述托运请求;其中,所述托运请求包括托运信息;所述生成模块,根据所述托运信息生成所述运单,并确定所述运单的所述承运方;所述获取模块,获取所述运单的物流信息,向所述第一区块链节点发送所述物流信息,以使所述第一区块链节点将所述物流信息保存至所述第一区块链中。
本说明书实施例提供的交易处理装置,在接收到承运方发送的支用请求时,若确定采用第一方式进行资源转移处理,则向第一区块链的第一区块链节点发送第一交易请求,以使第一区块链节点在基于智能合约确定交易信息满足预设的交易条件时,基于第一区块链与资源管理机构对应的第二区块链的跨链传输通道,向第二区块链的第二区块链节点发送第二交易请求;以使第二区块链节点根据第二交易请求进行资源转移处理,并将资源转移结果信息保存至第二区块链中。由此,通过将物流信息保存至第一区块链中,将资源转移结果信息保存至第二区块链中,确保了各信息的真实性和有效性,避免了基于虚假运单非法运作资源的风险,并使得物流业务以及资源转移业务等可追溯。再 者,通过数据的跨链传输,不仅打破了数据孤岛,实现了数据的互联互通,而且有利于挖掘物流信息等数据的潜在价值。
需要说明的是,本说明书中关于交易处理装置的实施例与本说明书中关于交易处理方法的实施例基于同一发明构思,因此该实施例的具体实施可参见前述对应的交易处理方法的实施,重复之处不再赘述。
进一步的,对应上述描述的交易处理方法,基于相同的技术构思,本说明书实施例还提供了一种交易处理系统。图16为本说明书实施例提供的一种交易处理系统的组成示意图,如图16所示,该系统包括:物流平台701、第一区块链702、资源管理机构对应的第二区块链703;所述物流平台701,接收承运方发送的支用请求;其中,所述支用请求为所述承运方完成运单的货物运输后,申请所述货物运输对应的第一数量的资源时所发送;所述运单为所述物流平台基于托运方的托运请求所生成;若确定采用第一方式进行资源转移处理,则根据所述支用请求包括的支用信息确定交易信息;根据所述交易信息,向所述第一区块链702的第一区块链节点发送第一交易请求;所述第一区块链702的第一区块链节点,接收所述物流平台701发送的第一交易请求;调用所述第一区块链中的智能合约,基于所述智能合约根据所述第一区块链702中保存的所述物流平台701的物流信息,确定所述第一交易请求包括的所述交易信息是否符合预设的交易条件;若是,则根据所述交易信息生成第二交易请求;基于所述第一区块链702与所述第二区块链703的跨链传输通道,向所述第二区块链703的第二区块链节点发送所述第二交易请求;所述第二区块链703的第二区块链节点,根据接收到的所述第二交易请求;基于发放至所述物流平台701的指定资源账户中的资源进行资源转移处理,以向所述承运方转移所述第一数量的资源,并将所述资源转移处理的资源转移结果信息保存至所述第二区块链703中。
本说明书实施例提供的交易处理系统,第一区块链节点接收到物流平台发送的第一交易请求时,若基于智能合约根据第一区块链保存的物流平台的物流信息确定交易数据有效,则基于跨链传输通道向第二区块链的第二区块链节点发送第二交易,以使第二区块链节点进行资源转移处理,并将资源转移结果信息保存至第二区块链中。由此,通过将物流信息保存至第一区块链中,将资源转移结果信息保存至第二区块链中,确保了各信息的真实性和有效性,避免了基于虚假运单非法运作资源的风险,并使得物流业务以及资源转移业务等可追溯。再者,通过数据的跨链传输,不仅打破了数据孤岛,实现了数据的互联互通,而且有利于挖掘物流信息等数据的潜在价值。
需要说明的是,本说明书中关于交易处理系统的实施例与本说明书中关于交易处理方法的实施例基于同一发明构思,因此该实施例的具体实施可参见前述对应的交易处理方法的实施,重复之处不再赘述。
进一步的,对应上述描述的交易处理方法,基于相同的技术构思,本说明书实施例还提供了一种交易处理系统。图17为本说明书实施例提供的一种交易处理系统的组成示意图,如图17所示,该系统包括:物流平台801、第一区块链802、资源管理机构803、第二区块链804;所述物流平台801,接收承运方发送的支用请求;其中,所述支用请求为所述承运方完成运单的货物运输后,申请所述货物运输对应的第一数量的资源时所发送;所述运单为所述物流平台基于托运方的托运请求所生成;若确定采用第一方式进行资源转移处理,则根据所述支用请求包括的支用信息确定交易信息;根据所述交易信息,向所述第一区块链802的第一区块链节点发送第一交易请求;所述第一区块链802的第一区块链节点,接收所述物流平台801发送的第一交易请求;调用所述第一区块链中的智能合约,基于所述智能合约根据所述第一区块链802中保存的所述物流平台801的物流信息,确定所述第一交易请求包括的所述交易信息是否符合预设的交易条件;若是,则根据所述交易信息向所述资源管理机构803发送第二交易请求;所述资源管理机构803,接收所述第一区块链节点发送的第二交易请求;根据所述第二交易请求, 基于发放至所述物流平台801的指定资源账户中的资源进行资源转移处理,以向所述承运方转移所述第一数量的资源,并将所述资源转移处理的资源转移结果信息保存至所述第二区块链804中。
本说明书实施例提供的交易处理系统,第一区块链节点接收到物流平台发送的第一交易请求时,若基于智能合约根据第一区块链保存的物流平台的物流信息确定交易数据有效,则向资源管理机构发送第二交易,以使资源管理机构进行资源转移处理,并将资源转移结果信息保存至第二区块链中。由此,通过将物流信息保存至第一区块链中,将资源转移结果信息保存至第二区块链中,确保了各信息的真实性和有效性,避免了基于虚假运单非法运作资源的风险,并使得物流业务以及资源转移业务等可追溯。再者,资源管理机构作为中转进行数据的跨链传输,不仅打破了数据孤岛,实现了数据的互联互通,而且有利于挖掘物流信息等数据的潜在价值。
需要说明的是,本说明书中关于交易处理系统的实施例与本说明书中关于交易处理方法的实施例基于同一发明构思,因此该实施例的具体实施可参见前述对应的交易处理方法的实施,重复之处不再赘述。
进一步地,对应上述描述的交易处理方法,基于相同的技术构思,本说明书实施例还提供一种交易处理设备,该设备用于执行上述的交易处理方法,图18为本说明书实施例提供的一种交易处理设备的结构示意图。
如图18所示,交易处理设备可因配置或性能不同而产生比较大的差异,可包括一个或一个以上的处理器901和存储器902,存储器902中可存储有一个或一个以上存储应用程序或数据。其中,存储器902可是短暂存储或持久存储。存储在存储器902的应用程序可包括一个或一个以上模块(图示未示出),每个模块可包括交易处理设备中的一系列计算机可执行指令。更进一步地,处理器901可设置为与存储器902通信,在交易处理设备上执行存储器902中的一系列计算机可执行指令。交易处理设备还可包括一个或一个以上电源903,一个或一个以上有线或无线网络接口904,一个或一个以上输入输出接口905,一个或一个以上键盘906等。
在一个具体的实施例中,交易处理设备包括有存储器,以及一个或一个以上的程序,其中一个或者一个以上程序存储于存储器中,且一个或者一个以上程序可包括一个或一个以上模块,且每个模块可包括对交易处理设备中的一系列计算机可执行指令,且经配置以由一个或者一个以上处理器执行该一个或者一个以上程序包含用于进行以下计算机可执行指令:接收物流平台发送的第一交易请求;其中,所述第一交易请求基于运单的承运方发送的支用请求所发送;所述运单为所述物流平台基于托运方的托运请求所生成;所述支用请求为所述承运方完成所述运单的货物运输之后,申请所述货物运输对应的第一数量的资源时所发送;所述交易请求包括交易信息;调用所述第一区块链中的智能合约,基于所述智能合约根据所述第一区块链中保存的所述物流平台的物流信息,确定所述交易信息是否符合预设的交易条件;若是,则根据所述交易信息生成第二交易请求;基于所述第一区块链与资源管理机构对应的第二区块链的跨链传输通道,向所述第二区块链的第二区块链节点发送所述第二交易请求;以使所述第二区块链节点根据所述第二交易请求,基于发放至所述物流平台的指定资源账户中的资源进行资源转移处理,以向所述承运方转移所述第一数量的资源,并将所述资源转移处理的资源转移结果信息保存至所述第二区块链中。
本说明书实施例提供的交易处理设备,接收到物流平台发送的第一交易请求时,若基于智能合约根据第一区块链保存的物流平台的物流信息确定交易数据有效,则基于跨链传输通道向第二区块链的第二区块链节点发送第二交易,以使第二区块链节点进行资源转移处理,并将资源转移结果信息保存至第二区块链中。由此,通过将物流信息保存至第一区块链中,将资源转移结果信息保存至第二区块链中,确保了各信息的真实性和有效性,避免了基于虚假运单非法运作资源的风险,并使得物流业务以及资源转移业 务等可追溯。再者,通过数据的跨链传输,不仅打破了数据孤岛,实现了数据的互联互通,而且有利于挖掘物流信息等数据的潜在价值。
可选地,计算机可执行指令在被执行时,所述交易信息包括:所述运单的运单标识信息和所述承运方的用户信息;所述基于所述智能合约根据所述第一区块链中保存的所述物流平台的物流信息,确定所述交易信息是否符合预设的交易条件,包括:基于所述智能合约根据所述第一区块链中保存的所述物流平台的物流信息,确定所述交易信息是否满足第一预设条件;其中,所述第一预设条件包括以下一项或多项:根据所述运单标识信息从所述第一区块链中查询到关联的物流信息、所述用户信息有效、所述用户信息包括指定类型的信息;若是,则确定所述交易信息符合预设的交易条件。
可选地,计算机可执行指令在被执行时,所述接收物流平台发送的第一交易请求之前,还包括:接收所述物流平台发送的所述运单的物流信息;将接收到的所述物流信息与所述运单的运单标识信息关联保存至所述第一区块链中。
可选地,计算机可执行指令在被执行时,所述第一交易请求包括:所述交易信息的密文数据、所述物流平台的数字身份信息;其中,所述密文数据为采用所述数字身份信息所对应的私钥对所述交易信息进行签名处理所得的数据;所述基于所述智能合约根据所述第一区块链中保存的所述物流平台的物流信息,确定所述交易信息是否符合预设的交易条件之前,还包括:获取所述数字身份信息对应的公钥;采用所述公钥对所述密文数据进行解密处理,得到所述交易信息。
可选地,计算机可执行指令在被执行时,所述向所述第二区块链的第二区块链节点发送所述第二交易请求之后,还包括;接收所述第二区块链节点发送的所述资源转移结果信息;将所述资源转移结果信息保存至所述第一区块链中;以及,向所述物流平台发送所述资源转移结果信息,以使所述物流平台根据所述资源转移结果信息向所述承运方发送所述支用请求的请求结果信息。
可选地,计算机可执行指令在被执行时,所述方法还包括:若确定所述交易信息不符合所述预设的交易条件,则向所述物流平台发送请求失败信息。
本说明书实施例提供的交易处理设备,接收到物流平台发送的第一交易请求时,若基于智能合约根据第一区块链保存的物流平台的物流信息确定交易数据有效,则基于跨链传输通道向第二区块链的第二区块链节点发送第二交易,以使第二区块链节点进行资源转移处理,并将资源转移结果信息保存至第二区块链中。由此,通过将物流信息保存至第一区块链中,将资源转移结果信息保存至第二区块链中,确保了各信息的真实性和有效性,避免了基于虚假运单非法运作资源的风险,并使得物流业务以及资源转移业务等可追溯。再者,通过数据的跨链传输,不仅打破了数据孤岛,实现了数据的互联互通,而且有利于挖掘物流信息等数据的潜在价值。
在另一个具体的实施例中,交易处理设备包括有存储器,以及一个或一个以上的程序,其中一个或者一个以上程序存储于存储器中,且一个或者一个以上程序可包括一个或一个以上模块,且每个模块可包括对交易处理设备中的一系列计算机可执行指令,且经配置以由一个或者一个以上处理器执行该一个或者一个以上程序包含用于进行以下计算机可执行指令:接收物流平台发送的第一交易请求;其中,所述第一交易请求基于运单的承运方发送的支用请求所发送;所述运单为所述物流平台基于托运方的托运请求所生成;所述支用请求为所述承运方完成所述运单的货物运输之后,申请所述货物运输对应的第一数量的资源时所发送;所述交易请求包括交易信息;调用所述第一区块链中的智能合约,基于所述智能合约根据所述第一区块链中保存的所述物流平台的物流信息,确定所述交易信息是否符合预设的交易条件;若是,则根据所述交易信息向资源管理机构发送第二交易请求,以使所述资源管理机构根据所述第二交易请求,基于发放至所述物流平台的指定资源账户中的资源进行资源转移处理,以向所述承运方转移所述第一数量的资源,并将所述资源转移处理的资源转移结果信息保存至所述第二区块链中。
可选地,计算机可执行指令在被执行时,所述交易信息包括:所述运单的运单标识信息和所述承运方的用户信息;所述基于所述智能合约根据所述第一区块链中保存的所述物流平台的物流信息,确定所述交易信息是否符合预设的交易条件,包括:基于所述智能合约根据所述第一区块链中保存的所述物流平台的物流信息,确定所述交易信息是否满足第一预设条件;其中,所述第一预设条件包括以下一项或多项:根据所述运单标识信息从所述第一区块链中查询到关联的物流信息、所述用户信息有效、所述用户信息包括指定类型的信息;若是,则确定所述交易信息符合预设的交易条件。
本说明书实施例提供的交易处理设备,接收到物流平台发送的第一交易请求时,若基于智能合约根据第一区块链保存的物流平台的物流信息确定交易数据有效,则向资源管理机构发送第二交易,以使资源管理机构进行资源转移处理,并将资源转移结果信息保存至第二区块链中。由此,通过将物流信息保存至第一区块链中,将资源转移结果信息保存至第二区块链中,确保了各信息的真实性和有效性,避免了基于虚假运单非法运作资源的风险,并使得物流业务以及资源转移业务等可追溯。再者,资源管理机构作为中转进行数据的跨链传输,不仅打破了数据孤岛,实现了数据的互联互通,而且有利于挖掘物流信息等数据的潜在价值。
在另一个具体的实施例中,交易处理设备包括有存储器,以及一个或一个以上的程序,其中一个或者一个以上程序存储于存储器中,且一个或者一个以上程序可包括一个或一个以上模块,且每个模块可包括对交易处理设备中的一系列计算机可执行指令,且经配置以由一个或者一个以上处理器执行该一个或者一个以上程序包含用于进行以下计算机可执行指令:接收承运方发送的支用请求;其中,所述支用请求为所述承运方完成运单的货物运输后,申请所述货物运输对应的第一数量的资源时所发送;所述运单为所述物流平台基于托运方的托运请求所生成;所述支用请求包括支用信息;若确定采用第一方式进行资源转移处理,则根据所述支用信息确定交易信息;根据所述交易信息,向第一区块链的第一区块链节点发送第一交易请求,以使所述第一区块链节点在基于第一区块链中的物流信息确定所述交易信息满足预设的交易条件时,基于所述第一区块链与资源管理机构对应的第二区块链的跨链传输通道,向所述第二区块链的第二区块链节点发送第二交易请求;以使所述第二区块链节点根据所述第二交易请求,基于发放至所述物流平台的指定资源账户中的资源进行资源转移处理,以向所述承运方转移所述第一数量的资源。
本说明书实施例提供的交易处理设备,在接收到承运方发送的支用请求时,若确定采用第一方式进行资源转移处理,则向第一区块链的第一区块链节点发送第一交易请求,以使第一区块链节点在基于智能合约确定交易信息满足预设的交易条件时,基于第一区块链与资源管理机构对应的第二区块链的跨链传输通道,向第二区块链的第二区块链节点发送第二交易请求;以使第二区块链节点根据第二交易请求进行资源转移处理,并将资源转移结果信息保存至第二区块链中。由此,通过将物流信息保存至第一区块链中,将资源转移结果信息保存至第二区块链中,确保了各信息的真实性和有效性,避免了基于虚假运单非法运作资源的风险,并使得物流业务以及资源转移业务等可追溯。再者,通过数据的跨链传输,不仅打破了数据孤岛,实现了数据的互联互通,而且有利于挖掘物流信息等数据的潜在价值。
可选地,计算机可执行指令在被执行时,所述确定采用第一方式进行资源转移处理,包括:确定所述物流平台当前是否具有资源收集权限;若是,则确定采用第一方式进行资源转移处理。
可选地,计算机可执行指令在被执行时,所述确定所述物流平台当前是否具有资源收集权限,包括:根据预设的时间信息,从所述第二区块链节点获取所述物流平台的资源收集权限信息;其中,所述资源收集权限信息为所述第二区块链节点根据预设的评估模型对所述物流平台的信用进行评估处理之后所生成的信息;若所述资源收集权限 信息表征具有资源收集权限,则确定所述物流平台具有资源收集权限。
可选地,计算机可执行指令在被执行时,所述根据所述交易信息,向接入第一区块链的第一区块链节点发送第一交易请求,包括:采用所述物流平台的数字身份信息所对应的私钥,对所述交易信息进行加密处理,得到所述交易信息的密文数据;根据所述密文数据生成第一交易请求,向接入所述第一区块链的第一区块链节点发送所述第一交易请求。
可选地,计算机可执行指令在被执行时,所述向接入第一区块链的第一区块链节点发送第一交易请求之后,还包括:接收所述第一区块链节点发送的资源转移结果信息;根据所述资源转移结果信息,向所述承运方发送所述支用请求的请求结果信息。
可选地,计算机可执行指令在被执行时,所述接收承运方发送的支用请求之前,还包括:接收所述托运方发送的所述托运请求;其中,所述托运请求包括托运信息;根据所述托运信息生成所述运单,并确定所述运单的所述承运方;获取所述运单的物流信息,向所述第一区块链节点发送所述物流信息,以使所述第一区块链节点将所述物流信息保存至所述第一区块链中。
本说明书实施例提供的交易处理设备,在接收到承运方发送的支用请求时,若确定采用第一方式进行资源转移处理,则向第一区块链的第一区块链节点发送第一交易请求,以使第一区块链节点在基于智能合约确定交易信息满足预设的交易条件时,基于第一区块链与资源管理机构对应的第二区块链的跨链传输通道,向第二区块链的第二区块链节点发送第二交易请求;以使第二区块链节点根据第二交易请求进行资源转移处理,并将资源转移结果信息保存至第二区块链中。由此,通过将物流信息保存至第一区块链中,将资源转移结果信息保存至第二区块链中,确保了各信息的真实性和有效性,避免了基于虚假运单非法运作资源的风险,并使得物流业务以及资源转移业务等可追溯。再者,通过数据的跨链传输,不仅打破了数据孤岛,实现了数据的互联互通,而且有利于挖掘物流信息等数据的潜在价值。
需要说明的是,本说明书中关于交易处理设备的实施例与本说明书中关于交易处理方法的实施例基于同一发明构思,因此该实施例的具体实施可参见前述对应的交易处理方法的实施,重复之处不再赘述。
进一步地,对应上述描述的交易处理方法,基于相同的技术构思,本说明书实施例还提供了一种存储介质,用于存储计算机可执行指令,一个具体的实施例中,该存储介质可为U盘、光盘、硬盘等,该存储介质存储的计算机可执行指令在被处理器执行时,能实现以下流程:接收物流平台发送的第一交易请求;其中,所述第一交易请求基于运单的承运方发送的支用请求所发送;所述运单为所述物流平台基于托运方的托运请求所生成;所述支用请求为所述承运方完成所述运单的货物运输之后,申请所述货物运输对应的第一数量的资源时所发送;所述交易请求包括交易信息;调用所述第一区块链中的智能合约,基于所述智能合约根据所述第一区块链中保存的所述物流平台的物流信息,确定所述交易信息是否符合预设的交易条件;若是,则根据所述交易信息生成第二交易请求;基于所述第一区块链与资源管理机构对应的第二区块链的跨链传输通道,向所述第二区块链的第二区块链节点发送所述第二交易请求;以使所述第二区块链节点根据所述第二交易请求,基于发放至所述物流平台的指定资源账户中的资源进行资源转移处理,以向所述承运方转移所述第一数量的资源,并将所述资源转移处理的资源转移结果信息保存至所述第二区块链中。
本说明书实施例提供的存储介质存储的计算机可执行指令在被处理器执行时,接收物流平台发送的第一交易请求,若基于智能合约根据第一区块链保存的物流平台的物流信息确定交易数据有效,则基于跨链传输通道向第二区块链的第二区块链节点发送第二交易,以使第二区块链节点进行资源转移处理,并将资源转移结果信息保存至第二区块链中。由此,通过将物流信息保存至第一区块链中,将资源转移结果信息保存至第 二区块链中,确保了各信息的真实性和有效性,避免了基于虚假运单非法运作资源的风险,并使得物流业务以及资源转移业务等可追溯。再者,通过数据的跨链传输,不仅打破了数据孤岛,实现了数据的互联互通,而且有利于挖掘物流信息等数据的潜在价值。
可选地,该存储介质存储的计算机可执行指令在被处理器执行时,所述交易信息包括:所述运单的运单标识信息和所述承运方的用户信息;所述基于所述智能合约根据所述第一区块链中保存的所述物流平台的物流信息,确定所述交易信息是否符合预设的交易条件,包括:基于所述智能合约根据所述第一区块链中保存的所述物流平台的物流信息,确定所述交易信息是否满足第一预设条件;其中,所述第一预设条件包括以下一项或多项:根据所述运单标识信息从所述第一区块链中查询到关联的物流信息、所述用户信息有效、所述用户信息包括指定类型的信息;若是,则确定所述交易信息符合预设的交易条件。
可选地,该存储介质存储的计算机可执行指令在被处理器执行时,所述接收物流平台发送的第一交易请求之前,还包括:接收所述物流平台发送的所述运单的物流信息;将接收到的所述物流信息与所述运单的运单标识信息关联保存至所述第一区块链中。
可选地,该存储介质存储的计算机可执行指令在被处理器执行时,所述第一交易请求包括:所述交易信息的密文数据、所述物流平台的数字身份信息;其中,所述密文数据为采用所述数字身份信息所对应的私钥对所述交易信息进行签名处理所得的数据;所述基于所述智能合约根据所述第一区块链中保存的所述物流平台的物流信息,确定所述交易信息是否符合预设的交易条件之前,还包括:获取所述数字身份信息对应的公钥;采用所述公钥对所述密文数据进行解密处理,得到所述交易信息。
可选地,该存储介质存储的计算机可执行指令在被处理器执行时,所述向所述第二区块链的第二区块链节点发送所述第二交易请求之后,还包括;接收所述第二区块链节点发送的所述资源转移结果信息;将所述资源转移结果信息保存至所述第一区块链中;以及,向所述物流平台发送所述资源转移结果信息,以使所述物流平台根据所述资源转移结果信息向所述承运方发送所述支用请求的请求结果信息。
可选地,该存储介质存储的计算机可执行指令在被处理器执行时,所述方法还包括:若确定所述交易信息不符合所述预设的交易条件,则向所述物流平台发送请求失败信息。
本说明书实施例提供的存储介质存储的计算机可执行指令在被处理器执行时,接收物流平台发送的第一交易请求,若基于智能合约根据第一区块链保存的物流平台的物流信息确定交易数据有效,则基于跨链传输通道向第二区块链的第二区块链节点发送第二交易,以使第二区块链节点进行资源转移处理,并将资源转移结果信息保存至第二区块链中。由此,通过将物流信息保存至第一区块链中,将资源转移结果信息保存至第二区块链中,确保了各信息的真实性和有效性,避免了基于虚假运单非法运作资源的风险,并使得物流业务以及资源转移业务等可追溯。再者,通过数据的跨链传输,不仅打破了数据孤岛,实现了数据的互联互通,而且有利于挖掘物流信息等数据的潜在价值。
另一个具体的实施例中,该存储介质可为U盘、光盘、硬盘等,该存储介质存储的计算机可执行指令在被处理器执行时,能实现以下流程:接收物流平台发送的第一交易请求;其中,所述第一交易请求基于运单的承运方发送的支用请求所发送;所述运单为所述物流平台基于托运方的托运请求所生成;所述支用请求为所述承运方完成所述运单的货物运输之后,申请所述货物运输对应的第一数量的资源时所发送;所述交易请求包括交易信息;调用所述第一区块链中的智能合约,基于所述智能合约根据所述第一区块链中保存的所述物流平台的物流信息,确定所述交易信息是否符合预设的交易条件;若是,则根据所述交易信息向资源管理机构发送第二交易请求,以使所述资源管理机构根据所述第二交易请求,基于发放至所述物流平台的指定资源账户中的资源进行资源转移处理,以向所述承运方转移所述第一数量的资源,并将所述资源转移处理的资源转移 结果信息保存至所述第二区块链中。
可选地,该存储介质存储的计算机可执行指令在被处理器执行时,所述交易信息包括:所述运单的运单标识信息和所述承运方的用户信息;所述基于所述智能合约根据所述第一区块链中保存的所述物流平台的物流信息,确定所述交易信息是否符合预设的交易条件,包括:基于所述智能合约根据所述第一区块链中保存的所述物流平台的物流信息,确定所述交易信息是否满足第一预设条件;其中,所述第一预设条件包括以下一项或多项:根据所述运单标识信息从所述第一区块链中查询到关联的物流信息、所述用户信息有效、所述用户信息包括指定类型的信息;若是,则确定所述交易信息符合预设的交易条件。
本说明书实施例提供的存储介质存储的计算机可执行指令在被处理器执行时,接收物流平台发送的第一交易请求,若基于智能合约根据第一区块链保存的物流平台的物流信息确定交易数据有效,则向资源管理机构发送第二交易,以使资源管理机构进行资源转移处理,并将资源转移结果信息保存至第二区块链中。由此,通过将物流信息保存至第一区块链中,将资源转移结果信息保存至第二区块链中,确保了各信息的真实性和有效性,避免了基于虚假运单非法运作资源的风险,并使得物流业务以及资源转移业务等可追溯。再者,资源管理机构作为中转进行数据的跨链传输,不仅打破了数据孤岛,实现了数据的互联互通,而且有利于挖掘物流信息等数据的潜在价值。
另一个具体的实施例中,该存储介质可为U盘、光盘、硬盘等,该存储介质存储的计算机可执行指令在被处理器执行时,能实现以下流程:接收承运方发送的支用请求;其中,所述支用请求为所述承运方完成运单的货物运输后,申请所述货物运输对应的第一数量的资源时所发送;所述运单为所述物流平台基于托运方的托运请求所生成;所述支用请求包括支用信息;若确定采用第一方式进行资源转移处理,则根据所述支用信息确定交易信息;根据所述交易信息,向第一区块链的第一区块链节点发送第一交易请求,以使所述第一区块链节点在基于第一区块链中的物流信息确定所述交易信息满足预设的交易条件时,基于所述第一区块链与资源管理机构对应的第二区块链的跨链传输通道,向所述第二区块链的第二区块链节点发送第二交易请求;以使所述第二区块链节点根据所述第二交易请求,基于发放至所述物流平台的指定资源账户中的资源进行资源转移处理,以向所述承运方转移所述第一数量的资源。
本说明书实施例提供的存储介质存储的计算机可执行指令在被处理器执行时,接收承运方发送的支用请求,若确定采用第一方式进行资源转移处理,则向第一区块链的第一区块链节点发送第一交易请求,以使第一区块链节点在基于智能合约确定交易信息满足预设的交易条件时,基于第一区块链与资源管理机构对应的第二区块链的跨链传输通道,向第二区块链的第二区块链节点发送第二交易请求;以使第二区块链节点根据第二交易请求进行资源转移处理,并将资源转移结果信息保存至第二区块链中。由此,通过将物流信息保存至第一区块链中,将资源转移结果信息保存至第二区块链中,确保了各信息的真实性和有效性,避免了基于虚假运单非法运作资源的风险,并使得物流业务以及资源转移业务等可追溯。再者,通过数据的跨链传输,不仅打破了数据孤岛,实现了数据的互联互通,而且有利于挖掘物流信息等数据的潜在价值。
可选地,该存储介质存储的计算机可执行指令在被处理器执行时,所述确定采用第一方式进行资源转移处理,包括:确定所述物流平台当前是否具有资源收集权限;若是,则确定采用第一方式进行资源转移处理。
可选地,该存储介质存储的计算机可执行指令在被处理器执行时,所述确定所述物流平台当前是否具有资源收集权限,包括:根据预设的时间信息,从所述第二区块链节点获取所述物流平台的资源收集权限信息;其中,所述资源收集权限信息为所述第二区块链节点根据预设的评估模型对所述物流平台的信用进行评估处理之后所生成的信息;若所述资源收集权限信息表征具有资源收集权限,则确定所述物流平台具有资源 收集权限。
可选地,该存储介质存储的计算机可执行指令在被处理器执行时,所述根据所述交易信息,向接入第一区块链的第一区块链节点发送第一交易请求,包括:采用所述物流平台的数字身份信息所对应的私钥,对所述交易信息进行加密处理,得到所述交易信息的密文数据;根据所述密文数据生成第一交易请求,向接入所述第一区块链的第一区块链节点发送所述第一交易请求。
可选地,该存储介质存储的计算机可执行指令在被处理器执行时,所述向接入第一区块链的第一区块链节点发送第一交易请求之后,还包括:接收所述第一区块链节点发送的资源转移结果信息;根据所述资源转移结果信息,向所述承运方发送所述支用请求的请求结果信息。
可选地,该存储介质存储的计算机可执行指令在被处理器执行时,所述接收承运方发送的支用请求之前,还包括:接收所述托运方发送的所述托运请求;其中,所述托运请求包括托运信息;根据所述托运信息生成所述运单,并确定所述运单的所述承运方;获取所述运单的物流信息,向所述第一区块链节点发送所述物流信息,以使所述第一区块链节点将所述物流信息保存至所述第一区块链中。
本说明书实施例提供的存储介质存储的计算机可执行指令在被处理器执行时,接收承运方发送的支用请求,若确定采用第一方式进行资源转移处理,则向第一区块链的第一区块链节点发送第一交易请求,以使第一区块链节点在基于智能合约确定交易信息满足预设的交易条件时,基于第一区块链与资源管理机构对应的第二区块链的跨链传输通道,向第二区块链的第二区块链节点发送第二交易请求;以使第二区块链节点根据第二交易请求进行资源转移处理,并将资源转移结果信息保存至第二区块链中。由此,通过将物流信息保存至第一区块链中,将资源转移结果信息保存至第二区块链中,确保了各信息的真实性和有效性,避免了基于虚假运单非法运作资源的风险,并使得物流业务以及资源转移业务等可追溯。再者,通过数据的跨链传输,不仅打破了数据孤岛,实现了数据的互联互通,而且有利于挖掘物流信息等数据的潜在价值。
需要说明的是,本说明书中关于存储介质的实施例与本说明书中关于交易处理方法的实施例基于同一发明构思,因此该实施例的具体实施可参见前述对应的交易处理方法的实施,重复之处不再赘述。
上述对本说明书特定实施例进行了描述。其它实施例在所附权利要求书的范围内。在一些情况下,在权利要求书中记载的动作或步骤可按照不同于实施例中的顺序来执行并且仍然可实现期望的结果。另外,在附图中描绘的过程不一定要求示出的特定顺序或者连续顺序才能实现期望的结果。在某些实施方式中,多任务处理和并行处理也是可的或者可能是有利的。
在20世纪90年代,对于一个技术的改进可很明显地区分是硬件上的改进(例如,对二极管、晶体管、开关等电路结构的改进)还是软件上的改进(对于方法流程的改进)。然而,随着技术的发展,当今的很多方法流程的改进已经可视为硬件电路结构的直接改进。设计人员几乎都通过将改进的方法流程编程到硬件电路中来得到相应的硬件电路结构。因此,不能说一个方法流程的改进就不能用硬件实体模块来实现。例如,可编程逻辑器件(Programmable Logic Device,PLD)(例如现场可编程门阵列(Field Programmable Gate Array,FPGA))就是这样一种集成电路,其逻辑功能由用户对器件编程来确定。由设计人员自行编程来把一个数字系统“集成”在一片PLD上,而不需要请芯片制造厂商来设计和制作专用的集成电路芯片。而且,如今,取代手工地制作集成电路芯片,这种编程也多半改用“逻辑编译器(logic compiler)”软件来实现,它与程序开发撰写时所用的软件编译器相类似,而要编译之前的原始代码也得用特定的编程语言来撰写,此称之为硬件描述语言(Hardware Description Language,HDL),而HDL也并非仅有一种,而是有许多种,如ABEL(Advanced Boolean Expression Language)、AHDL (Altera Hardware Description Language)、Confluence、CUPL(Cornell University Programming Language)、HDCal、JHDL(Java Hardware Description Language)、Lava、Lola、MyHDL、PALASM、RHDL(Ruby Hardware Description Language)等,目前最普遍使用的是VHDL(Very-High-Speed Integrated Circuit Hardware Description Language)与Verilog。本领域技术人员也应该清楚,只需要将方法流程用上述几种硬件描述语言稍作逻辑编程并编程到集成电路中,就可很容易得到实现该逻辑方法流程的硬件电路。
控制器可按任何适当的方式实现,例如,控制器可采取例如微处理器或处理器以及存储可由该(微)处理器执行的计算机可读程序代码(例如软件或固件)的计算机可读介质、逻辑门、开关、专用集成电路(Application Specific Integrated Circuit,ASIC)、可编程逻辑控制器和嵌入微控制器的形式,控制器的例子包括但不限于以下微控制器:ARC 625D、Atmel AT91SAM、Microchip PIC18F26K20以及Silicone Labs C8051F320,存储器控制器还可被实现为存储器的控制逻辑的一部分。本领域技术人员也知道,除了以纯计算机可读程序代码方式实现控制器以外,完全可通过将方法步骤进行逻辑编程来使得控制器以逻辑门、开关、专用集成电路、可编程逻辑控制器和嵌入微控制器等的形式来实现相同功能。因此这种控制器可被认为是一种硬件部件,而对其内包括的用于实现各种功能的装置也可视为硬件部件内的结构。或者甚至,可将用于实现各种功能的装置视为既可是实现方法的软件模块又可是硬件部件内的结构。
上述实施例阐明的系统、装置、模块或单元,具体可由计算机芯片或实体实现,或者由具有某种功能的产品来实现。一种典型的实现设备为计算机。具体的,计算机例如可为个人计算机、膝上型计算机、蜂窝电话、相机电话、智能电话、个人数字助理、媒体播放器、导航设备、电子邮件设备、游戏控制台、平板计算机、可穿戴设备或者这些设备中的任何设备的组合。
为了描述的方便,描述以上装置时以功能分为各种单元分别描述。当然,在实施本说明书实施例时可把各单元的功能在同一个或多个软件和/或硬件中实现。
本领域内的技术人员应明白,本说明书实施例可提供为方法、系统或计算机程序产品。因此,本说明书实施例可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本说明书可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。
本说明书是参照根据本说明书实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。
在一个典型的配置中,计算设备包括一个或多个处理器(CPU)、输入/输出接口、网络接口和内存。
内存可能包括计算机可读介质中的非永久性存储器,随机存取存储器(RAM)和/或非易失性内存等形式,如只读存储器(ROM)或闪存(flash RAM)。内存是计算机可读介质的示例。
计算机可读介质包括永久性和非永久性、可移动和非可移动媒体可由任何方法或技术来实现信息存储。信息可是计算机可读指令、数据结构、程序的模块或其他数据。计算机的存储介质的例子包括,但不限于相变内存(PRAM)、静态随机存取存储器(SRAM)、动态随机存取存储器(DRAM)、其他类型的随机存取存储器(RAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、快闪记忆体或其他内存技术、只读光盘只读存储器(CD-ROM)、数字多功能光盘(DVD)或其他光学存储、磁盒式磁带,磁带磁磁盘存储或其他磁性存储设备或任何其他非传输介质,可用于存储可被计算设备访问的信息。按照本文中的界定,计算机可读介质不包括暂存电脑可读媒体(transitory media),如调制的数据信号和载波。
还需要说明的是,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、商品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、商品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、商品或者设备中还存在另外的相同要素。
本说明书实施例可在由计算机执行的计算机可执行指令的一般上下文中描述,例如程序模块。一般地,程序模块包括执行特定任务或实现特定抽象数据类型的例程、程序、对象、组件、数据结构等等。也可在分布式计算环境中实践本说明书的实施例,在这些分布式计算环境中,由通过通信网络而被连接的远程处理设备来执行任务。在分布式计算环境中,程序模块可位于包括存储设备在内的本地和远程计算机存储介质中。
本说明书中的各个实施例均采用递进的方式描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点说明的都是与其他实施例的不同之处。尤其,对于系统实施例而言,由于其基本相似于方法实施例,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。
以上所述仅为本文件的实施例而已,并不用于限制本文件。对于本领域技术人员来说,本文件可有各种更改和变化。凡在本文件的精神和原理之内所作的任何修改、等同替换、改进等,均应包含在本文件的权利要求范围之内。

Claims (28)

  1. 一种交易处理方法,应用于第一区块链的第一区块链节点,包括:
    接收物流平台发送的第一交易请求;其中,所述第一交易请求基于运单的承运方发送的支用请求所发送;所述运单为所述物流平台基于托运方的托运请求所生成;所述支用请求为所述承运方完成所述运单的货物运输之后,申请所述货物运输对应的第一数量的资源时所发送;所述交易请求包括交易信息;
    调用所述第一区块链中的智能合约,基于所述智能合约根据所述第一区块链中保存的所述物流平台的物流信息,确定所述交易信息是否符合预设的交易条件;
    若是,则根据所述交易信息生成第二交易请求;基于所述第一区块链与资源管理机构对应的第二区块链的跨链传输通道,向所述第二区块链的第二区块链节点发送所述第二交易请求;以使所述第二区块链节点根据所述第二交易请求,基于发放至所述物流平台的指定资源账户中的资源进行资源转移处理,以向所述承运方转移所述第一数量的资源,并将所述资源转移处理的资源转移结果信息保存至所述第二区块链中。
  2. 根据权利要求1所述的方法,所述交易信息包括:所述运单的运单标识信息和所述承运方的用户信息;
    所述基于所述智能合约根据所述第一区块链中保存的所述物流平台的物流信息,确定所述交易信息是否符合预设的交易条件,包括:
    基于所述智能合约根据所述第一区块链中保存的所述物流平台的物流信息,确定所述交易信息是否满足第一预设条件;其中,所述第一预设条件包括以下一项或多项:根据所述运单标识信息从所述第一区块链中查询到关联的物流信息、所述用户信息有效、所述用户信息包括指定类型的信息;
    若是,则确定所述交易信息符合预设的交易条件。
  3. 根据权利要求2所述的方法,所述接收物流平台发送的第一交易请求之前,还包括:
    接收所述物流平台发送的所述运单的物流信息;
    将接收到的所述物流信息与所述运单的运单标识信息关联保存至所述第一区块链中。
  4. 根据权利要求1所述的方法,所述第一交易请求包括:所述交易信息的密文数据、所述物流平台的数字身份信息;其中,所述密文数据为采用所述数字身份信息所对应的私钥对所述交易信息进行签名处理所得的数据;
    所述基于所述智能合约根据所述第一区块链中保存的所述物流平台的物流信息,确定所述交易信息是否符合预设的交易条件之前,还包括:
    获取所述数字身份信息对应的公钥;
    采用所述公钥对所述密文数据进行解密处理,得到所述交易信息。
  5. 根据权利要求1所述的方法,所述向所述第二区块链的第二区块链节点发送所述第二交易请求之后,还包括;
    接收所述第二区块链节点发送的所述资源转移结果信息;
    将所述资源转移结果信息保存至所述第一区块链中;以及,
    向所述物流平台发送所述资源转移结果信息,以使所述物流平台根据所述资源转移结果信息向所述承运方发送所述支用请求的请求结果信息。
  6. 根据权利求1-5任一项所述的方法,所述方法还包括:
    若确定所述交易信息不符合所述预设的交易条件,则向所述物流平台发送请求失败信息。
  7. 一种交易处理方法,应用于第一区块链的第一区块链节点,包括:
    接收物流平台发送的第一交易请求;其中,所述第一交易请求基于运单的承运方发送的支用请求所发送;所述运单为所述物流平台基于托运方的托运请求所生成;所述支 用请求为所述承运方完成所述运单的货物运输之后,申请所述货物运输对应的第一数量的资源时所发送;所述交易请求包括交易信息;
    调用所述第一区块链中的智能合约,基于所述智能合约根据所述第一区块链中保存的所述物流平台的物流信息,确定所述交易信息是否符合预设的交易条件;
    若是,则根据所述交易信息向资源管理机构发送第二交易请求,以使所述资源管理机构根据所述第二交易请求,基于发放至所述物流平台的指定资源账户中的资源进行资源转移处理,以向所述承运方转移所述第一数量的资源,并将所述资源转移处理的资源转移结果信息保存至所述第二区块链中。
  8. 根据权利要求7所述的方法,所述交易信息包括:所述运单的运单标识信息和所述承运方的用户信息;
    所述基于所述智能合约根据所述第一区块链中保存的所述物流平台的物流信息,确定所述交易信息是否符合预设的交易条件,包括:
    基于所述智能合约根据所述第一区块链中保存的所述物流平台的物流信息,确定所述交易信息是否满足第一预设条件;其中,所述第一预设条件包括以下一项或多项:根据所述运单标识信息从所述第一区块链中查询到关联的物流信息、所述用户信息有效、所述用户信息包括指定类型的信息;
    若是,则确定所述交易信息符合预设的交易条件。
  9. 一种交易处理方法,应用于物流平台,包括:
    接收承运方发送的支用请求;其中,所述支用请求为所述承运方完成运单的货物运输后,申请所述货物运输对应的第一数量的资源时所发送;所述运单为所述物流平台基于托运方的托运请求所生成;所述支用请求包括支用信息;
    若确定采用第一方式进行资源转移处理,则根据所述支用信息确定交易信息;
    根据所述交易信息,向第一区块链的第一区块链节点发送第一交易请求,以使所述第一区块链节点在基于第一区块链中的物流信息确定所述交易信息满足预设的交易条件时,基于所述第一区块链与资源管理机构对应的第二区块链的跨链传输通道,向所述第二区块链的第二区块链节点发送第二交易请求;以使所述第二区块链节点根据所述第二交易请求,基于发放至所述物流平台的指定资源账户中的资源进行资源转移处理,以向所述承运方转移所述第一数量的资源。
  10. 根据权利要求9所述的方法,所述确定采用第一方式进行资源转移处理,包括:
    确定所述物流平台当前是否具有资源收集权限;
    若是,则确定采用第一方式进行资源转移处理。
  11. 根据权利要求10所述的方法,所述确定所述物流平台当前是否具有资源收集权限,包括:
    根据预设的时间信息,从所述第二区块链节点获取所述物流平台的资源收集权限信息;其中,所述资源收集权限信息为所述第二区块链节点根据预设的评估模型对所述物流平台的信用进行评估处理之后所生成的信息;
    若所述资源收集权限信息表征具有资源收集权限,则确定所述物流平台具有资源收集权限。
  12. 根据权利要求9所述的方法,所述根据所述交易信息,向接入第一区块链的第一区块链节点发送第一交易请求,包括:
    采用所述物流平台的数字身份信息所对应的私钥,对所述交易信息进行加密处理,得到所述交易信息的密文数据;
    根据所述密文数据生成第一交易请求,向接入所述第一区块链的第一区块链节点发送所述第一交易请求。
  13. 根据权利要求9所述的方法,所述向接入第一区块链的第一区块链节点发送第一交易请求之后,还包括:
    接收所述第一区块链节点发送的资源转移结果信息;
    根据所述资源转移结果信息,向所述承运方发送所述支用请求的请求结果信息。
  14. 根据权利要求9所述的方法,所述接收承运方发送的支用请求之前,还包括:
    接收所述托运方发送的所述托运请求;其中,所述托运请求包括托运信息;
    根据所述托运信息生成所述运单,并确定所述运单的所述承运方;
    获取所述运单的物流信息,向所述第一区块链节点发送所述物流信息,以使所述第一区块链节点将所述物流信息保存至所述第一区块链中。
  15. 一种交易处理装置,应用于第一区块链的第一区块链节点,包括:
    接收模块,接收物流平台发送的第一交易请求;其中,所述第一交易请求基于运单的承运方发送的支用请求所发送;所述运单为所述物流平台基于托运方的托运请求所生成;所述支用请求为所述承运方完成所述运单的货物运输之后,申请所述货物运输对应的第一数量的资源时所发送;所述交易请求包括交易信息;
    确定模块,调用所述第一区块链中的智能合约,基于所述智能合约根据所述第一区块链中保存的所述物流平台的物流信息,确定所述交易信息是否符合预设的交易条件;
    发送模块,若所述确定模块的确定结果为是,则根据所述交易信息生成第二交易请求;基于所述第一区块链与资源管理机构对应的第二区块链的跨链传输通道,向所述第二区块链的第二区块链节点发送所述第二交易请求,以使所述第二区块链节点根据所述第二交易请求,基于发放至所述物流平台的指定资源账户中的资源进行资源转移处理,以向所述承运方转移所述第一数量的资源,并将所述资源转移处理的资源转移结果信息保存至所述第二区块链中。
  16. 根据权利要求15所述的装置,所述交易信息包括:所述运单的运单标识信息和所述承运方的用户信息;
    所述确定模块,基于所述智能合约根据所述第一区块链中保存的所述物流平台的物流信息,确定所述交易信息是否满足第一预设条件;其中,所述第一预设条件包括以下一项或多项:根据所述运单标识信息从所述第一区块链中查询到关联的物流信息、所述用户信息有效、所述用户信息包括指定类型的信息;
    若是,则确定所述交易信息符合预设的交易条件。
  17. 一种交易处理装置,应用于第一区块链的第一区块链节点,包括:
    接收模块,接收物流平台发送的第一交易请求;其中,所述第一交易请求基于运单的承运方发送的支用请求所发送;所述运单为所述物流平台基于托运方的托运请求所生成;所述支用请求为所述承运方完成所述运单的货物运输之后,申请所述货物运输对应的第一数量的资源时所发送;所述交易请求包括交易信息;
    确定模块,调用所述第一区块链中的智能合约,基于所述智能合约根据所述第一区块链中保存的所述物流平台的物流信息,确定所述交易信息是否符合预设的交易条件;
    发送模块,若所述确定模块的确定结果为是,则根据所述交易信息向资源管理机构发送第二交易请求;以使所述资源管理机构根据所述第二交易请求,基于发放至所述物流平台的指定资源账户中的资源进行资源转移处理,以向所述承运方转移所述第一数量的资源,并将所述资源转移处理的资源转移结果信息保存至所述第二区块链中。
  18. 根据权利要求17所述的装置,所述交易信息包括:所述运单的运单标识信息和所述承运方的用户信息;
    所述确定模块,基于所述智能合约根据所述第一区块链中保存的所述物流平台的物流信息,确定所述交易信息是否满足第一预设条件;其中,所述第一预设条件包括以下一项或多项:根据所述运单标识信息从所述第一区块链中查询到关联的物流信息、所述用户信息有效、所述用户信息包括指定类型的信息;
    若是,则确定所述交易信息符合预设的交易条件。
  19. 一种交易处理装置,应用于物流平台,包括:
    接收模块,接收承运方发送的支用请求;其中,所述支用请求为所述承运方完成运单的货物运输后,申请所述货物运输对应的第一数量的资源时所发送;所述运单为所述物流平台基于托运方的托运请求所生成;所述支用请求包括支用信息;
    确定模块,若确定采用第一方式进行资源转移处理,则根据所述支用信息确定交易信息;
    发送模块,根据所述交易信息,向接入第一区块链的第一区块链节点发送第一交易请求,以使所述第一区块链节点在基于第一区块链中的物流信息确定所述交易信息满足预设的交易条件时,基于所述第一区块链与资源管理机构对应的第二区块链的跨链传输通道,向所述第二区块链的第二区块链节点发送第二交易请求;以使所述第二区块链节点根据所述第二交易请求,基于发放至所述物流平台的指定资源账户中的资源进行资源转移处理,以向所述承运方转移所述第一数量的资源。
  20. 根据权利要求19所述的装置,
    所述确定模块,确定所述物流平台当前是否具有资源收集权限;
    若是,则确定采用第一方式进行资源转移处理。
  21. 一种交易处理系统,包括:物流平台、第一区块链、资源管理机构对应的第二区块链;
    所述物流平台,接收承运方发送的支用请求;其中,所述支用请求为所述承运方完成运单的货物运输后,申请所述货物运输对应的第一数量的资源时所发送;所述运单为所述物流平台基于托运方的托运请求所生成;若确定采用第一方式进行资源转移处理,则根据所述支用请求包括的支用信息确定交易信息;根据所述交易信息,向所述第一区块链的第一区块链节点发送第一交易请求;
    所述第一区块链的第一区块链节点,接收所述物流平台发送的第一交易请求;调用所述第一区块链中的智能合约,基于所述智能合约根据所述第一区块链中保存的所述物流平台的物流信息,确定所述第一交易请求包括的所述交易信息是否符合预设的交易条件;若是,则根据所述交易信息生成第二交易请求;基于所述第一区块链与所述第二区块链的跨链传输通道,向所述第二区块链的第二区块链节点发送所述第二交易请求;
    所述第二区块链的第二区块链节点,根据接收到的所述第二交易请求;基于发放至所述物流平台的指定资源账户中的资源进行资源转移处理,以向所述承运方转移所述第一数量的资源,并将所述资源转移处理的资源转移结果信息保存至所述第二区块链中。
  22. 一种交易处理系统,包括:物流平台、第一区块链、资源管理机构、第二区块链;
    所述物流平台,接收承运方发送的支用请求;其中,所述支用请求为所述承运方完成运单的货物运输后,申请所述货物运输对应的第一数量的资源时所发送;所述运单为所述物流平台基于托运方的托运请求所生成;若确定采用第一方式进行资源转移处理,则根据所述支用请求包括的支用信息确定交易信息;根据所述交易信息,向所述第一区块链的第一区块链节点发送第一交易请求;
    所述第一区块链的第一区块链节点,接收所述物流平台发送的第一交易请求;调用所述第一区块链中的智能合约,基于所述智能合约根据所述第一区块链中保存的所述物流平台的物流信息,确定所述第一交易请求包括的所述交易信息是否符合预设的交易条件;若是,则根据所述交易信息向所述资源管理机构发送第二交易请求;
    所述资源管理机构,接收所述第一区块链节点发送的第二交易请求;根据所述第二交易请求,基于发放至所述物流平台的指定资源账户中的资源进行资源转移处理,以向所述承运方转移所述第一数量的资源,并将所述资源转移处理的资源转移结果信息保存至所述第二区块链中。
  23. 一种交易处理设备,包括:
    处理器;以及,
    被安排成存储计算机可执行指令的存储器,所述计算机可执行指令在被执行时使所述处理器:
    接收物流平台发送的第一交易请求;其中,所述第一交易请求基于运单的承运方发送的支用请求所发送;所述运单为所述物流平台基于托运方的托运请求所生成;所述支用请求为所述承运方完成所述运单的货物运输之后,申请所述货物运输对应的第一数量的资源时所发送;所述交易请求包括交易信息;
    调用所述第一区块链中的智能合约,基于所述智能合约根据所述第一区块链中保存的所述物流平台的物流信息,确定所述交易信息是否符合预设的交易条件;
    若是,则根据所述交易信息生成第二交易请求;基于所述第一区块链与资源管理机构对应的第二区块链的跨链传输通道,向所述第二区块链的第二区块链节点发送所述第二交易请求;以使所述第二区块链节点根据所述第二交易请求,基于发放至所述物流平台的指定资源账户中的资源进行资源转移处理,以向所述承运方转移所述第一数量的资源,并将所述资源转移处理的资源转移结果信息保存至所述第二区块链中。
  24. 一种交易处理设备,包括:
    处理器;以及,
    被安排成存储计算机可执行指令的存储器,所述计算机可执行指令在被执行时使所述处理器:
    接收物流平台发送的第一交易请求;其中,所述第一交易请求基于运单的承运方发送的支用请求所发送;所述运单为所述物流平台基于托运方的托运请求所生成;所述支用请求为所述承运方完成所述运单的货物运输之后,申请所述货物运输对应的第一数量的资源时所发送;所述交易请求包括交易信息;
    调用所述第一区块链中的智能合约,基于所述智能合约根据所述第一区块链中保存的所述物流平台的物流信息,确定所述交易信息是否符合预设的交易条件;
    若是,则根据所述交易信息向资源管理机构发送第二交易请求,以使所述资源管理机构根据所述第二交易请求,基于发放至所述物流平台的指定资源账户中的资源进行资源转移处理,以向所述承运方转移所述第一数量的资源,并将所述资源转移处理的资源转移结果信息保存至所述第二区块链中。
  25. 一种交易处理设备,包括:
    处理器;以及,
    被安排成存储计算机可执行指令的存储器,所述计算机可执行指令在被执行时使所述处理器:
    接收承运方发送的支用请求;其中,所述支用请求为所述承运方完成运单的货物运输后,申请所述货物运输对应的第一数量的资源时所发送;所述运单为所述物流平台基于托运方的托运请求所生成;所述支用请求包括支用信息;
    若确定采用第一方式进行资源转移处理,则根据所述支用信息确定交易信息;
    根据所述交易信息,向接入第一区块链的第一区块链节点发送第一交易请求,以使所述第一区块链节点在基于第一区块链中的物流信息确定所述交易信息满足预设的交易条件时,基于所述第一区块链与资源管理机构对应的第二区块链的跨链传输通道,向所述第二区块链的第二区块链节点发送第二交易请求;以使所述第二区块链节点根据所述第二交易请求,基于发放至所述物流平台的指定资源账户中的资源进行资源转移处理,以向所述承运方转移所述第一数量的资源。
  26. 一种存储介质,用于存储计算机可执行指令,所述计算机可执行指令在被处理器执行时实现以下流程:
    接收物流平台发送的第一交易请求;其中,所述第一交易请求基于运单的承运方发送的支用请求所发送;所述运单为所述物流平台基于托运方的托运请求所生成;所述支用请求为所述承运方完成所述运单的货物运输之后,申请所述货物运输对应的第一数量 的资源时所发送;所述交易请求包括交易信息;
    调用所述第一区块链中的智能合约,基于所述智能合约根据所述第一区块链中保存的所述物流平台的物流信息,确定所述交易信息是否符合预设的交易条件;
    若是,则根据所述交易信息生成第二交易请求;基于所述第一区块链与资源管理机构对应的第二区块链的跨链传输通道,向所述第二区块链的第二区块链节点发送所述第二交易请求;以使所述第二区块链节点根据所述第二交易请求,基于发放至所述物流平台的指定资源账户中的资源进行资源转移处理,以向所述承运方转移所述第一数量的资源,并将所述资源转移处理的资源转移结果信息保存至所述第二区块链中。
  27. 一种存储介质,用于存储计算机可执行指令,所述计算机可执行指令在被处理器执行时实现以下流程:
    接收物流平台发送的第一交易请求;其中,所述第一交易请求基于运单的承运方发送的支用请求所发送;所述运单为所述物流平台基于托运方的托运请求所生成;所述支用请求为所述承运方完成所述运单的货物运输之后,申请所述货物运输对应的第一数量的资源时所发送;所述交易请求包括交易信息;
    调用所述第一区块链中的智能合约,基于所述智能合约根据所述第一区块链中保存的所述物流平台的物流信息,确定所述交易信息是否符合预设的交易条件;
    若是,则根据所述交易信息向资源管理机构发送第二交易请求,以使所述资源管理机构根据所述第二交易请求,基于发放至所述物流平台的指定资源账户中的资源进行资源转移处理,以向所述承运方转移所述第一数量的资源,并将所述资源转移处理的资源转移结果信息保存至所述第二区块链中。
  28. 一种存储介质,用于存储计算机可执行指令,所述计算机可执行指令在被处理器执行时实现以下流程:
    接收承运方发送的支用请求;其中,所述支用请求为所述承运方完成运单的货物运输后,申请所述货物运输对应的第一数量的资源时所发送;所述运单为所述物流平台基于托运方的托运请求所生成;所述支用请求包括支用信息;
    若确定采用第一方式进行资源转移处理,则根据所述支用信息确定交易信息;
    根据所述交易信息,向接入第一区块链的第一区块链节点发送第一交易请求,以使所述第一区块链节点在基于第一区块链中的物流信息确定所述交易信息满足预设的交易条件时,基于所述第一区块链与资源管理机构对应的第二区块链的跨链传输通道,向所述第二区块链的第二区块链节点发送第二交易请求;以使所述第二区块链节点根据所述第二交易请求,基于发放至所述物流平台的指定资源账户中的资源进行资源转移处理,以向所述承运方转移所述第一数量的资源。
PCT/CN2021/096605 2020-05-29 2021-05-28 交易处理方法、装置、设备及系统 WO2021239089A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010478311.4A CN111401871B (zh) 2020-05-29 2020-05-29 交易处理方法、装置、设备及系统
CN202010478311.4 2020-05-29

Publications (1)

Publication Number Publication Date
WO2021239089A1 true WO2021239089A1 (zh) 2021-12-02

Family

ID=71431856

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/096605 WO2021239089A1 (zh) 2020-05-29 2021-05-28 交易处理方法、装置、设备及系统

Country Status (2)

Country Link
CN (2) CN111401871B (zh)
WO (1) WO2021239089A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114612103A (zh) * 2022-05-10 2022-06-10 中国信息通信研究院 跨区块链交易的方法、装置、系统、介质及电子设备

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111383106B (zh) * 2020-05-29 2020-12-01 支付宝(杭州)信息技术有限公司 授信处理方法、装置、设备及系统
CN111401871B (zh) * 2020-05-29 2020-09-08 支付宝(杭州)信息技术有限公司 交易处理方法、装置、设备及系统
CN111881483B (zh) * 2020-08-07 2024-02-23 广州运通链达金服科技有限公司 基于区块链的资源账户绑定方法、装置、设备和介质
CN111899008B (zh) * 2020-09-17 2021-02-19 支付宝(杭州)信息技术有限公司 资源转移方法、装置、设备及系统
CN112910858B (zh) * 2021-01-18 2022-08-02 中国工商银行股份有限公司 确定联盟链交易统计信息和交易处理的方法及节点
CN112883425B (zh) * 2021-03-26 2023-05-16 重庆度小满优扬科技有限公司 基于区块链的数据处理方法以及区块链节点
CN114331666A (zh) * 2021-11-30 2022-04-12 上海浦东发展银行股份有限公司 一种资源交换的方法、装置、服务器、及存储介质
CN114928455B (zh) * 2022-07-18 2022-11-04 北京微芯感知科技有限公司 一种多链多身份的分布式数字身份管理方法

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107274130A (zh) * 2017-06-16 2017-10-20 合肥维天运通信息科技股份有限公司 一种基于区块链技术和物流信息平台的司机征信系统及方法
WO2018115567A1 (en) * 2016-12-19 2018-06-28 Nokia Technologies Oy Method and apparatus for private data transfer between parties
CN110992040A (zh) * 2020-03-03 2020-04-10 支付宝(杭州)信息技术有限公司 交易处理方法、装置及设备
US20200118068A1 (en) * 2018-10-10 2020-04-16 QuestaWeb, Inc. Hierarchical Blockchain Architecture for Global Trade Management
CN111401871A (zh) * 2020-05-29 2020-07-10 支付宝(杭州)信息技术有限公司 交易处理方法、装置、设备及系统

Family Cites Families (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017066431A1 (en) * 2015-10-13 2017-04-20 TransActive Grid Inc. Use of blockchain based distributed consensus control
US11004028B2 (en) * 2017-05-26 2021-05-11 Chris Broveleit Blockchain-based logistics systems
CN107358417B (zh) * 2017-06-23 2021-12-28 苏州缓流科技有限公司 基于区块链技术的可监管的支付方法
CN107451780A (zh) * 2017-08-04 2017-12-08 合肥维天运通信息科技股份有限公司 基于区块链技术和物流信息平台的供应链金融实现方法
WO2019051822A1 (zh) * 2017-09-18 2019-03-21 腾讯科技(深圳)有限公司 资源交易的方法、节点、装置及存储介质
CN107679794A (zh) * 2017-09-19 2018-02-09 前海云链科技(深圳)有限公司 一种基于区块链的物流管理方法及装置
CN107730188A (zh) * 2017-11-22 2018-02-23 合肥维天运通信息科技股份有限公司 一种基于区块链技术的物流结算及支付管理系统及方法
CN108389046B (zh) * 2018-02-07 2020-08-28 西安交通大学 一种电子商务中基于区块链技术的隐私保护交易方法
WO2019168786A1 (en) * 2018-02-28 2019-09-06 Walmart Apollo, Llc Blockchain-based system and method for crowdsourced delivery
CN109544160B (zh) * 2018-11-20 2020-06-30 杭州呯嘭智能技术有限公司 一种基于区块链和智能合约的交易真实性验证方法及系统
CN110490728B (zh) * 2019-07-30 2021-03-19 创新先进技术有限公司 基于区块链的交易、交易监管方法、装置及设备
CN110609869B (zh) * 2019-09-10 2023-04-07 连连银通电子支付有限公司 一种基于区块链的数据存储方法、相关设备及存储介质
CN110766406B (zh) * 2019-09-30 2024-03-15 腾讯科技(深圳)有限公司 资源转移方法、资源转移装置、存储介质及电子设备
CN111199479B (zh) * 2019-12-27 2023-09-26 湖南大学 基于区块链进行进口海外代付的方法、存储介质

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018115567A1 (en) * 2016-12-19 2018-06-28 Nokia Technologies Oy Method and apparatus for private data transfer between parties
CN107274130A (zh) * 2017-06-16 2017-10-20 合肥维天运通信息科技股份有限公司 一种基于区块链技术和物流信息平台的司机征信系统及方法
US20200118068A1 (en) * 2018-10-10 2020-04-16 QuestaWeb, Inc. Hierarchical Blockchain Architecture for Global Trade Management
CN110992040A (zh) * 2020-03-03 2020-04-10 支付宝(杭州)信息技术有限公司 交易处理方法、装置及设备
CN111401871A (zh) * 2020-05-29 2020-07-10 支付宝(杭州)信息技术有限公司 交易处理方法、装置、设备及系统

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114612103A (zh) * 2022-05-10 2022-06-10 中国信息通信研究院 跨区块链交易的方法、装置、系统、介质及电子设备

Also Published As

Publication number Publication date
CN111401871B (zh) 2020-09-08
CN112232795A (zh) 2021-01-15
CN112232795B (zh) 2022-07-08
CN111401871A (zh) 2020-07-10

Similar Documents

Publication Publication Date Title
WO2021239089A1 (zh) 交易处理方法、装置、设备及系统
TWI723261B (zh) 資料儲存方法、資料查詢方法及裝置
WO2021239104A1 (zh) 基于区块链的业务处理
WO2021228245A1 (zh) 资产转移方法、装置、设备及系统
TWI698820B (zh) 共識驗證的方法及裝置
US11386191B2 (en) Trusted hardware-based identity management methods, apparatuses, and devices
EP3591510B1 (en) Method and device for writing service data in block chain system
CN109214197B (zh) 基于区块链来处理隐私数据的方法、装置及存储介质
WO2021204068A1 (zh) 可验证声明的存储
WO2021174930A1 (zh) 一种业务处理系统、业务处理的方法、装置及设备
WO2021175057A1 (zh) 一种业务处理系统、业务处理的方法、装置及设备
WO2021239090A1 (zh) 授信处理方法、装置、设备及系统
EP3964995B1 (en) Data processing methods, apparatuses, and devices
CN111464499A (zh) 电子仓单溯源方法、装置、计算机设备及存储介质
TW201917666A (zh) 資料審計的方法及裝置
CN110264198B (zh) 结合代码标注与交易类型的有条件的收据存储方法和节点
WO2020233635A1 (zh) 结合多类型维度的条件限制的收据存储方法和节点
US20210326871A1 (en) Resource transfer methods, apparatuses, devices, and systems
CN114884674B (zh) 一种基于区块链的用户数据流转方法、装置及设备
WO2022022245A1 (zh) 数字物权凭证的生成方法、装置及设备
CN111814172A (zh) 一种数据授权信息的获取方法、装置及设备
CN113222667B (zh) 权益分享处理方法及装置
WO2021204067A1 (zh) 可验证声明的转发、获取
WO2021254260A1 (zh) 基于区块链的租赁处理方法、装置、设备及系统
WO2021239105A1 (zh) 数据推送方法、装置、设备及系统

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: 21812384

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: 21812384

Country of ref document: EP

Kind code of ref document: A1