Logistics information query method, device, electronic device and storage medium

Through blockchain technology, the combination of private chain and public chain in express logistics has been solved, and the problem of high privacy leakage and notification costs in express logistics has been improved, achieving the improvement of information security and efficiency.

CN112559819BActive Publication Date: 2024-11-01SHENZHEN DEBANGWULIU CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011499427.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-12-16
Publication Date
2024-11-01
Estimated Expiration
2040-12-16

AI Technical Summary

Technical Problem

At this stage, express logistics is prone to leaking customer privacy during the terminal delivery process, and the notification cost is high.

Method used

Using blockchain technology, the private information of senders, recipients and logistics personnel is saved through private chains, and uploaded them to the public chain using asymmetric encryption. Users can compare and verify the public chain and private chain when querying. Ensure information security and accuracy, while disclosing goods information through public chains to reduce notification costs.

Benefits of technology

It effectively protects user privacy information during logistics and transportation, improves information security and distribution efficiency, reduces notification costs, and ensures the timeliness and accuracy of information.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112559819B_ABST
    Figure CN112559819B_ABST
Patent Text Reader

Abstract

The present application provides a logistics information query method, device, electronic device and storage medium, which relates to the field of logistics. The method is applied to a private chain of a blockchain, and includes: receiving private information, the private information including identity information and telephone numbers of a sender, a recipient and / or logistics personnel that have been authenticated by real name system; encrypting the private information with a private key to generate encrypted information, and uploading the encrypted information to a public chain; upon receiving a query request sent by a user through a public chain, comparing the encrypted information on the public chain with the private information on the private chain; when the comparison result of the encrypted information on the public chain and the private information on the private chain is consistent, decrypting the encrypted information with a public key that matches the private key to obtain the corresponding private information, and sending the corresponding private information to the user. It can protect customer information security and reduce delivery costs.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of logistics, and specifically, to a logistics information query method, device, electronic device and storage medium. Background Art

[0002] With the development of the economy and the changes in people's lifestyles, express logistics has become an increasingly indispensable part of people's production and life, and the daily express delivery volume has gradually increased. For express logistics companies with a certain scale, the daily ticket volume will be tens of millions or even hundreds of millions. For the phone or SMS notifications for terminal delivery, the daily communication cost may be nearly one million. At this stage, express delivery companies basically obtain express data from the centralized system for terminal delivery and send messages by SMS reminders or phone appointments, which may easily leak customer privacy. Summary of the invention

[0003] In view of this, the purpose of the embodiments of the present application is to provide a logistics information query method, device, electronic device and storage medium to improve the current problem that distribution is prone to leaking customer privacy and has high notification costs.

[0004] In order to solve the above problems, in the first aspect, the embodiment of the present application provides a logistics information query method, which is applied to a private chain of a blockchain, comprising:

[0005] Receiving private information of the first user, the private information including identity information and telephone numbers of the sender, the recipient and / or the logistics personnel after real-name authentication;

[0006] Encrypting the private information using the private key of the first user to generate first encrypted information, and uploading the first encrypted information to the public chain;

[0007] When receiving a query request sent by a second user through the public chain, comparing the first encrypted information on the public chain with the private information on the private chain;

[0008] When the comparison result of the first encrypted information on the public chain and the private information on the private chain is consistent, the private information obtained by decrypting the first encrypted information with a public key matching the private key is sent to the user.

[0009] In the above implementation process, the privacy information of the sender, recipient and logistics personnel is stored in the private chain, encrypted by asymmetric encryption and then uploaded to the public chain. When the user queries, the encrypted information on the public chain needs to be compared and verified with the corresponding privacy information on the private chain. Therefore, while publishing the information, it can also solve the problem of easy leakage of user privacy information during logistics transportation, and can determine whether the queried information has been tampered with before feeding back the queried information to the user, thereby improving the security of logistics information.

[0010] Optionally, before receiving the private information of the first user, the method further includes:

[0011] The public chain and the private chain are established, wherein the public chain includes at least one first sending node, at least one first receiving node and at least one logistics node, and the private chain includes at least one second sending node, at least one second receiving node and at least one logistics personnel node.

[0012] In the above implementation process, by setting up multiple nodes to locate the cargo information, when an accident occurs during the transportation of the cargo, the node where the accident occurred can be traced back, which can provide supporting materials for possible disputes that may exist after the completion of logistics distribution (such as damaged cargo packaging or inconsistency between cargo and order) and confirm the responsible party.

[0013] Optionally, the method further includes:

[0014] Setting a proxy receiving node through the at least one second receiving node on the private chain;

[0015] The private information of the agent is received through the agent receiving node, the private information of the agent is encrypted by the private key to generate second encrypted information, and the second encrypted information is uploaded to the public chain.

[0016] In the above implementation process, a proxy receiving node is set up through the second receiving node on the private chain, which receives the private information of the proxy recipient and encrypts it before uploading it to the public chain. Therefore, an alternative receiving plan can be generated to prevent the recipient from being unable to receive the package due to other reasons, thereby improving the flexibility of logistics distribution.

[0017] In a second aspect, the embodiment of the present application provides another logistics information query method, which is applied to the public chain of the blockchain, including:

[0018] Receiving first encrypted information sent by a private chain, where the first encrypted information is generated by the private chain using a private key to encrypt the private information of the first user, where the private information includes identity information and telephone numbers of a sender, a recipient, and / or a logistics personnel that have been authenticated by real name;

[0019] After receiving the command from the second user, a query request is issued to the private chain, and the first encrypted information corresponding to the query request is sent to the private chain, so that the private chain compares the first encrypted information with the private information, so that when the comparison result between the encrypted information on the public chain and the private information on the private chain is consistent, the encrypted information is decrypted by the public key matching the private key to obtain the corresponding private information, and the corresponding private information is sent to the user.

[0020] In the above implementation process, it is possible to cooperate with the method provided in the first aspect, by saving the privacy information of the sender, recipient and logistics personnel in a private chain, encrypting it through asymmetric encryption and then uploading it to the public chain, and when the user queries, it is necessary to compare and verify the encrypted information on the public chain with the corresponding privacy information on the private chain. Therefore, while publishing the information, it can also solve the problem of easy leakage of user privacy information during logistics transportation, and it can determine whether the queried information has been tampered with before feeding back the queried information to the user, thereby improving the distribution efficiency and safety of logistics transportation.

[0021] Optionally, the method further includes:

[0022] Receive cargo information;

[0023] When the goods pass through the logistics node corresponding to any node in the public chain, the goods update information corresponding to the goods is broadcast to the multiple nodes on the public chain.

[0024] In the above implementation process, cargo information is collected and published through a public link to ensure that the cargo information is open and transparent. Through online operations, the communication costs of notification text messages and phone calls can be saved, thereby reducing logistics and distribution costs.

[0025] Optionally, when the goods pass through a logistics node corresponding to any node in the public chain, broadcasting the goods update information corresponding to the goods to the multiple nodes on the public chain includes:

[0026] When the goods pass through any logistics node, the current location of the goods is updated and a timestamp is added;

[0027] Estimate the time when the goods will arrive at the next logistics node based on the shipping address, receiving address and transportation capacity of the goods, and publish the estimated arrival time of the goods on the public chain;

[0028] When the goods arrive at the logistics node where the recipient is located and the signature is completed, a signature contract is generated, which includes a photo of the goods being collected, the recipient's signature and a timestamp.

[0029] In the above implementation process, adding a timestamp when updating the cargo information can improve the timeliness and accuracy of the cargo information, ensure that the cargo information is updated in real time and is true and valid, and help the recipient plan his time by estimating the arrival time of the cargo. By generating a receipt contract when the cargo arrives at the receiving node, it can provide evidence for subsequent customer claims or complaints.

[0030] In a third aspect, the embodiment of the present application provides a logistics information query device, which is applied to a private chain of a blockchain, including:

[0031] A first receiving module, configured to receive the privacy information of the first user, wherein the privacy information includes the identity information and telephone number of the sender, the recipient and / or the logistics personnel after real-name authentication;

[0032] An encryption module, configured to encrypt the private information using the private key of the first user to generate first encrypted information, and upload the first encrypted information to a public chain;

[0033] An information comparison module, configured to compare the first encrypted information on the public chain with the private information on the private chain when receiving a query request sent by the second user through the public chain;

[0034] An information sending module is used to send the private information obtained by decrypting the first encrypted information with a public key matching the private key to the user when the comparison result of the first encrypted information on the public chain and the private information on the private chain is consistent.

[0035] In the above implementation process, the device can save the privacy information of the sender, recipient and logistics personnel in the private chain, encrypt it through asymmetric encryption and then upload it to the public chain. While publishing the information, it can also solve the problem of easy leakage of user privacy information during logistics transportation, thereby improving the distribution efficiency and safety of logistics transportation.

[0036] Optionally, the device may further include:

[0037] The blockchain establishment module is used to establish the public chain and the private chain before receiving the private information of the first user, the public chain includes at least one first sending node, at least one first receiving node and at least one logistics node, and the private chain includes at least one second sending node, at least one second receiving node and at least one logistics personnel node.

[0038] A proxy receiving node generation module, used for setting a proxy receiving node through the at least one second receiving node on the private chain;

[0039] The private information of the agent is received through the agent receiving node, the private information of the agent is encrypted by the private key to generate second encrypted information, and the second encrypted information is uploaded to the public chain.

[0040] In the above implementation process, multiple nodes can be set up through the blockchain establishment module to locate the cargo information. During the transportation of the cargo, in case of an accident, the node where the accident occurred can be traced back, which can provide supporting materials for possible disputes after the completion of logistics distribution (such as damaged cargo packaging or inconsistency between cargo and order) and confirm the responsible party. The collection node can be set up through the collection node generation module, which receives the private information of the collection person, encrypts it, and then uploads it to the public chain. Therefore, an alternative collection plan can be generated to prevent the recipient from being unable to receive the cargo due to other reasons, thereby improving the flexibility of logistics distribution.

[0041] In a fourth aspect, the embodiment of the present application provides another logistics information query device, which is applied to the public chain of the blockchain, including:

[0042] A second receiving module is used to receive first encrypted information sent by a private chain, where the first encrypted information is generated by the private chain using a private key to encrypt the private information of the first user, where the private information includes the identity information and telephone number of the sender, the recipient and / or the logistics personnel that have been authenticated by the real-name system;

[0043] The information transmission module is used to issue a query request to the private chain after receiving a command from the second user, and send the first encrypted information corresponding to the query request to the private chain, so that the private chain compares the first encrypted information with the private information, so that when the comparison result of the encrypted information on the public chain and the private information on the private chain is consistent, the encrypted information is decrypted by a public key matching the private key to obtain the corresponding private information, and the corresponding private information is sent to the user.

[0044] In the above implementation process, the device can save the privacy information of the sender, recipient and logistics personnel in a private chain, encrypt it through asymmetric encryption and then upload it to the public chain. When the user queries, the encrypted information on the public chain needs to be compared and verified with the corresponding privacy information on the private chain. Therefore, while publishing the information, it can also solve the problem of easy leakage of user privacy information during logistics transportation, and can determine whether the queried information has been tampered with before feeding back the queried information to the user, thereby improving the distribution efficiency and security of logistics transportation.

[0045] Optionally, the device may further include:

[0046] The information receiving module is used to receive cargo information.

[0047] The information update module is used to broadcast the cargo update information corresponding to the cargo to the multiple nodes on the public chain when the cargo passes through the logistics node corresponding to any node in the public chain.

[0048] The timestamp control module is used to update the current location of the goods and add a timestamp when the goods pass through any logistics node.

[0049] The time estimation module is used to estimate the time when the goods arrive at the next logistics node according to the shipping address, receiving address and transportation capacity of the goods, and publish the estimated arrival time of the goods on the public chain.

[0050] The receipt contract generation module is used to generate a receipt contract when the goods arrive at the logistics node where the recipient is located and the receipt is completed. The receipt contract includes a photo of the goods being collected, the recipient's signature and a timestamp.

[0051] In the above implementation process, the cargo information can be received through the information receiving module, and the cargo information can be published through the information updating module to ensure that the cargo information is open and transparent. Through online operations, the communication costs of notification text messages and phone calls can be saved, and the logistics distribution costs can be reduced. The timestamp control module can be used to add a timestamp when updating the cargo information, which can improve the timeliness and accuracy of the cargo information, and ensure that the cargo information is updated in real time and is true and valid. The time estimation module can be used to estimate the arrival time of the cargo, which can help the recipient plan the time. The receipt contract generation module can generate a receipt contract when the cargo arrives at the receiving node, which can provide evidence for subsequent customer claims or complaints.

[0052] In a fifth aspect, an embodiment of the present application provides an electronic device, comprising a memory and a processor, wherein the memory stores program instructions, and when the processor runs the program instructions, the steps in the above method are executed.

[0053] In a sixth aspect, an embodiment of the present application provides a storage medium, wherein the storage medium stores computer program instructions, and when the computer program instructions are executed by a processor, the steps in the above method are executed. BRIEF DESCRIPTION OF THE DRAWINGS

[0054] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments of the present application will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0055] Figure 1A flow chart of a logistics information query method applied to a private chain provided in an embodiment of the present application;

[0056] Figure 2 A flowchart of the steps for setting a collection node provided in an embodiment of the present application;

[0057] Figure 3 A flow chart of a logistics information query method applied to a public chain provided in an embodiment of the present application;

[0058] Figure 4 A flowchart of the steps for updating cargo information provided in an embodiment of the present application;

[0059] Figure 5 A structural diagram of a logistics information query device provided in an embodiment of the present application;

[0060] Figure 6 A structural diagram of another logistics information query device provided in an embodiment of the present application.

[0061] Icons: 50 - logistics information query device; 501 - first receiving module; 502 - encryption module; 503 - information comparison module; 504 - information sending module; 60 - logistics information query device; 601 - second receiving module; 602 - information transmission module. DETAILED DESCRIPTION

[0062] The technical solutions in the embodiments of the present application will be described below in conjunction with the drawings in the embodiments of the present application.

[0063] Please see Figure 1 , Figure 1 A logistics information query method provided in an embodiment of the present application is applied to a private chain of a blockchain, comprising:

[0064] In step S101, the privacy information of the first user is received, where the privacy information includes the identity information and telephone number of the sender, the recipient and / or the logistics personnel that have been authenticated by the real-name system.

[0065] Among them, the privacy information can be reviewed before the sender, recipient and logistics personnel upload it to the private chain. The sender can review the recipient information, and the freight carrier can review the logistics personnel information. The logistics personnel information may include the collection courier, transfer yard operator, distribution point manager and delivery courier. The carrier information can be reviewed jointly by the sender and the recipient.

[0066] In addition, users can modify their own private information by uploading new private information to the private chain, updating the previous private information, publishing it on all nodes of the private chain, and uploading it to the public chain after encryption in the private chain through the following step S102.

[0067] In step S102, the private information is encrypted using the private key of the first user to generate first encrypted information, and the first encrypted information is uploaded to the public chain.

[0068] Among them, the private information can be asymmetrically encrypted through the private chain and then uploaded to the public chain, wherein the encrypted information can include a virtual number generated by encryption. Exemplarily, user A encrypts his private information with his own private key and uploads the public key matching his own private key to the private chain. When other users on the private chain need to pass information to user A, they can use user A's public key to encrypt the information and send it to user A, and user A uses his own private key to decrypt and obtain the information.

[0069] In step S103, when a query request is received from the second user via the public chain, the first encrypted information on the public chain is compared with the privacy information on the private chain.

[0070] The first user and the second user may be the same user or different users.

[0071] Exemplarily, the private information can be converted into a string, that is, summary information, by a hash algorithm. When executing step S102, the summary information and the first encrypted information are uploaded to the public chain together. When receiving a query request from the second user through the public chain, the corresponding summary information is generated by a hash algorithm for the private information corresponding to the first encrypted information on the private chain. When the generated summary information is consistent with the summary information of the first encrypted information obtained on the public chain, it means that the first encrypted information is consistent with the private information on the current private chain. The above method can be used to identify whether the encrypted information on the public chain has been tampered with.

[0072] In step S104, when the comparison result of the first encrypted information on the public chain and the private information on the private chain is consistent, the encrypted information is decrypted using a public key matching the private key to obtain the private information, and the private information is sent to the user.

[0073] Among them, the query request may include the waybill number corresponding to the goods. For example, when the user finds that the goods have arrived in his city, he wants to know the logistics delivery time or hopes to make an appointment with the delivery person for the delivery time. At this time, he can send the waybill number and the information he wants to query to the public chain. Based on the waybill number and the information he wants to query, the public chain sends the waybill number and the user's encrypted information as a query request to the private chain. The private chain compares the encrypted information with the privacy information stored on the private chain. When the comparison results are consistent, the corresponding information is sent to the user.

[0074] In addition, when the above comparison results are inconsistent, it proves that the private information on the private chain has been changed but not uploaded to the public chain. At this time, the private information corresponding to the encrypted information on the public chain shall prevail, and the private information corresponding to the encrypted information on the public chain shall be sent to the user.

[0075] It can be seen that through the above implementation method, the privacy information of the sender, recipient and logistics personnel is stored in the private chain, encrypted by asymmetric encryption and then uploaded to the public chain, and when the user queries, the encrypted information on the public chain needs to be compared and verified with the corresponding privacy information on the private chain. Therefore, while publishing the information, it can also solve the problem of easy leakage of user privacy information during logistics transportation, and can determine whether the queried information has been tampered with before feeding back the queried information to the user, thereby improving the security of logistics information.

[0076] In addition, before the private link receives the private information, the method may further include:

[0077] The public chain and the private chain are established, wherein the public chain includes at least one first sending node, at least one first receiving node and at least one logistics node, and the private chain includes at least one second sending node, at least one second receiving node and at least one logistics personnel node.

[0078] The above-mentioned first sending node, first receiving node and at least one logistics node are virtual or real, and there is a corresponding relationship between them.

[0079] Among them, the logistics node may include at least one of a carrier node, a transfer yard node and a distribution node, and the logistics personnel node may include at least one of a collection courier node, a transfer yard operator node, a distribution online store manager node and a distribution courier node.

[0080] It can be seen that through the above implementation method, the cargo information can be located by setting up multiple nodes. During the transportation of the cargo, when an accident occurs, the node where the accident occurred can be traced back, which can provide supporting materials for possible disputes that may exist after the completion of logistics distribution (such as damaged cargo packaging or inconsistency between cargo and order) and confirm the responsible party.

[0081] Please see Figure 2 , Figure 2 A step of setting a collection node is provided in an embodiment of the present application, and the step may include:

[0082] In step S201, a proxy recipient node is set through the at least one second recipient node on the private chain.

[0083] In step S202, the private information of the agent is received through the agent node, the private information of the agent is encrypted by the private key to generate second encrypted information, and the second encrypted information is uploaded to the public chain.

[0084] Among them, when an agent receiving node is set on the private chain through the second receiving node, a corresponding agent receiving node can also be set on the public chain, and the receiving node on the public chain can also be associated with the agent receiving node on the private chain.

[0085] It can be seen that through the above implementation method, a proxy receiving node can be set through the second receiving node on the private chain, which receives the private information of the proxy recipient and encrypts it before uploading it to the public chain. Therefore, an alternative receiving plan can be generated to prevent the recipient from being unable to receive the package due to other reasons, thereby improving the flexibility of logistics distribution.

[0086] Please see Figure 3 , Figure 3 Another logistics information query method provided in the embodiment of the present application is applied to the public chain of the blockchain. The method may include:

[0087] In step S301, first encrypted information sent by a private chain is received. The first encrypted information is generated by the private chain using a private key to encrypt the privacy information of the first user. The privacy information includes the identity information and telephone number of the sender, recipient and / or logistics personnel that have been authenticated by real name.

[0088] In step S302, after receiving the command of the second user, a query request is issued to the private chain, and the first encrypted information corresponding to the query request is sent to the private chain, so that the private chain compares the first encrypted information with the private information, so that when the comparison result of the encrypted information on the public chain and the private information on the private chain is consistent, the encrypted information is decrypted by the public key matching the private key to obtain the corresponding private information, and the corresponding private information is sent to the user.

[0089] It can be seen that through the above implementation, it is possible to Figure 1In cooperation with the method provided in , the privacy information of senders, recipients and logistics personnel is stored in a private chain, encrypted by asymmetric encryption and then uploaded to the public chain. The permissions are set according to the characteristics of the private chain. While publishing the information, the problem of easy leakage of user privacy information during the logistics transportation process can be solved, thereby improving the security of logistics information.

[0090] Please see Figure 4 , Figure 4 A step of updating cargo information provided in an embodiment of the present application may include the following:

[0091] In step S401, cargo information is received.

[0092] The cargo information may include at least one of cargo name, cargo size, cargo weight, cargo current location and cargo value.

[0093] In addition, the goods manufacturer information, goods seller information, goods packaging information and goods insurance information can also be uploaded to the public chain.

[0094] In step S402, when the goods pass through the logistics node corresponding to any node in the public chain, the goods update information corresponding to the goods is broadcast to the multiple nodes on the public chain.

[0095] It can be seen from this that cargo information can be collected and published through public links to ensure that cargo information is open and transparent. Through online operations, the communication costs of notification text messages and phone calls can be saved, and logistics distribution costs can be reduced.

[0096] In addition, when the goods pass through the logistics node corresponding to any node in the public chain, the step of broadcasting the goods update information corresponding to the goods to the multiple nodes on the public chain may include:

[0097] When the goods pass through any logistics node, the current location of the goods is updated and a timestamp is added.

[0098] The time for the goods to arrive at the next logistics node is estimated based on the shipping address, receiving address and transportation capacity of the goods, and the estimated arrival time of the goods is announced on the public chain.

[0099] When the goods arrive at the logistics node where the recipient is located and the signature is completed, a signature contract is generated, which includes a photo of the goods being collected, the recipient's signature and a timestamp.

[0100] It can be seen that through the above implementation steps, adding a timestamp when updating cargo information can improve the timeliness and accuracy of cargo information, ensure that cargo information is updated in real time and is true and valid, and estimate the arrival time of the cargo to help the recipient plan his time. By generating a receipt contract when the cargo arrives at the receiving node, it can provide evidence for subsequent customer claims or complaints.

[0101] Please see Figure 5 , Figure 5 A logistics information query device 50 provided in an embodiment of the present application may include:

[0102] The first receiving module 501 is used to receive the private information of the first user, where the private information includes the identity information and telephone number of the sender, the recipient and / or the logistics personnel after real-name authentication.

[0103] The encryption module 502 is used to encrypt the private information with the private key of the first user to generate first encrypted information, and upload the first encrypted information to the public chain.

[0104] The information comparison module 503 is used to compare the first encrypted information on the public chain with the privacy information on the private chain when receiving a query request sent by the second user through the public chain.

[0105] The information sending module 504 is used to send the private information obtained by decrypting the first encrypted information with a public key matching the private key to the user when the comparison result of the first encrypted information on the public chain and the private information on the private chain is consistent.

[0106] It can be seen that through the above-mentioned device, the privacy information of the sender, recipient and logistics personnel can be saved in the private chain, and then uploaded to the public chain after being encrypted by asymmetric encryption. When the user queries, the encrypted information on the public chain needs to be compared and verified with the corresponding privacy information on the private chain. Therefore, while publishing the information, it can also solve the problem of easy leakage of user privacy information during logistics transportation, and it can determine whether the queried information has been tampered with before feeding back the queried information to the user, thereby improving the security of logistics information.

[0107] In addition, the device may also include:

[0108] A blockchain establishment module is used to establish the public chain and the private chain before receiving the private information, the public chain includes at least one first sending node, at least one first receiving node and at least one logistics node, and the private chain includes at least one second sending node, at least one second receiving node and at least one logistics personnel node.

[0109] Optionally, the device may further include:

[0110] The proxy recipient node generation module is used to set a proxy recipient node through the at least one second recipient node on the private chain; receive the private information of the proxy recipient through the proxy recipient node, encrypt the private information of the proxy recipient through the private key to generate second encrypted information, and upload the second encrypted information to the public chain.

[0111] It can be seen that multiple nodes can be set up through the blockchain establishment module to locate cargo information. During the transportation of cargo, if an accident occurs, the node where the accident occurred can be traced back, which can provide supporting materials for possible disputes after the completion of logistics distribution (such as damaged cargo packaging or inconsistency between cargo and order) and confirm the responsible party. The collection node can be set up through the collection node generation module, which accepts the private information of the collection person and encrypts it before uploading it to the public chain. Therefore, an alternative collection plan can be generated to prevent the recipient from being unable to receive the cargo due to other reasons, thereby improving the flexibility of logistics distribution.

[0112] Please see Figure 6 , Figure 6 Another logistics information query device provided in an embodiment of the present application may include:

[0113] The second receiving module 601 is used to receive the first encrypted information sent by the private chain. The first encrypted information is generated by the private chain using a private key to encrypt the privacy information of the first user. The privacy information includes the identity information and telephone number of the sender, recipient and / or logistics personnel that have been authenticated by real name.

[0114] The information transmission module 602 is used to issue a query request to the private chain after receiving a command from the second user, and send the first encrypted information corresponding to the query request to the private chain, so that the private chain compares the first encrypted information with the private information, so that when the comparison result between the encrypted information on the public chain and the private information on the private chain is consistent, the encrypted information is decrypted by a public key matching the private key to obtain the corresponding private information, and the corresponding private information is sent to the user.

[0115] It can be seen that through the above-mentioned device, the privacy information of the sender, recipient and logistics personnel can be saved in the private chain, and then uploaded to the public chain after being encrypted by asymmetric encryption. When the user queries, the encrypted information on the public chain needs to be compared and verified with the corresponding privacy information on the private chain. Therefore, while publishing the information, it can also solve the problem of easy leakage of user privacy information during logistics transportation, and it can determine whether the queried information has been tampered with before feeding back the queried information to the user, thereby improving the security of logistics information.

[0116] In addition, the device may also include:

[0117] The information receiving module is used to receive cargo information.

[0118] The information update module is used to broadcast the cargo update information corresponding to the cargo to the multiple nodes on the public chain when the cargo passes through the logistics node corresponding to any node in the public chain.

[0119] Optionally, the information updating module may be specifically used for:

[0120] When the goods pass through any logistics node, the current location of the goods is updated and a timestamp is added.

[0121] The time for the goods to arrive at the next logistics node is estimated based on the shipping address, receiving address and transportation capacity of the goods, and the estimated arrival time of the goods is announced on the public chain.

[0122] When the goods arrive at the logistics node where the recipient is located and the signature is completed, a signature contract is generated, which includes a photo of the goods being collected, the recipient's signature and a timestamp.

[0123] It can be seen that cargo information can be received through the information receiving module, and cargo information can be published through the information updating module to ensure that cargo information is open and transparent. Through online operations, the communication costs of notification text messages and phone calls can be saved, and the logistics distribution costs can be reduced. The timestamp control module can be used to add timestamps when updating cargo information, which can improve the timeliness and accuracy of cargo information and ensure that cargo information is updated in real time and is true and effective. The time estimation module can be used to estimate the arrival time of cargo, which can help the recipient plan time. The receipt contract generation module can generate a receipt contract when the cargo arrives at the receiving node, which can provide evidence for subsequent customer claims or complaints.

[0124] Based on the same inventive concept, an electronic device is also provided in an embodiment of the present application. The electronic device may include a memory and a processor. The memory stores program instructions. When the processor runs the program instructions, the steps in the above method are executed.

[0125] Based on the same inventive concept, an embodiment of the present application further provides a storage medium, in which computer program instructions are stored. When the computer program instructions are executed by a processor, the steps in the above method are executed.

[0126] In the embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some communication interfaces, and the indirect coupling or communication connection of the devices or units can be electrical, mechanical or other forms.

[0127] In addition, the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0128] Furthermore, the functional modules in the various embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.

[0129] It should be noted that if the function is implemented in the form of a software function module and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can essentially be embodied in the form of a software product, or the part that contributes to the prior art or the part of the technical solution. The computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM) random access memory (RAM), disk or optical disk, and other media that can store program codes.

[0130] In this document, relational terms such as first and second, etc. are used merely to distinguish one entity or operation from another entity or operation, but do not necessarily require or imply any such actual relationship or order between these entities or operations.

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

Claims

1. A logistics information query method, characterized in that: Private chain applied to blockchain, include: Establishing a public chain and the private chain, wherein the public chain includes at least one first sending node, at least one first receiving node and at least one logistics node, and the private chain includes at least one second sending node, at least one second receiving node and at least one logistics personnel node; Receive the private information of the first user, the private information including the real-name authenticated identity information and telephone number of the sender, the recipient and / or the logistics personnel; the recipient's information has been reviewed by the sender, the logistics personnel's information has been reviewed by the freight carrier, and the carrier's information has been reviewed by the sender and the recipient; Encrypting the private information using the private key of the first user to generate first encrypted information, and uploading the first encrypted information to the public chain; When receiving a query request sent by a second user through the public chain, comparing the first encrypted information on the public chain with the private information on the private chain; When the comparison result of the first encrypted information on the public chain and the private information on the private chain is consistent, the private information obtained by decrypting the first encrypted information by using the public key matching the private key is sent to the user; A proxy recipient node is set through the at least one second recipient node on the private chain; the private information of the proxy recipient is received through the proxy recipient node, the private information of the proxy recipient is encrypting through the private key to generate second encrypted information, and the second encrypted information is uploaded to the public chain.

2. A logistics information query method, characterized in that: Public chains applied to blockchain include: Receive the first encrypted information sent by the private chain, the first encrypted information is generated by the private chain using a private key to encrypt the private information of the first user, the private information includes the identity information and telephone number of the sender, the recipient and / or the logistics personnel after real-name authentication; the information of the recipient has been reviewed by the sender, the information of the logistics personnel has been reviewed by the freight carrier, and the information of the carrier has been reviewed by the sender and the recipient together; the public chain includes at least one first sending node, at least one first receiving node and at least one logistics node, and the private chain includes at least one second sending node, at least one second receiving node and at least one logistics personnel node; After receiving the command from the second user, a query request is issued to the private chain, and the first encrypted information corresponding to the query request is sent to the private chain, so that the private chain compares the first encrypted information with the private information, so that when the comparison result between the encrypted information on the public chain and the private information on the private chain is consistent, the encrypted information is decrypted by a public key matching the private key to obtain the corresponding private information, and the corresponding private information is sent to the user; Receive second encrypted information; the encrypted information is the private information of the agent recipient received through the agent recipient node, and the encrypted information is generated by encrypting the private information of the agent recipient through the private key; wherein the agent recipient node is set through the at least one second recipient node on the private chain.

3. The method according to claim 2, characterized in that The method further comprises: Receive cargo information; When goods pass through a logistics node corresponding to any node in the public chain, the goods update information corresponding to the goods is broadcast to multiple nodes on the public chain.

4. The method according to claim 3, characterized in that When the goods pass through the logistics node corresponding to any node in the public chain, broadcasting the goods update information corresponding to the goods to the multiple nodes on the public chain includes: When the goods pass through any logistics node, the current location of the goods is updated and a timestamp is added; Estimate the time when the goods will arrive at the next logistics node based on the shipping address, receiving address and transportation capacity of the goods, and publish the estimated arrival time of the goods on the public chain; When the goods arrive at the logistics node where the recipient is located and the signature is completed, a signature contract is generated, which includes a photo of the goods being collected, the recipient's signature and a timestamp.

5. A logistics information query device, characterized in that: Private chains applied to blockchain include: A first receiving module is used to receive the private information of the first user, wherein the private information includes the identity information and telephone number of the sender, the recipient and / or the logistics personnel after real-name authentication; the information of the recipient has been reviewed by the sender, the information of the logistics personnel has been reviewed by the freight carrier, and the information of the carrier has been reviewed by the sender and the recipient; an encryption module, configured to encrypt the private information with the private key of the first user to generate first encrypted information, and upload the first encrypted information to a public chain; the public chain includes at least one first sending node, at least one first receiving node, and at least one logistics node, and the private chain includes at least one second sending node, at least one second receiving node, and at least one logistics personnel node; An information comparison module, configured to compare the first encrypted information on the public chain with the private information on the private chain when receiving a query request sent by the second user through the public chain; an information sending module, configured to, when a comparison result of the first encrypted information on the public chain and the private information on the private chain is consistent, send the private information obtained by decrypting the first encrypted information with a public key matching the private key to the user; The logistics information query device is also used to set up an agent receiving node through the at least one second receiving node on the private chain; receive the private information of the agent receiving node through the agent receiving node, encrypt the private information of the agent receiving by using the private key to generate second encrypted information, and upload the second encrypted information to the public chain.

6. A logistics information query device, characterized in that: Public chains applied to blockchain include: The second receiving module is used to receive the first encrypted information sent by the private chain, the first encrypted information is generated by the private chain using a private key to encrypt the privacy information of the first user, the privacy information includes the identity information and telephone number of the sender, the recipient and / or the logistics personnel after real-name authentication; the information of the recipient has been reviewed by the sender, the information of the logistics personnel has been reviewed by the freight carrier, and the information of the carrier has been reviewed by the sender and the recipient together; the public chain includes at least one first sending node, at least one first receiving node and at least one logistics node, and the private chain includes at least one second sending node, at least one second receiving node and at least one logistics personnel node; an information transmission module, configured to, after receiving a command from a second user, issue a query request to the private chain, and send the first encrypted information corresponding to the query request to the private chain, so that the private chain compares the first encrypted information with the private information, so that when the comparison result between the encrypted information on the public chain and the private information on the private chain is consistent, decrypt the encrypted information by using a public key matching the private key to obtain the corresponding private information, and send the corresponding private information to the user; The logistics information query device is also used to receive second encrypted information; the encrypted information is the private information of the consignee received through the consignee node, and the encrypted information is generated by encrypting the private information of the consignee through the private key; wherein, the consignee node is set by the at least one second consignee node on the private chain.

7. An electronic device, characterized in that: The electronic device comprises a memory and a processor, wherein the memory stores program instructions, and when the processor runs the program instructions, the steps in the method according to any one of claims 1 to 4 are executed.

8. A storage medium, characterized in that: The storage medium stores computer program instructions, and when the computer program instructions are executed by a processor, the steps in the method according to any one of claims 1 to 4 are executed.