A logistics scheduling method and system based on blockchain key data storage
Through blockchain technology, key data storage evidence is carried out in logistics transactions, the problems of information security and decentralization in traditional logistics transactions are solved, the decentralization and information security of logistics scheduling are realized, and the reliability of scheduling is improved. User trust.
Patent Information
- Application Number
- CN202111192320.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-10-13
- Publication Date
- 2024-11-01
- Estimated Expiration
- 2041-10-13
AI Technical Summary
The traditional logistics transaction model has information security problems, and it is impossible to verify the authenticity of user identity. The uniqueness of the identity of both parties on the transaction is difficult to guarantee, and it is difficult to achieve decentralization and non-repudiation, which makes it difficult to solve the problem of information consensus trust.
Using blockchain-based key data proof storage technology, the logistics task information is generated and verified through the steps of entry, upload, obtaining, receipt and confirmation, and the blockchain network is used to store and verify the consensus mechanism to ensure the decentralization of logistics transactions. and information security.
It realizes the decentralization of logistics scheduling, improves the reliability and information security of scheduling, ensures the immutability and credibility of logistics transactions, and enhances the trust between users.
Smart Images

Figure CN113988547B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of logistics scheduling, and specifically to a logistics scheduling method and system based on blockchain key data storage. Background Art
[0002] At present, in addition to customizing transportation plans through the relevant modules of the logistics information management system and simply managing and tracking warehousing through the inbound and outbound modules, most logistics transactions still remain in manual management and paper document retention. The logistics transaction process includes order management, inbound and outbound warehousing, inventory counting, transportation tracking, transaction feedback, etc. The detailed sensitive information of the circulation links such as transportation costs, document review, transaction docking, and product integrity generated by this process is not processed in a unified and centralized manner. The entire logistics transaction process is invisible, and it is impossible to connect all customers in the supply chain to provide efficient logistics services, and it cannot meet the requirements of logistics decentralization and non-repudiation.
[0003] The traditional logistics centralized transaction model has information security issues: first, it is vulnerable to cyber attacks, which may lead to the disclosure of confidential information; second, it is impossible to verify the authenticity of user identities and review traceability, and the unique identity of both parties to the transaction cannot be guaranteed; third, credit rating is conducted based on the previous experience and qualification review of both parties to the transaction, and there is a large amount of unreliable transaction data. It is very difficult to collect comprehensive, complete and systematic logistics transaction information. The information security of logistics transaction activities and the consensus trust of upstream and downstream customers need to be solved urgently. Therefore, how to solve the problems of decentralization of logistics transactions, trust between users, and traceability has important scientific significance and economic value. Therefore, we need to propose a logistics scheduling method and system based on blockchain key data storage. Summary of the invention
[0004] The purpose of the present invention is to provide a logistics scheduling method and system based on blockchain key data storage, which realizes the decentralized scheduling and self-matching of logistics companies, greatly improves the reliability of scheduling, and protects the information security of logistics transaction activities, so as to solve the problems raised in the above-mentioned background technology.
[0005] To achieve the above object, the present invention provides the following technical solution: a logistics scheduling method based on blockchain key data storage, the method comprising the following steps:
[0006] S1, input step, according to the received logistics processing request, import the corresponding order information, and verify the order information, and when the verification result is true, generate logistics task information;
[0007] S2, an upload step, in which key data evidence is generated according to the logistics task information, and the key data evidence is sent to the node of the target blockchain, so that the key data evidence is stored in the target blockchain based on the consensus mechanism;
[0008] S3, acquisition step, any node in the target blockchain acquires key data evidence from the blockchain account book, unpacks the key data evidence into logistics task information, and determines whether the logistics company corresponding to the current node is capable of executing the logistics task according to the logistics task information: if yes, generate transaction information; if no, continue to acquire key data evidence from the blockchain account book;
[0009] S4, receipt step, generating a marked data block according to the transaction information and key data evidence, the marked data block is used to pair the marked logistics task information with the transaction information, and the marked data block is sent to the current blockchain network to participate in the consensus, and the blockchain network generates consensus result information after participating in the consensus;
[0010] S5, confirmation step, the current node receives the returned consensus result information and determines whether the marked data block passes the consensus: if yes, an execution instruction is generated and sent to the logistics company corresponding to the current node; if not, return to the acquisition step of S3.
[0011] Preferably, in S1, verifying the order information includes obtaining the order number of the order information from the trading platform, obtaining target logistics information matching the order number from the logistics service platform; matching the target logistics information with the order information, and verifying the authenticity of the target cross-border transaction based on the matching result.
[0012] Preferably, the logistics task information includes logistics order number, logistics task, expected cost, recent transaction information, circulation address, circulation time and commodity description information.
[0013] Preferably, the step of packaging and generating key data evidence according to the logistics task information in S2 includes: generating a Merkle tree according to the hash value sorting of the logistics task information, calculating the root hash value of the classified Merkle tree, packaging the Merkle tree constructed after sorting the logistics task information, and packaging and sending the Merkle tree root hash value set. The node currently sends the transaction information to the current blockchain network.
[0014] Preferably, the marked data block includes a first key field in the logistics task information and a second key field in the transaction information; the marked data block in S4 is used for pairing including: performing a hash operation based on the first key field and the second key field, generating a Merkle tree based on the current hash value calculation, and packaging the Merkle tree structure.
[0015] A logistics scheduling system based on blockchain key data storage, including the following modules:
[0016] The information input module is used to import the corresponding order information according to the received logistics processing request, and verify the order information, and generate logistics task information when the verification result is true;
[0017] An information transmission module, used to generate key data evidence according to the logistics task information packaging, and send the key data evidence to the node of the target blockchain, so that the key data evidence is stored in the target blockchain based on the consensus mechanism;
[0018] The user-side order sending and receiving module is used to obtain key data evidence from the blockchain account book, unpack the key data evidence into logistics task information, and judge whether the logistics company corresponding to the current node is capable of executing the logistics task according to the logistics task information: if yes, generate transaction information; if not, continue to obtain key data evidence from the blockchain account book;
[0019] A marked data block is generated based on the transaction information and key data evidence, and the marked data block is used to pair the marked logistics task information with the transaction information. The marked data block is sent to the current blockchain network to participate in the consensus, and the blockchain network generates consensus result information after participating in the consensus.
[0020] The user-side logistics execution module is used to receive the returned consensus result information and determine whether the marked data block has passed the consensus: if yes, an execution instruction is generated and sent to the logistics company corresponding to the current node; if not, key data evidence is continuously obtained from the blockchain account book.
[0021] Preferably, the user-side order sending and receiving module includes an acquisition unit, a judgment unit and a receipt unit;
[0022] The acquisition unit is used to acquire key data evidence from the blockchain account book, and unpack the key data evidence into logistics task information;
[0023] The judgment unit is used to judge whether the logistics company corresponding to the current node is capable of executing the logistics task according to the logistics task information: if yes, generate transaction information; if no, continue to obtain key data from the blockchain account book for evidence storage;
[0024] The receipt unit is used to generate a marked data block based on the transaction information and key data evidence, and the marked data block is used to pair the marked logistics task information with the transaction information, and send the marked data block to the current blockchain network to participate in the consensus.
[0025] Preferably, the user-side order sending and receiving module further includes a processor and a memory;
[0026] The processor is used to perform a hash operation to generate a marked data block, and to pair the marked data block with marked logistics task information and transaction information through the hash operation;
[0027] The memory is used to store logistics task information and transaction information, and is divided into multiple data storages through a Merkle directed acyclic data structure.
[0028] Compared with the prior art, the present invention has the following beneficial effects:
[0029] The present invention uses blockchain network nodes to participate in scheduling, and does not require a centralized scheduling system, but a decentralized scheduling system; blockchain nodes directly participate in scheduling, even if many nodes fail or crash, it has no effect on scheduling, and many nodes in the blockchain network jointly participate in scheduling, so that each node only needs to undertake part of the scheduling logistics tasks, which can greatly improve the speed of scheduling, and the anti-tampering characteristics of blockchain technology can make the historical records of logistics companies' scheduling impossible to tamper with, thereby greatly improving the security of scheduling and the credibility of scheduling information. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] Figure 1 It is a schematic diagram of the steps of the method of the present invention;
[0031] Figure 2 It is a schematic diagram of the system structure of the present invention. DETAILED DESCRIPTION
[0032] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0033] See also Figure 1-2 The present invention provides a technical solution: a logistics scheduling method based on blockchain key data storage, the method comprising the following steps:
[0034] S1, input step, according to the received logistics processing request, import the corresponding order information, and verify the order information, and when the verification result is true, generate logistics task information;
[0035] Among them, verifying the order information includes obtaining the order number of the order information from the trading platform, obtaining the target logistics information matching the order number from the logistics service platform; matching the target logistics information with the order information, and verifying the authenticity of the target cross-border transaction based on the matching result.
[0036] The logistics task information includes logistics order number, logistics task, expected cost, recent transaction information, transfer address, transfer time and product description information.
[0037] S2, an upload step, in which key data evidence is generated according to the logistics task information, and the key data evidence is sent to the node of the target blockchain, so that the key data evidence is stored in the target blockchain based on the consensus mechanism;
[0038] Among them, the step of packaging and generating key data evidence according to the logistics task information includes: generating a Merkle tree according to the hash value sorting of the logistics task information, calculating the classified Merkle tree root hash value, packaging the Merkle tree constructed after sorting the logistics task information, and packaging and sending the Merkle tree root hash value set. The current node sends the transaction information to the current blockchain network.
[0039] S3, acquisition step, any node in the target blockchain acquires key data evidence from the blockchain account book, unpacks the key data evidence into logistics task information, and determines whether the logistics company corresponding to the current node is capable of executing the logistics task according to the logistics task information: if yes, generate transaction information; if no, continue to acquire key data evidence from the blockchain account book;
[0040] S4, receipt step, generating a marked data block according to the transaction information and key data evidence, the marked data block is used to pair the marked logistics task information with the transaction information, and the marked data block is sent to the current blockchain network to participate in the consensus, and the blockchain network generates consensus result information after participating in the consensus;
[0041] Wherein, the marking data block includes the first key field in the logistics task information and the second key field in the transaction information;
[0042] Marking the data block for pairing includes: performing a hash operation according to the first key field and the second key field, generating a Merkle tree according to the current hash value calculation, and packaging the Merkle tree structure.
[0043] S5, confirmation step, the current node receives the returned consensus result information and determines whether the marked data block passes the consensus: if yes, an execution instruction is generated and sent to the logistics company corresponding to the current node; if not, return to the acquisition step of S3.
[0044] This embodiment also provides a logistics scheduling system based on blockchain key data storage using the above method, including the following modules:
[0045] The information input module is used to import the corresponding order information according to the received logistics processing request, and verify the order information, and generate logistics task information when the verification result is true;
[0046] An information transmission module, used to generate key data evidence according to the logistics task information packaging, and send the key data evidence to the node of the target blockchain, so that the key data evidence is stored in the target blockchain based on the consensus mechanism;
[0047] The user-side order sending and receiving module is used to obtain key data evidence from the blockchain account book, unpack the key data evidence into logistics task information, and judge whether the logistics company corresponding to the current node is capable of executing the logistics task according to the logistics task information: if yes, generate transaction information; if not, continue to obtain key data evidence from the blockchain account book;
[0048] A marked data block is generated based on the transaction information and key data evidence, and the marked data block is used to pair the marked logistics task information with the transaction information. The marked data block is sent to the current blockchain network to participate in the consensus, and the blockchain network generates consensus result information after participating in the consensus.
[0049] The user-side logistics execution module is used to receive the returned consensus result information and determine whether the marked data block has passed the consensus: if yes, an execution instruction is generated and sent to the logistics company corresponding to the current node; if not, key data evidence is continuously obtained from the blockchain account book.
[0050] The user-side order sending and receiving module includes an acquisition unit, a judgment unit and a receipt unit;
[0051] The acquisition unit is used to obtain key data evidence from the blockchain account book, and unpack the key data evidence into logistics task information; the judgment unit is used to judge whether the logistics company corresponding to the current node is capable of performing the logistics task according to the logistics task information: if yes, generate transaction information; if not, continue to obtain key data evidence from the blockchain account book; the receipt unit is used to generate a marked data block according to the transaction information and the key data evidence, and the marked data block is used to pair the marked logistics task information with the transaction information, and send the marked data block to the current blockchain network to participate in consensus.
[0052] The user-side order sending and receiving module also includes a processor and a memory; the processor is used to perform hash operations to generate marked data blocks, and through hash operations, the marked data blocks are paired to mark logistics task information and transaction information; the memory is used to store logistics task information and transaction information, and is divided into multiple data storages through a Merkle directed acyclic data structure.
[0053] During use, the data processing of block hashing onto the blockchain is shared between the user terminals of the logistics company, which saves computing resource time. The data processing of the logistics company is linked by a smart contract that controls the entire data processing process. The use of smart contracts ensures that the data processing at the user terminal and the data processing at the platform terminal are consistent with each other. The logistics company is certified by a third-party certification agency before registering with the blockchain network or blockchain platform. It is not affected by the computing nodes of the blockchain network or blockchain platform. The verification of logistics information is carried out in a trustworthy manner at the third-party certification agency, and the third-party certification is used as a proof of qualification for the logistics company to participate in the blockchain network. In this way, the credibility of the dispatching information and the protection of user privacy are kept in the best balance.
[0054] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the appended claims and their equivalents.
Claims
1. A logistics scheduling method based on blockchain key data storage, characterized by: The method comprises the following steps: S1, input step, according to the received logistics processing request, import the corresponding order information, and verify the order information, and when the verification result is true, generate logistics task information; S2, an upload step, in which key data evidence is generated according to the logistics task information, and the key data evidence is sent to the node of the target blockchain, so that the key data evidence is stored in the target blockchain based on the consensus mechanism; S3, acquisition step, any node in the target blockchain acquires key data evidence from the blockchain account book, unpacks the key data evidence into logistics task information, and determines whether the logistics company corresponding to the current node is capable of executing the logistics task according to the logistics task information: if yes, generate transaction information; if no, continue to acquire key data evidence from the blockchain account book; S4, receipt step, generating a marked data block according to the transaction information and key data evidence, the marked data block is used to pair the marked logistics task information with the transaction information, and the marked data block is sent to the current blockchain network to participate in the consensus, and the blockchain network generates consensus result information after participating in the consensus; S5, confirmation step, the current node receives the returned consensus result information and determines whether the marked data block passes the consensus: if yes, an execution instruction is generated and sent to the logistics company corresponding to the current node; If not, return to the S3 acquisition step; In S1, verifying the order information includes obtaining an order number of the order information from a trading platform and obtaining target logistics information matching the order number from a logistics service platform; The target logistics information is matched with the order information, and the authenticity of the target cross-border transaction is verified according to the matching result; the logistics task information includes logistics order number, logistics task, expected cost, recent transaction information, transfer address, transfer time and commodity description information; S2 packages and generates key data evidence according to the logistics task information, including: generating a Merkle tree according to the hash value sorting of the logistics task information, calculating the Merkle tree root hash value, packaging the Merkle tree constructed after sorting the logistics task information, packaging and sending the Merkle tree root hash value set, and the node currently sends the transaction information to the current blockchain network; the marked data block includes the first key field in the logistics task information and the second key field in the transaction information; the marked data block in S4 is used for pairing, including: performing a hash operation according to the first key field and the second key field, generating a Merkle tree according to the current hash value calculation, and packaging the Merkle tree structure.
2. A logistics dispatching system based on blockchain key data storage, the system is used to implement the method as claimed in claim 1, characterized in that: Includes the following modules: The information input module is used to import the corresponding order information according to the received logistics processing request, and verify the order information, and generate logistics task information when the verification result is true; An information transmission module, used to generate key data evidence according to the logistics task information packaging, and send the key data evidence to the node of the target blockchain, so that the key data evidence is stored in the target blockchain based on the consensus mechanism; The user-side order sending and receiving module is used to obtain key data evidence from the blockchain account book, unpack the key data evidence into logistics task information, and judge whether the logistics company corresponding to the current node is capable of executing the logistics task according to the logistics task information: if yes, generate transaction information; if not, continue to obtain key data evidence from the blockchain account book; Generate a marked data block based on the transaction information and key data evidence, the marked data block is used to pair the marked logistics task information with the transaction information, and send the marked data block to the current blockchain network to participate in the consensus, and the blockchain network generates consensus result information after participating in the consensus; The user-side logistics execution module is used to receive the returned consensus result information and determine whether the marked data block has passed the consensus: if yes, an execution instruction is generated and sent to the logistics company corresponding to the current node; If not, continue to obtain key data evidence from the blockchain ledger.
3. According to claim 2, a logistics scheduling system based on blockchain key data storage is characterized in that: The user-side order sending and receiving module includes an acquisition unit, a judgment unit and a receipt unit; The acquisition unit is used to acquire key data evidence from the blockchain account book, and unpack the key data evidence into logistics task information; The judgment unit is used to judge whether the logistics company corresponding to the current node is capable of executing the logistics task according to the logistics task information: if yes, generate transaction information; if no, continue to obtain key data from the blockchain account book for evidence storage; The receipt unit is used to generate a marked data block based on the transaction information and key data evidence, and the marked data block is used to pair the marked logistics task information with the transaction information, and send the marked data block to the current blockchain network to participate in the consensus.
4. A logistics dispatching system based on blockchain key data storage according to claim 3, characterized in that: The user-side order sending and receiving module also includes a processor and a memory; The processor is used to perform a hash operation to generate a marked data block, and to pair the marked data block with marked logistics task information and transaction information through the hash operation; The memory is used to store logistics task information and transaction information, and is divided into multiple data storages through a Merkle directed acyclic data structure.
Citation Information
Patent Citations
Blockchain-based logistics scheduling method and system
CN108596548A
A block chain electronic storage method based on deterministic consensus and trusted timestamp
CN109508984A
Data storage method based on block chain, related device and storage medium
CN110609869A
International logistics tracking and scheduling system based on block chain
CN111445127A
