CN111080185A - Privacy protection express delivery and pickup system and method based on intelligent contract - Google Patents

Privacy protection express delivery and pickup system and method based on intelligent contract Download PDF

Info

Publication number
CN111080185A
CN111080185A CN201911036495.2A CN201911036495A CN111080185A CN 111080185 A CN111080185 A CN 111080185A CN 201911036495 A CN201911036495 A CN 201911036495A CN 111080185 A CN111080185 A CN 111080185A
Authority
CN
China
Prior art keywords
dimensional code
identity
information
user
intelligent contract
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201911036495.2A
Other languages
Chinese (zh)
Inventor
朱依水
张隅希
王路阳
段宗涛
杜锋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Changan University
Original Assignee
Changan University
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Changan University filed Critical Changan University
Priority to CN201911036495.2A priority Critical patent/CN111080185A/en
Publication of CN111080185A publication Critical patent/CN111080185A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/08Logistics, e.g. warehousing, loading or distribution; Inventory or stock management
    • G06Q10/083Shipping
    • G06Q10/0832Special goods or special handling procedures, e.g. handling of hazardous or fragile goods
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K17/00Methods or arrangements for effecting co-operative working between equipments covered by two or more of main groups G06K1/00 - G06K15/00, e.g. automatic card files incorporating conveying and reading operations
    • G06K17/0022Methods or arrangements for effecting co-operative working between equipments covered by two or more of main groups G06K1/00 - G06K15/00, e.g. automatic card files incorporating conveying and reading operations arrangements or provisions for transferring data to distant stations, e.g. from a sensing device
    • G06K17/0025Methods or arrangements for effecting co-operative working between equipments covered by two or more of main groups G06K1/00 - G06K15/00, e.g. automatic card files incorporating conveying and reading operations arrangements or provisions for transferring data to distant stations, e.g. from a sensing device the arrangement consisting of a wireless interrogation device in combination with a device for optically marking the record carrier
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K19/00Record carriers for use with machines and with at least a part designed to carry digital markings
    • G06K19/06Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code
    • G06K19/06009Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code with optically detectable marking
    • G06K19/06037Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code with optically detectable marking multi-dimensional coding

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • Economics (AREA)
  • Quality & Reliability (AREA)
  • Operations Research (AREA)
  • Marketing (AREA)
  • Strategic Management (AREA)
  • Tourism & Hospitality (AREA)
  • Human Resources & Organizations (AREA)
  • General Business, Economics & Management (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Development Economics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • General Engineering & Computer Science (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses a privacy protection express delivery and pickup system based on an intelligent contract, which comprises a privacy protection device and an intelligent contract device running on a block chain; the privacy protection device is used for encrypting the mail sending information and then generating a two-dimensional code to obtain a two-dimensional code image; the identity of a user scanning the two-dimensional code image is identified, and the identity of the user is obtained, wherein the identity of the user comprises a sender, a transporter, a distributor, a dispatcher, a receiver and other people; the intelligent contract device generates a two-dimensional code reading mask corresponding to the user identity according to the user identity; the privacy protection device is also used for reading the two-dimensional code image by using the two-dimensional code reading mask corresponding to the user identity, and obtaining express information with different authorities corresponding to the user identity except others or access prohibition information corresponding to others.

Description

Privacy protection express delivery and pickup system and method based on intelligent contract
Technical Field
The invention relates to an express delivery and pickup system and method, in particular to an express delivery and pickup system and method with privacy protection based on an intelligent contract.
Background
The rapid development of the internet and electronic commerce enables shopping modes of people to change, more and more people select online shopping, and the development of the logistics industry is promoted, so that express becomes an indispensable part of daily life of people. The express bill information plaintext identification enables the privacy of a receiver to be easily revealed on express, so that a plurality of lawbreakers can be better, and in recent years, a large amount of express information revealing events occur, and the wide social attention is attracted.
In the prior art, all information of a sender and a receiver is provided on an express bill, and lawbreakers can easily obtain all information on the express bill, so that information leakage exists in the process of transportation and delivery of express, and privacy information of the sender and the receiver cannot be kept secret.
Disclosure of Invention
The invention aims to provide an express delivery and pickup system and method based on intelligent contracts for privacy protection, which are used for solving the problem that privacy information of a sender and a receiver cannot be kept secret due to the fact that information is leaked in the transportation and delivery processes of the conventional express.
In order to realize the task, the invention adopts the following technical scheme:
a privacy protection express delivery and pickup system based on an intelligent contract comprises a privacy protection device and an intelligent contract device running on a block chain;
the privacy protection device is used for encrypting the mail sending information and then generating a two-dimensional code to obtain a two-dimensional code image;
the system is also used for identifying the identity of a user scanning the two-dimensional code image to obtain the identity of the user, wherein the identity of the user comprises a sender, a transporter, a distributor, a dispatcher, a receiver and other people;
the privacy protection device is also used for communicating with the block chain and sending the user identity to an intelligent contract device on the block chain;
the intelligent contract device generates a two-dimensional code reading mask corresponding to the user identity according to the user identity;
the privacy protection device is also used for reading the two-dimensional code image by using the two-dimensional code reading mask corresponding to the user identity to obtain express delivery information with different authorities corresponding to the user identity except others or access prohibition information corresponding to others;
the privacy protection device is also used for generating a pickup notice request, communicating with the block chain and sending the pickup notice request to an intelligent contract device on the block chain;
the intelligent contract device is also used for notifying a receiver to take the mail according to the mail taking notification request.
Furthermore, the privacy protection device comprises a two-dimensional code storage module, an identity verification module, an information reading module, a pickup notification module and a subcontract calling module;
the two-dimensional code storage module is used for encrypting the mail sending information by using an encryption algorithm, converting the mail sending information by using a coding technology and then storing the mail sending information to obtain a two-dimensional code image;
the identity verification module is used for obtaining the identity ID of the user scanning the two-dimensional code image, and identifying the identity according to the identity ID to obtain the identity of the user;
the sub-contract calling module is used for communicating with the block chain and sending the user identity to the intelligent contract device;
the sub-contract calling module is also used for communicating with the block chain, acquiring a two-dimensional code reading mask corresponding to the user identity from the intelligent contract device and then sending the two-dimensional code reading mask to the information reading module;
the information reading module is used for carrying out AND operation on each pixel of the two-dimensional code image and each pixel of the two-dimensional code reading mask corresponding to the user identity to obtain express delivery information with different rights corresponding to the user identity except others or access prohibition information corresponding to others;
the pickup notification submodule is used for generating a pickup notification request when the user identity is the dispatcher;
the sub-contract calling module is also used for communicating with the block chain and sending the pickup notice request to the intelligent contract device.
Further, the delivery information includes a name of a delivery company, a type of a delivery item, a name of a sender, an address of a sender, a contact address of a sender, a name of a recipient, a contact address of a recipient, and an address of a recipient.
Further, the two-dimensional code storage module is used for encrypting the mail information by using an SHA256 function in a Hash algorithm, and then storing the mail information after the mail information is converted by using a QRCode coding technology, so as to obtain an encrypted two-dimensional code image.
Further, the identity authentication module identifies the identity ID by using a checkUser method to obtain the user identity.
Furthermore, the intelligent contract device comprises a read authority control sub-contract module and a pickup notice sub-contract module;
the read authority control sub-contract module is used for verifying the authority of the user after receiving the user identity sent by the sub-contract calling module and generating a two-dimensional code read mask corresponding to the user identity according to the authority;
and the pickup notification sub-contract module is used for automatically notifying a receiver to pick up the mail by using a SendNotification method according to the pickup notification request.
Further, when the read right control sub-contract module verifies the right of the user, the verification is carried out by a checkPermission method, and when the verification is passed, a two-dimensional code reading mask corresponding to the user identity is generated by a confirm Aply method; otherwise, generating the access prohibition information corresponding to the user identity of other people by using a reject apply method.
A privacy protection express delivery and pickup method based on an intelligent contract is implemented according to the following steps:
step 1, encrypting the mail sending information to generate a two-dimensional code to obtain a two-dimensional code image;
step 2, waiting for a user to scan the encrypted two-dimensional code image, and identifying the identity of the user scanning the encrypted two-dimensional code image to obtain the identity of the user, wherein the identity of the user comprises a sender, a transporter, a distributor, a dispatcher, a receiver and other people;
step 3, judging the user identity:
if the number of the access-forbidden information is the number of other people, the method is ended after the access-forbidden information is generated; if the sender is the sender, executing the step 4; if the transport member is the transporter, executing the step 5; if the number is the distributor, executing the step 6; if the member is a member sender, executing the step 7; if the receiver is the receiver, executing the step 8;
step 4, executing step 9 after generating a two-dimensional code reading mask corresponding to the sender;
step 5, executing step 9 after generating a two-dimensional code reading mask corresponding to the transporter;
step 6, executing step 9 after generating a two-dimensional code reading mask corresponding to the distributor;
step 7, executing step 9 after generating a two-dimensional code reading mask corresponding to the dispatching member;
step 8, executing step 9 after generating a two-dimensional code reading mask corresponding to the receiver;
step 9, reading the encrypted two-dimensional code image by using the two-dimensional code reading mask corresponding to the user identity to obtain express information with different authorities corresponding to the user identity;
step 10, judging whether express information corresponding to the delivery person is obtained:
if yes, judging whether the receiver needs to be notified, and if yes, generating a pickup notification request; otherwise, returning to the step 2;
if not, judging whether express information corresponding to the addressee is obtained, if so, finishing pickup and ending; otherwise, returning to the step 2.
Further, step 1 encrypt the mail information and then generate a two-dimensional code, and obtain a two-dimensional code image, specifically including:
and encrypting the mail information by using an SHA256 function formula in the Hash algorithm, converting by using a QRCode coding technology, and storing to obtain an encrypted two-dimensional code image.
Further, in the step 2, the identity of the user who scans the encrypted two-dimensional code image is identified by using a checkUser method, so as to obtain the identity of the user.
Compared with the prior art, the invention has the following technical effects:
1. according to the system and the method for delivering and taking the express items based on the privacy protection of the intelligent contract, the intelligent contract module running on the block chain is arranged, so that the personal information of the addressee is protected to the greatest extent, even if the identity has the authority of reading the information of the express item, only part of the information of the express item can be read, and the authority of reading all the information is not available, so that the system and the method are decentralized and efficient;
2. according to the system and the method for privacy protection express delivery based on the intelligent contract, the corresponding authority express bill information is obtained by setting different masks corresponding to each identity, so that the individual privacy of the addressee is protected to a great extent, and the masks are stored in the block chain, are recognized, achieve consensus and cannot be modified randomly.
Drawings
Fig. 1 is an internal structure diagram of a privacy-preserving express delivery and pickup system based on an intelligent contract provided by the present invention;
fig. 2 is a flowchart of a privacy-preserving express delivery method based on an intelligent contract according to the present invention.
Detailed Description
The present invention will be described in detail below with reference to the accompanying drawings and examples. So that those skilled in the art can better understand the present invention. It is to be expressly noted that in the following description, a detailed description of known functions and designs will be omitted when it may obscure the subject matter of the present invention.
The following definitions or conceptual connotations relating to the present invention are provided for illustration:
block chains: blockchain technology is a fully node-shared decentralized, transactional, distributed database that contains a list of what are called blocks with ever-growing and well-ordered records. Each chunk contains a timestamp and a hash with the previous chunk, which ensures that the data recorded on the chunk chain, once recorded, becomes difficult to alter.
Intelligent contract: the intelligent contract is a computer protocol aiming at spreading, verifying or executing the contract in an information mode, namely an automatically executed contract program running on a block chain and provided with event-driven special transactions.
Example one
The block chain intelligent contract technology is rapidly developed at present, and is gradually applied to the fields of Internet of things and logistics. Because the intelligent contract technology does not need the intervention of a third-party organization (express company), but automatically executes the business process of privacy protection in the delivery process, the characteristics of decentralization and high efficiency are fully utilized, and the privacy protection process becomes simple. The invention takes the intelligent delivery contract as a core, completes the privacy protection of personal information in the delivery process of express delivery and ensures the safety of express delivery data.
Therefore, as shown in fig. 1, in the present embodiment, a privacy-preserving express delivery system based on an intelligent contract is disclosed, which includes a privacy preserving apparatus and an intelligent contract apparatus operating on a regional chain;
the privacy protection device is used for generating and storing an encrypted two-dimensional code according to the mail sending information to obtain an encrypted two-dimensional code image;
the system is also used for identifying the identity of a user scanning the two-dimensional code image to obtain the identity of the user, wherein the identity of the user comprises a sender, a transporter, a distributor, a dispatcher, a receiver and other people;
the privacy protection device is also used for communicating with the block chain and sending the user identity to an intelligent contract device on the block chain;
the intelligent contract device generates a two-dimensional code reading mask corresponding to the user identity according to the user identity;
the privacy protection device is also used for reading the two-dimensional code image by using the two-dimensional code reading mask corresponding to the user identity, and obtaining express information with different authorities corresponding to the user identity except others or access prohibition information corresponding to others;
the privacy protection device is also used for generating a pickup notice request, communicating with the block chain and sending the pickup notice request to an intelligent contract device on the block chain;
the intelligent contract device is also used for notifying the receiver to take the mail according to the mail taking notification request.
In this embodiment, the privacy protecting apparatus implements the following functions:
two-dimension code storage, identity verification, information reading and sub-contract calling;
the intelligent contract device realizes the following functions:
and generating the execution of the masks and the sub-contracts corresponding to different identities.
The block chain is an operation platform of the intelligent contract device, namely the block chain is a record storage database of the intelligent contract, so that the privacy protection device needs to be communicated with the block chain when interacting with the intelligent contract device; after the intelligent contract device is deployed in the block chain, a network address of the intelligent contract is generated, and the intelligent contract device can be found through the address to communicate with the intelligent contract device.
Therefore, one of the more important functions implemented in the privacy protection apparatus is a subcontract call function, and the subcontract call function interacts with the blockchain. The privacy protection device realizes the function of calling the subcontracts by accessing the address of the intelligent contract device in the block chain.
In this embodiment, the obtaining express delivery information with different permissions corresponding to the user identities other than the others or the access prohibition information corresponding to the others specifically includes:
for example, when the user identity is a sender, the express information that he can check is detailed information of an express company name, an express item category, a sender name, a sender address, a sender contact way, a recipient name, a recipient contact way and a recipient address;
when the user identity is a transporter, the user can see the address of the next station in the destination of the address of the receiver, and other information cannot be seen, so that the privacy of the sender and the receiver is ensured;
when the user identity is a distributor, for example, the address of the receiver is in Shaanxi's safety at the moment; the distributor can only see the address of the next station and does not have the right to view other information;
likewise, all but the sender and the receiver can only see the information about the affairs in charge of the sender and the receiver during the transportation process;
when the user identity is the sender, the sender cannot know the telephone of the receiver at the moment, and the intelligent contract device directly informs the receiver, so that the confidentiality of the information of the sender and the receiver is effectively ensured.
In addition, when other unrelated people scan the two-dimensional code, the person does not have the right to read any information because the identity of the person is not recorded in advance.
Optionally, the privacy protection device includes a two-dimensional code storage module, an identity verification module, an information reading module, a pickup notification module, and a subcontract invoking module;
the two-dimension code storage module is used for encrypting the mail sending information by using an encryption algorithm, converting the mail sending information by using an encoding technology and then storing the mail sending information to obtain an encrypted two-dimension code;
the identity verification module is used for obtaining the identity ID of the user scanning the two-dimensional code image, and identifying the identity according to the identity ID to obtain the identity of the user;
the sub-contract calling module is used for communicating with the block chain and sending the user identity to the intelligent contract device;
the sub-contract calling module is also used for communicating with the block chain, acquiring a two-dimensional code reading mask corresponding to the user identity from the intelligent contract device and then sending the two-dimensional code reading mask to the information reading module;
the information reading module is used for carrying out AND operation on each pixel of the two-dimensional code image and each pixel of the two-dimensional code reading mask corresponding to the user identity to obtain express information with different authorities corresponding to the user identities except others or access prohibition information corresponding to the others;
the pickup notification submodule is used for generating a pickup notification request when the user identity is the dispatcher;
the sub-contract calling module is also used for communicating with the block chain and sending the pickup notice request to the intelligent contract device.
Optionally, the delivery information includes a delivery company name, a delivery item category, a sender name, a sender address, a sender contact address, a recipient name, a recipient contact address, and a recipient address.
In the present invention, the express item category is used to represent transportation warning information (fragile items, liquid, upward placement, etc.).
Optionally, the two-dimensional code storage module is configured to encrypt the mail information by using a SHA256 function in a hash algorithm, and then store the mail information after the mail information is converted by using a QRCode encoding technology, so as to obtain an encrypted two-dimensional code image.
In this embodiment, the data of the express delivery information is encrypted by using a SHA256 function in a hash algorithm to form an encrypted information digest. The function converts original data (express information) with any length into a form with the length of 32 bytes after two hash calculations so as to carry out unified storage and identification.
And the encrypted express bill information is converted through a two-dimensional code technology and is not displayed in a clear text any more. And using a QRCode coding technology to generate corresponding electronic two-dimensional codes for the express bill information, so as to print corresponding two-dimensional code surface bills. The QR Code codes data by coding binary bits through black and white identification in a square binary matrix, has large information capacity and high reliability, can represent various character information of Chinese characters and images, and has strong confidentiality and anti-counterfeiting performance.
Optionally, the identity authentication module identifies the identity ID by using a checkUser () method to obtain the user identity.
In this embodiment, the identity authentication module is configured to generate request information corresponding to an identity after identifying the identity of the user, where the identity includes a carrier, a distributor, a dispatcher, a sender, and a receiver.
In this embodiment, the main method flow of the read right control sub-contract is as follows:
(1) scanning the two-dimensional code: when someone scans the express delivery two-dimensional code, a reading request of the express delivery two-dimensional code information and the identity id of the user are used as parameters and transmitted into the identity verification module.
(2) And (3) identity authentication process: and verifying the identity of the user by a checkUser () method, if the identity is successfully verified, sending a request to a sub-contract calling module by the identity verification module, and judging and requesting a reply to the intelligent contract device by the sub-contract calling module by the checkApply () method.
(3) And (3) information reading process: if the identity verification is successful, namely the user has the reading authority of the express information, after the intelligent contract device is called, the intelligent contract device waits for whether the user has the authority, and when the user has the authority, the two-dimensional code reading mask is returned.
Optionally, the intelligent contract device comprises a read authority control sub-contract module and a pickup notice sub-contract module;
the read authority control sub-contract module is used for verifying the authority of the user after receiving the user identity sent by the sub-contract calling module and generating a two-dimensional code read mask corresponding to the user identity according to the authority;
the pickup notification sub-contract module is used for automatically notifying a receiver to pick up the pickup according to the pickup notification request by using a SendNotification () method.
In the invention, the intelligent contract device runs on the block chain, namely, the block chain comprises a contract virtual machine which is used for running intelligent contract codes and can ensure the independence and isolation of contracts. The invention applies the advantages of the intelligent contract to the records of the authority transfer, thereby ensuring that the authority is not abused, can not be changed and can not be centralized and supervised by the public. The intelligent contract is very suitable for application scenarios with high requirements on trust, safety and durability.
In this embodiment, the smart contract maintains different masks for different identities. The checkPermission () method verifies the read permission control sub-contract module verifies the permission of the user. And generating a two-dimensional code reading mask corresponding to the user identity when the verification is passed by the confirm Aply () method. The reject appliance () method generates access denial information when authentication fails.
Optionally, when the read right control sub-contract module verifies the right of the user, the verification is performed by a checkPermission () method, and when the verification is passed, a two-dimensional code read mask corresponding to the user identity is generated by a configapp () method; otherwise, generating access refusal information by using a objectapply () method.
In this embodiment, the read authority control sub-contract verifies the corresponding read authority of the user through a checkPermission () method, continues to return and control display information of the express through a confirm apply () method, and finally reads the information through an information reading module. If the verification fails, namely the user does not have the reading authority, privacy protection measures are taken through a rejectAply () method, and unreadable information is displayed.
In this embodiment, on the basis of applying an intelligent contract, a sender can send a mail through a mail delivery privacy protection system, the system verifies the identity and returns the identity to a two-dimensional code reading mask corresponding to the sender, and the sender scans a two-dimensional code surface sheet of an express by using the two-dimensional code reading mask to read logistics information of the express but does not have the permission to read other information.
Similarly, after the identity verification passes, the transporter can also receive a two-dimensional code reading mask, the mask is different from the mask of the sender, and the transporter can scan the two-dimensional code surface sheet of the express delivery through the two-dimensional code reading mask to read the type of the express delivery object, so that transportation warning information (fragile products, liquid, upward placement and the like) is pasted on six surfaces of the pasted express delivery box, but the express delivery box does not have the authority of reading other information, and the express delivery is transported.
Similarly, a distributor can read province and city information of an express destination address by scanning a two-dimensional code list of the express, so that the distributor distributes the express, but does not have the authority of reading other information.
Similarly, the courier can read information of the district, street and cell of the express destination address by scanning the two-dimensional code list of the express, but does not have the authority of reading other information.
Similarly, the recipient can perform pickup qualification verification by scanning the two-dimensional code list of the express delivery, and can read all information of the express delivery.
Example two
The embodiment of the invention discloses a privacy protection express delivery method based on an intelligent contract, which is implemented according to the following steps:
step 1, encrypting according to the mail sending information and then generating a two-dimensional code to obtain a two-dimensional code image;
optionally, step 1 encrypts the mail sending information and then generates a two-dimensional code, so as to obtain a two-dimensional code image, which specifically includes:
and encrypting the mail information by using an SHA256 function formula in a Hash algorithm, and storing the mail information after converting the mail information by using a QRCode coding technology to obtain a two-dimensional code image.
Step 2, waiting for a user to scan the two-dimensional code image, and identifying the identity of the user scanning the two-dimensional code image to obtain the identity of the user, wherein the identity of the user comprises a sender, a transporter, a distributor, a dispatcher, a receiver and other people;
optionally, the identity of the user who scans the encrypted two-dimensional code image is identified by using a checkUser () method, so as to obtain the user identity.
Step 3, judging the user identity:
if the number of the access-forbidden information is the number of other people, the method is ended after the access-forbidden information is generated; if the sender is the sender, executing the step 4; if the transport member is the transporter, executing the step 5; if the number is the distributor, executing the step 6; if the member is a member sender, executing the step 7; if the receiver is the receiver, executing the step 8;
step 4, executing step 9 after generating a two-dimensional code reading mask corresponding to the sender;
step 5, executing step 9 after generating a two-dimensional code reading mask corresponding to the transporter;
step 6, executing step 9 after generating a two-dimensional code reading mask corresponding to the distributor;
step 7, executing step 9 after generating a two-dimensional code reading mask corresponding to the dispatching member;
step 8, executing step 9 after generating a two-dimensional code reading mask corresponding to the receiver;
step 9, reading the encrypted two-dimensional code image by using the two-dimensional code reading mask corresponding to the user identity to obtain express information with different authorities corresponding to the user identity;
step 10, judging whether express information corresponding to the delivery person is obtained:
if yes, judging whether the receiver needs to be notified, and if yes, generating a pickup notification request; otherwise, returning to the step 2;
if not, judging whether express information corresponding to the addressee is obtained, if so, finishing pickup and ending; otherwise, returning to the step 2.
In this embodiment, as shown in fig. 2, the sender sends the mail through the mail delivery privacy protection system. And after the mail sending information is filled, generating an electronic two-dimensional code and a paper two-dimensional code bill of the corresponding express (except the two-dimensional code, no information plaintext is displayed). And (6) after the express is picked up. The sender can subsequently read the logistics information of the express after scanning the two-dimensional code list of the express for identity verification, but does not have the permission of reading other information.
A transporter scans a two-dimensional code surface sheet of express delivery to carry out identity verification, then the category of the express delivery object can be read, six surfaces pasted on an express delivery box are pasted with corresponding transportation warning information (fragile products, liquid, upward placement and the like), corresponding transportation operation of the express delivery is carried out through the transportation warning information in the transportation process, but no permission is provided for reading other information.
The distributor scans the two-dimensional code surface sheet of the express to carry out identity verification, then can read provincial and city information of the express destination address, distributes the express through the information, but does not have the authority of reading other information. The distributed express can intensively enter the corresponding logistics transportation line to reach the corresponding province.
And the delivery person scans the two-dimensional code surface sheet of the express to carry out identity verification, then can read the information of the district and the street of the destination address of the express, but does not have the authority of reading other information, and then the delivery person subsequently sends the express according to the address. When the courier arrives at the destination address, the courier scans the two-dimensional code surface bill of the express to carry out identity verification, the notification and pickup functions can be selected, and the system can automatically notify (automatically dial the phone or send a short message) the addressee to pick up the express.
The receiver goes to the post to take the mail after receiving the mail taking notice. Get a qualification through scanning the two-dimensional code face list of express delivery and verify the back and can get a piece. The receiver comprises the user and the person with the legal pickup authority, and the pickup process of the person with the legal pickup authority is the same as that of the user.

Claims (10)

1. A privacy protection express delivery and pickup system based on an intelligent contract is characterized by comprising a privacy protection device and an intelligent contract device running on a block chain;
the privacy protection device is used for encrypting the mail sending information and then generating a two-dimensional code to obtain a two-dimensional code image;
the system is also used for identifying the identity of a user scanning the two-dimensional code image to obtain the identity of the user, wherein the identity of the user comprises a sender, a transporter, a distributor, a dispatcher, a receiver and other people;
the privacy protection device is also used for communicating with the block chain and sending the user identity to an intelligent contract device on the block chain;
the intelligent contract device generates a two-dimensional code reading mask corresponding to the user identity according to the user identity;
the privacy protection device is also used for reading the two-dimensional code image by using the two-dimensional code reading mask corresponding to the user identity to obtain express delivery information with different authorities corresponding to the user identity except others or access prohibition information corresponding to others;
the privacy protection device is also used for generating a pickup notice request, communicating with the block chain and sending the pickup notice request to an intelligent contract device on the block chain;
the intelligent contract device is also used for notifying a receiver to take the mail according to the mail taking notification request.
2. The privacy-preserving express delivery and pickup system based on the intelligent contract as claimed in claim 1, wherein the privacy-preserving device comprises a two-dimensional code storage module, an identity verification module, an information reading module, a pickup notification module and a subcontract calling module;
the two-dimensional code storage module is used for encrypting the mail sending information by using an encryption algorithm, converting the mail sending information by using a coding technology and then storing the mail sending information to obtain a two-dimensional code image;
the identity verification module is used for obtaining the identity ID of the user scanning the two-dimensional code image, and identifying the identity according to the identity ID to obtain the identity of the user;
the sub-contract calling module is used for communicating with the block chain and sending the user identity to the intelligent contract device;
the sub-contract calling module is also used for communicating with the block chain, acquiring a two-dimensional code reading mask corresponding to the user identity from the intelligent contract device and then sending the two-dimensional code reading mask to the information reading module;
the information reading module is used for carrying out AND operation on each pixel of the two-dimensional code image and each pixel of the two-dimensional code reading mask corresponding to the user identity to obtain express delivery information with different rights corresponding to the user identity except others or access prohibition information corresponding to others;
the pickup notification submodule is used for generating a pickup notification request when the user identity is the dispatcher;
the sub-contract calling module is also used for communicating with the block chain and sending the pickup notice request to the intelligent contract device.
3. The privacy-preserving express delivery system based on smart contracts, as claimed in claim 2, wherein the delivery information includes an express company name, an express item category, a sender name, a sender address, a sender contact address, a recipient name, a recipient contact address, and a recipient address.
4. The privacy-protection express delivery system based on the intelligent contract as claimed in claim 3, wherein the two-dimensional code storage module is configured to encrypt the delivery information by using a SHA256 function in a hash algorithm, and then store the delivery information after being converted by using a QRCode coding technology, so as to obtain an encrypted two-dimensional code image.
5. The privacy-preserving express delivery system based on the intelligent contract as claimed in claim 3, wherein the identity verification module uses a checkUser method to identify the identity ID and obtain the user identity.
6. The privacy-preserving express delivery system based on an intelligent contract as claimed in claim 2, wherein the intelligent contract means comprises a read authority control sub-contract module and a delivery notification sub-contract module;
the read authority control sub-contract module is used for verifying the authority of the user after receiving the user identity sent by the sub-contract calling module and generating a two-dimensional code read mask corresponding to the user identity according to the authority;
and the pickup notification sub-contract module is used for automatically notifying a receiver to pick up the mail by using a SendNotification method according to the pickup notification request.
7. The privacy-protection express delivery system based on the intelligent contract as claimed in claim 6, wherein the read authority control sub-contract module verifies the authority of the user by a checkPermission method, and when the verification is passed, a two-dimensional code reading mask corresponding to the user identity is generated by a firmAply method; otherwise, generating the access prohibition information corresponding to the user identity of other people by using a reject apply method.
8. A privacy protection express delivery and pickup method based on an intelligent contract is characterized by being executed according to the following steps:
step 1, encrypting the mail sending information to generate a two-dimensional code to obtain a two-dimensional code image;
step 2, waiting for a user to scan the encrypted two-dimensional code image, and identifying the identity of the user scanning the encrypted two-dimensional code image to obtain the identity of the user, wherein the identity of the user comprises a sender, a transporter, a distributor, a dispatcher, a receiver and other people;
step 3, judging the user identity:
if the number of the access-forbidden information is the number of other people, the method is ended after the access-forbidden information is generated; if the sender is the sender, executing the step 4; if the transport member is the transporter, executing the step 5; if the number is the distributor, executing the step 6; if the member is a member sender, executing the step 7; if the receiver is the receiver, executing the step 8;
step 4, executing step 9 after generating a two-dimensional code reading mask corresponding to the sender;
step 5, executing step 9 after generating a two-dimensional code reading mask corresponding to the transporter;
step 6, executing step 9 after generating a two-dimensional code reading mask corresponding to the distributor;
step 7, executing step 9 after generating a two-dimensional code reading mask corresponding to the dispatching member;
step 8, executing step 9 after generating a two-dimensional code reading mask corresponding to the receiver;
step 9, reading the encrypted two-dimensional code image by using the two-dimensional code reading mask corresponding to the user identity to obtain express information with different authorities corresponding to the user identity;
step 10, judging whether express information corresponding to the delivery person is obtained:
if yes, judging whether the receiver needs to be notified, and if yes, generating a pickup notification request; otherwise, returning to the step 2;
if not, judging whether express information corresponding to the addressee is obtained, if so, finishing pickup and ending; otherwise, returning to the step 2.
9. The privacy-protection express delivery method based on the intelligent contract as claimed in claim 8, wherein the step 1 encrypts the delivery information and then generates the two-dimensional code to obtain the two-dimensional code image, and specifically comprises:
and encrypting the mail information by using an SHA256 function formula in the Hash algorithm, converting by using a QRCode coding technology, and storing to obtain an encrypted two-dimensional code image.
10. The privacy-preserving express delivery method based on the intelligent contract as claimed in claim 8, wherein in the step 2, the identity of the user who scans the encrypted two-dimensional code image is identified by using a checkUser method, so as to obtain the user identity.
CN201911036495.2A 2019-10-29 2019-10-29 Privacy protection express delivery and pickup system and method based on intelligent contract Pending CN111080185A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911036495.2A CN111080185A (en) 2019-10-29 2019-10-29 Privacy protection express delivery and pickup system and method based on intelligent contract

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911036495.2A CN111080185A (en) 2019-10-29 2019-10-29 Privacy protection express delivery and pickup system and method based on intelligent contract

Publications (1)

Publication Number Publication Date
CN111080185A true CN111080185A (en) 2020-04-28

Family

ID=70310577

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911036495.2A Pending CN111080185A (en) 2019-10-29 2019-10-29 Privacy protection express delivery and pickup system and method based on intelligent contract

Country Status (1)

Country Link
CN (1) CN111080185A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111881482A (en) * 2020-08-05 2020-11-03 黄灿楠 User identity privacy encryption method based on block chain technology
CN112668953A (en) * 2020-08-31 2021-04-16 浙江万里学院 Method for embedding secret information of intelligent logistics mail and receiving information

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103530753A (en) * 2013-10-21 2014-01-22 北京邮电大学 Informatization express method capable of protecting privacy of client
CN105354693A (en) * 2015-11-04 2016-02-24 中南大学 Logistics industry-oriented system and method for cascade protection of user privacy information
CN107437159A (en) * 2017-06-27 2017-12-05 北京邮电大学 A kind of intelligent express system of overall process secret protection, method and device
CN108038640A (en) * 2017-12-07 2018-05-15 北京奇安信科技有限公司 A kind of logistics delivering method and device based on encryption express waybill
CN108090723A (en) * 2017-12-14 2018-05-29 吉林大学 The express delivery management method and system of a kind of anti-information leakage
CN108428088A (en) * 2018-05-10 2018-08-21 刘扬 Express delivery information processing method and server-side
CN108614974A (en) * 2018-04-24 2018-10-02 南京邮电大学 It is a kind of based on the express delivery information privacy protection system of block chain and its guard method
CN109190403A (en) * 2018-07-09 2019-01-11 南京邮电大学 A kind of express delivery bill kept on file method for secret protection based on block chain
CN109658627A (en) * 2018-12-13 2019-04-19 深圳桓轩科技有限公司 A kind of Intelligent logistics pickup system based on block chain

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103530753A (en) * 2013-10-21 2014-01-22 北京邮电大学 Informatization express method capable of protecting privacy of client
CN105354693A (en) * 2015-11-04 2016-02-24 中南大学 Logistics industry-oriented system and method for cascade protection of user privacy information
CN107437159A (en) * 2017-06-27 2017-12-05 北京邮电大学 A kind of intelligent express system of overall process secret protection, method and device
CN108038640A (en) * 2017-12-07 2018-05-15 北京奇安信科技有限公司 A kind of logistics delivering method and device based on encryption express waybill
CN108090723A (en) * 2017-12-14 2018-05-29 吉林大学 The express delivery management method and system of a kind of anti-information leakage
CN108614974A (en) * 2018-04-24 2018-10-02 南京邮电大学 It is a kind of based on the express delivery information privacy protection system of block chain and its guard method
CN108428088A (en) * 2018-05-10 2018-08-21 刘扬 Express delivery information processing method and server-side
CN109190403A (en) * 2018-07-09 2019-01-11 南京邮电大学 A kind of express delivery bill kept on file method for secret protection based on block chain
CN109658627A (en) * 2018-12-13 2019-04-19 深圳桓轩科技有限公司 A kind of Intelligent logistics pickup system based on block chain

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111881482A (en) * 2020-08-05 2020-11-03 黄灿楠 User identity privacy encryption method based on block chain technology
CN111881482B (en) * 2020-08-05 2023-03-28 黄灿楠 User identity privacy encryption method based on block chain technology
CN112668953A (en) * 2020-08-31 2021-04-16 浙江万里学院 Method for embedding secret information of intelligent logistics mail and receiving information
CN112668953B (en) * 2020-08-31 2023-09-29 浙江万里学院 Method for embedding intelligent logistics sending and receiving information

Similar Documents

Publication Publication Date Title
CN105719120B (en) A method of encryption express delivery list privacy information
CN104933371B (en) Logistics personal information intimacy protection system based on multi-layer security Quick Response Code
CN108614974B (en) Express information privacy protection system based on block chain and protection method thereof
CN106453268B (en) A method of realizing express delivery secret protection in logistics progress
CN108540528B (en) Method and system for confirming delivery of electronic document, and computer storage medium
US10972264B2 (en) Method for realizing network electronic identity identification information protection based on key dispersion calculation
US20020010635A1 (en) Method of electronic commerce and profile converter used for electronic commerce
CN102855577B (en) Multiple commodity antifake check method based on cloud computing
CN107180328B (en) Logistics method based on QR two-dimensional code
CN101425894A (en) Service implementing system and method
CN110309663B (en) Privacy authentication method and system based on block chain
US20200387859A1 (en) Methods, Application Server, Block Chain Node and Media For Logistics Tracking and Source Tracing
CN105631688A (en) Anti-fake and anti-commodity-fleeing query method and system based on public platform
CN1799018A (en) Securing access to an application service based on a proximity token
CN1202288A (en) Document authentication system and method
WO2018227685A1 (en) Method and system for secure access of terminal device to internet of things
CN105719106A (en) Product management method and terminal based on two-dimensional code
CN106127441A (en) A kind of network system preventing personal information from leaking and implementation method
CN111080185A (en) Privacy protection express delivery and pickup system and method based on intelligent contract
CN102622624B (en) A kind of commodity counterfeit prevention identification system and method
CN101252596A (en) Method and system for protecting number information privacy
CN107423583B (en) A kind of software protecting device remapping method and device
CN114254382A (en) Personal information protection authentication system and protection authentication method
CN1773544A (en) Mobile telephone bar code generating, transmitting and applicating method
CN202736110U (en) Stamp management system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20200428

RJ01 Rejection of invention patent application after publication