Logistics management and control method and device based on block chain, and electronic equipment

By using blockchain technology in the logistics management system to manage logistics transactions, the problems of information islands, insufficient data security and poor traceability in the traditional system are solved, and a more efficient, secure and transparent logistics transaction process is achieved.

CN119359185APending Publication Date: 2025-01-24SHAANXI YOUFU DIGITAL TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411437818.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-15
Publication Date
2025-01-24

AI Technical Summary

Technical Problem

Due to the centralized architecture, traditional logistics management systems have caused information silos, insufficient data security, and lack an effective traceability mechanism, making it difficult to quickly locate the responsible party, which increases the complexity and time cost of dispute handling.

Method used

The blockchain -based logistics control method is used to conduct transaction requests, technical compliance and business compliance review, transaction consensus verification, block packaging and consensus verification through the blockchain logistics management and control platform to ensure the transparency, security and security and security of logistics transaction information Tationistry.

Benefits of technology

It significantly improves the transparency, security and efficiency of logistics transactions, ensures the non-tamperability and traceability of data, and reduces the complexity and time cost of dispute handling.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119359185A_ABST
    Figure CN119359185A_ABST
Patent Text Reader

Abstract

The invention provides a logistics management and control method and device based on a block chain and electronic equipment, and relates to the technical field of computers, and the method comprises the steps that a technology compliance node and a business compliance node carry out compliance auditing on logistics transaction information through a block chain logistics management and control platform; selecting a preset number of candidate consensus nodes as actual consensus nodes based on the block chain logistics management and control platform, wherein the actual consensus nodes perform transaction consensus verification on the logistics transaction information through the block chain logistics management and control platform; when the transaction consensus verification is passed, the block packaging node packages the logistics transaction information and other logistics transaction information in a preset time slot to generate block information, and broadcasts the block information to an actual consensus node through the block chain logistics management and control platform; the actual consensus node performs block consensus verification on the block information through the block chain logistics management and control platform; and completing logistics transaction information uplink management and control. According to the invention, transparency, security and efficiency of logistics transaction are significantly improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a blockchain-based logistics management method, device and electronic equipment. Background Art

[0002] With the rapid development of Internet technology, the logistics industry, as an indispensable bridge connecting production and consumption, has become the focus of attention both inside and outside the industry in terms of its operational efficiency and data security.

[0003] Traditional logistics management systems are limited by a centralized architecture. This model has significant obstacles in promoting information sharing among various participants (such as manufacturers, carriers, distributors and consumers), forming information islands and seriously restricting the smoothness and efficiency of logistics processes. In terms of data security, traditional systems are often the target of cyber attacks. Once their centrally stored databases are invaded, sensitive logistics information may be leaked or maliciously tampered with, which not only harms corporate interests but also poses a threat to consumer privacy. In addition, due to the lack of an effective traceability mechanism, traditional logistics management systems are unable to track and trace goods. When delays, damage or loss occur during the logistics process, it is difficult to quickly and accurately locate the responsible party, which increases the complexity and time cost of dispute resolution.

[0004] Therefore, a logistics control method, device and electronic equipment based on blockchain are proposed. Summary of the invention

[0005] This specification provides a blockchain-based logistics management method, device and electronic equipment, which significantly improves the transparency, security and efficiency of logistics transactions.

[0006] This specification provides a blockchain-based logistics management method, including:

[0007] The transaction request node publishes the logistics transaction information to the blockchain logistics management and control platform;

[0008] The technical compliance node and the business compliance node respectively conduct compliance review on the logistics transaction information through the blockchain logistics management and control platform;

[0009] When all audits are in compliance, a preset number of candidate consensus nodes are selected as actual consensus nodes based on the blockchain logistics management and control platform, and the actual consensus nodes perform transaction consensus verification on the logistics transaction information through the blockchain logistics management and control platform;

[0010] When the transaction consensus verification is passed, the block packaging node packages the logistics transaction information with other logistics transaction information within the preset time interval to generate block information, and broadcasts it to the actual consensus node through the blockchain logistics management and control platform;

[0011] The actual consensus node performs block consensus verification on the block information through the blockchain logistics management and control platform;

[0012] When the block consensus verification is passed, the logistics transaction information is put on-chain for management and control.

[0013] Optionally, the selecting a preset number of candidate consensus nodes as actual consensus nodes based on the blockchain logistics management and control platform includes:

[0014] Determine the reputation value of the candidate consensus node based on the comprehensive consensus reputation value, smart contract performance reputation value, and freight volume reputation value of the candidate consensus node;

[0015] A preset number of candidate consensus nodes are selected as the actual consensus nodes based on the candidate consensus node reputation values.

[0016] Optionally, determining the comprehensive consensus reputation value of the candidate consensus node includes:

[0017] Based on the historical node reputation value and the node reputation value of the most recent consensus cycle of the candidate consensus node, the comprehensive consensus reputation value of the candidate consensus node is determined.

[0018] Optionally, the process of determining the historical node reputation value of the candidate consensus node and the node reputation value of the candidate consensus node in the most recent consensus cycle includes:

[0019] The process of determining the historical node reputation value of the candidate consensus node specifically includes:

[0020]

[0021] in, is the historical node reputation value of the candidate consensus node, T is the current consensus cycle, They represent the total number of malicious votes and the total number of good faith votes of node i (i=1,2,…n) participating in the consensus verification process from joining the blockchain logistics control platform to the Tth consensus cycle, h is the historical performance, and β≥1 is the reputation coefficient of the historical consensus performance of the candidate consensus node;

[0022] The process of determining the node reputation value of the candidate consensus node in the most recent consensus cycle specifically includes:

[0023]

[0024] in, is the node reputation value of the candidate consensus node in the most recent consensus cycle, It represents the number of malicious votes and good faith votes of node i in the consensus process in the previous consensus cycle T-1, and ω≥1 is the penalty factor.

[0025] Optionally, determining the comprehensive consensus reputation value of the candidate consensus node based on the historical node reputation value and the node reputation value of the most recent consensus cycle of the candidate consensus node includes:

[0026]

[0027] in, is the comprehensive consensus reputation value of the candidate consensus node, and It is divided into weight coefficients representing the reputation value of historical nodes and the reputation value of nodes in the most recent consensus cycle.

[0028] Optionally, the transaction consensus verification is achieved by including a preset proportion of the actual consensus nodes agreeing to put the logistics transaction information on the chain.

[0029] Optionally, the preset proportion of the actual consensus nodes agreeing to upload the logistics transaction information to the chain includes:

[0030] The consensus verification algorithm includes a Byzantine fault-tolerant consensus algorithm;

[0031] The preset proportion of the actual consensus nodes agrees to put the logistics transaction information on the chain, specifically:

[0032] N ≥ 3f + 1

[0033] Wherein, N is the total number of nodes in the network, and f is the actual consensus node agreed upon.

[0034] This specification provides a blockchain-based logistics control device, which is characterized by including:

[0035] Publishing module, used by transaction request nodes to publish logistics transaction information to the blockchain logistics management and control platform;

[0036] An audit module, which is used for the technical compliance node and the business compliance node to conduct compliance audits on the logistics transaction information through the blockchain logistics management and control platform;

[0037] A transaction verification module, which is used to select a preset number of candidate consensus nodes as actual consensus nodes based on the blockchain logistics management and control platform when all audits are in compliance, and the actual consensus nodes perform transaction consensus verification on the logistics transaction information through the blockchain logistics management and control platform;

[0038] The packaging module is used for, when the transaction consensus verification is passed, the block packaging node packages the logistics transaction information with other logistics transaction information within a preset time interval to generate block information, and broadcasts it to the actual consensus node through the blockchain logistics management and control platform;

[0039] A block verification module, used for the actual consensus node to perform block consensus verification on the block information through the blockchain logistics management and control platform;

[0040] The control module is used to complete the on-chain control of the logistics transaction information when the block consensus verification is passed.

[0041] Optionally, the transaction verification module includes:

[0042] Determine the reputation value of the candidate consensus node based on the comprehensive consensus reputation value, smart contract performance reputation value, and freight volume reputation value of the candidate consensus node;

[0043] A preset number of candidate consensus nodes are selected as the actual consensus nodes based on the candidate consensus node reputation values.

[0044] Optionally, determining the comprehensive consensus reputation value of the candidate consensus node includes:

[0045] Based on the historical node reputation value and the node reputation value of the most recent consensus cycle of the candidate consensus node, the comprehensive consensus reputation value of the candidate consensus node is determined.

[0046] Optionally, the process of determining the historical node reputation value of the candidate consensus node and the node reputation value of the candidate consensus node in the most recent consensus cycle includes:

[0047] The process of determining the historical node reputation value of the candidate consensus node specifically includes:

[0048]

[0049] in, is the historical node reputation value of the candidate consensus node, T is the current consensus cycle, They represent the total number of malicious votes and the total number of good faith votes of node i (i=1,2,…n) participating in the consensus verification process from joining the blockchain logistics control platform to the Tth consensus cycle, h is the historical performance, and β≥1 is the reputation coefficient of the historical consensus performance of the candidate consensus node;

[0050] The process of determining the node reputation value of the candidate consensus node in the most recent consensus cycle specifically includes:

[0051]

[0052] in, is the node reputation value of the candidate consensus node in the most recent consensus cycle, It represents the number of malicious votes and good faith votes of node i in the consensus process in the previous consensus cycle T-1, and ω≥1 is the penalty factor.

[0053] Optionally, determining the comprehensive consensus reputation value of the candidate consensus node based on the historical node reputation value and the node reputation value of the most recent consensus cycle of the candidate consensus node includes:

[0054]

[0055] in, is the comprehensive consensus reputation value of the candidate consensus node, and It is divided into weight coefficients representing the reputation value of historical nodes and the reputation value of nodes in the most recent consensus cycle.

[0056] Optionally, the transaction consensus verification is achieved by including a preset proportion of the actual consensus nodes agreeing to put the logistics transaction information on the chain.

[0057] Optionally, the preset proportion of the actual consensus nodes agreeing to upload the logistics transaction information to the chain includes:

[0058] The consensus verification algorithm includes a Byzantine fault-tolerant consensus algorithm;

[0059] The preset proportion of the actual consensus nodes agrees to put the logistics transaction information on the chain, specifically:

[0060] N ≥ 3f + 1

[0061] Wherein, N is the total number of nodes in the network, and f is the actual consensus node agreed upon.

[0062] This specification also provides an electronic device, wherein the electronic device includes:

[0063] processor; and,

[0064] A memory storing computer executable instructions, which when executed cause the processor to perform any of the above methods.

[0065] The present specification also provides a computer-readable storage medium, wherein the computer-readable storage medium stores one or more programs, and when the one or more programs are executed by a processor, any of the above methods is implemented.

[0066] In the present invention, the compliance of information is ensured through the dual review of technical compliance and business compliance, and the immutability of blockchain technology strengthens the security of data. The automated processing of smart contracts and the dynamic node selection mechanism (based on the comprehensive consensus reputation value, smart contract performance reputation value and freight volume reputation value) not only speed up the transaction process, but also enhance the stability and reliability of the blockchain network. In addition, the Byzantine fault-tolerant consensus algorithm and the consensus node consent mechanism with a preset ratio further enhance the fault tolerance of the system and ensure stable operation in complex environments. At the same time, the data traceability and auditability on the blockchain provide the logistics industry with powerful supervision and dispute resolution capabilities. BRIEF DESCRIPTION OF THE DRAWINGS

[0067] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0068] Figure 1 A schematic diagram of the principle of a blockchain-based logistics management and control method provided in an embodiment of this specification;

[0069] Figure 2 A schematic diagram of the structure of a blockchain-based logistics control device provided in an embodiment of this specification;

[0070] Figure 3 A schematic diagram of the structure of an electronic device provided in an embodiment of this specification;

[0071] Figure 4 A schematic diagram of a computer-readable medium provided for an embodiment of this specification. DETAILED DESCRIPTION

[0072] The following description is used to disclose the present invention so that those skilled in the art can implement the present invention. The preferred embodiments described below are only examples, and those skilled in the art can think of other obvious variations. The basic principles of the present invention defined in the following description can be applied to other embodiments, variations, improvements, equivalents, and other technical solutions that do not deviate from the spirit and scope of the present invention.

[0073] The following is combined with Figure 1-4The exemplary embodiments of the present invention are described more fully. However, the exemplary embodiments can be implemented in various forms, and it should not be understood that the present invention is limited to the embodiments set forth herein. On the contrary, providing these exemplary embodiments can make the present invention more comprehensive and complete, and it is more convenient to fully convey the inventive concept to those skilled in the art. The same reference numerals in the figures represent the same or similar elements, components or parts, and thus their repeated description will be omitted.

[0074] Under the premise of being consistent with the technical concept of the present invention, the features, structures, characteristics or other details described in a specific embodiment do not exclude that they can be combined in one or more other embodiments in a suitable manner.

[0075] In the description of specific embodiments, the features, structures, characteristics or other details described in the present invention are intended to enable those skilled in the art to fully understand the embodiments. However, it does not exclude that those skilled in the art can practice the technical solutions of the present invention without one or more of the specific features, structures, characteristics or other details.

[0076] The flowcharts shown in the accompanying drawings are only exemplary and do not necessarily include all the contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps can be decomposed, and some operations / steps can be combined or partially combined, so the actual execution order may change according to actual conditions.

[0077] The block diagrams shown in the accompanying drawings are merely functional entities and do not necessarily correspond to physically independent entities. That is, these functional entities may be implemented in software form, or in one or more hardware modules or integrated circuits, or in different networks and / or processor devices and / or microcontroller devices.

[0078] The term "and / or" or "and / or" includes all combinations of any one or more of the associated listed items.

[0079] Figure 1 A schematic diagram of the principle of a blockchain-based logistics control method provided in an embodiment of this specification, the method may include:

[0080] S110: The transaction request node publishes the logistics transaction information to the blockchain logistics management and control platform;

[0081] In the specific implementation of this specification, the transaction information includes commodity information, consignee and consignor information, transportation method, etc., and also includes the identification information of the regulatory agency directly involved in the review of the transaction.

[0082] S120: The technical compliance node and the business compliance node respectively conduct compliance review on the logistics transaction information through the blockchain logistics management and control platform;

[0083] In the specific implementation of this specification, the regulatory agency (e.g., bank) node designated by the exchange will be responsible for receiving and carefully reviewing the transaction. If the transaction successfully passes the review process, the transaction will be securely forwarded to the consensus node for subsequent processing; on the contrary, if the transaction fails to meet the review standards, a rigorous regulatory processing mechanism will be immediately triggered to ensure the compliance and security of the trading environment.

[0084] S130: When all audits are in compliance, a preset number of candidate consensus nodes are selected as actual consensus nodes based on the blockchain logistics management and control platform, and the actual consensus nodes perform transaction consensus verification on the logistics transaction information through the blockchain logistics management and control platform;

[0085] Optionally, the S130 includes:

[0086] Determine the reputation value of the candidate consensus node based on the comprehensive consensus reputation value, smart contract performance reputation value, and freight volume reputation value of the candidate consensus node;

[0087] A preset number of candidate consensus nodes are selected as the actual consensus nodes based on the candidate consensus node reputation values.

[0088] In the specific implementation of this specification, the workflow of the regulatory node specifically includes the following three core steps: First, the regulatory node will accurately obtain regulatory indicators that match the established regulatory rules. These indicators are the benchmark for the audit work; then, the node will deeply identify various regulatory factors in the original transaction information to ensure that there are no omissions; finally, the actual value of the regulatory factor is carefully compared with the threshold set by the regulatory indicator, and based on the comparison results, the corresponding regulatory processing mechanism is decisively and accurately executed.

[0089] The content of the regulatory review is comprehensive and in-depth, covering multiple key dimensions: 1) Account review: This link requires the node to actively submit its blockchain address to the regulatory node. The regulatory node can quickly locate and verify the corresponding account information with the address to ensure the authenticity and compliance of the account. 2) Transaction content security and privacy review: In this step, the regulatory node will strictly review the transaction information to ensure that it does not contain any Trojans or virus programs that may pose a threat to the security of blockchain information, and at the same time check whether there is sensitive information that leaks personal privacy to ensure the security of the transaction environment and the privacy rights of users. 3) Transaction content legality review: The regulatory node will carefully judge the legality of the transaction information, including but not limited to whether the transaction goods belong to the category of contraband, and whether the transportation methods, warehousing, packaging, handling and other links involved in the transaction comply with the provisions and requirements of relevant laws and regulations to ensure that every link of the transaction is legal and compliant. 4) Transaction content compliance review: In addition, the regulatory node will also carefully evaluate the compliance of the transaction content, such as the accurate classification of products and the compliance of letters of credit, to ensure that the transaction behavior complies with industry norms and regulatory requirements.

[0090] It is worth noting that according to the specific needs of the audit tasks and the differences in supervision intensity, the audit content of the supervision node can be flexibly adjusted. It can not only comprehensively cover all the above dimensions, but also selectively include one or more of the audit contents according to specific needs, so as to achieve efficient and accurate supervision.

[0091] Optionally, determining the comprehensive consensus reputation value of the candidate consensus node includes:

[0092] Based on the historical node reputation value and the node reputation value of the most recent consensus cycle of the candidate consensus node, the comprehensive consensus reputation value of the candidate consensus node is determined.

[0093] Optionally, the process of determining the historical node reputation value of the candidate consensus node and the node reputation value of the candidate consensus node in the most recent consensus cycle includes:

[0094] The process of determining the historical node reputation value of the candidate consensus node specifically includes:

[0095]

[0096] in, is the historical node reputation value of the candidate consensus node, T is the current consensus cycle, They represent the total number of malicious votes and the total number of good faith votes of node i (i=1,2,…n) participating in the consensus verification process from joining the blockchain logistics control platform to the Tth consensus cycle, h is the historical performance, and β≥1 is the reputation coefficient of the historical consensus performance of the candidate consensus node;

[0097] The process of determining the node reputation value of the candidate consensus node in the most recent consensus cycle specifically includes:

[0098]

[0099] in, is the node reputation value of the candidate consensus node in the most recent consensus cycle, It represents the number of malicious votes and good faith votes of node i in the consensus process in the previous consensus cycle T-1, and ω≥1 is the penalty factor.

[0100] In a specific implementation of the present specification, the system adjusts the reputation coefficient at any time according to the size of the node reputation value, that is, it decreases as the node reputation value increases, so as to avoid the node reputation value growing too fast.

[0101] ω≥1 is the penalty factor. The larger its value is, the less tolerant the system is to malicious voting.

[0102] Optionally, determining the comprehensive consensus reputation value of the candidate consensus node based on the historical node reputation value and the node reputation value of the most recent consensus cycle of the candidate consensus node includes:

[0103]

[0104] in, is the comprehensive consensus reputation value of the candidate consensus node, and It is divided into weight coefficients representing the reputation value of historical nodes and the reputation value of nodes in the most recent consensus cycle.

[0105] In a specific implementation of this specification, the process of determining the smart contract performance reputation value of the candidate consensus node includes:

[0106]

[0107] in, is the smart contract performance reputation value of the candidate consensus node, q ′ , It represents the number of times the smart contract has been fulfilled normally and the number of times it has defaulted since node i joined the blockchain logistics management and control platform to the Tth consensus cycle. is the total number of smart contracts that node i has executed, and δ≥1 represents the system's reward coefficient for normal performance. The system adjusts the reward coefficient at any time based on the node's reputation value, that is, it decreases as the node's reputation value increases. Once a smart contract is deployed, it cannot be modified. Therefore, for nodes that have completed performance normally, the node reputation value is calculated mainly in a reward-based manner.

[0108] The process of determining the freight volume reputation value of the candidate consensus node includes:

[0109]

[0110] in, is the freight volume reputation value of the candidate consensus node, σ is the reputation value conversion factor of the historical cumulative freight volume, is the historical cumulative freight volume of node i.

[0111] The process of determining the reputation value of a candidate consensus node includes:

[0112]

[0113] in, is the reputation value of the candidate consensus node, l1, l2, l3 are the weight factors of the comprehensive consensus reputation value, smart contract performance reputation value, and freight volume reputation value, and l1+l2+l3=1. l4 is the number of times that node i has been found to be incorrect in the signature verification process when it packages non-compliant or illegal transactions into blocks and broadcasts them to the entire network during the consensus process from the time when node i joined the blockchain logistics control platform to the Tth consensus cycle. γ≥1 is the penalty factor set by the system. The larger γ is, the less tolerance the system has for non-compliant or illegal transactions on the chain. In order to consider the reputation loss mechanism of business compliance, when a node participates in non-compliant or illegal transactions on the chain, its reputation value will be greatly reduced. This increases the cost of nodes doing evil, ensures the compliance and legality of on-chain transactions, and maintains the stable operation of the blockchain system. The weight factor can be adjusted at any time according to the business type and system status. By adjusting the reputation weight factor, different types of nodes can have the opportunity to participate in the blockchain consensus, that is, the emphasis is placed on the consensus performance of the node, the accumulated business volume, or the performance of the node. At the same time, the system sets the maximum value of the node reputation value. When the node reputation value grows to the maximum value, the node reputation value will no longer grow. The reputation value growth in this consensus mechanism is nonlinear. The higher the reputation value, the slower the growth rate, to avoid the situation where the node reputation value is too high and affects the decentralization of the blockchain.

[0114] S140: When the transaction consensus verification is passed, the block packaging node packages the logistics transaction information with other logistics transaction information within the preset time interval to generate block information, and broadcasts it to the actual consensus node through the blockchain logistics management and control platform;

[0115] S150: The actual consensus node performs block consensus verification on the block information through the blockchain logistics management and control platform;

[0116] In the specific implementation of this specification, the determined consensus nodes pay certain consensus resources to participate in consensus verification, where consensus verification includes transaction verification, digital signature of the transaction after successful verification, and sending the verification success message to other consensus nodes. Consensus resources refer to the combination of node computing resources (resource consumption such as encryption and decryption, protocol parsing, etc.), network resources (such as broadband and traffic resources), storage resources (such as hard disk or memory resources) and equity resources.

[0117] S160: When the block consensus verification is passed, the logistics transaction information is put on-chain for management and control.

[0118] Optionally, the transaction consensus verification is achieved by including a preset proportion of the actual consensus nodes agreeing to put the logistics transaction information on the chain.

[0119] Optionally, the preset proportion of the actual consensus nodes agreeing to upload the logistics transaction information to the chain includes:

[0120] The consensus verification algorithm includes a Byzantine fault-tolerant consensus algorithm;

[0121] The preset proportion of the actual consensus nodes agrees to put the logistics transaction information on the chain, specifically:

[0122] N ≥ 3f + 1

[0123] Wherein, N is the total number of nodes in the network, and f is the actual consensus node agreed upon.

[0124] In the present invention, the compliance of information is ensured through the dual review of technical compliance and business compliance, and the immutability of blockchain technology strengthens the security of data. The automated processing of smart contracts and the dynamic node selection mechanism (based on the comprehensive consensus reputation value, smart contract performance reputation value and freight volume reputation value) not only speed up the transaction process, but also enhance the stability and reliability of the blockchain network. In addition, the Byzantine fault-tolerant consensus algorithm and the consensus node consent mechanism with a preset ratio further enhance the fault tolerance of the system and ensure stable operation in complex environments. At the same time, the data traceability and auditability on the blockchain provide the logistics industry with powerful supervision and dispute resolution capabilities.

[0125] Figure 2 A schematic diagram of a blockchain-based logistics control device provided in an embodiment of this specification, the device may include:

[0126] Publishing module 10, used for the transaction request node to publish logistics transaction information to the blockchain logistics management and control platform;

[0127] Audit module 20, used for the technical compliance node and the business compliance node to conduct compliance audit on the logistics transaction information through the blockchain logistics management and control platform;

[0128] A transaction verification module 30 is used to select a preset number of candidate consensus nodes as actual consensus nodes based on the blockchain logistics control platform when all audits are in compliance, and the actual consensus nodes perform transaction consensus verification on the logistics transaction information through the blockchain logistics control platform;

[0129] The packaging module 40 is used for, when the transaction consensus verification is passed, the block packaging node packages the logistics transaction information with other logistics transaction information within a preset time interval to generate block information, and broadcasts it to the actual consensus node through the blockchain logistics management and control platform;

[0130] The block verification module 50 is used for the actual consensus node to perform block consensus verification on the block information through the blockchain logistics management and control platform;

[0131] The management and control module 60 is used to complete the on-chain management and control of the logistics transaction information when the block consensus verification is passed.

[0132] Optionally, the transaction verification module 30 includes:

[0133] Determine the reputation value of the candidate consensus node based on the comprehensive consensus reputation value, smart contract performance reputation value, and freight volume reputation value of the candidate consensus node;

[0134] A preset number of candidate consensus nodes are selected as the actual consensus nodes based on the candidate consensus node reputation values.

[0135] Optionally, determining the comprehensive consensus reputation value of the candidate consensus node includes:

[0136] Based on the historical node reputation value and the node reputation value of the most recent consensus cycle of the candidate consensus node, the comprehensive consensus reputation value of the candidate consensus node is determined.

[0137] Optionally, the process of determining the historical node reputation value of the candidate consensus node and the node reputation value of the candidate consensus node in the most recent consensus cycle includes:

[0138] The process of determining the historical node reputation value of the candidate consensus node specifically includes:

[0139]

[0140] in, is the historical node reputation value of the candidate consensus node, T is the current consensus cycle, They represent the total number of malicious votes and the total number of good faith votes of node i (i=1,2,…n) participating in the consensus verification process from joining the blockchain logistics control platform to the Tth consensus cycle, h is the historical performance, and β≥1 is the reputation coefficient of the historical consensus performance of the candidate consensus node;

[0141] The process of determining the node reputation value of the candidate consensus node in the most recent consensus cycle specifically includes:

[0142]

[0143] in, is the node reputation value of the candidate consensus node in the most recent consensus cycle, It represents the number of malicious votes and good faith votes of node i in the consensus process in the previous consensus cycle T-1, and ω≥1 is the penalty factor.

[0144] Optionally, determining the comprehensive consensus reputation value of the candidate consensus node based on the historical node reputation value and the node reputation value of the most recent consensus cycle of the candidate consensus node includes:

[0145]

[0146] in, is the comprehensive consensus reputation value of the candidate consensus node, and It is divided into weight coefficients representing the reputation value of historical nodes and the reputation value of nodes in the most recent consensus cycle.

[0147] Optionally, the transaction consensus verification is achieved by including a preset proportion of the actual consensus nodes agreeing to put the logistics transaction information on the chain.

[0148] Optionally, the preset proportion of the actual consensus nodes agreeing to upload the logistics transaction information to the chain includes:

[0149] The consensus verification algorithm includes a Byzantine fault-tolerant consensus algorithm;

[0150] The preset proportion of the actual consensus nodes agrees to put the logistics transaction information on the chain, specifically:

[0151] N ≥ 3f + 1

[0152] Wherein, N is the total number of nodes in the network, and f is the actual consensus node agreed upon.

[0153] The functions of the device in the embodiment of the present invention have been described in the above method embodiment, so for details not provided in the description of this embodiment, please refer to the relevant description in the above embodiment, and no further description will be given here.

[0154] Based on the same inventive concept, an embodiment of this specification also provides an electronic device.

[0155] The following describes an electronic device embodiment of the present invention, which can be regarded as a specific physical implementation of the method and device embodiments of the present invention. The details described in the electronic device embodiment of the present invention should be regarded as a supplement to the above method or device embodiments; details not disclosed in the electronic device embodiment of the present invention can be implemented with reference to the above method or device embodiments.

[0156] Figure 3 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this specification. Figure 3 The electronic device 300 according to the embodiment of the present invention is described. Figure 3 The electronic device 300 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.

[0157] like Figure 3 As shown, the electronic device 300 is in the form of a general computing device. The components of the electronic device 300 may include, but are not limited to: at least one processing unit 310, at least one storage unit 320, a bus 330 connecting different system components (including the storage unit 320 and the processing unit 310), a display unit 340, etc.

[0158] The storage unit stores program codes, which can be executed by the processing unit 310, so that the processing unit 310 performs the steps according to various exemplary embodiments of the present invention described in the above processing method section of this specification. For example, the processing unit 310 can perform the following steps: Figure 1 Steps shown.

[0159] The storage unit 320 may include a readable medium in the form of a volatile storage unit, such as a random access memory unit (RAM) 3201 and / or a cache memory unit 3202 , and may further include a read-only memory unit (ROM) 3203 .

[0160] The storage unit 320 may also include a program / utility 3204 having a set (at least one) of program modules 3205, such program modules 3205 including but not limited to: an operating system, one or more application programs, other program modules and program data, each of which or some combination may include the implementation of a network environment.

[0161] Bus 330 may represent one or more of several types of bus structures, including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.

[0162] The electronic device 300 may also communicate with one or more external devices 400 (e.g., keyboards, pointing devices, Bluetooth devices, etc.), one or more devices that enable viewers to interact with the electronic device 300, and / or any device that enables the electronic device 300 to communicate with one or more other computing devices (e.g., routers, modems, etc.). Such communication may be performed through an input / output (I / O) interface 350. Furthermore, the electronic device 300 may also communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) through a network adapter 360. The network adapter 360 may communicate with other modules of the electronic device 300 through the bus 330. It should be understood that although Figure 3 Not shown, other hardware and / or software modules may be used in conjunction with the electronic device 300, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.

[0163] Through the description of the above implementation methods, it is easy for those skilled in the art to understand that the exemplary embodiments described in the present invention can be implemented by software, or by software combined with necessary hardware. Therefore, the technical solution according to the implementation method of the present invention can be embodied in the form of a software product, which can be stored in a computer-readable storage medium (which can be a CD-ROM, USB flash drive, mobile hard disk, etc.) or on a network, including a number of instructions to enable a computing device (which can be a personal computer, server, or network device, etc.) to execute the above method according to the present invention. When the computer program is executed by a data processing device, the computer-readable medium can implement the above method of the present invention, that is: Figure 1 The method shown.

[0164] Figure 4 A schematic diagram of a computer-readable medium provided for an embodiment of this specification.

[0165] accomplish Figure 1The computer program of the method shown can be stored on one or more computer readable media. The computer readable medium can be a readable signal medium or a readable storage medium. The readable storage medium can be, for example, but not limited to, a system, device or device of electricity, magnetism, light, electromagnetic, infrared, or semiconductor, or any combination of the above. More specific examples (non-exhaustive list) of readable storage media include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.

[0166] The computer readable storage medium may include a data signal propagated in a baseband or as part of a carrier wave, wherein a readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. The readable storage medium may also be any readable medium other than a readable storage medium, which may send, propagate, or transmit a program for use by an instruction execution system, an apparatus, or a device or used in combination with it. The program code contained on the readable storage medium may be transmitted with any appropriate medium, including but not limited to wireless, wired, optical cable, RF, etc., or any suitable combination of the above.

[0167] Program code for performing the operations of the present invention may be written in any combination of one or more programming languages, including object-oriented programming languages ​​such as Java, C++, etc., and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the viewer computing device, partially on the viewer device, as a stand-alone software package, partially on the viewer computing device and partially on a remote computing device, or entirely on a remote computing device or server. In cases involving a remote computing device, the remote computing device may be connected to the viewer computing device via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (e.g., via the Internet using an Internet service provider).

[0168] In summary, the present invention can be implemented in hardware, or in a software module running on one or more processors, or in a combination thereof. It should be understood by those skilled in the art that general data processing devices such as microprocessors or digital signal processors (DSPs) can be used in practice to implement some or all of the functions of some or all of the components in the embodiments of the present invention. The present invention can also be implemented as a device or apparatus program (e.g., a computer program and a computer program product) for executing part or all of the methods described herein. Such a program implementing the present invention can be stored on a computer-readable medium, or can have the form of one or more signals. Such a signal can be downloaded from an Internet website, or provided on a carrier signal, or provided in any other form.

[0169] The specific embodiments described above further describe the purpose, technical solutions and beneficial effects of the present invention in detail. It should be understood that the present invention is not inherently related to any specific computer, virtual device or electronic device, and various general devices can also implement the present invention. The above description is only a specific embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the protection scope of the present invention.

[0170] The various embodiments in this specification are described in a progressive manner, and the same or similar parts between the various embodiments can be referenced to each other, and each embodiment focuses on the differences from other embodiments.

[0171] The above is only an embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims

1. A logistics control method based on blockchain, characterized in that: include: The transaction request node publishes the logistics transaction information to the blockchain logistics management and control platform; The technical compliance node and the business compliance node respectively conduct compliance review on the logistics transaction information through the blockchain logistics management and control platform; When all audits are in compliance, a preset number of candidate consensus nodes are selected as actual consensus nodes based on the blockchain logistics management and control platform, and the actual consensus nodes perform transaction consensus verification on the logistics transaction information through the blockchain logistics management and control platform; When the transaction consensus verification is passed, the block packaging node packages the logistics transaction information with other logistics transaction information within the preset time interval to generate block information, and broadcasts it to the actual consensus node through the blockchain logistics management and control platform; The actual consensus node performs block consensus verification on the block information through the blockchain logistics management and control platform; When the block consensus verification is passed, the logistics transaction information is put on-chain for management and control.

2. The blockchain-based logistics control method according to claim 1, characterized in that: The method of selecting a preset number of candidate consensus nodes as actual consensus nodes based on the blockchain logistics management and control platform includes: Determine the reputation value of the candidate consensus node based on the comprehensive consensus reputation value, smart contract performance reputation value, and freight volume reputation value of the candidate consensus node; A preset number of candidate consensus nodes are selected as the actual consensus nodes based on the candidate consensus node reputation values.

3. The blockchain-based logistics control method according to claim 2, characterized in that: The determination of the comprehensive consensus reputation value of the candidate consensus node includes: Based on the historical node reputation value and the node reputation value of the most recent consensus cycle of the candidate consensus node, the comprehensive consensus reputation value of the candidate consensus node is determined.

4. The blockchain-based logistics control method according to claim 3, characterized in that: The process of determining the historical node reputation value of the candidate consensus node and the node reputation value of the candidate consensus node in the most recent consensus cycle includes: The process of determining the historical node reputation value of the candidate consensus node specifically includes: in, is the historical node reputation value of the candidate consensus node, T is the current consensus cycle, They represent the total number of malicious votes and the total number of good faith votes of node i (i=1,2,…n) participating in the consensus verification process from joining the blockchain logistics control platform to the Tth consensus cycle, h is the historical performance, and β≥1 is the reputation coefficient of the historical consensus performance of the candidate consensus node; The process of determining the node reputation value of the candidate consensus node in the most recent consensus cycle specifically includes: in, is the node reputation value of the candidate consensus node in the most recent consensus cycle, It represents the number of malicious votes and good faith votes of node i in the consensus process in the previous consensus cycle T-1, and ω≥1 is the penalty factor.

5. The blockchain-based logistics control method according to claim 4, characterized in that: The determining of the comprehensive consensus reputation value of the candidate consensus node based on the historical node reputation value and the node reputation value of the most recent consensus cycle of the candidate consensus node includes: in, is the comprehensive consensus reputation value of the candidate consensus node, and It is divided into weight coefficients representing the reputation value of historical nodes and the reputation value of nodes in the most recent consensus cycle.

6. The blockchain-based logistics control method according to claim 1, characterized in that: The transaction consensus verification is achieved by including a preset proportion of the actual consensus nodes agreeing to put the logistics transaction information on the chain.

7. The blockchain-based logistics control method according to claim 1, characterized in that: The preset proportion of the actual consensus nodes agrees to put the logistics transaction information on the chain, including: The consensus verification algorithm includes a Byzantine fault-tolerant consensus algorithm; The preset proportion of the actual consensus nodes agrees to put the logistics transaction information on the chain, specifically: N ≥ 3f + 1 Wherein, N is the total number of nodes in the network, and f is the actual consensus node agreed upon.

8. A blockchain-based logistics control device, characterized in that: include: Publishing module, used by transaction request nodes to publish logistics transaction information to the blockchain logistics management and control platform; An audit module, which is used for the technical compliance node and the business compliance node to conduct compliance audits on the logistics transaction information through the blockchain logistics management and control platform; A transaction verification module, which is used to select a preset number of candidate consensus nodes as actual consensus nodes based on the blockchain logistics management and control platform when all audits are in compliance, and the actual consensus nodes perform transaction consensus verification on the logistics transaction information through the blockchain logistics management and control platform; The packaging module is used for, when the transaction consensus verification is passed, the block packaging node packages the logistics transaction information with other logistics transaction information within a preset time interval to generate block information, and broadcasts it to the actual consensus node through the blockchain logistics management and control platform; A block verification module, used for the actual consensus node to perform block consensus verification on the block information through the blockchain logistics management and control platform; The control module is used to complete the on-chain control of the logistics transaction information when the block consensus verification is passed.

9. An electronic device, wherein: The electronic device includes: processor; and, A memory storing computer executable instructions which, when executed, cause the processor to perform a method according to any one of claims 1-7.

10. A computer-readable storage medium, wherein: The computer-readable storage medium stores one or more programs, and when the one or more programs are executed by a processor, the method of any one of claims 1 to 7 is implemented.