Logistics information transmission method, system and device based on blockchain
Logistics information is encrypted and transmitted through blockchain technology, and user privacy information is encoded in the logistics information system, solving the problems of logistics information leakage and security, and realizing the secure transmission and accurate distribution of information.
Patent Information
- Application Number
- CN202110302647.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2018-05-11
- Publication Date
- 2024-11-12
- Estimated Expiration
- 2038-05-11
AI Technical Summary
Logistics information is easily leaked during transportation, especially because it is printed on the express parcel, resulting in user privacy information being copied or leaked, and the prior art is difficult to effectively protect the security of user information.
Adopting a blockchain-based logistics information transmission method, by using public and private keys between logistics delivery outlets and distribution outlets for encryption and decryption, the information is securely transmitted on the blockchain, and the user privacy is hidden through encoding processing. information.
Effectively prevent the leakage of logistics information during the transit process, ensure the privacy and security of user information, avoid information being tampered with or forged, and improve the accuracy and efficiency of logistics distribution.
Smart Images

Figure CN113095749B_ABST
Abstract
Description
Technical Field
[0001] This specification relates to the field of network communication technology, and in particular to a blockchain-based logistics information transmission method, system and device. Background Art
[0002] With the development of e-commerce and logistics and express delivery industries, privacy information such as user names and telephone numbers is increasingly being leaked during the logistics process. For example, during the logistics transportation of express packages, since the logistics system is clearly aware of the user information, it is likely to be leaked during multiple transfers during the logistics transportation process. In addition, since the user information is printed in plain text and affixed to the surface of the express package for delivery, the couriers involved can leak the information by copying, taking photos, etc. Summary of the invention
[0003] In order to solve the above-mentioned security risks of user logistics information, this specification provides a logistics information transmission method based on blockchain, wherein the blockchain includes multiple node devices corresponding to logistics delivery outlets and logistics distribution outlets, and the method includes:
[0004] The logistics delivery outlets
[0005] Receiving logistics information, wherein the logistics information includes user delivery address information;
[0006] The logistics information is encrypted using a key associated with a public key of a distribution network point to obtain the encrypted logistics information, wherein the distribution network point is a distribution network point determined according to the user delivery address information;
[0007] Sending the encrypted logistics information to the distributed ledger of the blockchain;
[0008] The logistics distribution outlets
[0009] Obtain the encrypted logistics information from the distributed ledger of the blockchain;
[0010] Decrypting the encrypted logistics information using a key associated with a private key of the distribution network point to obtain the logistics information;
[0011] Delivery is carried out based on the logistics information.
[0012] Accordingly, this specification provides a method for transmitting logistics information based on blockchain, wherein the blockchain includes multiple node devices corresponding to logistics shipping outlets and logistics distribution outlets, and the method includes:
[0013] The logistics delivery outlet receives logistics information, wherein the logistics information includes user delivery address information;
[0014] The logistics information is encrypted using a key associated with a public key of a distribution network point to obtain the encrypted logistics information, wherein the distribution network point is a distribution network point determined according to the user delivery address information;
[0015] The encrypted logistics information is sent to the distributed ledger of the blockchain.
[0016] Accordingly, this specification provides a method for transmitting logistics information based on blockchain, wherein the blockchain includes multiple node devices corresponding to logistics shipping outlets and logistics distribution outlets, and the method includes:
[0017] The logistics distribution outlets
[0018] Obtaining encrypted logistics information from a distributed ledger of the blockchain, wherein the encrypted logistics information is encrypted based on a key associated with a public key of a distribution point;
[0019] Decrypting the encrypted logistics information using a key associated with a private key of the distribution network to obtain the logistics information, wherein the logistics information includes user delivery address information;
[0020] Delivery is carried out based on the logistics information.
[0021] This specification also provides a logistics information transmission system based on blockchain, wherein the blockchain includes a plurality of node devices corresponding to logistics delivery outlets and logistics distribution outlets, and the system includes a logistics delivery device and a logistics distribution device;
[0022] The logistics delivery device comprises:
[0023] A logistics information receiving unit, used for the delivery outlet to receive logistics information, wherein the logistics information includes user delivery address information;
[0024] A logistics information encryption unit, used for the shipping outlet to encrypt the logistics information using a key related to a public key of a distribution outlet to obtain the encrypted logistics information, wherein the distribution outlet is a distribution outlet determined according to the user's delivery address information;
[0025] A logistics information sending unit, used for the shipping outlet to send the encrypted logistics information to the distributed ledger of the blockchain;
[0026] The logistics distribution device comprises:
[0027] An encrypted logistics information acquisition unit, used for the distribution network point to obtain encrypted logistics information from the distributed ledger of the blockchain, wherein the encrypted logistics information is encrypted based on a key related to the public key of the distribution network point;
[0028] An encrypted logistics information decryption unit, used for the distribution network to decrypt the encrypted logistics information using a key related to the private key of the distribution network to obtain the logistics information, wherein the logistics information includes the user delivery address information;
[0029] The delivery unit performs delivery based on the logistics information.
[0030] Accordingly, this specification provides a blockchain-based logistics information transmission device, wherein the blockchain includes a plurality of node devices corresponding to logistics delivery outlets and logistics distribution outlets, and the device includes:
[0031] A logistics information receiving unit, used for the delivery outlet to receive logistics information, wherein the logistics information includes user delivery address information;
[0032] A logistics information encryption unit, used for the shipping outlet to encrypt the logistics information using a key related to a public key of a distribution outlet to obtain the encrypted logistics information, wherein the distribution outlet is a distribution outlet determined according to the user's delivery address information;
[0033] A logistics information sending unit is used for the shipping point to send the encrypted logistics information to the distributed ledger of the blockchain.
[0034] Accordingly, this specification provides a blockchain-based logistics information transmission device, wherein the blockchain includes a plurality of node devices corresponding to logistics delivery outlets and logistics distribution outlets, and the device includes:
[0035] An encrypted logistics information acquisition unit, used for the distribution network point to obtain encrypted logistics information from the distributed ledger of the blockchain, wherein the encrypted logistics information is encrypted based on a key related to the public key of the distribution network point;
[0036] An encrypted logistics information decryption unit, used for the distribution network to decrypt the encrypted logistics information using a key related to the private key of the distribution network to obtain the logistics information, wherein the logistics information includes the user delivery address information;
[0037] The delivery unit performs delivery based on the logistics information.
[0038] This specification also provides a computer device, including: a memory and a processor; the memory stores a computer program that can be executed by the processor; when the processor runs the computer program, it executes the steps described in the above-mentioned blockchain-based logistics information transmission method.
[0039] This specification also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps described in the above-mentioned blockchain-based logistics information transmission implementation method are executed.
[0040] As can be seen from the above technical solutions, the blockchain-based logistics transmission method, system and device provided in this specification adopts blockchain encryption to transmit logistics information, which avoids the possibility of the above logistics information being leaked by the transit point during the logistics transit process, and the logistics information recorded and transmitted on the blockchain will not be tampered with by any other node, ensuring that the distribution end of the logistics information system can accurately contact the user without affecting the efficiency of logistics delivery. Furthermore, by generating encoded user information from user information and setting a user information decoding program, the distribution end or even the entire logistics system no longer has the right to view all user information (especially private information such as name and telephone number), completely avoiding the hidden danger of user information leakage from the distribution end or the logistics information system; moreover, the real user information will not be disclosed on the packaging of the logistics package, further avoiding the possibility of private information being leaked again. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] Figure 1 This is a flowchart of the blockchain-based logistics information transmission method shown in the embodiment of this specification;
[0042] Figure 2 This is a simplified diagram of the PBFT algorithm’s consensus process.
[0043] Figure 3 This is a flow chart of logistics information encryption and logistics information decryption shown in the embodiments of this specification;
[0044] Figure 4 This is a flowchart of using the ECDH method to encrypt and decrypt logistics information as shown in another embodiment of this specification;
[0045] Figure 5 This is a flowchart of the method for transmitting logistics information based on blockchain as shown in the embodiment of the logistics delivery outlet end of this specification;
[0046] Figure 6 This is a flowchart of the blockchain-based logistics information transmission method shown in the logistics distribution network end embodiment of this specification;
[0047] Figure 7 A schematic diagram of a blockchain-based logistics information transmission system and the devices included therein as shown in an embodiment of this specification;
[0048] Figure 8 A hardware structure diagram for running the blockchain-based logistics information transmission method, system or device embodiment provided in this specification. DETAILED DESCRIPTION
[0049] In view of the possible leakage of user logistics information during logistics transmission, an illustrative embodiment of this specification provides a logistics information transmission and distribution method based on blockchain to protect the security of user logistics information. The blockchain includes multiple node devices corresponding to logistics shipping outlets and logistics distribution outlets, such as Figure 1 As shown, the method includes:
[0050] Step 102, the logistics delivery outlet receives logistics information, and the logistics information includes user delivery address information;
[0051] Step 104, the logistics delivery outlet uses a key related to a public key of a distribution outlet to encrypt the logistics information to obtain the encrypted logistics information, wherein the distribution outlet is a distribution outlet determined according to the user delivery address information;
[0052] Step 106, the logistics delivery outlet sends the encrypted logistics information to the distributed ledger of the blockchain;
[0053] Step 108, the logistics distribution outlet obtains the encrypted logistics information from the distributed ledger of the blockchain;
[0054] Step 110, the logistics distribution network point uses a key related to a private key of the distribution network point to decrypt the encrypted logistics information to obtain the logistics information;
[0055] Step 112: the logistics distribution network performs distribution based on the logistics information.
[0056] The "logistics information" described in the embodiments provided in this specification can be generated by the e-commerce platform system based on the user's e-commerce order and provided by the e-commerce seller to the logistics delivery outlet, or it can be directly provided to the logistics delivery outlet by any company, organization or individual user who needs logistics express service. Logistics information usually contains the name, phone number, address information of the recipient and / or sender, and the name and phone number information are the most private. In order to ensure the privacy of logistics information, in all the embodiments provided in this specification, logistics information is transmitted in an encrypted state in the logistics information system established based on blockchain.
[0057] In the existing logistics information system, the shipping outlet is usually an outlet near the shipping place of a specific order in the logistics information system; the distribution outlet is an outlet designated by the logistics information system for a specific delivery address. For the convenience of delivery, the distribution outlet can usually be an outlet near the user's delivery address. Of course, the shipping outlets and distribution outlets described in the embodiments provided in this specification are not limited to the above-mentioned general provisions. The specific logistics information system can set the corresponding shipping outlets and distribution outlets according to the rules of its own system. In order to further ensure the privacy of logistics information during the transmission process, in the embodiments provided in this specification, the shipping outlet first determines the specific distribution outlet according to the user's delivery address in the logistics information, and then uses the key related to the public key of the distribution outlet to encrypt the above logistics information, thereby obtaining encrypted logistics information; the encrypted logistics information can only be decrypted by the key related to the private key of the above distribution outlet, and the privacy of the private key ensures that the encrypted logistics information can only be decrypted by the above distribution outlet, thereby preventing other nodes other than the above distribution outlet from knowing the logistics information, which further enhances the protection of user information. There are many corresponding encryption algorithms, such as asymmetric encryption algorithms based on ECDSA or RSA, etc. In the embodiments provided in this specification, the encryption method can be specifically set according to needs.
[0058] The "blockchain" described in the embodiments provided in this specification may specifically refer to a P2P network system with a distributed data storage structure reached by each node through a consensus mechanism. The data in the blockchain is distributed in "blocks" connected in time. The latter block contains the data summary of the previous block, and according to the specific consensus mechanism (such as POW, POS, DPOS or PBFT, etc.), the data of all or part of the nodes are fully backed up. It is well known to those skilled in the art that since the blockchain system operates under the corresponding consensus mechanism, the data included in the distributed ledger of the blockchain is difficult to be tampered by any node. For example, for a blockchain using Pow consensus, at least 51% of the computing power of the entire network is required to tamper with the existing data. Therefore, the blockchain system has the characteristics of ensuring data security and anti-attack tampering that other centralized database systems cannot match. It can be seen that in the embodiments provided in this specification, the above-mentioned encrypted logistics information included in the distributed ledger of the blockchain is difficult to be attacked or tampered, thereby ensuring that the logistics distribution outlets can accurately decrypt the encrypted logistics information and deliver it to the user's delivery address without affecting the efficiency of logistics delivery.
[0059] In summary, by Figure 1 The blockchain-based logistics information transmission method shown realizes the protection of user logistics information in the process of logistics information transmission involving the logistics information system, and can effectively prevent the risk of user information leakage caused by transit points in the logistics process.
[0060] From the perspective of functional implementation, for different logistics orders, the same logistics outlet can be used as both a logistics delivery outlet and a logistics distribution outlet; for the same logistics transmission order, the same outlet can be both a logistics delivery outlet and a logistics distribution outlet, which is not limited in this specification. In the embodiments described in this specification, logistics delivery outlets and logistics distribution outlets can join the blockchain by following the corresponding node protocol and running the node protocol program installation. The embodiments provided in this specification can be run on any device with computing and storage capabilities, such as mobile phones, tablets, PCs (Personal Computers), notebooks, servers and other devices; the various functions in the embodiments of this specification can also be implemented by logical nodes running on two or more devices.
[0061] Furthermore, in order to ensure that the logistics information stored on the blockchain is not information uploaded by any other node pretending to be a logistics shipping outlet, the above-mentioned sending of the encrypted logistics information to the distributed ledger of the blockchain also includes: digitally signing the encrypted logistics information to obtain an encrypted logistics information signature; the shipping outlet sends the encrypted logistics information and the encrypted logistics information signature to the distributed ledger of the blockchain; accordingly, the above-mentioned use of a key related to the private key of the distribution outlet to decrypt the encrypted logistics information to obtain the logistics information also includes: the distribution outlet verifies the signature of the encrypted logistics information; after the verification is passed, the distribution outlet uses the key related to the private key of the distribution outlet to decrypt the encrypted logistics information to obtain the logistics information.
[0062] Those skilled in the art should know that nodes with bookkeeping functions on the blockchain, such as miner nodes on a public chain established using a POW or POS consensus mechanism, need to verify data records that can be included in the blockchain distributed ledger. The verification process may include the verification of the digital signature of the data to be included. The verification process is to prevent the data from being tampered with or the information is forged by other participants. After the verification is passed, the miner node that obtains the bookkeeping right will include the data to be included in the block of the blockchain. In the above embodiment shown in this specification, in order to prevent other nodes from forging or changing the logistics information, the distribution network point verifies the signature of the encrypted logistics information again. After the verification is passed, the distribution network point uses the key related to the private key of the above distribution network point to decrypt the encrypted logistics information to obtain the logistics information.
[0063] The embodiments of this specification do not specifically limit the algorithms for digital signatures and signature verification algorithms, and the public key-private key pairs of the delivery and distribution outlets of the logistics information system. Elliptic curve algorithms, RSA algorithms, etc. can be used to implement them, and related hash algorithms can be implemented by MD5, SHA256, etc.
[0064] The above-mentioned shipping outlets digitally sign the encrypted logistics information to ensure the reliability of the source of the encrypted logistics information, that is, to ensure that the encrypted information is accurately derived from the above-mentioned shipping outlets, and any other nodes in the same blockchain cannot tamper with the encrypted logistics information or impersonate the shipping outlet to publish the encrypted information, ultimately ensuring the accuracy and non-tampering of the logistics information (including the user's delivery address information), ensuring the correct execution of the decryption process and the precise delivery of the distribution behavior.
[0065] like Figure 3 As shown, the key associated with the public key of the distribution point may be the public key of the distribution point, and correspondingly, the key associated with the private key of the distribution point may be the private key of the distribution point. Figure 3 (a) illustrates the process in which the receiving outlet uses the public key of the distribution outlet to encrypt the logistics information, digitally signs the encrypted logistics information, and then uploads the encrypted logistics information and the encrypted logistics information signature to the blockchain; Figure 3 (b) illustrates the process of the distribution outlet obtaining the encrypted logistics information and the encrypted logistics information signature from the distributed ledger of the blockchain, verifying the digital signature of the encrypted logistics information signature, and then using the private key of the distribution outlet to decrypt the encrypted logistics information to obtain the logistics information after the signature verification is passed.
[0066] The above-mentioned process of encrypting logistics information to obtain ciphertext can also be implemented by using a symmetric key agreed upon by both parties. Figure 4 As shown, the receiving outlet can use ECDH to exchange keys to encrypt the plain text of the logistics information. It is well known to those skilled in the art that in a blockchain system that uses the same elliptic curve algorithm (i.e., the same straight line or base point) to obtain public key-private key pairs related to the identities of different outlets, the product of the private key AS of outlet A and the public key BP of outlet B is equal to the product of the public key AP of outlet A and the private key BS of outlet B.
[0067] That is: AS BP = AP BS,
[0068] In the embodiment described in this specification: the public key FP of the shipping point·the private key PS of the distribution point=the private key FS of the shipping point·the public key PP of the distribution point
[0069] Therefore, if Figure 4As shown in (a), the shipping outlet can use the key obtained by multiplying the public key PP of the corresponding distribution outlet and its own private key FS to encrypt the plain text of the logistics information to obtain the encrypted logistics information; similarly, in order to ensure that the encrypted logistics information is not tampered with or forged, the shipping outlet digitally signs the encrypted logistics information, and uploads the encrypted logistics information signature, the encrypted logistics information, the public key FP corresponding to its own private key FS used for encrypting the logistics information, and the public key PP of the distribution outlet used for encryption to the blockchain database cache of the logistics information system, waiting for the bookkeeper of the blockchain, such as the pre-selected node with bookkeeping authority in the alliance chain, to include the above information in the block of the above blockchain.
[0070] After the encrypted logistics information signature, encrypted logistics information, public key FP, and public key PP are recorded in the blockchain by the accounting node of the blockchain, the distribution outlet can obtain the above information from the blockchain, such as Figure 4 As shown in (b), accordingly, the distribution network first verifies the digital signature of the encrypted logistics information. After the signature verification is passed, the encrypted logistics information is decrypted by multiplying the private key PS corresponding to the public key PP of the distribution network with the obtained public key FP, thereby obtaining specific logistics information. Any other node cannot decrypt the above encrypted logistics information because it cannot know the private key PS of the distribution network.
[0071] It is worth noting that since the same organization or logistics outlet can have multiple sets of public key-private key pairs in a blockchain, the public key FP and private key FS used for encrypting the logistics information are not necessarily the same as the private key and public key used in the above-mentioned digital signature process and signature verification. However, this does not affect the implementation of this technical solution. On the contrary, it reduces the possibility of attack due to the increased complexity of the system.
[0072] Preferably, in order to reduce the confirmation time of on-chain data, increase transaction throughput, and meet the requirements for security and performance, a consortium chain architecture can usually be used to build the blockchain. The consensus process of the consortium chain is controlled by pre-selected nodes. When more than a set proportion (such as 2 / 3) of the nodes on the network confirm a block, the transaction or data recorded in the block will be confirmed by the entire network. The consortium chain can determine the degree of openness to the public based on the application scenario, and grant the authority to access the consortium chain to the open institutions. For example, in this embodiment, large and medium-sized logistics distribution outlets and other highly credible outlets can participate in bookkeeping as pre-selected nodes, and each small logistics distribution outlet or other franchise outlet can be a general node with access to the consortium chain, and so on.
[0073] Consortium chains usually use consensus algorithms such as proof of stake or PBFT, RAFT, etc. Figure 2The figure shows the consensus process of the simplified PBFT algorithm, where C is the client, N0-N3 are service nodes, and in particular, N0 is the master node and N3 is the faulty node. The PBFT system usually assumes that the number of faulty nodes is m, and the total number of service nodes is 3m+1. In simple terms, the entire communication process is as follows:
[0074] 1) The client sends a request to the master node to invoke a service operation;
[0075] 2) When the master node receives the request, it starts the three-phase protocol to broadcast the request to each slave node;
[0076] [2.1] Sequence number allocation phase (also known as pre-prepare phase), the master node assigns a sequence number n to the request, broadcasts the sequence number allocation message and the client's request message m, and constructs a PRE-PREPARE message to each slave node;
[0077] [2.2] Interaction phase (also known as prepare phase), receiving PRE-PREPARE messages from the node and broadcasting PRE-PREPARE messages to other server nodes;
[0078] [2.3] In the sequence number confirmation phase (also known as the commit phase), each node verifies the request and order in the view, broadcasts a COMMIT message, executes the request received from the client and responds to the client.
[0079] 3) The client waits for responses from different nodes. If m+1 responses are the same, then the response is the consensus result.
[0080] Like all state machine replica replication technologies, PBFT imposes two restrictions on each replica node:
[0081] 1) All nodes must be deterministic. That is, given the same state and parameters, the results of the operations must be the same;
[0082] 2) All nodes must start executing from the same state.
[0083] Under these two limited conditions, even if failed replica nodes exist, the PBFT algorithm can reach a consensus on the total order of request execution for all non-failed replica nodes, thereby ensuring security.
[0084] according to Figure 2The consensus communication process shown generates a block from a batch of records, and finally forms a chain. The PBFT algorithm is a preferred implementation method provided in this specification because the consensus efficiency of this algorithm is high and can meet the needs of high-frequency transactions, such as frequent online shopping order logistics and delivery information, express logistics information of a large number of orders, etc. in this embodiment; and the consensus delay is very low, basically meeting the requirements of real-time processing; trusted nodes are pre-selected accounting nodes, taking into account security and stability; in addition, the use of the PBFT algorithm does not consume too much computer computing resources, and does not necessarily require token circulation, so it has good usability.
[0085] The above-mentioned multiple embodiments describe technical solutions to prevent logistics transit points from tampering with, counterfeiting and leaking logistics information during the transmission of logistics information. However, for distribution points and delivery personnel, since the logistics information has been decrypted, the logistics information involving the privacy information of the consignee user and / or the consignor user is presented in plain text, and the delivery personnel can leak the logistics information by copying, taking photos, etc.; and during delivery, the decrypted logistics information is usually printed on the express package. After the consignee receives the package and unpacks it, the express information is often discarded in the trash can, which is also a hidden danger of information leakage.
[0086] In order to solve the above-mentioned potential user information leakage risk, the logistics information provided in the embodiments of this specification also includes encoded user information, which refers to the user information encoded and protected according to specific encoding processing rules. The encoded user information will no longer actually display or fully display the relevant user information, especially the user information involving privacy, such as name and phone number. It is worth noting that due to the development of technology, instant contact methods are no longer limited to landlines, mobile phones, software call APPs, social software APPs, etc. Therefore, in the embodiments shown in this specification, the types of information protected by encoding in the user logistics information are not limited.
[0087] Specifically, the above-mentioned coding protection processing process can be: mapping the user's phone number in the logistics information according to the preset rules to obtain a virtual phone number, or hiding a few digits in the phone number and only displaying the remaining digits, or hiding the name in the user information and only displaying part of the user's name, etc. The coding rule method for processing the user information into the encoded user information is not limited in this specification. For example, the user's phone is mapped and encoded into a short number according to the following rules:
[0088] Map the phone number 13012345678 to a 4-digit delivery point courier station number + date + 6-digit code.
[0089] In this way, even if the logistics information is known by the distribution outlets (including the distribution end) in the logistics information system, the user's real phone number cannot be known. The method of encoding the user's logistics information to obtain the encoded user information can be performed by the delivery outlets of the logistics information system, or by the e-commerce platform system when generating an e-commerce order, or by a third party platform that can provide user information encoding protection, which is not limited in this specification. Each encoding party can encode the specific user information according to the platform settings or the user's own choice to complete its protection.
[0090] The e-commerce platform system described in the embodiments provided in this specification is a network platform for buyer users and seller users to realize transactions. If the two parties reach a consensus, the buyer user creates an order in the interface provided by the e-commerce platform system, and the e-commerce platform system generates a corresponding transaction order based on the goods information. The user information of the corresponding buyer or consignee in the order usually includes the user's name, instant contact information (such as telephone number), or receiving address and other information, wherein the user's name and instant contact information are extremely private information, and in modern society, it is very easy to be sold by illegal persons (such as seller users of e-commerce platforms). Therefore, in the embodiments provided in this specification, the e-commerce platform encodes and protects the buyer or consignee user information in the transaction order, and the encoded user information will no longer actually display or fully display the relevant user information, especially the user information involving privacy, such as name and telephone number. Therefore, the logistics information obtained by the seller of the e-commerce platform and handed over to the logistics delivery outlets are all encoded user information. Therefore, this embodiment isolates the seller of the e-commerce platform and all possible user information leakage risks of the entire logistics information system (including delivery outlets, transit outlets, and distribution outlets), and has a good practical effect.
[0091] Accordingly, when delivering based on logistics information, the delivery outlets (including the delivery terminals) need to call the user information decoding program, decode the encoded user information, and contact the user for delivery.
[0092] From the above analysis, it can be known that the user information decoding program can be provided by the logistics information system, or by the e-commerce platform system, or by a third party platform that provides user information encoding protection, which is not limited in this specification. The distribution outlet (including the distribution end) calls the preset user information decoding contact program to decode the encoded user information and restore it to the actual user information, and contact the user for distribution.
[0093] There are many specific ways to contact the user for delivery. For example, the delivery end of the logistics information system (which can be a delivery person or a delivery robot, a delivery drone, etc.) calls the user information decoding contact program of the e-commerce platform, and the background of the program restores the virtual telephone number in the encoded user information to an actual telephone number, and calls the telephone number to contact the delivery; or restores the virtual telephone number in the encoded user information to an actual telephone number, and after delivery to the express storage cabinet near the delivery address of the above-mentioned user, sends a text message containing the box number and password of the express storage cabinet to the telephone number; or restores other hidden voice communication methods in the encoded user information, and uses this communication method to conduct network voice communication or text communication with the user; or a combination of the above methods; and so on.
[0094] It is worth noting that in the embodiments provided in this specification, although the user information decoding program can decode the encoded user information to obtain the actual user information, the actual user information should not be displayed on the foreground of the decoding program or be known by the delivery end (which may be a delivery person or a delivery robot, a delivery drone, etc.). The foreground contact window of the decoding program should not display the actual user information or should still display the encoded user information, thereby ensuring that the user information cannot be known by the delivery end during the delivery stage, thereby preventing possible user information leakage at the delivery end.
[0095] Preferably, the e-commerce platform system can also serve as a node in the blockchain where the distribution outlets and shipping outlets of the logistics information system are located, so as to facilitate the completion of logistics shipping order operations directly on the blockchain, or to follow up and share the information released by each logistics outlet in real time (such as logistics tracking status information), etc.
[0096] The above-mentioned multiple embodiments provided in this specification specifically describe the logistics information transmission method for preventing logistics information leakage from the interaction between the shipping outlets and the distribution outlets of the logistics information system established based on blockchain. The following description of the embodiments of the logistics information transmission method will be briefly described from the shipping outlet end and the distribution outlet end respectively. For the same related parts, please refer to the description of the above-mentioned embodiments.
[0097] 1) Logistics information transmission method implemented by the shipping outlet
[0098] like Figure 5 As shown, this specification provides an embodiment of a logistics information transmission method based on blockchain, wherein the blockchain includes multiple node devices corresponding to logistics shipping outlets and logistics distribution outlets, and the method includes:
[0099] Step 502, the logistics delivery outlet receives logistics information, and the logistics information includes user delivery address information;
[0100] Step 504, encrypting the logistics information using a key associated with a public key of a distribution network point to obtain the encrypted logistics information, wherein the distribution network point is a distribution network point determined according to the user delivery address information;
[0101] Step 506: Send the encrypted logistics information to the distributed ledger of the blockchain.
[0102] Through the above steps, the logistics delivery outlets will send the encrypted logistics information to the distributed ledger of the blockchain, thereby preventing the encrypted logistics information from being tampered with and leaked.
[0103] Preferably, the sending of the encrypted logistics information to the distributed ledger of the blockchain comprises:
[0104] Digitally signing the encrypted logistics information to obtain an encrypted logistics information signature;
[0105] The shipping outlet sends the encrypted logistics information and the encrypted logistics information signature to the distributed ledger of the blockchain.
[0106] The electronic signature of the encrypted logistics information by the logistics delivery outlets can prevent any other node on the blockchain from impersonating the logistics delivery outlets to publish false information, thereby affecting the efficiency of logistics transmission.
[0107] According to the characteristics of the blockchain where the logistics information system is located, there can be many specific encryption methods, such as agreed symmetric keys, salted encryption, agreed asymmetric encryption methods, etc.
[0108] Optionally, the key related to the public key of the distribution outlet is: the public key of the distribution outlet.
[0109] Optionally, the key associated with the public key of the distribution outlet is: the product of the public key of the distribution outlet and the private key of the shipping outlet.
[0110] More preferably, in order to ensure that logistics information is not leaked at logistics distribution points (including distribution terminals), the logistics information also includes encoded user information. The encoded user information no longer displays user privacy information in plain text or all plain text, thereby preventing user information leakage that may occur at logistics distribution points during the distribution process and after the express logistics packages are abandoned.
[0111] More preferably, the encoded user information is generated by encoding the user information by the e-commerce platform system, and the privacy information in the logistics information has been encoded when the e-commerce platform system delivers the user information to the logistics delivery outlet, thereby preventing the entire logistics information system from knowing the user's privacy information and preventing user information leakage throughout the entire logistics process.
[0112] 2) Logistics information transmission method implemented by distribution outlets
[0113] like Figure 6 As shown, this specification provides an embodiment of a logistics information transmission method based on blockchain, wherein the blockchain includes multiple node devices corresponding to logistics shipping outlets and logistics distribution outlets, and the method includes:
[0114] Step 602, the logistics distribution network obtains encrypted logistics information from the distributed ledger of the blockchain, wherein the encrypted logistics information is encrypted based on a key associated with a public key of the distribution network;
[0115] Step 604, using a key associated with a private key of the distribution network point to decrypt the encrypted logistics information to obtain the logistics information, wherein the logistics information includes user delivery address information;
[0116] Step 606: perform delivery based on the logistics information.
[0117] Through the above steps, logistics distribution outlets obtain logistics information from the distributed ledger of the blockchain that will not be known or tampered with by other nodes for distribution, ensuring the privacy and accuracy of distribution behavior.
[0118] Preferably, the decrypting the encrypted logistics information using a key related to a private key of the distribution network point to obtain the logistics information includes:
[0119] The distribution outlet verifies the signature of the encrypted logistics information;
[0120] After the signature verification is passed, the distribution outlet uses a key related to the private key of the distribution outlet to decrypt the encrypted logistics information to obtain the logistics information.
[0121] By verifying the signature of the encrypted logistics information, it is further guaranteed that the encrypted logistics information will not be sent out by any other node pretending to be a shipping point, ensuring the accuracy of the logistics information.
[0122] Due to the characteristics of the blockchain where the logistics information system is located, there can be many specific encryption methods, such as agreed symmetric keys, salted encryption, agreed asymmetric encryption, etc. According to the specific encryption method, the distribution outlets execute the corresponding decryption method.
[0123] Optionally, the key related to the private key of the distribution outlet is: the private key of the distribution outlet.
[0124] Optionally, the key related to the private key of the distribution outlet is: the product of the private key of the distribution outlet and the public key of the shipping outlet.
[0125] More preferably, in order to ensure that the logistics information is not leaked at the logistics distribution outlets (including the distribution end), the logistics information also includes the encoded user information, and the encoded user information no longer displays the user's privacy information in plain text or in full plain text, thereby preventing the possible leakage of user information during the distribution process of the logistics distribution outlets and after the express logistics package is abandoned; accordingly, the distribution based on the logistics information includes:
[0126] The user information decoding program is called to decode the encoded user information and contact the user for delivery.
[0127] Depending on the subject that generates the encoded user information, the above-mentioned user information decoding program can be executed on the corresponding subject, such as a logistics information system, an e-commerce system platform, or a third-party user information encoding platform.
[0128] Preferably, the calling of a user information decoding program, decoding the encoded user information, and contacting the user for delivery includes:
[0129] Call the smart contract published on the blockchain, execute the execution program corresponding to the user information decoding declared in the smart contract, decode the encoded user information, and execute the delivery contact method declared in the smart contract.
[0130] From the above analysis, it can be seen that the above-mentioned program for decoding the encoded user information can be called in the logistics information system or e-commerce platform system or third-party platform. The above-mentioned system or platform can also publish a smart contract with the function of decoding user information and contacting delivery to the above-mentioned blockchain, execute the execution program corresponding to the user information decoding declared in the smart contract, decode the encoded user information, and execute the delivery contact method declared in the smart contract. The specific user information decoding and delivery contact method have been described in detail in the previous article and will not be repeated here. The execution of smart contracts on the blockchain has the advantages of low human intervention and decentralized authority, which further increases the accuracy of delivery behavior.
[0131] More preferably, the user information decoding program is set by the e-commerce platform system.
[0132] The above specifically describes various embodiments of the blockchain-based logistics information distribution method provided by this specification. The following embodiments of this specification also provide a blockchain-based logistics information transmission system and device corresponding to the above method flow. The system or device can be implemented through software, or through hardware or a combination of software and hardware. Taking software implementation as an example, as a device in the logical sense, it is formed by the CPU (Central Process Unit) of the device reading the corresponding computer program instructions into the memory and running them. From the hardware level, in addition to Figure 8 In addition to the CPU, memory and storage shown, the equipment where the logistics information distribution device is located usually also includes other hardware such as chips for sending and receiving wireless signals, and / or other hardware such as boards for realizing network communication functions.
[0133] Figure 7 The block diagram shows a logistics information transmission system and device embodiment based on blockchain provided in this specification. The block diagram includes a plurality of node devices corresponding to logistics delivery outlets and logistics distribution outlets. The system 07 includes a logistics delivery device 72 and a logistics distribution device 74.
[0134] The logistics delivery device 72 includes:
[0135] A logistics information receiving unit 7202, used for the delivery outlet to receive logistics information, the logistics information including user delivery address information;
[0136] The logistics information encryption unit 7204 is used for the delivery outlet to encrypt the logistics information using a key related to a public key of a distribution outlet to obtain the encrypted logistics information, wherein the distribution outlet is a distribution outlet determined according to the user delivery address information;
[0137] The logistics information sending unit 7206 is used for the shipping point to send the encrypted logistics information to the distributed ledger of the blockchain.
[0138] The logistics distribution device 74 includes:
[0139] An encrypted logistics information acquisition unit 7402 is used for the distribution point to acquire encrypted logistics information from the distributed ledger of the blockchain, wherein the encrypted logistics information is encrypted based on a key related to a public key of the distribution point;
[0140] The encrypted logistics information decryption unit 7404 is used for the distribution network point to decrypt the encrypted logistics information using a key related to the private key of the distribution network point to obtain the logistics information, wherein the logistics information includes the user delivery address information;
[0141] The distribution unit 7406 performs distribution based on the logistics information.
[0142] The implementation process of the functions and effects of each module in the above-mentioned system and device is specifically described in the implementation process of the corresponding steps in the above-mentioned method, which will not be repeated here.
[0143] For the system and device embodiments, since they basically correspond to the method embodiments, the relevant parts can refer to the partial description of the method embodiments. The device embodiments described above are merely schematic, wherein the modules described as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical modules, that is, they may be located in one place, or they may be distributed on multiple network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this specification. A person of ordinary skill in the art can understand and implement it without paying any creative work.
[0144] The systems, devices, modules or modules described in the above embodiments may be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer, which may be in the form of a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email transceiver, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
[0145] Corresponding to the above-mentioned embodiment of the logistics information transmission method executed by the logistics delivery outlet, the embodiment of this specification also provides a computer device, which includes a memory and a processor. Among them, the memory stores a computer program that can be run by the processor; when the processor runs the stored computer program, it executes each step of the logistics information transmission method executed by the logistics delivery outlet in the embodiment of this specification. For a detailed description of each step of the implementation method of logistics information distribution, please refer to the previous content and will not be repeated.
[0146] Corresponding to the above-mentioned embodiment of the logistics information transmission method executed by the logistics distribution network end, the embodiment of this specification also provides a computer device, which includes a memory and a processor. Among them, the memory stores a computer program that can be run by the processor; when the processor runs the stored computer program, it executes each step of the logistics information transmission method executed by the logistics distribution network end in the embodiment of this specification. For a detailed description of each step of the implementation method of logistics information distribution, please refer to the previous content and will not be repeated.
[0147] Those skilled in the art will appreciate that the logistics information transmission method implemented by the above-mentioned logistics shipping point end and logistics distribution point end can be applied on the same terminal device or on different terminal devices.
[0148] Corresponding to the above method embodiment, the embodiment of this specification also provides a computer-readable storage medium, on which a computer program is stored. When these computer programs are executed by the processor, they execute the various steps of the logistics information transmission method executed by the logistics delivery network end in the embodiment of this specification. For a detailed description of the various steps of the implementation method of logistics information distribution, please refer to the previous content and will not be repeated.
[0149] Corresponding to the above method embodiment, the embodiment of this specification also provides a computer-readable storage medium, on which a computer program is stored. When these computer programs are executed by the processor, they execute the various steps of the logistics information transmission method executed by the logistics distribution network end in the embodiment of this specification. For a detailed description of the various steps of the implementation method of logistics information distribution, please refer to the previous content and will not be repeated.
[0150] The above description is only a preferred embodiment of this specification and is not intended to limit this specification. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of this specification should be included in the scope of protection of this specification.
[0151] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0152] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0153] Computer readable media include permanent and non-permanent, removable and non-removable media and can store information by any method or technology. The information can be computer readable instructions, data structures, program modules or other data.
[0154] Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer-readable media does not include transitory media such as modulated data signals and carrier waves.
[0155] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0156] Those skilled in the art will appreciate that the embodiments of this specification may be provided as methods, systems or computer program products. Therefore, the embodiments of this specification may take the form of complete hardware embodiments, complete software embodiments or embodiments combining software and hardware. Moreover, the embodiments of this specification may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
Claims
1. A method for transmitting logistics information based on blockchain, wherein the blockchain includes a plurality of node devices corresponding to logistics shipping outlets and logistics distribution outlets; A smart contract for decoding user information is deployed on the blockchain; the method comprises: The logistics delivery outlet receives logistics information, which includes user delivery address information and encoded user information; wherein the encoded user information is encoded and generated by the e-commerce platform when generating an order based on the user information provided by the buyer, by calling the encoding logic of the smart contract; Encrypting the logistics information using a key associated with a public key of the distribution outlet to obtain encrypted logistics information; The encrypted logistics information is sent to the distributed ledger of the blockchain.
2. According to the method of claim 1, the key related to the public key of the distribution network point is: the public key of the distribution network point.
3. According to the method of claim 1, the key associated with the public key of the distribution outlet is: the product of the public key of the distribution outlet and the private key of the shipping outlet.
4. According to the method of claim 1, the encoded user information includes a virtual telephone number, and the virtual telephone number is obtained by mapping and encoding the user's telephone number according to an encoding rule.
5. The method according to claim 4, wherein the encoded user information is partially hidden user information generated from the user information according to an encoding rule.
6. A method for transmitting logistics information based on blockchain, wherein the blockchain includes a plurality of node devices corresponding to logistics shipping outlets and logistics distribution outlets; A smart contract for decoding user information is deployed on the blockchain; the method comprises: The logistics distribution network point obtains encrypted logistics information from the distributed ledger of the blockchain, wherein the encrypted logistics information is encrypted based on a key related to a public key of the distribution network point; Decrypting the encrypted logistics information using a key associated with a private key of the distribution outlet to obtain the logistics information, wherein the logistics information includes user delivery address information and encoded user information; wherein the user information is encoded and generated by calling the encoding logic of the smart contract when the e-commerce platform generates an order based on the user information provided by the buyer; Executing a decoding logic corresponding to the encoding logic to decode the encoded user information; The user is contacted based on the decoded user information, and delivery is performed based on the user delivery address information.
7. The method according to claim 6, wherein executing a decoding logic corresponding to the encoding logic to decode the user information comprises: The smart contract is called, a decoding logic declared by the smart contract and corresponding to the encoding logic is executed, and the encoded user information is decoded.
8. According to the method of claim 6, the key related to the private key of the distribution network point is: the private key of the distribution network point.
9. According to the method of claim 6, the key related to the private key of the distribution network point is: the product of the private key of the distribution network point and the public key of the shipping network point.
10. The method according to claim 6, wherein the encoded user information comprises a virtual telephone number, and the virtual telephone number is obtained by mapping and encoding the user's telephone number according to an encoding rule.
11. The method according to claim 10, wherein the encoded user information is partially hidden user information generated from the user information according to an encoding rule.
12. The method according to claim 6, wherein the decoded user information is not displayed in the front-end contact window of the distribution terminal of the distribution network point.
13. A logistics information transmission device based on blockchain, wherein the blockchain includes a plurality of node devices corresponding to logistics delivery outlets and logistics distribution outlets; A smart contract for decoding user information is deployed on the blockchain; the device includes: A logistics information receiving unit, used for the delivery outlet to receive logistics information, the logistics information including user delivery address information and encoded user information; wherein the encoded user information is encoded and generated by the e-commerce platform when generating an order based on the user information provided by the buyer, by calling the encoding logic of the smart contract; A logistics information encryption unit, used for the shipping outlet to encrypt the logistics information using a key related to the public key of the distribution outlet to obtain encrypted logistics information; A logistics information sending unit is used for the shipping point to send the encrypted logistics information to the distributed ledger of the blockchain.
14. The device according to claim 13, wherein the encoded user information comprises a virtual telephone number, and the virtual telephone number is obtained by mapping and encoding the user's telephone number according to an encoding rule.
15. A logistics information transmission device based on blockchain, wherein the blockchain includes a plurality of node devices corresponding to logistics delivery outlets and logistics distribution outlets; A smart contract for decoding user information is deployed on the blockchain; the device includes: An encrypted logistics information acquisition unit, used for the distribution network point to obtain encrypted logistics information from the distributed ledger of the blockchain, wherein the encrypted logistics information is encrypted based on a key related to the public key of the distribution network point; An encrypted logistics information decryption unit, used for the distribution outlet to decrypt the encrypted logistics information using a key related to the private key of the distribution outlet to obtain the logistics information, wherein the logistics information includes the user delivery address information and the encoded user information; wherein the encoded user information is encoded and generated by calling the encoding logic of the smart contract when the e-commerce platform generates an order based on the user information provided by the buyer; The delivery unit executes a decoding logic corresponding to the encoding logic to decode the encoded user information; contacts the user based on the decoded user information, and performs delivery based on the user's delivery address information.
16. The device according to claim 15, The distribution unit is further used for: The smart contract is called, a decoding logic declared by the smart contract and corresponding to the encoding logic is executed, and the encoded user information is decoded.
17. The device according to claim 15, wherein the decoded user information is not displayed in a front-end contact window of a distribution terminal of the distribution network point.
18. A computer device comprising: Memory and processor; The memory stores a computer program executable by the processor; When the processor runs the computer program, the processor performs the steps according to any one of claims 1 to 5.
19. A computer device comprising: Memory and processor; The memory stores a computer program executable by the processor; When the processor runs the computer program, the processor performs the steps according to any one of claims 6 to 12.
