CN110599107A - Logistics data processing method and device based on block chain - Google Patents

Logistics data processing method and device based on block chain Download PDF

Info

Publication number
CN110599107A
CN110599107A CN201910906485.3A CN201910906485A CN110599107A CN 110599107 A CN110599107 A CN 110599107A CN 201910906485 A CN201910906485 A CN 201910906485A CN 110599107 A CN110599107 A CN 110599107A
Authority
CN
China
Prior art keywords
logistics
data
block
chain
position information
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.)
Granted
Application number
CN201910906485.3A
Other languages
Chinese (zh)
Other versions
CN110599107B (en
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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201910906485.3A priority Critical patent/CN110599107B/en
Publication of CN110599107A publication Critical patent/CN110599107A/en
Application granted granted Critical
Publication of CN110599107B publication Critical patent/CN110599107B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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/0833Tracking
    • 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
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes

Landscapes

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

Abstract

The embodiment of the application provides a logistics data processing method based on a block chain, which comprises the following steps: acquiring a chain loading request carrying logistics data to be chain loaded and associated with an audit object; according to a key pair corresponding to the logistics submission node, checking the logistics data to be linked, generating a block of the logistics data to be linked, which passes the check, and adding the block to the full-service chain; when a logistics state query request aiming at an audit object and sent by a request terminal is received, acquiring logistics position information associated with the audit object from a block of a business full-scale chain, and generating a logistics position track corresponding to the audit object based on the logistics position information; and auditing the logistics position track based on the target track range associated with the legal logistics state, generating an auditing result corresponding to the auditing object, and sending the auditing result to the request terminal. By adopting the method and the device, the accuracy of the logistics data can be improved, and the efficiency of export tax refund is further improved.

Description

Logistics data processing method and device based on block chain
Technical Field
The present application relates to the field of internet technologies, and in particular, to a method and an apparatus for processing logistics data based on a block chain.
Background
Export tax refund is used as a policy for national reward export, is beneficial to enhancing the competitiveness of the domestic commodity in the international market, and promotes the domestic commodity in various countries of the world.
In the existing export tax refunding process, an enterprise reports and submits materials in an export tax refunding office official network or a window, the export tax refunding office needs to manually check the materials submitted by the enterprise (such as producers, logistics merchants, logistics routes, product purchasers and the like of export products), and after the materials submitted by the enterprise pass the check, the export tax refunds declared by the enterprise will pass. However, for the logistics data of export products, the export tax return office only relies on paper documents submitted by enterprises, and it is difficult to ensure the accuracy of the logistics data.
Disclosure of Invention
The embodiment of the application provides a logistics data processing method and device based on a block chain, which can improve the accuracy of logistics data and further improve the efficiency of export tax refund.
An embodiment of the present application provides a method for processing logistics data based on a block chain, which is applied to a management node, and includes:
acquiring a chain loading request carrying logistics data to be chain loaded and associated with an audit object; the logistics data to be linked is determined by the logistics submitting node based on the logistics position information corresponding to the logistics article associated with the auditing object;
according to the key pair corresponding to the logistics submission node, performing signature verification on the logistics data to be chain-linked, generating a block of the logistics data to be chain-linked, which passes the signature verification, and adding the block to a service full-scale chain;
when a logistics state query request aiming at the audit object and sent by a request terminal is received, acquiring logistics position information associated with the audit object from the block of the business full-scale chain according to the logistics state query request, and generating a logistics position track corresponding to the audit object based on the logistics position information;
and auditing the logistics position track based on a target track range associated with a legal logistics state, generating an auditing result corresponding to the auditing object, and sending the auditing result to the request terminal.
The key pair comprises a private key and a public key corresponding to the logistics submission node;
the checking the logistics data to be linked according to the key pair corresponding to the logistics submission node comprises:
decrypting the logistics data to be uplink according to the private key to obtain the logistics position information and the digital signature in the logistics data to be uplink;
decrypting the digital signature according to the public key to obtain a first hash value corresponding to the digital signature;
performing hash operation on the logistics position information based on a hash algorithm to generate a second hash value corresponding to the logistics position information;
and if the first hash value is detected to be the same as the second hash value, the logistics data to be uplink passes the verification of the labels, and the uplink request is determined to be legal.
Generating a block by the logistics data to be linked, which passes the verification, and adding the block to a business full-scale chain, wherein the method comprises the following steps:
counting capacity information corresponding to the logistics data to be linked, which pass the verification;
if the capacity information is larger than a block capacity threshold value in the service full-scale chain, splitting the logistics data to be uplink linked based on the block capacity threshold value to obtain at least two sub data to be uplink linked;
and generating a block corresponding to each sub data to be linked up, and adding the block to the service full-scale chain.
Acquiring the logistics position information associated with the audit object from the block of the business full-scale chain according to the logistics state query request, and generating a logistics position track corresponding to the audit object based on the logistics position information, wherein the method comprises the following steps:
according to the logistics state query request, determining a logistics article corresponding to the audit object, and acquiring the block associated with the logistics article from the business full-scale chain;
and determining the logistics position information associated with the logistics articles from the block, and generating the logistics position track corresponding to the auditing object based on the time information carried by the logistics position information.
Wherein the logistics position information comprises a plurality of unit position information;
generating the logistics position track corresponding to the audit object based on the time information carried by the logistics position information, wherein the generating comprises:
respectively acquiring time information carried by the unit position information, and sequencing the unit position information based on the time information to obtain a sequencing result;
and performing point drawing on the plurality of unit position information according to the sorting sequence in the sorting result to generate the logistics position track corresponding to the checking object.
The auditing the logistics position track based on the target track range associated with the legal logistics state, generating an auditing result corresponding to the auditing object, and sending the auditing result to the request terminal includes:
acquiring a target track range associated with a legal logistics state; the target track range is used for auditing the logistics state of the auditing object;
if the logistics position track belongs to the target track range, determining that the object to be checked belongs to a qualified logistics state;
and generating an auditing result corresponding to the auditing object based on the qualified logistics state and the logistics position track, and sending the auditing result to the request terminal.
Wherein the method further comprises:
and acquiring article attribute information corresponding to the logistics article associated with the audit object, and if the article attribute information belongs to an export cargo type, executing the step of acquiring the logistics position information associated with the audit object from the block of the business full-scale chain according to the logistics state query request.
An aspect of the present application provides a block chain-based logistics data processing apparatus, which is applied to a management node, and includes:
an acquisition module, configured to acquire a chain loading request carrying to-be-chain logistics data associated with an audit object; the logistics data to be linked is determined by the logistics submitting node based on the logistics position information corresponding to the logistics article associated with the auditing object;
the verification module is used for verifying the logistics data to be chain-linked according to the key pair corresponding to the logistics submitting node, generating a block from the logistics data to be chain-linked, which passes the verification, and adding the block to the business full-scale chain;
the generating module is used for acquiring the logistics position information associated with the audit object from the block of the business full-scale chain according to the logistics state query request when the logistics state query request aiming at the audit object sent by a request terminal is received, and generating a logistics position track corresponding to the audit object based on the logistics position information;
and the auditing module is used for auditing the logistics position track based on the target track range associated with the legal logistics state, generating an auditing result corresponding to the auditing object, and sending the auditing result to the request terminal.
The key pair comprises a private key and a public key corresponding to the logistics submission node;
the label checking module comprises:
the first decryption unit is used for decrypting the logistics data to be linked according to the private key to acquire the logistics position information and the digital signature in the logistics data to be linked;
the second decryption unit is used for decrypting the digital signature according to the public key to obtain a first hash value corresponding to the digital signature;
the Hash operation unit is used for carrying out Hash operation on the logistics position information based on a Hash algorithm to generate a second Hash value corresponding to the logistics position information;
and the detection unit is used for determining that the uplink request is legal if the first hash value is the same as the second hash value and the logistics data to be uplink passes the verification of the signature.
Wherein, the stick verification module includes:
the statistical unit is used for counting the capacity information corresponding to the logistics data to be linked, which passes the verification;
a splitting unit, configured to split the to-be-uplink logistics data based on a block capacity threshold in the full-size service chain if the capacity information is greater than the block capacity threshold in the full-size service chain, so as to obtain at least two to-be-uplink sub data;
and the adding unit is used for generating a block corresponding to each sub data to be linked up and adding the block to the service full-scale chain.
Wherein the generating module comprises:
a block acquiring unit, configured to determine, according to the logistics state query request, a logistics item corresponding to the audit object, and acquire the block associated with the logistics item from the business full-scale chain;
and the logistics position acquisition unit is used for determining the logistics position information associated with the logistics articles from the block and generating the logistics position track corresponding to the audit object based on the time information carried by the logistics position information.
Wherein the logistics position information comprises a plurality of unit position information;
the logistics position acquisition unit comprises:
the sorting subunit is configured to respectively obtain time information carried by the plurality of unit location information, and sort the plurality of unit location information based on the time information to obtain a sorting result;
and the position track generation subunit is configured to perform dotting on the plurality of unit position information according to the sorting order in the sorting result, and generate the logistics position track corresponding to the audit object.
Wherein, the audit module comprises:
the track range acquiring unit is used for acquiring a target track range associated with a legal logistics state; the target track range is used for auditing the logistics state of the auditing object;
the logistics state determining unit is used for determining that the object to be checked belongs to a qualified logistics state if the logistics position track belongs to the target track range;
and the auditing result sending unit is used for generating an auditing result corresponding to the auditing object based on the qualified logistics state and the logistics position track and sending the auditing result to the request terminal.
Wherein the apparatus further comprises:
and the cargo type judging module is used for acquiring article attribute information corresponding to the logistics article associated with the checking object, and if the article attribute information belongs to the export cargo type, executing the step of acquiring the logistics position information associated with the checking object from the block of the business full-scale chain according to the logistics state query request.
An aspect of the embodiments of the present application provides a computer device, including a memory and a processor, where the memory stores a computer program, and the computer program, when executed by the processor, causes the processor to execute the steps of the method in an aspect of the embodiments of the present application.
An aspect of embodiments of the present application provides a computer-readable storage medium storing a computer program comprising program instructions that, when executed by a processor, perform the steps of the method as described in an aspect of embodiments of the present application.
According to the embodiment of the application, the cochain request carrying the to-be-cochain logistics data associated with the checking object can be acquired, the to-be-cochain logistics data are checked and signed based on the key pair corresponding to the logistics submission node, the to-be-cochain logistics data passing the check and sign generate the block, the block is added into the business full-scale chain, when the logistics state query request aiming at the checking object sent by the request terminal is received, the logistics position information associated with the checking object can be acquired from the block of the business full-scale chain, the logistics position track corresponding to the checking object is generated, and the checking result can be obtained by checking the logistics position track. Therefore, the real-time logistics position information of the logistics articles is written into the business full-scale chain, and the exit tax refund bureau can acquire all logistics position information of the logistics articles from the business full-scale chain, so that the accuracy of logistics data can be improved, and the efficiency of exit tax refund is improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a diagram of a network architecture provided by an embodiment of the present application;
fig. 2 is a schematic diagram of a logistics data processing scenario based on a block chain according to an embodiment of the present application;
fig. 3 is a schematic flowchart of a logistics data processing method based on a block chain according to an embodiment of the present application;
fig. 4 is a schematic diagram of generating physical distribution data to be uplink according to an embodiment of the present application;
fig. 5 is a schematic diagram of an inspection of logistics data to be linked according to an embodiment of the present invention;
FIG. 6 is a block diagram of a generation block according to an embodiment of the present disclosure;
fig. 7 is a schematic view of a scenario for querying a logistics state according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of a logistics data processing apparatus based on a block chain according to an embodiment of the present application;
fig. 9 is a schematic structural diagram of a computer device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The Blockchain (Blockchain) is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission (P2P transmission), a consensus mechanism, an encryption algorithm and the like, and is essentially a decentralized database; the blockchain can be composed of a plurality of serial transaction records (also called blocks) which are connected in series by cryptography and protect the contents, and the distributed accounts connected in series by the blockchain can effectively record the transaction by multiple parties and can permanently check the transaction (can not be tampered). The consensus mechanism is a mathematical algorithm for establishing trust and obtaining rights and interests among different nodes in the block chain network; in other words, the consensus mechanism is a mathematical algorithm commonly recognized by network nodes of the blockchain.
Fig. 1 is a diagram of a network architecture according to an embodiment of the present application. The network architecture may include a requesting terminal 10a, an interface 10e, and a plurality of servers (specifically, a server 10b, a server 10c, a server 10d, and a server 10d, as shown in fig. 1). The server 10b, the server 10c, the server 10d, and the server 10f may be blockchain nodes in a blockchain network. Taking the example of applying the block chain network to the export tax refunding system, the server 10b may be a server corresponding to a logistics enterprise, the server 10c may be a server corresponding to a manufacturer, the server 10d may be a server corresponding to a purchasing enterprise, and the server 10f may be a server corresponding to a tax office and an export tax office, and the logistics enterprise, the purchasing enterprise and the manufacturer may communicate with the tax office (or the export tax office) through the interface 10e, for example, initiate a data uplink request to the server 10f corresponding to the tax office through the interface 10 e; the request terminal 10a may be an auditing terminal responsible for the export tax refund process, and may send a data auditing request to the server 10f through the interface 10e, for example, to audit related data in the export tax refund business applied by the enterprise, including a certificate of a product purchased by the enterprise (the product belongs to a specified export product type), production data information of the product, a logistics route of the product, and the like, where the server 10f may return an auditing result to the request terminal 10a through the interface 10 e.
The requesting terminal 10a may include a mobile phone, a tablet computer, a notebook computer, a palm computer, a Mobile Internet Device (MID), a wearable device (e.g., a smart watch, a smart bracelet, etc.), and the like.
Please refer to fig. 2, which is a schematic diagram of a logistics data processing scenario based on a block chain according to an embodiment of the present application. Taking the server 10b (also referred to as a logistics submitting node) corresponding to the logistics enterprise as an example, the uplink process of the logistics data and the auditing process of the logistics data are specifically described. As shown in fig. 2, after a business purchases a product from a manufacturer, the purchased product needs to be transported to a specified destination, such as a warehouse of the business for storing the product, or a product sales site of the business; for the transportation of purchasing the product, this enterprise can cooperate with the logistics enterprise, namely contract the transportation of product for the logistics enterprise, in the in-process of logistics enterprise transportation product, the transportation equipment can be based on the commodity circulation position information of Global Positioning System (GPS) real-time acquisition product, and send the commodity circulation position information who gathers to the server 10b that the logistics enterprise corresponds, server 10b is after receiving the commodity circulation position information, can pack into the commodity circulation data of waiting to link up with logistics position information, logistics company, article product and the time information of gathering this commodity circulation position information. For example, the logistics position 1 for the product d sent by the transportation device received by the server 10b is: longitude 113.986511 and latitude 22.544577, the server 10b may package the name of the logistics enterprise (e.g., "abc carrier"), the name of the product (e.g., "d product"), the logistics location 1 and the time for collecting the logistics location 1 (10: 30: 00/1/2/1/2019) to obtain the logistics data 20a to be linked. The transportation device may collect the logistics position information at intervals (e.g. every half hour), and send the collected logistics position information to the server 10b, where, if the server 10b receives the logistics position 2 for the product d sent by the transportation device, the logistics position 2 is: longitude 80.176511 and latitude 30.544577, the server 10b may package the name of the logistics enterprise (e.g., "abc carrier"), the name of the product (e.g., "d product"), the logistics location 2, and the time for collecting the logistics location 2 (11: 00: 15/1/2/2019), to obtain the logistics data 20d to be linked. Of course, the server 10b may continuously receive the logistics position information for the product d sent by the transportation device until the product d is transported to the destination.
Optionally, in order to enhance the security of the to-be-uplink logistics data (such as the to-be-uplink logistics data 20a and the to-be-uplink logistics data 20d), the to-be-uplink logistics data may be encrypted. Optionally, in order to prevent the logistics data to be uplink 20a from being tampered, the server 10b may generate a digital signature corresponding to the logistics data to be uplink 20 a; in other words, the server 10b may generate a key pair (which may include a private key and a public key) and use the private key to generate a digital signature.
After the server 10b packages the logistics position information into the logistics data to be linked, the logistics data to be linked may be sent to the server 10f corresponding to the tax bureau, that is, after the server 10b packages the logistics data 20a to be linked, the logistics data 20a to be linked may be sent to the server 10 f. After receiving the logistics data 20a to be uplink, the server 10f may perform a signature verification on the logistics data 20a to be uplink, that is, verify whether the logistics data 20a to be uplink is tampered, and if the signature verification fails, the server 10f may determine the logistics data 20a to be uplink as invalid data and delete the invalid data; if the verification passes, it indicates that the to-be-uplink logistics data 20a has not been tampered, and the server 10f may pack the to-be-uplink logistics data 20a into the block 20b, and add the block 20b with the agreed identity to the full-volume business chain 20 c. Of course, after the server 10b packages the to-be-uplink logistics data 20d, the to-be-uplink logistics data 20d may also be sent to the server 10f, and based on the same execution operation, the to-be-uplink logistics data 20d may be packaged into the block 20e, and the block 20e with the consensus is added to the full-service chain 20c, it can be understood that, in the full-service chain 20c, the block 20b is a block before the block 20 e. It should be noted that the full-service chain 20c may be used to store all service data such as enterprise purchase certificates, product production data, product logistics data, and the like, and only the server (i.e., the server 10f) corresponding to the tax bureau has the right to store the full-service chain 20c including all blocks; in other words, the manufacturer, the logistics enterprise, and the purchasing enterprise do not have the authority to store the full business chain 20c, and only store the business chain formed by the blocks corresponding to the uploaded data of the manufacturer, the logistics enterprise, or the purchasing enterprise, that is, the business chain stored by the logistics enterprise only includes the logistics position information uploaded by the logistics enterprise.
After an enterprise (which may be referred to as an audit object) applies for a tax refund service to an export tax office, a terminal device (i.e., the request terminal 10a) corresponding to the export tax office may send a logistics state query request for the audit object to the server 10f, so that the server 10f performs audit on logistics data of the audit object, and returns an audit result. After receiving the logistics state query request sent by the request terminal 10a, the server 10f may determine a product (may also be referred to as a logistics item) associated with the object to be checked based on the logistics state query request, further obtain logistics position information corresponding to the logistics item from the business full-scale chain 20c, and generate a logistics position track 20f corresponding to each logistics item based on the acquisition time corresponding to the logistics position information. The server 10f may perform an audit on the generated logistics position track 20f, for example, determine whether the logistics position track 20f conforms to an article exit route (for example, crosses two countries, etc.), if the logistics position track 20f conforms to the article exit route, the logistics state of the audit object may be determined to be a legal logistics state, that is, the audit is passed, and the server 10f may return a final audit result to the request terminal 10 a.
The request terminal 10a, after receiving the audit result returned by the server 10f, may determine whether to pass the tax refund service applied by the audit target based on the audit result.
Fig. 3 is a schematic flow chart of a logistics data processing method based on a block chain according to an embodiment of the present application. As shown in fig. 3, the method for processing logistics data based on block chains may include:
step S101, obtaining a chain loading request carrying logistics data to be chain loaded associated with an audit object; the logistics data to be linked is determined by the logistics submitting node based on the logistics position information corresponding to the logistics article associated with the auditing object;
specifically, the management node (corresponding to the server 10f in the embodiment corresponding to fig. 2) may obtain an uplink request carrying to-be-uplink logistics data (corresponding to the to-be-uplink logistics data 20a and the to-be-uplink logistics data 20d in the embodiment corresponding to fig. 2) associated with the audit object. The uplink request refers to a request initiated by a logistics enterprise applying for writing logistics data into a full-service chain to a management node through an application platform (corresponding to the interface 10e in the embodiment corresponding to fig. 1); the logistics data to be linked is determined by the logistics submission node (i.e., the server corresponding to the logistics enterprise, corresponding to the server 10b in the embodiment corresponding to fig. 2) based on the logistics location information corresponding to the logistics item associated with the audit object, that is, the logistics submission node can package the logistics location information corresponding to the logistics item associated with the audit object, so as to obtain the logistics data to be linked that satisfies the full-scale business link data structure.
The auditing object may be an enterprise (such as export production enterprise, foreign trade enterprise, etc.) which submits a tax refund application directed to an export tax refund bureau. Taking the audit object as a foreign trade enterprise as an example, the foreign trade enterprise can purchase domestic goods and sell the goods abroad, and the process of uploading the logistics data to be linked on the logistics submitting node is described in detail below. After the foreign trade enterprise purchases the product from the manufacturer, the foreign trade enterprise can sign a purchase contract with the manufacturer and pay a certain fee to the manufacturer, and the foreign trade enterprise can upload the information of the purchase contract, the paid fee and the like as a purchase voucher to the block chain network and request to chain the purchase voucher. After a foreign trade enterprise purchases a product from a manufacturer, if the product is to be sold abroad, the foreign trade enterprise needs to cooperate with a logistics enterprise to transport the product abroad. In the product transportation process, LBS (location Based service) data can be acquired through an external positioning mode (such as GPS) of transportation equipment or a radio communication network of an operator, namely, logistics position information of a product is acquired Based on the GPS or the radio communication network; the transportation equipment can collect the logistics position information once every a period of time, for example, the logistics position information is collected once every half hour, and after the transportation equipment collects the logistics position information of the product, the logistics position information can be sent to a server corresponding to a logistics enterprise, namely, a logistics submission node. The logistics submitting node can package received logistics data such as logistics position information, logistics enterprise information (including names of logistics enterprises and/or numbers of logistics enterprises and the like), product information, acquisition time of the logistics position information and the like, and obtain to-be-linked logistics data.
Optionally, since the capacity of each block in the full block chain is limited, in order to improve the utilization rate of the block capacity, the logistics submission node may convert the logistics data into a Hash value of a fixed length based on a Hash algorithm (which may also be referred to as a Hash algorithm, or a Hash function, or a Hash algorithm), store the association relationship between the Hash value and the logistics data in the database, and send only the Hash value obtained by conversion to the management node as the logistics data to be linked. The hash algorithm may compress data or messages into digests, not only fix the format of the data, but also reduce the amount of the data, and the hash algorithm may include, but is not limited to, SHA-1, SHA-224, SHA-256, SHA-384, and SHA-512. Taking the SHA-256 algorithm as an example, the SHA-256 algorithm can generate a 256-bit hash value for any size of data, and can generate different hash values for different data.
Optionally, in order to prevent the logistics data from being tampered during the process of sending the logistics data to the management node, the logistics submission node may generate a digital signature corresponding to the logistics data. Please refer to fig. 4, which is a schematic diagram of generating to-be-uplink logistics data according to an embodiment of the present application. As shown in fig. 4, after the transportation device 30a (transportation device for transporting products purchased by foreign trade enterprises) acquires the logistics position information through the GPS, the logistics data 30b including the logistics position information may be sent to a server corresponding to the logistics enterprise, that is, a logistics submission node 30c, and the logistics data 30b may include the logistics position information (longitude 113.986511, latitude 22.544577), time information (10: 30:00 in 1/2/1/2019) when the logistics position information is acquired, a logistics enterprise name (abc transportation company), product information (d product), and the like. After the logistics submission node 30c receives the logistics data 30b, if the data amount of the logistics data 30b is too large (for example, greater than the set threshold value of 5 megabytes), the hash algorithm 30f may be used to perform hash operation on the logistics data 30b, convert the logistics data 30b into a hash value 1 with a length of 256 bits, and store the association relationship between the hash value 1 and the logistics data 30b in the database 30 j. The logistics submission node 30c may perform hash operation on the hash value 1 corresponding to the logistics data 30b by using a hash algorithm 30g to obtain a hash value 2, where the hash algorithm 30f and the hash algorithm 30g may be the same hash algorithm or different hash algorithms, which is specifically limited herein.
The logistics submission node 30c may generate a key pair, which may include the public key 30d and the private key 30e, and the logistics submission node 30c may notify the management node of the key pair, i.e., the management node and the logistics submission node may jointly manage the public key 30d and the private key 30e of the key pair. The logistics submission node 30c may encrypt the hash value 2 by using the private key 30e, the encrypted hash value 2 is the digital signature 30h, the hash value 1 carrying the digital signature 30h is determined as the to-be-uplink logistics data 30i, and the to-be-uplink logistics data 30i is sent to the management node.
Optionally, in order to ensure the confidentiality of the logistics data 30b, the logistics submission node 30c may further encrypt the logistics data 30b by using a private key 30e, and if the logistics data 30b is converted into a hash value 1, the hash value 1 may be encrypted by using the private key 30e, in other words, the to-be-uplink logistics data 30i may be a ciphertext carrying the digital signature 30 h.
Step S102, according to a key pair corresponding to the logistics submitting node, performing signature checking on the logistics data to be linked, generating a block of the logistics data to be linked, which passes the signature checking, and adding the block to a service full-scale chain;
specifically, after receiving the logistics data to be linked, the management node can check the labels of the logistics data to be linked according to the key pair corresponding to the logistics submission node, and the specific process of checking the labels is as follows: if the to-be-uplink data is the encrypted logistics data, decrypting the received to-be-uplink data according to a private key corresponding to the logistics submitting node to obtain logistics position information and a digital signature in the to-be-uplink logistics data, decrypting the digital signature according to a public key corresponding to the logistics submitting node to obtain a first hash value corresponding to the digital signature, performing hash operation on the logistics position information based on a hash algorithm to generate a second hash value corresponding to the logistics position information, if the first hash value is detected to be the same as the second hash value, verifying the to-be-uplink logistics data to pass, determining that the uplink request is legal, namely generating a block of the to-be-uplink logistics data, and adding the block which achieves common identification to a full-volume business chain. If the digital signature in the to-be-uplink logistics data received by the management node is not the digital signature of the logistics submission node, that is, the digital signature in the to-be-uplink logistics data is the digital signature generated by using the false private key, the management node directly displays that the decryption fails when decrypting by using the real public key.
Please refer to fig. 5, which is a schematic diagram of an inspection signature of logistics data to be linked according to an embodiment of the present invention. On the premise of the embodiment corresponding to fig. 4, as shown in fig. 5, if the logistics data 30i to be uplink received by the management node 40a is an encrypted ciphertext, the management node 40a may decrypt the logistics data 30i to be uplink using a private key 30e corresponding to the logistics submission node 30c to obtain a hash value 1 and a digital signature 30h in the logistics data 30i to be uplink, and further the management node 40a may decrypt the digital signature 30h using a public key 30d corresponding to the logistics submission node 30c to obtain a hash value 2 (i.e., the first hash value) corresponding to the digital signature 30h, and at the same time, the management node 40a may perform a hash operation on the hash value 1 using a hash algorithm 30g used by the logistics data 30i to be uplink itself to obtain a hash value 3 (i.e., the second hash value). If the hash value 3 obtained by the management node 40c by using the hash algorithm 30g is the same as the hash value 2 obtained by the management node 40c decrypting the digital signature 30h, it indicates that the physical distribution data 30i to be linked passes the signature verification; if the hash value 3 obtained by the management node 40c using the hash algorithm 30g is different from the hash value 2 obtained by the management node 40c decrypting the digital signature 30h, it indicates that the signature verification of the to-be-uplink logistics data 30i is unsuccessful, and the management node 40c may determine the to-be-uplink logistics data 30i as tampered invalid logistics data, and may delete the to-be-uplink logistics data 30 i.
And the management node checks the physical distribution data to be linked, and after the physical distribution data to be linked passes the check, the management node can generate a new block for the physical distribution data to be linked, and the new block is added into the service full-scale chain after the consensus is achieved. It can be understood that the management node may receive, at the same time, to-be-uplink logistics data sent by the multiple logistics submitting nodes, and after the to-be-uplink logistics data all pass the check label, the management node may write, in the same block, the to-be-uplink logistics data received at the same time. Certainly, since the capacity of each block in the full-scale chain of the service is set in advance, after receiving the logistics data to be uplink and passing the verification, the management node may count the capacity information corresponding to the logistics data to be uplink, and if the counted capacity information is greater than the block capacity threshold (i.e., the set maximum capacity of the block) in the full-scale chain of the service, split the logistics data to be uplink based on the block capacity threshold to obtain at least two sub data to be uplink, generate a block corresponding to each sub data to be uplink, and add the plurality of blocks into the full-scale chain of the service after the blocks achieve the common identification. The logistics data to be linked may refer to actually acquired logistics data such as logistics position information, logistics enterprise information, logistics position acquisition time, product information and the like, or may refer to a hash value with a fixed length after conversion of a logistics submission node.
Please refer to fig. 6, which is a schematic diagram of a generation block according to an embodiment of the present application. Taking the physical distribution data to be linked received by the management node as an example of actual physical distribution data, as shown in fig. 6, if the management node 50d receives the physical distribution data 50a sent by the physical distribution submitting node 1, the physical distribution data 50b sent by the physical distribution submitting node 2, and the physical distribution data 50c sent by the physical distribution submitting node 3 at the same time, the management node 50d may perform a check-out on the physical distribution data 50a, the physical distribution data 50b, and the physical distribution data 50c, and after the check-out is passed, may count the total capacity information of the physical distribution data 50a, the physical distribution data 50b, and the physical distribution data 50c, if the total capacity information obtained by the count-out is smaller than the block capacity threshold value in the service full-volume chain 50f, then may pack the physical distribution data 50a, the physical distribution data 50b, and the physical distribution data 50c into the same block 50e (as shown in fig. 6), where the physical distribution data 1 stored in the block 50, the stored logistics data 2 is logistics data 50b uploaded by the logistics submitting node 2, the stored logistics data 3 is logistics data 50c uploaded by the logistics submitting node 3, and the newly generated block 50e with consensus can be added to the full-scale business chain 50 f.
If the total volume information obtained by statistics is greater than the block volume threshold in the full-volume service chain 50h, the logistics data 50a, the logistics data 50b, and the logistics data 50c may be packed and written into a plurality of blocks, for example, the logistics data 50a, the logistics data 50b, and the logistics data 50c may be written into different blocks, that is, the management node 50d may generate three different blocks, and after a consensus is reached, the newly generated three blocks may be added to the full-volume service chain 50 f.
Step S103, when a logistics state query request aiming at the audit object and sent by a request terminal is received, acquiring the logistics position information associated with the audit object from the block of the business full-scale chain according to the logistics state query request, and generating a logistics position track corresponding to the audit object based on the logistics position information;
specifically, the audit object may submit a service processing request on the application platform, for example, submit an export tax refund application in the export tax refund platform, after the audit object submits the service processing request, the terminal device (i.e., the request terminal) to which the application platform belongs may send a logistics state query request for the audit object to the management node, the management node may determine, based on the received logistics state query request, a logistics item (i.e., product information) associated with the audit object, may further obtain, from the business full-scale chain, all blocks associated with the logistics item, determine, from the blocks, logistics position information associated with the logistics item, and based on the obtained logistics position information, may generate a logistics position trajectory corresponding to the audit object. It is understood that the logistics items associated with the audit object may include different products transported in different batches, and the same product in the same batch has the same logistics route (multiple unit location information may be collected in the logistics route), that is, the same logistics location track may be generated; for different batches of the same product or different batches of different products, different logistics routes are provided, that is, different logistics position tracks can be generated, so that the logistics position track corresponding to the audit object can include a plurality of logistics position tracks.
The specific process of generating the logistics position track can comprise the following steps: respectively obtaining time information carried by the unit position information, sequencing the unit position information based on the time information to obtain a sequencing result, performing point tracing on the unit position information according to a time sequencing sequence in the sequencing result, and further generating a logistics position track corresponding to an audit object. In other words, all the unit position information corresponding to the same batch of the same product can be acquired, and the tracing can be performed based on the unit position information to generate the logistics position track corresponding to the same batch of the same product.
Optionally, when the management node receives a logistics state query request for the audit object sent by the request terminal, the management node may first obtain article attribute information corresponding to the logistics article associated with the audit object, and if the article attribute information corresponding to the logistics article belongs to an export goods type specified by the country, execute the subsequent steps; otherwise, the management node may directly return the result that the audit is not passed to the requesting terminal.
And step S104, auditing the logistics position track based on the target track range associated with the legal logistics state, generating an auditing result corresponding to the auditing object, and sending the auditing result to the request terminal.
Specifically, the management node may audit the generated logistics position trajectory based on a target trajectory range associated with a legal logistics state, where if the logistics article is a product exported to the united states, the target trajectory range may be within a range within the country and the united states, and by detecting whether the logistics position trajectory is transported from the country to the united states, if the logistics position trajectory is displayed as starting from the country and destined for the united states, it may be determined that the logistics position trajectory belongs to the target trajectory range, and then the audit object may be determined to be a qualified logistics state, and then the management node generates an audit result corresponding to the audit object based on the qualified logistics state and the logistics position trajectory, and sends the audit result to the request terminal, and the audit result returned to the request terminal may be: and the logistics data is approved. If the logistics position trajectory does not belong to the target trajectory range, if the logistics position trajectories all belong to China, the audit object can be determined to be in an unqualified logistics state, an audit result is generated based on the unqualified logistics state and the logistics position trajectory, the audit result is sent to the request terminal, and the audit result returned to the request terminal can be: and the logistics data audit is not passed.
Please refer to fig. 7, which is a schematic view of a scenario for querying a logistics status according to an embodiment of the present application. As shown in fig. 7, the request terminal may send a logistics state query request for the audit object to the management node, where the logistics state query request specifically includes: after the management node receives a logistics state query request sent by a request terminal, it can be determined that the audit object is an enterprise a and the logistics articles associated with the enterprise a are products b and c from the logistics state query request; the management node may obtain a block set 60b associated with the product b and a block set 60c associated with the product c from the traffic full-scale chain 60a, read all the logistics position information corresponding to the product b from the block set 60b, and perform dotting on the logistics position information of the product b based on the time sequence carried by all the logistics position information of the product b to generate a logistics position track 60d corresponding to the product b; reading all the logistics position information corresponding to the product c from the block set 60c, and based on the time sequence carried by all the logistics position information of the product c, dotting the logistics position information of the product c to generate a logistics position track 60e corresponding to the product c. The management node may determine the logistics position track 60d and the logistics position track 60e as logistics position tracks corresponding to the enterprise a, and when the logistics position track 60d and the logistics position track 60e both belong to a target track range (that is, meet a logistics route range corresponding to the export goods), may determine the enterprise a as a qualified logistics state, that is, the logistics data of the enterprise a is approved, and return an approval result of the approved logistics data to the request terminal.
According to the embodiment of the application, the cochain request carrying the to-be-cochain logistics data associated with the checking object can be acquired, the to-be-cochain logistics data are checked and signed based on the key pair corresponding to the logistics submission node, the to-be-cochain logistics data passing the check and sign generate the block, the block is added into the business full-scale chain, when the logistics state query request aiming at the checking object sent by the request terminal is received, the logistics position information associated with the checking object can be acquired from the block of the business full-scale chain, the logistics position track corresponding to the checking object is generated, and the checking result can be obtained by checking the logistics position track. Therefore, the real-time logistics position information of the logistics articles is written into the business full-scale chain, and the exit tax refund bureau can acquire all logistics position information of the logistics articles from the business full-scale chain, so that the accuracy of logistics data can be improved, and the efficiency of exit tax refund is improved.
Please refer to fig. 8, which is a schematic structural diagram of a logistics data processing apparatus based on a block chain according to an embodiment of the present application. As shown in fig. 8, the block chain-based logistics data processing apparatus 1 may include: the system comprises an acquisition module 11, a signature verification module 12, a generation module 13 and an auditing module 14;
an obtaining module 11, configured to obtain a chain loading request carrying to-be-chain logistics data associated with an audit object; the logistics data to be linked is determined by the logistics submitting node based on the logistics position information corresponding to the logistics article associated with the auditing object;
the signature checking module 12 is configured to check the logistics data to be chain checked according to the key pair corresponding to the logistics submission node, generate a block from the logistics data to be chain checked, and add the block to the full-scale service chain;
a generating module 13, configured to, when a logistics state query request for the audit object sent by a request terminal is received, obtain, according to the logistics state query request, the logistics position information associated with the audit object from the block of the business full-scale chain, and generate a logistics position track corresponding to the audit object based on the logistics position information;
the auditing module 14 is configured to audit the logistics position trajectory based on a target trajectory range associated with a legal logistics state, generate an auditing result corresponding to the auditing object, and send the auditing result to the request terminal.
The specific functional implementation manners of the obtaining module 11, the signature verification module 12, the generating module 13, and the auditing module 14 may refer to steps S101 to S104 in the embodiment corresponding to fig. 3, which are not described herein again.
Referring to fig. 8, the block chain-based logistics data processing apparatus 1 may further include: a cargo type judgment module 15;
a cargo type determining module 15, configured to obtain article attribute information corresponding to the logistics article associated with the audit object, and if the article attribute information belongs to an export cargo type, execute the step of obtaining the logistics position information associated with the audit object from the block of the business full-scale chain according to the logistics state query request.
The specific function implementation manner of the cargo type determining module 15 may refer to step S103 in the embodiment corresponding to fig. 3, which is not described herein again.
Referring to fig. 8, the key pair includes a private key and a public key corresponding to the logistics submission node;
the signature verification module 12 may include: a first decryption unit 121, a second decryption unit 122, a hash operation unit 123, a detection unit 124, a statistic unit 125, a splitting unit 126, and an adding unit 127;
a first decryption unit 121, configured to decrypt the to-be-uplink logistics data according to the private key, and obtain the logistics position information and a digital signature in the to-be-uplink logistics data;
the second decryption unit 122 is configured to decrypt the digital signature according to the public key to obtain a first hash value corresponding to the digital signature;
a hash operation unit 123, configured to perform a hash operation on the logistics position information based on a hash algorithm, and generate a second hash value corresponding to the logistics position information;
a detecting unit 124, configured to, if it is detected that the first hash value is the same as the second hash value, pass the verification of the logistics data to be uplink, and determine that the uplink request is legal;
a counting unit 125, configured to count capacity information corresponding to the to-be-uplinked logistics data that passes the signature verification;
a splitting unit 126, configured to split the to-be-uplink logistics data based on a block capacity threshold in the full service volume chain if the capacity information is greater than the block capacity threshold in the full service volume chain, so as to obtain at least two to-be-uplink sub data;
the adding unit 127 is configured to generate a block corresponding to each to-be-uplink sub data, and add the block to the full service chain.
The specific functional implementation manners of the first decryption unit 121, the second decryption unit 122, the hash operation unit 123, the detection unit 124, the statistics unit 125, the splitting unit 126, and the adding unit 127 may refer to step S102 in the embodiment corresponding to fig. 3, which is not described herein again.
Referring to fig. 8, the generating module 13 may include: a block acquisition unit 131, a logistics position acquisition unit 132;
a block obtaining unit 131, configured to determine, according to the logistics state query request, a logistics item corresponding to the audit object, and obtain the block associated with the logistics item from the business full-scale chain;
a logistics position obtaining unit 132, configured to determine the logistics position information associated with the logistics item from the block, and generate the logistics position track corresponding to the audit object based on the time information carried by the logistics position information.
The specific functional implementation manners of the block obtaining unit 131 and the logistics position obtaining unit 132 can refer to step S103 in the embodiment corresponding to fig. 3, which is not described herein again.
Referring also to FIG. 8, the review module 14 may include: a track range obtaining unit 141, a logistics state determining unit 142, and an audit result sending unit 143;
a trajectory range acquisition unit 141 configured to acquire a target trajectory range associated with a legal logistics state; the target track range is used for auditing the logistics state of the auditing object;
a logistics state determination unit 142, configured to determine that the audit object belongs to a qualified logistics state if the logistics position trajectory belongs to the target trajectory range;
an audit result sending unit 143, configured to generate an audit result corresponding to the audit object based on the qualified logistics state and the logistics position trajectory, and send the audit result to the request terminal.
The specific functional implementation manners of the track range obtaining unit 141, the logistics state determining unit 142, and the audit result sending unit 143 may refer to step S104 in the embodiment corresponding to fig. 3, which is not described herein again.
Referring to fig. 8, the logistics position information includes a plurality of unit position information;
the logistics position acquisition unit 132 may include: a sorting subunit 1321, a position trajectory generation subunit 1322;
a sorting subunit 1321, configured to respectively obtain time information carried by the multiple pieces of unit location information, and sort the multiple pieces of unit location information based on the time information, so as to obtain a sorting result;
a position track generation subunit 1322 is configured to perform dotting on the plurality of unit position information according to the sorting order in the sorting result, and generate the logistics position track corresponding to the audit object.
The specific functional implementation manners of the sorting subunit 1321 and the position trajectory generating subunit 1322 may refer to step S103 in the embodiment corresponding to fig. 3, which is not described herein again.
According to the embodiment of the application, the cochain request carrying the to-be-cochain logistics data associated with the checking object can be acquired, the to-be-cochain logistics data are checked and signed based on the key pair corresponding to the logistics submission node, the to-be-cochain logistics data passing the check and sign generate the block, the block is added into the business full-scale chain, when the logistics state query request aiming at the checking object sent by the request terminal is received, the logistics position information associated with the checking object can be acquired from the block of the business full-scale chain, the logistics position track corresponding to the checking object is generated, and the checking result can be obtained by checking the logistics position track. Therefore, the real-time logistics position information of the logistics articles is written into the business full-scale chain, and the exit tax refund bureau can acquire all logistics position information of the logistics articles from the business full-scale chain, so that the accuracy of logistics data can be improved, and the efficiency of exit tax refund is improved.
Fig. 9 is a schematic structural diagram of a computer device according to an embodiment of the present application. As shown in fig. 9, the computer apparatus 1000 may include: the processor 1001, the network interface 1004, and the memory 1005, and the computer apparatus 1000 may further include: a user interface 1003, and at least one communication bus 1002. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display) and a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface and a standard wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1004 may be a high-speed RAM memory or a non-volatile memory (e.g., at least one disk memory). The memory 1005 may optionally be at least one memory device located remotely from the processor 1001. As shown in fig. 9, a memory 1005, which is a kind of computer-readable storage medium, may include therein an operating system, a network communication module, a user interface module, and a device control application program.
In the computer device 1000 shown in fig. 9, the network interface 1004 may provide a network communication function; the user interface 1003 is an interface for providing a user with input; and the processor 1001 may be used to invoke a device control application stored in the memory 1005 to implement:
acquiring a chain loading request carrying logistics data to be chain loaded and associated with an audit object; the logistics data to be linked is determined by the logistics submitting node based on the logistics position information corresponding to the logistics article associated with the auditing object;
according to the key pair corresponding to the logistics submission node, performing signature verification on the logistics data to be chain-linked, generating a block of the logistics data to be chain-linked, which passes the signature verification, and adding the block to a service full-scale chain;
when a logistics state query request aiming at the audit object and sent by a request terminal is received, acquiring logistics position information associated with the audit object from the block of the business full-scale chain according to the logistics state query request, and generating a logistics position track corresponding to the audit object based on the logistics position information;
and auditing the logistics position track based on a target track range associated with a legal logistics state, generating an auditing result corresponding to the auditing object, and sending the auditing result to the request terminal.
It should be understood that the computer device 1000 described in this embodiment of the present application may perform the description of the block chain-based logistics data processing method in the embodiment corresponding to fig. 3, and may also perform the description of the block chain-based logistics data processing apparatus 1 in the embodiment corresponding to fig. 8, which is not described herein again. In addition, the beneficial effects of the same method are not described in detail.
Further, here, it is to be noted that: an embodiment of the present application further provides a computer-readable storage medium, where a computer program executed by the block chain-based logistics data processing apparatus 1 is stored in the computer-readable storage medium, and the computer program includes program instructions, and when the processor executes the program instructions, the description of the block chain-based logistics data processing method in the embodiment corresponding to fig. 3 can be executed, so that details are not repeated here. In addition, the beneficial effects of the same method are not described in detail. For technical details not disclosed in embodiments of the computer-readable storage medium referred to in the present application, reference is made to the description of embodiments of the method of the present application.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), or the like.
The above disclosure is only for the purpose of illustrating the preferred embodiments of the present application and is not to be construed as limiting the scope of the present application, so that the present application is not limited thereto, and all equivalent variations and modifications can be made to the present application.

Claims (10)

1. A logistics data processing method based on a block chain is applied to a management node and is characterized by comprising the following steps:
acquiring a chain loading request carrying logistics data to be chain loaded and associated with an audit object; the logistics data to be linked is determined by the logistics submitting node based on the logistics position information corresponding to the logistics article associated with the auditing object;
according to the key pair corresponding to the logistics submission node, performing signature verification on the logistics data to be chain-linked, generating a block of the logistics data to be chain-linked, which passes the signature verification, and adding the block to a service full-scale chain;
when a logistics state query request aiming at the audit object and sent by a request terminal is received, acquiring logistics position information associated with the audit object from the block of the business full-scale chain according to the logistics state query request, and generating a logistics position track corresponding to the audit object based on the logistics position information;
and auditing the logistics position track based on a target track range associated with a legal logistics state, generating an auditing result corresponding to the auditing object, and sending the auditing result to the request terminal.
2. The method according to claim 1, wherein the key pair comprises a private key and a public key corresponding to the logistics submission node;
the checking the logistics data to be linked according to the key pair corresponding to the logistics submission node comprises:
decrypting the logistics data to be uplink according to the private key to obtain the logistics position information and the digital signature in the logistics data to be uplink;
decrypting the digital signature according to the public key to obtain a first hash value corresponding to the digital signature;
performing hash operation on the logistics position information based on a hash algorithm to generate a second hash value corresponding to the logistics position information;
and if the first hash value is detected to be the same as the second hash value, the logistics data to be uplink passes the verification of the labels, and the uplink request is determined to be legal.
3. The method of claim 1, wherein the generating a block of logistics data to be uplink that passes the check mark, and adding the block to a full traffic chain comprises:
counting capacity information corresponding to the logistics data to be linked, which pass the verification;
if the capacity information is larger than a block capacity threshold value in the service full-scale chain, splitting the logistics data to be uplink linked based on the block capacity threshold value to obtain at least two sub data to be uplink linked;
and generating a block corresponding to each sub data to be linked up, and adding the block to the service full-scale chain.
4. The method according to claim 1, wherein the obtaining the logistics position information associated with the audit object from the block of the business full-volume chain according to the logistics state query request, and generating a logistics position track corresponding to the audit object based on the logistics position information comprises:
according to the logistics state query request, determining a logistics article corresponding to the audit object, and acquiring the block associated with the logistics article from the business full-scale chain;
and determining the logistics position information associated with the logistics articles from the block, and generating the logistics position track corresponding to the auditing object based on the time information carried by the logistics position information.
5. The method according to claim 4, wherein the logistics position information includes a plurality of unit position information;
generating the logistics position track corresponding to the audit object based on the time information carried by the logistics position information, wherein the generating comprises:
respectively acquiring time information carried by the unit position information, and sequencing the unit position information based on the time information to obtain a sequencing result;
and performing point drawing on the plurality of unit position information according to the sorting sequence in the sorting result to generate the logistics position track corresponding to the checking object.
6. The method according to claim 1, wherein the auditing the logistics position track based on the target track range associated with the legal logistics state, generating an auditing result corresponding to the auditing object, and sending the auditing result to the request terminal includes:
acquiring a target track range associated with a legal logistics state; the target track range is used for auditing the logistics state of the auditing object;
if the logistics position track belongs to the target track range, determining that the object to be checked belongs to a qualified logistics state;
and generating an auditing result corresponding to the auditing object based on the qualified logistics state and the logistics position track, and sending the auditing result to the request terminal.
7. The method of claim 1, further comprising:
and acquiring article attribute information corresponding to the logistics article associated with the audit object, and if the article attribute information belongs to an export cargo type, executing the step of acquiring the logistics position information associated with the audit object from the block of the business full-scale chain according to the logistics state query request.
8. A logistics data processing device based on a block chain is applied to a management node and is characterized by comprising the following components:
an acquisition module, configured to acquire a chain loading request carrying to-be-chain logistics data associated with an audit object; the logistics data to be linked is determined by the logistics submitting node based on the logistics position information corresponding to the logistics article associated with the auditing object;
the verification module is used for verifying the logistics data to be chain-linked according to the key pair corresponding to the logistics submitting node, generating a block from the logistics data to be chain-linked, which passes the verification, and adding the block to the business full-scale chain;
the generating module is used for acquiring the logistics position information associated with the audit object from the block of the business full-scale chain according to the logistics state query request when the logistics state query request aiming at the audit object sent by a request terminal is received, and generating a logistics position track corresponding to the audit object based on the logistics position information;
and the auditing module is used for auditing the logistics position track based on the target track range associated with the legal logistics state, generating an auditing result corresponding to the auditing object, and sending the auditing result to the request terminal.
9. A computer arrangement comprising a memory and a processor, the memory storing a computer program which, when executed by the processor, causes the processor to carry out the steps of the method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program comprising program instructions which, when executed by a processor, perform the steps of the method according to any one of claims 1 to 7.
CN201910906485.3A 2019-09-24 2019-09-24 Logistics data processing method and device based on block chain Active CN110599107B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910906485.3A CN110599107B (en) 2019-09-24 2019-09-24 Logistics data processing method and device based on block chain

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910906485.3A CN110599107B (en) 2019-09-24 2019-09-24 Logistics data processing method and device based on block chain

Publications (2)

Publication Number Publication Date
CN110599107A true CN110599107A (en) 2019-12-20
CN110599107B CN110599107B (en) 2024-03-19

Family

ID=68862915

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910906485.3A Active CN110599107B (en) 2019-09-24 2019-09-24 Logistics data processing method and device based on block chain

Country Status (1)

Country Link
CN (1) CN110599107B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111538788A (en) * 2020-04-27 2020-08-14 中国银行股份有限公司 Block chain-based personal information management method and device
CN111611607A (en) * 2020-05-23 2020-09-01 武汉市新洲三角塑料制品有限公司 Injection molding product production data management system and method based on block chain
CN111738779A (en) * 2020-07-24 2020-10-02 江苏荣泽信息科技股份有限公司 Intelligent contract system based on standard SQL grammar
CN111967322A (en) * 2020-07-15 2020-11-20 菜鸟智能物流控股有限公司 Data processing method and device, electronic equipment and storage medium
CN112330256A (en) * 2020-11-26 2021-02-05 欧冶云商股份有限公司 Raw material transportation logistics track data storage verification method and system based on block chain
WO2022095519A1 (en) * 2020-11-03 2022-05-12 深圳壹账通智能科技有限公司 Customs clearance inspection method, apparatus, electronic device, and computer-readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017063518A1 (en) * 2015-10-12 2017-04-20 阿里巴巴集团控股有限公司 Data processing method, device, and system
CN108764797A (en) * 2018-05-31 2018-11-06 腾讯科技(深圳)有限公司 Circulation information querying method, device, equipment, system and storage medium
CN109829673A (en) * 2019-01-11 2019-05-31 青岛华智慧链科技有限公司 A kind of novel logistics operation solution based on block chain
CN110197346A (en) * 2018-02-24 2019-09-03 巍乾全球技术有限责任公司 Logistic track and the method traced to the source, application server, block chain node and medium
CN110232575A (en) * 2019-05-13 2019-09-13 平安科技(深圳)有限公司 A kind of commodity source tracing method and device based on block chain technology

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017063518A1 (en) * 2015-10-12 2017-04-20 阿里巴巴集团控股有限公司 Data processing method, device, and system
CN110197346A (en) * 2018-02-24 2019-09-03 巍乾全球技术有限责任公司 Logistic track and the method traced to the source, application server, block chain node and medium
CN108764797A (en) * 2018-05-31 2018-11-06 腾讯科技(深圳)有限公司 Circulation information querying method, device, equipment, system and storage medium
CN109829673A (en) * 2019-01-11 2019-05-31 青岛华智慧链科技有限公司 A kind of novel logistics operation solution based on block chain
CN110232575A (en) * 2019-05-13 2019-09-13 平安科技(深圳)有限公司 A kind of commodity source tracing method and device based on block chain technology

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111538788A (en) * 2020-04-27 2020-08-14 中国银行股份有限公司 Block chain-based personal information management method and device
CN111611607A (en) * 2020-05-23 2020-09-01 武汉市新洲三角塑料制品有限公司 Injection molding product production data management system and method based on block chain
CN111611607B (en) * 2020-05-23 2021-04-20 深圳市鑫宏扬包装制品有限公司 Injection molding product production data management system and method based on block chain
CN111967322A (en) * 2020-07-15 2020-11-20 菜鸟智能物流控股有限公司 Data processing method and device, electronic equipment and storage medium
CN111967322B (en) * 2020-07-15 2023-11-24 菜鸟智能物流控股有限公司 Data processing method, device, electronic equipment and storage medium
CN111738779A (en) * 2020-07-24 2020-10-02 江苏荣泽信息科技股份有限公司 Intelligent contract system based on standard SQL grammar
WO2022095519A1 (en) * 2020-11-03 2022-05-12 深圳壹账通智能科技有限公司 Customs clearance inspection method, apparatus, electronic device, and computer-readable storage medium
CN112330256A (en) * 2020-11-26 2021-02-05 欧冶云商股份有限公司 Raw material transportation logistics track data storage verification method and system based on block chain

Also Published As

Publication number Publication date
CN110599107B (en) 2024-03-19

Similar Documents

Publication Publication Date Title
CN110599107B (en) Logistics data processing method and device based on block chain
CN109544160B (en) Transaction authenticity verification method and system based on block chain and intelligent contract
US20180189753A1 (en) Infrastructure for obligation management and validation
CN110601856B (en) Data interaction method and device based on block chain network
US20200374131A1 (en) Method and system for generalized provenance solution for blockchain supply chain applications
CN104268758A (en) Merchandise anti-counterfeiting system based on invoice and third-party e-commerce platform
CN111464499A (en) Electronic warehouse receipt tracing method and device, computer equipment and storage medium
CN108876538B (en) A kind of order information processing method
CN107111694A (en) Software tampering detection and reporting process
US20240152907A1 (en) Systems and methods for generating and transmitting digital proofs of ownership for purchased products
US11516001B2 (en) Method and system for generalized provenance solution for blockchain supply chain applications
JP7066096B2 (en) Data storage method, data verification method, equipment, equipment and computer program
CN111680989A (en) Online transaction account system and online transaction method
WO2019119056A1 (en) Methods and systems for the distribution of goods
CN110599322B (en) Data auditing method and device based on blockchain network
CN111125785A (en) Account checking method based on block chain, account checking device and readable storage medium
CN110599273B (en) Data processing method, data processing device, node equipment and storage medium
CN113205193B (en) Block chain-based waste treatment method, system, equipment and storage medium
WO2019144400A1 (en) A system and a method for use in data exchange
CN111292080A (en) Campus unmanned payment information processing method and system, storage medium and mobile terminal
CN110942301A (en) Data processing method and device based on block chain, computer and storage medium
TW201506826A (en) Method and system for processing issued transaction electronic certificate between paying party and receiving party
CN111383109A (en) Copyright transaction method and device for picture
CN113204784B (en) Express delivery distribution system and method based on single-side information hiding
Rao Operation mode of electric business logistics based on the application of two-dimensional code technology

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
GR01 Patent grant
GR01 Patent grant