CN110599107B - 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
CN110599107B
CN110599107B CN201910906485.3A CN201910906485A CN110599107B CN 110599107 B CN110599107 B CN 110599107B CN 201910906485 A CN201910906485 A CN 201910906485A CN 110599107 B CN110599107 B CN 110599107B
Authority
CN
China
Prior art keywords
logistics
auditing
data
uplink
block
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.)
Active
Application number
CN201910906485.3A
Other languages
Chinese (zh)
Other versions
CN110599107A (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 uplink request carrying to-be-uplink logistics data associated with an audit object; according to the key pair corresponding to the logistics submitting node, checking the signature of the to-be-uplink logistics data, generating a block of the to-be-uplink logistics data passing through the checking signature, and adding the block to a business full-quantity chain; when a logistics state query request for an auditing object sent by a request terminal is received, acquiring logistics position information associated with the auditing object from a block of a business full-quantity chain, and generating a logistics position track corresponding to the auditing 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 transmitting the auditing result to the request terminal. By adopting the embodiment of the application, the accuracy of the logistics data can be improved, and the efficiency of the export tax refund is further improved.

Description

Logistics data processing method and device based on block chain
Technical Field
The application relates to the technical field of Internet, in particular to a logistics data processing method and device based on block chains.
Background
The export tax refund is used as a policy of the export of the national rewards, is beneficial to enhancing the competitive power of the national commodity in the international market, and promotes the national commodity in various countries of the world.
In the existing export tax return process, the enterprise declares and submits the materials in the export tax return office network or window, the export tax return office needs to manually check the materials submitted by the enterprise (such as the producer, the logistics provider, the logistics route, the product purchaser and the like of the export product), and after the materials submitted by the enterprise pass the check, the export tax return declared by the enterprise can pass. However, for the logistics data of the export product, the export tax refund office only depends on the paper file submitted by the enterprise, and the accuracy of the logistics data is difficult to ensure.
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.
In one aspect, an embodiment of the present application provides a method for processing logistics data based on blockchain, which is applied to a management node, and includes:
acquiring a uplink request carrying to-be-uplink logistics data associated with an audit object; the to-be-uplink logistics data are determined by a logistics submitting node based on logistics position information corresponding to the logistics objects associated with the auditing objects;
According to the key pair corresponding to the logistics submitting node, checking the signature of the to-be-uplink logistics data, generating a block of to-be-uplink logistics data passing through the checking signature, and adding the block to a business full-quantity chain;
when a logistics state query request for the auditing object sent by a request terminal is received, acquiring logistics position information associated with the auditing object from the block of the business full-quantity chain according to the logistics state query request, and generating a logistics position track corresponding to the auditing object based on the logistics position information;
and auditing the logistics position track based on a target track range associated with 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 submitting node;
the signing of the to-be-uplink logistics data is performed according to the key pair corresponding to the logistics submitting node, and the signing comprises the following steps:
decrypting the to-be-uplink logistics data according to the private key to acquire the logistics position information and the digital signature in the to-be-uplink logistics data;
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;
if the first hash value and the second hash value are detected to be the same, the to-be-uplink logistics data passes the signature verification, and the uplink request is determined to be legal.
The block is generated by the to-be-uplink logistics data passing the tag verification, and is added to a business full-quantity chain, and the method comprises the following steps:
counting capacity information corresponding to the to-be-uplink logistics data passing the label verification;
if the capacity information is larger than a block capacity threshold value in the service full-capacity chain, splitting the to-be-uplink logistics data based on the block capacity threshold value to obtain at least two to-be-uplink sub-data;
and generating a block corresponding to each piece of sub-data to be uplink respectively, and adding the block to the business full chain.
The step of obtaining the logistics position information associated with the auditing object from the block of the business full-quantity chain according to the logistics state query request, and generating a logistics position track corresponding to the auditing object based on the logistics position information, includes:
Determining a logistics object corresponding to the auditing object according to the logistics state inquiry request, and acquiring the block associated with the logistics object from the business full chain;
and determining the logistics position information associated with the logistics object 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;
the generating the physical distribution position track corresponding to the auditing object based on the time information carried by the physical distribution position information includes:
respectively acquiring time information carried by the plurality of unit position information, and sequencing the plurality of unit position information based on the time information to obtain a sequencing result;
and according to the ordering sequence in the ordering result, dotting the plurality of unit position information to generate the logistics position track corresponding to the auditing object.
The auditing the logistics position track based on the target track range associated with legal logistics state, generating an auditing result corresponding to the auditing object, and sending the auditing result to the request terminal, including:
Acquiring a target track range associated with legal logistics states; 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 auditing object 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 articles associated with the auditing objects, and executing the step of acquiring the logistics position information associated with the auditing objects from the block of the business full-quantity chain according to the logistics state query request if the article attribute information belongs to the export goods type.
An aspect of the present application provides a logistics data processing apparatus based on blockchain, which is applied to a management node, and includes:
the acquisition module is used for acquiring a uplink request carrying the to-be-uplink logistics data associated with the auditing object; the to-be-uplink logistics data are determined by a logistics submitting node based on logistics position information corresponding to the logistics objects associated with the auditing objects;
The signature verification module is used for verifying the to-be-uplink logistics data according to the key pair corresponding to the logistics submitting node, generating a block from the to-be-uplink logistics data passing through the signature verification, and adding the block to a business full-quantity chain;
the generation module is used for acquiring the logistics position information associated with the auditing object from the block of the business full-volume chain according to the logistics state query request when receiving the logistics state query request for the auditing object sent by the request terminal, and generating a logistics position track corresponding to the auditing object based on the logistics position information;
and the auditing module is used for auditing the logistics position track based on a target track range associated with 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 submitting node;
the label checking module comprises:
the first decryption unit is used for decrypting the to-be-uplink logistics data according to the private key, and acquiring the logistics position information and the digital signature in the to-be-uplink logistics data;
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 and generating 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 detection unit detects that the first hash value is the same as the second hash value and the to-be-uplink logistics data passes the signature verification.
Wherein, the signature verification module includes:
the statistics unit is used for counting capacity information corresponding to the to-be-uplink logistics data passing through the label verification;
the splitting unit is used for splitting the to-be-uplink logistics data based on the block capacity threshold value if the capacity information is larger than the block capacity threshold value in the service full-capacity chain, so as to obtain at least two to-be-uplink sub-data;
and the adding unit is used for generating blocks corresponding to each piece of sub-data to be uploaded respectively and adding the blocks to the business full chain.
Wherein, the generating module includes:
the block obtaining unit is used for determining a logistics object corresponding to the auditing object according to the logistics state inquiry request and obtaining the block associated with the logistics object from the business full-quantity chain;
And the logistics position acquisition unit is used for determining the logistics position information related to the logistics object 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;
the logistics position acquisition unit includes:
the sequencing subunit is used for respectively acquiring the time information carried by the plurality of unit position information, sequencing the plurality of unit position information based on the time information, and obtaining a sequencing result;
and the position track generation subunit is used for tracing the plurality of unit position information according to the ordering sequence in the ordering result to generate the logistics position track corresponding to the auditing object.
Wherein, the audit module includes:
the track range acquisition unit is used for acquiring a target track range associated with legal logistics states; 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 auditing object 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 goods type judging module is used for acquiring the article attribute information corresponding to the logistics articles related to the auditing objects, and executing the step of acquiring the logistics position information related to the auditing objects from the block of the business full-quantity chain according to the logistics state query request if the article attribute information belongs to the export goods type.
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 is executed by the processor, so that the processor performs the steps of the method in an aspect of the embodiments of the present application.
An aspect of the present embodiments provides a computer readable storage medium storing a computer program comprising program instructions which, when executed by a processor, perform the steps of a method as described in an aspect of the embodiments of the present application.
According to the embodiment of the invention, the uplink request carrying the to-be-uplink logistics data associated with the auditing object can be obtained, the to-be-uplink logistics data is checked based on the key pair corresponding to the logistics submitting node, the to-be-uplink logistics data passing through the check is generated into the block, the block is added into the business full-quantity chain, when the logistics state query request sent by the request terminal and aiming at the auditing object is received, the logistics position information associated with the auditing object can be obtained from the block of the business full-quantity chain, the logistics position track corresponding to the auditing object is generated, and the auditing result can be obtained through auditing the logistics position track. Therefore, by writing real-time logistics position information of the logistics articles into the business full-quantity chain, the export tax refund office can acquire all logistics position information of the logistics articles from the business full-quantity chain, so that the accuracy of logistics data can be improved, and the export tax refund efficiency 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 that are required in the embodiments or the description of the prior art will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a network architecture diagram provided in an embodiment of the present application;
FIG. 2 is a schematic diagram of a block-chain-based logistics data processing scenario provided in an embodiment of the present application;
FIG. 3 is a schematic flow chart of a block chain based logistics data processing method according to an embodiment of the present application;
FIG. 4 is a schematic diagram of generating data for a stream to be uplinked according to an embodiment of the present application;
fig. 5 is a schematic diagram of a signature verification of to-be-uplink logistics data according to an embodiment of the present invention;
FIG. 6 is a schematic diagram of a generation block according to an embodiment of the present disclosure;
FIG. 7 is a schematic diagram of a scenario for querying the status of a stream according to an embodiment of the present application;
FIG. 8 is a schematic structural diagram of a block chain based logistics data processing apparatus 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 following description of the embodiments of the present application will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are only some, but not all, of the embodiments of the present application. All other embodiments, which can be made by one of ordinary skill in the art based on the embodiments herein without making any inventive effort, are intended to be within the scope of the present application.
Blockchain (Blockchain) is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission (P2P transmission), consensus mechanism, encryption algorithm, and the like, and is essentially a decentralised database; the blockchain may be composed of a plurality of serial transaction records (also known as blocks) that are cryptographically concatenated and protected from content, and the distributed ledgers concatenated by the blockchain enable multiple parties to effectively record transactions and permanently verify the transactions (non-tamperable). The consensus mechanism is a mathematical algorithm for realizing trust establishment and rights acquisition among different nodes in the blockchain network; in other words, the consensus mechanism is a mathematical algorithm commonly recognized by the network nodes of the blockchain.
Please refer to fig. 1, which is a network architecture diagram provided in an embodiment of the present application. The network architecture may include a requesting terminal 10a, an interface 10e, and a plurality of servers (specifically, as shown in fig. 1, including a server 10b, a server 10c, a server 10d, and a server 10 d). Wherein, the server 10b, the server 10c, the server 10d and the server 10f may be blockchain nodes in a blockchain network. Taking the application of the blockchain network to the export tax refund system as an example, 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, 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 all communicate with the tax office (or 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 audit terminal responsible for the export tax refund flow, and may send a data audit request to the server 10f through the interface 10e, for example, audit related data in the export tax refund service applied by the enterprise, including a certificate of purchasing a product (the product belongs to a specified export product type) by the enterprise, a production data material of the product, a logistics route of the product, and the like, and the server 10f may return an audit 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 (mobile internet device, MID), a wearable device (e.g., a smart watch, a smart bracelet, etc.), etc.
Please refer to fig. 2, which is a schematic diagram of a logistics data processing scenario based on a blockchain according to an embodiment of the present application. Taking a server 10b (which may also be referred to as a logistics submitting node) corresponding to a logistics enterprise as an example, a process of uploading logistics data and a process of auditing the logistics data will be specifically described. As shown in fig. 2, after an enterprise purchases a product from a manufacturer, the purchased product needs to be transported to a designated destination, such as a warehouse for storing the product, a product sales site of the enterprise, or the like; for the transportation of purchasing products, this enterprise can cooperate with logistics enterprise, i.e. the transportation contracture of product gives logistics enterprise, at logistics enterprise's transportation in-process of product, transportation equipment can gather the commodity circulation positional information of product in real time based on global positioning system (Global Positioning System, GPS) to send the commodity circulation positional information who gathers to logistics enterprise's corresponding server 10b, after receiving commodity circulation positional information, server 10b can be with commodity circulation positional information, logistics company, article product and gather the time information packing of this commodity circulation positional information to wait to be up-chain logistics data. For example, the physical distribution location 1 for the d product sent by the transportation device is received by the server 10b as: longitude 113.986511, dimension 22.544577, server 10b may package the logistics business name (e.g., "abc carrier"), the product name (e.g., "d product"), logistics location 1, and the time of collecting the logistics location 1 (2019, 1, 2, 10:30:00), to obtain the to-be-uplink logistics data 20a. The transportation device may collect the logistics position information at intervals (for example, every half an hour), and send the collected logistics position information to the server 10b, for example, the server 10b receives the logistics position 2 for the d product sent by the transportation device, where: longitude 80.176511, dimension 30.544577, server 10b may package the logistics business name (e.g., "abc carrier"), the product name (e.g., "d product"), logistics location 2, and the time of collecting the logistics location 2 (2019, 1, 2, 11:00:15) to obtain the to-be-uplink logistics data 20d. Of course, the server 10b may continuously receive the logistics position information for the d product sent by the transportation apparatus until the d product is transported to the destination.
Optionally, in order to enhance the security of the data to be uplinked (e.g., the data to be uplinked 20a, the data to be uplinked 20d, etc.), the data to be uplinked may be encrypted. Alternatively, to prevent the to-be-uplinked logistics data 20a from being tampered with, the server 10b may generate a digital signature corresponding to the to-be-uplinked logistics data 20 a; in other words, the server 10b may generate a key pair (which may include a private key and a public key) and generate a digital signature using the private key.
After the server 10b packages the logistics position information into the to-be-uplink logistics data, the to-be-uplink logistics data can be sent to the server 10f corresponding to the tax bureau, that is, after the server 10b packages the to-be-uplink logistics data 20a, the to-be-uplink logistics data 20a can be sent to the server 10f. After receiving the to-be-added logistics data 20a, the server 10f can check the to-be-added logistics data 20a, namely, verify whether the to-be-added logistics data 20a is tampered or not, and if the check is not passed, the server 10f can determine the to-be-added logistics data 20a as invalid data and delete the invalid data; if the signature passes, it indicates that the to-be-uplink logistics data 20a is not tampered, and the server 10f may package the to-be-uplink logistics data 20a into the block 20b, and add the agreed block 20b to the traffic total chain 20c. Of course, after the server 10b packages the to-be-uplinked logistics data 20d, the to-be-uplinked logistics data 20d may be sent to the server 10f, and based on the same execution operation as described above, the to-be-uplinked logistics data 20d may be packaged into a block 20e, and the block 20e after reaching the consensus is added to the traffic full chain 20c, it will be understood that, in the traffic full chain 20c, the block 20b is the block before the block 20 e. It should be noted that, the service full chain 20c may be used to store all service data such as enterprise purchase certificates, product production data materials, product logistics data, etc., and only the server corresponding to the tax office (i.e. the server 10 f) has authority to store the service full 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 business full-volume chain 20c, but can only store the business chain formed by the blocks corresponding to the self-uploaded data, that is, the business chain stored by the logistics enterprise only includes the logistics position information uploaded by the logistics enterprise.
After an enterprise (the enterprise may be referred to as an audit object herein) applies for a tax refund service to an export tax office, a terminal device (i.e., a request terminal 10 a) corresponding to the export tax office may send a logistic status query request for the audit object to the server 10f, so that the server 10f performs audit on the logistic 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 object) associated with the auditing object based on the logistics state query request, further obtain logistics position information corresponding to the logistics object from the business full-volume chain 20c, and generate a logistics position track 20f corresponding to each logistics object based on the collection time corresponding to the logistics position information. The server 10f may audit the generated logistics location track 20f, for example, determine whether the logistics location track 20f conforms to the article exit route (e.g. spans two countries, etc.), if the logistics location 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 the final audit result to the request terminal 10a.
After receiving the audit result returned from the server 10f, the request terminal 10a may determine whether the tax return service applied by the audit object passes or not based on the audit result.
Fig. 3 is a schematic flow chart of a block chain-based logistics data processing method according to an embodiment of the present application. As shown in fig. 3, the blockchain-based logistics data processing method may include:
step S101, obtaining a uplink request carrying to-be-uplink logistics data associated with an auditing object; the to-be-uplink logistics data are determined by a logistics submitting node based on logistics position information corresponding to the logistics objects associated with the auditing objects;
specifically, the management node (corresponding to the server 10f in the embodiment of fig. 2) may obtain the uplink request carrying the 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 of fig. 2) associated with the auditing object. The uplink request refers to a request initiated by the logistics enterprise through an application platform (corresponding to the interface 10e in the embodiment corresponding to fig. 1) for applying to the management node to write the logistics data into the service full-volume chain; the to-be-uplinked logistics data is determined by the logistics submitting 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 position information corresponding to the logistics items associated with the auditing objects, i.e. the logistics submitting node may package the logistics position information corresponding to the logistics items associated with the auditing objects, so as to obtain the to-be-uplinked logistics data meeting the business full-scale chain data structure.
Wherein, the audit object can be an enterprise (which can be an export production enterprise, a foreign trade enterprise, etc.) who submits tax refund application to the export tax refund office. Taking an audit object as a foreign trade enterprise as an example, the foreign trade enterprise can purchase domestic commodities for sale abroad, and the process of uploading the logistics data to be uploaded by the logistics submitting node is described in detail below. After the foreign trade company purchases the product from the manufacturer, the foreign trade company can sign a purchase contract with the manufacturer and pay a certain fee to the manufacturer, and the foreign trade company can upload information such as the purchase contract and the paid fee as a purchase certificate to the blockchain network and request the purchase certificate to be uplink. After the foreign trade company purchases the product from the manufacturer, if the product is to be sold abroad, the foreign trade company needs to cooperate with the logistics company to transport the product abroad. In the process of product transportation, LBS (Location Based Service) data can be obtained through an external positioning mode (such as GPS) of transportation equipment or a radio communication network of an operator, namely, logistics position information of the product is obtained based on the GPS or the radio communication network; the transportation equipment can acquire the logistics position information once at intervals, for example, the logistics position information of the product is acquired once every half an hour, and the logistics position information can be sent to a server corresponding to a logistics enterprise, namely, a logistics submitting node. The logistics submitting node can package the received logistics data such as logistics position information, logistics enterprise information (including names of logistics enterprises and/or numbers of the logistics enterprises), product information, collection time of the logistics position information and the like, so as to obtain the logistics data to be uplinked.
Optionally, since the capacity of each block in the full-size blockchain is limited, in order to improve the utilization ratio of the capacity of the blocks, the logistics submitting node may convert the logistics data into a Hash value with a fixed length based on a Hash algorithm (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 converted Hash value as the logistics data to be uplink to the management node. The hash algorithm may compress the data or the message into a digest, not only fix the format of the data, but also reduce the data size, and 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 data, and can generate different hash values for different data.
Optionally, in order to prevent the logistics data from being tampered in the process of sending the logistics data to the management node, the logistics submitting node may generate a digital signature corresponding to the logistics data. Fig. 4 is a schematic diagram of generating data of a to-be-uplink stream 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) obtains the logistics location information through GPS, the logistics data 30b including the logistics location information may be sent to a server corresponding to the logistics enterprise, that is, the logistics submitting node 30c, and the logistics data 30b may include the logistics location information (longitude 113.986511, dimension 22.544577), time information (2019, 1 month, 2 days, 10:30:00) for obtaining the logistics location information, a logistics enterprise name (abc transportation company), and product information (d product). After the logistics data 30b is received by the logistics submitting node 30c, if the data size of the logistics data 30b is too large (for example, greater than 5 megabits of the set threshold), 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 submitting node 30c may perform a 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 commit node 30c may generate a key pair, which may include the public key 30d and the private key 30e, while the logistics commit node 30c may also inform the management node of the key pair, i.e. the management node and the logistics commit node may together manage the public key 30d and the private key 30e of the key pair. The logistics submitting node 30c may encrypt the hash value 2 with the private key 30e, the hash value 2 after encryption is the digital signature 30h, determine the hash value 1 carrying the digital signature 30h as the to-be-uplink logistics data 30i, and send the to-be-uplink logistics data 30i to the management node.
Optionally, in order to ensure confidentiality of the logistics data 30b, the logistics submitting node 30c may further encrypt the logistics data 30b using the private key 30e, and if the logistics data 30b is converted into the hash value 1, the hash value 1 may be encrypted 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, checking labels of the to-be-uplink logistics data according to the key pair corresponding to the logistics submitting node, generating blocks of the to-be-uplink logistics data passing through the checking labels, and adding the blocks to a business full-quantity chain;
specifically, after receiving the to-be-uplink logistics data, the management node can perform signature verification on the to-be-uplink logistics data according to the key pair corresponding to the logistics submitting node, and the specific process of signature verification is as follows: and if the to-be-uplink logistics data is the encrypted logistics data, decrypting the received to-be-uplink logistics data according to the 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 the public key corresponding to the logistics submitting node to obtain a first hash value corresponding to the digital signature, 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 if the first hash value is detected to be the same as the second hash value, determining that the to-be-uplink logistics data passes through the verification sign, and determining that the uplink request is legal, namely generating a block for the to-be-uplink logistics data, and adding the block after consensus to a service full-quantity 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 submitting node, namely the digital signature in the to-be-uplink logistics data is the digital signature generated by using the fake private key, the management node directly displays decryption failure when decrypting by using the real public key.
Fig. 5 is a schematic diagram of signature verification of to-be-uplink logistics data 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 to-be-uplinked stream data 30i received by the management node 40a is the encrypted ciphertext, the management node 40a may decrypt the to-be-uplinked stream data 30i using the private key 30e corresponding to the stream submitting node 30c to obtain the hash value 1 and the digital signature 30h in the to-be-uplinked stream data 30i, and further, the management node 40a may decrypt the digital signature 30h using the public key 30d corresponding to the stream submitting node 30c to obtain the hash value 2 (i.e. the first hash value) corresponding to the digital signature 30h, and meanwhile, the management node 40a may perform the hash operation on the hash value 1 using the hash algorithm 30g used by the to-be-uplinked stream data 30i to obtain the hash value 3 (i.e. the second hash value). If the hash value 3 obtained by the management node 40c using the hash algorithm 30g is the same as the hash value 2 obtained by the management node 40c decrypting the digital signature 30h, the verification of the to-be-uplink logistics data 30i is passed; 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 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.
The management node performs signature verification on the to-be-uplink logistics data, after the signature verification passes, the to-be-uplink logistics data can be generated into a new block, and the new block is added into the business full-quantity chain after consensus is achieved. It can be understood that the management node can receive the to-be-uplink logistics data sent by the plurality of logistics submitting nodes at the same time, and after the to-be-uplink logistics data pass through the tag verification, the management node can write the to-be-uplink logistics data received at the same time into the same block. Of course, since the capacity of each block in the service full-capacity chain is set in advance, after receiving the to-be-uplinked logistics data and checking labels, the management node can count the capacity information corresponding to the to-be-uplinked logistics data, if the counted capacity information is greater than the block capacity threshold (namely, the set maximum capacity of the block) in the service full-capacity chain, the to-be-uplinked logistics data can be split based on the block capacity threshold to obtain at least two to-be-uplinked sub-data, blocks corresponding to each to-be-uplinked sub-data are generated, and after the blocks reach consensus, a plurality of blocks are added into the service full-capacity chain. The to-be-uplink logistics data may refer to logistics data such as logistics position information, logistics enterprise information, logistics position acquisition time, product information and the like which are actually acquired, or may refer to a hash value with a fixed length after the logistics submitting node is converted.
Fig. 6 is a schematic diagram of a generated block according to an embodiment of the present application. Taking the to-be-uplink logistics data received by the management node as an example, as shown in fig. 6, if the management node 50d receives the logistics data 50a sent by the logistics submitting node 1, the logistics data 50b sent by the logistics submitting node 2 and the logistics data 50c sent by the logistics submitting node 3 at the same time, the management node 50d may check the logistics data 50a, the logistics data 50b and the logistics data 50c, after the check passes, the total capacity information of the logistics data 50a, the logistics data 50b and the logistics data 50c may be counted, if the counted total capacity information is smaller than the block capacity threshold in the service full-size chain 50f, the logistics data 50a, the logistics data 50b and the logistics data 50c may be packed and written into the same block 50e (as shown in fig. 6), the logistics data 1 stored in the block 50e is the logistics data 50a uploaded by the logistics submitting node 1, the stored logistics data 2 is the logistics data 50b uploaded by the logistics node 2, and the stored logistics data 3 is the total capacity information of the logistics data 50c uploaded by the logistics node 3, and the new service full-size chain 50f may be added.
If the total capacity information obtained by statistics is greater than the block capacity threshold in the service full 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 are respectively written into different blocks, that is, the management node 50d may generate three different blocks, and after consensus is achieved, the newly generated three blocks may be added to the service full chain 50f.
Step S103, when a logistics state query request for the auditing object sent by a request terminal is received, acquiring logistics position information associated with the auditing 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 auditing object based on the logistics position information;
specifically, the auditing 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 auditing 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 auditing object to the management node, and the management node may determine, based on the received logistics state query request, a logistics object (i.e., product information) associated with the auditing object, thereby may acquire all blocks associated with the logistics object from the service full chain, determine, from the blocks, logistics position information associated with the logistics object, and may generate a logistics position track corresponding to the auditing object based on the obtained logistics position information. It can be appreciated that the logistics articles associated with the audit object may include different products transported in different batches, and for the same product in the same batch, have the same logistics route (multiple unit location information may be collected in the logistics route), i.e. the same logistics location track may be generated; and for the same product in different batches or different products in different batches, different logistics routes are provided, that is, different logistics position tracks can be generated, so that the logistics position tracks corresponding to the auditing objects can comprise a plurality of logistics position tracks.
The specific process of generating the physical distribution position track can comprise the following steps: and respectively acquiring time information carried by the plurality of unit position information, sorting the plurality of unit position information based on the time information to obtain a sorting result, and tracing the plurality of unit position information according to the time sorting sequence in the sorting result so as to generate a logistics position track corresponding to the auditing object. In other words, all unit position information corresponding to the same product in the same batch can be obtained, and points are traced based on the unit position information, so that the logistics position track corresponding to the same product in the same batch can be generated.
Optionally, when the management node receives the logistics state query request for the auditing object sent by the request terminal, the management node may first acquire the article attribute information corresponding to the logistics article associated with the auditing object, and if the article attribute information corresponding to the logistics article belongs to the export goods type specified by the country, execute the subsequent steps; otherwise, the management node can directly return the result that the audit is not passed to the request terminal.
And step S104, auditing the logistics position track based on a target track range associated with legal logistics state, generating an auditing result corresponding to the auditing object, and transmitting the auditing result to the request terminal.
Specifically, the management node may audit the generated logistics position track based on the target track range associated with the legal logistics state, if the logistics object is a product exported to the united states, the target track range may be a range in china and the united states, by detecting whether the logistics position track is transported from the inside of the chinese border to the inside of the united states, if the logistics position track is displayed to be from the inside of the chinese border, the destination is the inside of the united states, the logistics position track may be determined to belong to the target track range, and further, the audit object may be determined to be a qualified logistics state, and further, the management node generates an audit result corresponding to the audit object based on the qualified logistics state and the logistics position track, and sends the audit result to the request terminal, and the audit result returned to the request terminal may be: and checking and passing the logistics data. If the logistics position track does not belong to the target track range, if the logistics position track belongs to the China, the auditing object can be determined to be in a disqualified logistics state, an auditing result is generated based on the disqualified logistics state and the logistics position track, the auditing result is sent to the request terminal, and the auditing result returned to the request terminal can be: and the physical distribution data audit is not passed.
Fig. 7 is a schematic diagram of a scenario for inquiring a physical distribution state according to an embodiment of the present application. As shown in fig. 7, the request terminal may send a logistics status query request for the auditing object to the management node, where the logistics query request may specifically include: carrying out logistics state audit on logistics articles associated with an enterprise a (namely audit objects), wherein the logistics articles are an article b and an article c respectively, and when a management node receives a logistics state inquiry request sent by a request terminal, the audit objects are determined to be the enterprise a, and the logistics articles associated with the enterprise a are a product b and a product c from the logistics state inquiry request; the management node can acquire a block set 60b associated with the b product and a block set 60c associated with the c product from the service full-volume chain 60a, read all logistics position information corresponding to the b product from the block set 60b, and trace points on the logistics position information of the b product based on a time sequence carried by all the logistics position information of the b product, so as to generate a logistics position track 60d corresponding to the b product; and reading all the logistics position information corresponding to the c product from the block set 60c, and tracing the logistics position information of the c product based on the time sequence carried by all the logistics position information of the c product to generate a logistics position track 60e corresponding to the c product. The management node can determine the logistics position track 60d and the logistics position track 60e as the logistics position tracks corresponding to the enterprise a, and when the logistics position track 60d and the logistics position track 60e both belong to the target track range (namely, the logistics route range corresponding to the export goods is met), the enterprise a can be determined to be in a qualified logistics state, namely, the logistics data of the enterprise a is checked and passed, and the checking result of the checking and passing of the logistics data is returned to the request terminal.
According to the embodiment of the invention, the uplink request carrying the to-be-uplink logistics data associated with the auditing object can be obtained, the to-be-uplink logistics data is checked based on the key pair corresponding to the logistics submitting node, the to-be-uplink logistics data passing through the check is generated into the block, the block is added into the business full-quantity chain, when the logistics state query request sent by the request terminal and aiming at the auditing object is received, the logistics position information associated with the auditing object can be obtained from the block of the business full-quantity chain, the logistics position track corresponding to the auditing object is generated, and the auditing result can be obtained through auditing the logistics position track. Therefore, by writing real-time logistics position information of the logistics articles into the business full-quantity chain, the export tax refund office can acquire all logistics position information of the logistics articles from the business full-quantity chain, so that the accuracy of logistics data can be improved, and the export tax refund efficiency is improved.
Fig. 8 is a schematic structural diagram of a block chain-based logistics data processing apparatus according to an embodiment of the present application. As shown in fig. 8, the blockchain-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 uplink request carrying data of a to-be-uplink logistics associated with an audit object; the to-be-uplink logistics data are determined by a logistics submitting node based on logistics position information corresponding to the logistics objects associated with the auditing objects;
the signature verification module 12 is configured to perform signature verification on the to-be-uplink logistics data according to a key pair corresponding to the logistics submitting node, generate a block on the to-be-uplink logistics data passing the signature verification, and add the block to a business full-quantity chain;
the generating module 13 is configured to, when receiving a logistics state query request for the auditing object sent by a request terminal, acquire, according to the logistics state query request, the logistics position information associated with the auditing object from the block of the business full-volume chain, and generate a logistics position track corresponding to the auditing object based on the logistics position information;
and the auditing module 14 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 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 step S101-step S104 in the embodiment corresponding to fig. 3, which are not described herein.
Referring to fig. 8, the blockchain-based logistics data processing apparatus 1 may further include: a cargo type judgment module 15;
the cargo type judging module 15 is configured to obtain item attribute information corresponding to a logistics item associated with the auditing object, and if the item attribute information belongs to an export cargo type, execute the step of obtaining the logistics location information associated with the auditing object from the block of the business full-volume 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, and will not be described herein.
Referring to fig. 8, the key pair includes a private key and a public key corresponding to the logistics submitting node;
the tag 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 statistics unit 125, a splitting unit 126, and an addition 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 location information and the digital signature in the to-be-uplink logistics data;
A second decryption unit 122, configured to decrypt the digital signature according to the public key, and obtain a first hash value corresponding to the digital signature;
a hash operation unit 123, configured to perform hash operation on the logistics location information based on a hash algorithm, and generate a second hash value corresponding to the logistics location information;
a detection unit 124, configured to determine that the uplink request is legal if the first hash value and the second hash value are detected to be the same, and the to-be-uplink logistics data passes a label check;
the statistics unit 125 is configured to count capacity information corresponding to the to-be-uplink logistics data that the tag passes;
a splitting unit 126, configured to split the to-be-uplink logistics data based on the block capacity threshold if the capacity information is greater than the block capacity threshold in the traffic full-capacity chain, to obtain at least two to-be-uplink sub-data;
and the adding unit 127 is configured to generate a block corresponding to each piece of sub-data to be uplink, and add the block to the traffic total chain.
The specific functional implementation manner 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, and will not be described herein.
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 a logistics item corresponding to the auditing object according to the logistics state query request, and obtain the block associated with the logistics item from the business full-volume chain;
and a logistics position obtaining unit 132, configured to determine the logistics position information associated with the logistics object from the block, and generate the logistics position track corresponding to the auditing object based on time information carried by the logistics position information.
The specific function implementation manner of the block obtaining unit 131 and the logistics position obtaining unit 132 may refer to step S103 in the embodiment corresponding to fig. 3, which is not described herein.
Referring also to fig. 8, the auditing module 14 may include: a track range acquisition unit 141, a logistics state determination unit 142, and an audit result transmission unit 143;
a track range obtaining unit 141, configured to obtain 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;
A logistics state determining unit 142, configured to determine that the audit object belongs to a qualified logistics state if the logistics position track belongs to the target track range;
and 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 track, and send the audit result to the request terminal.
The specific function implementation manner of the track range obtaining unit 141, the logistics state determining unit 142, and the auditing result transmitting unit 143 may refer to step S104 in the embodiment corresponding to fig. 3, which is not described herein.
Referring to fig. 8, the logistics location information includes a plurality of unit location information;
the logistics location acquisition unit 132 may include: a ranking subunit 1321, a position trajectory generation subunit 1322;
a sorting subunit 1321, configured to obtain time information carried by the plurality of unit location information, sort the plurality of unit location information based on the time information, and obtain a sorting result;
and a position track generation subunit 1322, configured to trace points on the plurality of unit position information according to the sorting order in the sorting result, so as to generate the logistic position track corresponding to the audit object.
The specific functional implementation manner of the sorting subunit 1321 and the position track generating subunit 1322 may refer to step S103 in the embodiment corresponding to fig. 3, which is not described herein.
According to the embodiment of the invention, the uplink request carrying the to-be-uplink logistics data associated with the auditing object can be obtained, the to-be-uplink logistics data is checked based on the key pair corresponding to the logistics submitting node, the to-be-uplink logistics data passing through the check is generated into the block, the block is added into the business full-quantity chain, when the logistics state query request sent by the request terminal and aiming at the auditing object is received, the logistics position information associated with the auditing object can be obtained from the block of the business full-quantity chain, the logistics position track corresponding to the auditing object is generated, and the auditing result can be obtained through auditing the logistics position track. Therefore, by writing real-time logistics position information of the logistics articles into the business full-quantity chain, the export tax refund office can acquire all logistics position information of the logistics articles from the business full-quantity chain, so that the accuracy of logistics data can be improved, and the export tax refund efficiency 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 device 1000 may include: processor 1001, network interface 1004, and memory 1005, and in addition, the above-described computer device 1000 may further include: a user interface 1003, and at least one communication bus 1002. Wherein the communication bus 1002 is used to enable connected communication between these components. The user interface 1003 may include a Display (Display), a Keyboard (Keyboard), and the optional user interface 1003 may further include a standard wired interface, a wireless interface, among others. 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 (non-volatile memory), such as at least one disk memory. The memory 1005 may also optionally be at least one storage device located remotely from the processor 1001. As shown in fig. 9, an operating system, a network communication module, a user interface module, and a device control application may be included in a memory 1005, which is one type of computer-readable storage medium.
In the computer device 1000 shown in FIG. 9, the network interface 1004 may provide network communication functions; while user interface 1003 is primarily used as an interface for providing input to a user; and the processor 1001 may be used to invoke a device control application stored in the memory 1005 to implement:
acquiring a uplink request carrying to-be-uplink logistics data associated with an audit object; the to-be-uplink logistics data are determined by a logistics submitting node based on logistics position information corresponding to the logistics objects associated with the auditing objects;
according to the key pair corresponding to the logistics submitting node, checking the signature of the to-be-uplink logistics data, generating a block of to-be-uplink logistics data passing through the checking signature, and adding the block to a business full-quantity chain;
when a logistics state query request for the auditing object sent by a request terminal is received, acquiring logistics position information associated with the auditing object from the block of the business full-quantity chain according to the logistics state query request, and generating a logistics position track corresponding to the auditing object based on the logistics position information;
and auditing the logistics position track based on a target track range associated with 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 the embodiment of the present application may perform the description of the blockchain-based logistics data processing method in the embodiment corresponding to fig. 3, and may also perform the description of the blockchain-based logistics data processing apparatus 1 in the embodiment corresponding to fig. 8, which is not repeated herein. In addition, the description of the beneficial effects of the same method is omitted.
Furthermore, it should be noted here that: the embodiment of the present application further provides a computer readable storage medium, in which the aforementioned computer program executed by the blockchain-based logistics data processing apparatus 1 is stored, and the computer program includes program instructions, when executed by the processor, can execute the description of the blockchain-based logistics data processing method in the embodiment corresponding to fig. 3, and therefore, the description will not be repeated here. In addition, the description of the beneficial effects of the same method is omitted. For technical details not disclosed in the embodiments of the computer-readable storage medium according to the present application, please refer to the description of the method embodiments of the present application.
Those skilled in the art will appreciate that implementing all or part of the above-described methods in accordance with the embodiments may be accomplished by way of a computer program stored on a computer readable storage medium, which when executed may comprise the steps 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 (Random Access Memory, RAM), or the like.
The foregoing disclosure is only illustrative of the preferred embodiments of the present application and is not intended to limit the scope of the claims herein, as the equivalent of the claims herein shall be construed to fall within the scope of the claims herein.

Claims (6)

1. A logistic data processing method based on block chain, applied to a management node, comprising the following steps:
acquiring a uplink request carrying to-be-uplink logistics data associated with an audit object; the to-be-uplink logistics data are determined by a logistics submitting node based on logistics position information corresponding to the logistics objects associated with the auditing objects;
decrypting the to-be-uplinked logistics data according to a private key in a key pair corresponding to the logistics submitting node, and obtaining the logistics position information and the digital signature in the to-be-uplinked logistics data;
Decrypting the digital signature according to a public key in a key pair corresponding to the logistics submitting node, obtaining a first hash value corresponding to the digital signature, carrying out hash operation on the logistics position information based on a hash algorithm, and generating 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, determining that the to-be-uplink logistics data passes the signature verification, and counting capacity information corresponding to the to-be-uplink logistics data passing the signature verification;
if the capacity information is larger than a block capacity threshold value in a business full-capacity chain, splitting the to-be-uplinked logistics data based on the block capacity threshold value to obtain at least two to-be-uplinked sub-data, generating blocks corresponding to each to-be-uplinked sub-data respectively, and adding the blocks to the business full-capacity chain;
when a logistics state query request for the auditing object sent by a request terminal is received, determining a logistics object corresponding to the auditing object according to the logistics state query request, and acquiring a block associated with the logistics object from the business full chain;
determining a plurality of unit position information associated with the logistics object from the block, respectively acquiring time information carried by the plurality of unit position information, and sequencing the plurality of unit position information based on the time information to obtain a sequencing result; according to the sorting order in the sorting result, dotting is carried out on the plurality of unit position information, and a logistics position track corresponding to the auditing object is generated; the plurality of unit location information belongs to the logistics location information;
And auditing the logistics position track based on a target track range associated with legal logistics state, generating an auditing result corresponding to the auditing object, and sending the auditing result to the request terminal.
2. The method of claim 1, wherein auditing the logistics location track based on the target track range associated with legal logistics status generates an audit result corresponding to the audit object, and transmitting the audit result to the request terminal, comprises:
acquiring a target track range associated with legal logistics states; 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 auditing object 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.
3. The method as recited in claim 1, further comprising:
and acquiring article attribute information corresponding to the logistics articles associated with the auditing objects, and executing the step of acquiring the logistics position information associated with the auditing objects from the block of the business full-quantity chain according to the logistics state query request if the article attribute information belongs to the export goods type.
4. A blockchain-based logistics data processing apparatus for use in a management node, comprising:
the acquisition module is used for acquiring a uplink request carrying the to-be-uplink logistics data associated with the auditing object; the to-be-uplink logistics data are determined by a logistics submitting node based on logistics position information corresponding to the logistics objects associated with the auditing objects;
the signature verification module is used for decrypting the logistics data to be uplink according to a private key in a key pair corresponding to the logistics submitting node, and obtaining the logistics position information and the digital signature in the logistics data to be uplink;
the signature verification module is further configured to decrypt the digital signature according to a public key in a key pair corresponding to the logistics submitting node, obtain a first hash value corresponding to the digital signature, perform hash operation on the logistics position information based on a hash algorithm, and generate a second hash value corresponding to the logistics position information;
the signature verification module is further configured to determine that the to-be-uplink logistics data passes a signature verification if the first hash value is detected to be the same as the second hash value, and count capacity information corresponding to the to-be-uplink logistics data that passes the signature verification;
The signature verification module is further configured to split the to-be-uplinked logistics data based on a block capacity threshold if the capacity information is greater than the block capacity threshold in the service full-capacity chain, obtain at least two to-be-uplinked sub-data, generate a block corresponding to each to-be-uplinked sub-data, and add the block to the service full-capacity chain;
the generation module is used for determining a logistics object corresponding to the auditing object according to the logistics state inquiry request when receiving the logistics state inquiry request aiming at the auditing object and sent by the request terminal, and acquiring a block associated with the logistics object from the business full chain;
the generation module is further configured to determine a plurality of unit location information associated with the logistics object from the block, 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; according to the sorting order in the sorting result, dotting is carried out on the plurality of unit position information, and a logistics position track corresponding to the auditing object is generated; the plurality of unit location information belongs to the logistics location information;
And the auditing module is used for auditing the logistics position track based on a target track range associated with legal logistics state, generating an auditing result corresponding to the auditing object and sending the auditing result to the request terminal.
5. A computer device comprising a memory and a processor, the memory storing a computer program that, when executed by the processor, causes the processor to perform the steps of the method of any one of claims 1 to 3.
6. 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 of claims 1 to 3.
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 CN110599107A (en) 2019-12-20
CN110599107B true 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)

Families Citing this family (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
CN111611607B (en) * 2020-05-23 2021-04-20 深圳市鑫宏扬包装制品有限公司 Injection molding product production data management system and method based on block chain
CN111967322B (en) * 2020-07-15 2023-11-24 菜鸟智能物流控股有限公司 Data processing method, device, electronic equipment and storage medium
CN111738779B (en) * 2020-07-24 2020-12-08 江苏荣泽信息科技股份有限公司 Intelligent contract system based on standard SQL grammar
CN112288371A (en) * 2020-11-03 2021-01-29 深圳壹账通智能科技有限公司 Customs clearance inspection method and device, electronic equipment 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

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

Also Published As

Publication number Publication date
CN110599107A (en) 2019-12-20

Similar Documents

Publication Publication Date Title
CN110599107B (en) Logistics data processing method and device based on block chain
Baralla et al. Ensuring transparency and traceability of food local products: A blockchain application to a Smart Tourism Region
CN109727134B (en) Picture copyright trading method and device
US20180189753A1 (en) Infrastructure for obligation management and validation
CN110601856B (en) Data interaction method and device based on block chain network
WO2021135169A1 (en) Blockchain-based management method, terminal, apparatus, and storage medium
CN108876538B (en) A kind of order information processing method
EP3973495A1 (en) Method and system for generalized provenance solution for blockchain supply chain applications
CN111936995A (en) Distributed storage of customs clearance data
CN102667845A (en) Electronic price-proposing system, electronic price-proposing device, and electronic price-proposing method
CN111989707A (en) Managing user permissions for customs clearance services based on blockchains
CN111989663A (en) Intelligent contract pool based on block chain
US11516001B2 (en) Method and system for generalized provenance solution for blockchain supply chain applications
CN111868725A (en) Processing import customs clearance data based on block chain
CN114930330A (en) User management of customs clearance service platform based on block chain
CN111680989A (en) Online transaction account system and online transaction method
CN111936994A (en) Block chain based document registration for customs clearance
CN110599322B (en) Data auditing method and device based on blockchain network
CN110599273B (en) Data processing method, data processing device, node equipment and storage medium
WO2019144400A1 (en) A system and a method for use in data exchange
CN106372874A (en) Internet of things mobile finance payment system based on cloud platform
CN113205193B (en) Block chain-based waste treatment method, system, equipment and storage medium
CN111340590A (en) Collaborative operation method based on electronic commerce and distributed resale platform thereof
EP2668606A2 (en) System for checking the authenticity of articles
CN113204784B (en) Express delivery distribution system and method based on single-side information hiding

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