Commodity logistics tracking method based on block chain

By establishing a distributed ledger on the blockchain and using encryption technology to process logistics information, it solves the problem of logistics information being easily tampered with in second-hand commodity transactions, achieves safe, transparent, and efficient logistics information management, and improves trust in second-hand transactions. Spend.

CN119359198AInactive Publication Date: 2025-01-24JIANGSU SHUZHICHAIN TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411372459.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-29
Publication Date
2025-01-24
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

In second-hand commodity trading, existing logistics tracking technology lacks supervision functions, resulting in logistics information being easily tampered with and reducing data security.

Method used

Adopting a blockchain-based commodity logistics tracking method, by establishing a distributed ledger on the blockchain, using encryption technology to process logistics information, and verifying and storing it through a consensus mechanism, a unique logistics tracking identifier is generated and a query interface is provided. It automatically updates and verifies through smart contracts, and finally displays the logistics information visually.

Benefits of technology

A safe, transparent and efficient logistics information management solution has been realized, which improves the trust of second-hand transactions and the healthy development of the market.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119359198A_ABST
    Figure CN119359198A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of block chains, in particular to a block chain-based commodity logistics tracking method, which comprises the following steps of: establishing a distributed account book on a block chain for recording logistics information of second-hand articles; carrying out encryption processing on the logistics information of the second-hand article through an encryption technology, and uploading the encrypted logistics information to a block chain; verifying and storing the uploaded logistics information through a consensus mechanism of the block chain; generating a unique logistics tracking identifier on the block chain for identifying logistics tracking information of the second-hand article; providing a query interface for a user to query the logistics tracking information of the second-hand article; logistics tracking information is automatically updated and verified through the intelligent contract technology of the block chain; the logistics tracking information of the second-hand articles is visually displayed, so that a safe, transparent and efficient logistics information management scheme can be provided for the second-hand market, and the credibility of second-hand transactions and the healthy development of the market are effectively promoted.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of blockchain technology, and in particular to a commodity logistics tracking method based on blockchain. Background Art

[0002] In the process of second-hand commodity transactions, commodity logistics tracking is a service that uses modern information technology to monitor and manage the entire transportation process of commodities from the source of shipment to the hands of consumers in real time. It involves the comprehensive application of multiple technologies such as barcodes, QR codes, RFID (radio frequency identification) technology, GPS positioning systems, cloud computing and big data analysis. Through these technologies, each key node of each commodity in the logistics chain, such as warehousing, outbound, transshipment, sorting and distribution, will be automatically recorded to generate detailed track information. This information is usually integrated into a visual platform for merchants and consumers to query.

[0003] However, the above method does not have a supervisory function, making logistics information easy to be tampered with, reducing data security. Summary of the invention

[0004] The purpose of the present invention is to provide a commodity logistics tracking method based on blockchain, aiming to provide a safe, transparent and efficient logistics information management solution for the second-hand market, effectively promoting the trust of second-hand transactions and the healthy development of the market.

[0005] To achieve the above-mentioned purpose, the present invention provides a commodity logistics tracking method based on blockchain, including establishing a distributed ledger on the blockchain for recording the logistics information of second-hand goods;

[0006] Encrypt the logistics information of second-hand goods through encryption technology, and upload the encrypted logistics information to the blockchain;

[0007] Verify and store uploaded logistics information through the blockchain consensus mechanism;

[0008] Generate a unique logistics tracking identifier on the blockchain to identify the logistics tracking information of second-hand items;

[0009] Provide a query interface for users to query the logistics tracking information of second-hand items;

[0010] Automatic update and verification of logistics tracking information through blockchain smart contract technology;

[0011] Visualize the logistics tracking information of used items.

[0012] The specific steps of establishing a distributed ledger on the blockchain for recording the logistics information of second-hand goods include:

[0013] Define the logistics information structure of second-hand goods;

[0014] Writing smart contract code that defines how logistics information is recorded, updated, and retrieved;

[0015] Deploy the written smart contract to the blockchain network;

[0016] Set up participating nodes in the blockchain network;

[0017] Use public key infrastructure to generate key pairs for participants in the network.

[0018] The logistics information structure includes item ID, seller information, buyer information, logistics company, transportation status and timestamp.

[0019] The specific steps of encrypting the logistics information of the second-hand goods by encryption technology and uploading the encrypted logistics information to the blockchain include:

[0020] Collect logistics information of second-hand items;

[0021] Format the collected logistics information into a data structure suitable for uploading to the blockchain;

[0022] Encrypt the formatted logistics information using an encryption algorithm;

[0023] The encrypted logistics information is uploaded to the blockchain through the interface between the blockchain network and the smart contract.

[0024] The specific steps of verifying and storing the uploaded logistics information through the consensus mechanism of blockchain include:

[0025] The uploader of logistics information sends the encrypted logistics information to the blockchain network;

[0026] The nodes in the blockchain network receive the uploaded logistics information;

[0027] Each node verifies the received logistics information, and the verified logistics information is packaged into a block;

[0028] According to the consensus mechanism of the blockchain network, nodes begin to compete or collaborate to reach a consensus and then store the corresponding blocks.

[0029] The specific steps of generating a unique logistics tracking identifier on the blockchain for identifying the logistics tracking information of the second-hand item include:

[0030] Integrate the collected logistics information into data packages;

[0031] Use a cryptographic hash function to hash the data packet and generate a unique hash value as a logistics tracking identifier;

[0032] Upload the generated logistics tracking identifier to the blockchain;

[0033] The logistics tracking identifier is associated with the logistics information of the second-hand items and stored on the blockchain.

[0034] The specific steps of automatically updating and verifying logistics tracking information through blockchain smart contract technology include:

[0035] Each state change in the logistics process is triggered by a logistics node;

[0036] When a status change is triggered, the smart contract automatically executes and updates the logistics tracking information on the blockchain.

[0037] The specific steps of visually displaying the logistics tracking information of the second-hand items include:

[0038] Obtain logistics tracking information of second-hand items from the blockchain;

[0039] Select visualization tools to visualize the logistics tracking information and obtain logistics visualization data;

[0040] Overlay logistics visualization data onto the map to display logistics tracking information.

[0041] The commodity logistics tracking method based on blockchain of the present invention includes establishing a distributed ledger on the blockchain for recording the logistics information of second-hand items; encrypting the logistics information of second-hand items through encryption technology, and uploading the encrypted logistics information to the blockchain; verifying and storing the uploaded logistics information through the consensus mechanism of the blockchain; generating a unique logistics tracking identifier on the blockchain for identifying the logistics tracking information of second-hand items; providing a query interface for users to query the logistics tracking information of second-hand items; automatically updating and verifying the logistics tracking information through the smart contract technology of the blockchain; and visually displaying the logistics tracking information of second-hand items. A special distributed ledger is created on the blockchain platform, and this ledger serves as a centralized repository for all logistics information of second-hand items. Unlike traditional databases, this ledger is jointly maintained by multiple nodes in the network, and each node stores a complete and consistent copy of the data to ensure the data is not tampered with and highly reliable. When each second-hand item enters the logistics process, its related logistics information (such as the place of shipment, the place of receipt, the transportation time, the carrier, etc.) will be processed using advanced encryption technology to ensure the security of sensitive information during transmission. The consensus mechanism of blockchain ensures that newly uploaded logistics information needs to be verified by multiple nodes in the network before it can be officially added to the chain. Then a unique logistics tracking identifier (UTI) is generated on the blockchain for each second-hand item. This identifier is like a digital fingerprint of the item, which can uniquely correspond to and quickly retrieve all logistics records of the item. Users only need to use this identifier to efficiently track the entire chain dynamics of the item from the start to the destination. In order to facilitate user access, the system is designed with a user-friendly query interface. Whether it is a buyer, seller or regulator, just enter the corresponding UTI to instantly obtain the real-time logistics status and historical tracking information of the second-hand item, which greatly improves the accessibility of information and user experience. By deploying blockchain smart contracts, the automatic update and verification of logistics tracking information can be achieved. Smart contracts are a set of preset rules. When specific conditions (such as the arrival of an item at a certain node) are met, corresponding operations will be automatically triggered, such as updating logistics status, sending notifications, etc., without manual intervention, saving resources and improving efficiency. Finally, the system also integrates a visualization tool for logistics tracking information, which converts complex logistics data into intuitive charts or maps. Users can clearly see the transportation path, current location, and estimated arrival time of the items through the web page or mobile application interface, making the logistics tracking process more intuitive and easy to understand. In summary, the blockchain-based commodity logistics tracking method provides a safe, transparent, and efficient logistics information management solution for the second-hand market through the application of a series of advanced technologies, which effectively promotes the trust of second-hand transactions and the healthy development of the market. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0043] Figure 1 This is a flowchart of a commodity logistics tracking method based on blockchain according to the first embodiment of the present invention.

[0044] Figure 2 It is a flowchart of establishing a distributed ledger on a blockchain for recording logistics information of second-hand goods according to the first embodiment of the present invention.

[0045] Figure 3 This is a flowchart of the first embodiment of the present invention, which encrypts the logistics information of second-hand items through encryption technology and uploads the encrypted logistics information to the blockchain.

[0046] Figure 4 This is a flowchart of verifying and storing uploaded logistics information through the consensus mechanism of blockchain in the first embodiment of the present invention.

[0047] Figure 5 This is a flowchart of generating a unique logistics tracking identifier on a blockchain for identifying logistics tracking information of a second-hand item according to the first embodiment of the present invention.

[0048] Figure 6 This is a flowchart of the first embodiment of the present invention for automatically updating and verifying logistics tracking information through the smart contract technology of blockchain.

[0049] Figure 7 It is a flowchart of visually displaying logistics tracking information of second-hand items according to the first embodiment of the present invention. DETAILED DESCRIPTION

[0050] Embodiments of the present invention are described in detail below, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present invention, and should not be construed as limiting the present invention.

[0051] First embodiment

[0052] See also Figure 1 to Figure 7 The present invention provides a commodity logistics tracking method based on blockchain, comprising:

[0053] S101 builds a distributed ledger on the blockchain to record the logistics information of second-hand items;

[0054] The specific steps include:

[0055] S201 defines the logistics information structure of second-hand goods;

[0056] In order to ensure the effective storage and retrieval of information, the data structure of logistics information needs to be designed. This includes but is not limited to:

[0057] Item ID: A Universally Unique Identifier (UUID) that ensures each item can be unambiguously identified.

[0058] Seller information: Contains the seller’s encrypted address, possible reputation score, or summary of historical transaction records.

[0059] Buyer information: Similarly, record the buyer’s encrypted address and necessary verification information.

[0060] Shipping Company: The name or logo of the company responsible for shipping the item, and possibly a tracking number.

[0061] Transportation status: a series of predefined status codes, such as "pending shipment", "in transit", "arrived", etc., reflecting the real-time logistics dynamics of the items.

[0062] Timestamp: A record of the time each logistics update takes place, using the timestamp feature of the blockchain to ensure the order and timeliness of events.

[0063] S202 writes a smart contract code, where the smart contract code is used to define the way logistics information is recorded, updated, and retrieved;

[0064] Smart contracts are computer programs that automatically execute, control or document legal events and actions. In this scenario, the functions of smart contracts include:

[0065] Record logistics information: When the new logistics status is updated, it is automatically recorded to the blockchain by calling the smart contract method.

[0066] Update logistics status: Allows authorized parties (such as logistics companies) to update the transportation status of items after completing specific logistics links.

[0067] Retrieve logistics records: Provide a public interface that allows any user with the correct query parameters to query the logistics history of a specific item.

[0068] S203 deploys the written smart contract to the blockchain network;

[0069] The smart contract code is compiled into bytecode using the compiler provided by the blockchain platform, and then deployed to the pre-selected blockchain network. This process consumes certain network resources (such as gas fees in the Ethereum network). After deployment, the smart contract will reside permanently on the blockchain as a decentralized application, ready to respond to transaction requests at any time.

[0070] S204 sets a participating node in the blockchain network;

[0071] In order to ensure the decentralization of the network and the robustness of the system, multiple participating nodes need to be invited and set up. These nodes can be servers of logistics companies, third-party verification agencies, or even buyers and sellers themselves, who will jointly maintain the consistency and integrity of the ledger. Consensus mechanisms (such as Proof of Work or Proof of Stake) are used between nodes to ensure the consistency of transaction history.

[0072] S205 generates key pairs for participants in the network using a public key infrastructure.

[0073] Security is the core of blockchain applications. The PKI system is used to generate a pair of asymmetric keys for each entity involved in the transaction (including individuals, organizations, and smart devices): the public key is used to encrypt and verify information, and the private key is kept confidential for decryption and signing. This not only protects the privacy of transaction data, but also ensures the legitimacy and non-repudiation of transactions. In this way, sensitive information can be properly protected even in a public blockchain environment, while maintaining the transparency and security of transactions.

[0074] S102 encrypts the logistics information of the second-hand goods through encryption technology, and uploads the encrypted logistics information to the blockchain;

[0075] The specific steps include:

[0076] S301 collects logistics information of second-hand items;

[0077] This step involves obtaining dynamic information about the entire logistics chain of used items from the place of shipment to the place of receipt from the logistics service provider or platform. This includes but is not limited to the shipment time of the items, key nodes during transportation (such as transfer stations), estimated arrival time, actual arrival time, and any abnormal situation records during the journey (such as delays, damage reports, etc.). This information is systematically collected through API interfaces, scanning QR codes, or manual entry.

[0078] S302 formats the collected logistics information into a data structure suitable for uploading to the blockchain;

[0079] The collected information needs to be standardized to adapt to the requirements of blockchain data storage. This step will convert the disorganized raw logistics data into a unified and structured data format, such as JSON or XML, to ensure that the data can be read and parsed efficiently and accurately on the blockchain.

[0080] S303 encrypts the formatted logistics information using an encryption algorithm;

[0081] Security is one of the core advantages of blockchain applications. In this link, advanced encryption algorithms (such as RSA, AES, etc.) are used to encrypt the formatted logistics information. This not only protects sensitive information from unauthorized access or tampering, but also ensures that even if the data is intercepted during transmission, its content cannot be interpreted. The encryption process generates a ciphertext, which is then used for on-chain operations, and the decryption key is held by the legitimate recipient of the information.

[0082] S304 uploads the encrypted logistics information to the blockchain through the interface between the blockchain network and the smart contract.

[0083] The encrypted logistics information interacts with the smart contract interface of the blockchain network. Smart contracts are computer programs that automatically execute, control and document legal events and actions. They run on the blockchain to ensure that transaction rules are strictly enforced. When the information is uploaded, a new block is formed, which contains the encrypted logistics information, timestamp and hash value of the previous block, thereby ensuring the immutability and continuity of the data. Once the information is added to the blockchain, all participants can verify the authenticity of the logistics information through a public blockchain browser, but only the recipient with the correct decryption key can view the specific logistics details.

[0084] S103 verifies and stores uploaded logistics information through the consensus mechanism of blockchain;

[0085] The specific steps include:

[0086] S401 The uploader of the logistics information sends the encrypted logistics information to the blockchain network;

[0087] In this initial stage, the uploader of logistics information, usually a platform or service provider that processes and encrypts logistics information, uses a secure communication protocol to broadcast the previously encrypted logistics information to the entire blockchain network. This action is equivalent to announcing to all participants in the network that there is new logistics information to be verified and recorded, preparing for subsequent distributed verification.

[0088] S402 A node in the blockchain network receives the uploaded logistics information;

[0089] The blockchain network consists of many nodes scattered around the world. Each node is an independent computing device responsible for maintaining and verifying transaction records on the blockchain. When the encrypted logistics information is broadcast to the network, each node will receive the information immediately. This process ensures that the information can be widely disseminated in a short period of time, laying the foundation for the subsequent consensus mechanism.

[0090] S403: Each node verifies the received logistics information, and the verified logistics information is packaged into a block;

[0091] After receiving the information, the node will not store it immediately, but will first conduct strict verification. The verification content includes but is not limited to checking the integrity of the logistics information, confirming that the information has not been tampered with, verifying the validity of the encrypted signature, and confirming that the information format meets the preset standards of the blockchain network. Only when the logistics information passes all the necessary verification conditions will it be considered valid and prepared by the node to be packaged into a new block. This mechanism effectively prevents the incorporation of erroneous or malicious information and ensures the quality of the on-chain data.

[0092] S404 According to the consensus mechanism of the blockchain network, the nodes begin to compete or collaborate to reach a consensus, and then store the corresponding blocks.

[0093] The consensus mechanism of the blockchain network is one of its core features, and common ones include Proof of Work (PoW) and Proof of Stake (PoS). At this stage, each node starts to compete (such as mining in PoW) or cooperate (such as voting for verification nodes in PoS) according to the consensus algorithm adopted to determine which node has the right to package the verified logistics information into blocks and add them to the blockchain. Once a consensus is reached, the winning node links the new block to the previous block to complete the storage process. The addition of this new block not only records the logistics information, but also indicates that the information has been collectively recognized by the network and has become an unchangeable historical record. This ensures the accuracy and security of the logistics information of second-hand items, and also uses the decentralized characteristics of the blockchain to achieve transparent sharing of information, greatly enhancing the traceability and trust of the supply chain.

[0094] S104 generates a unique logistics tracking identifier on the blockchain to identify logistics tracking information of the second-hand item;

[0095] The specific steps include:

[0096] S501 integrates the collected logistics information into a data package;

[0097] First, all relevant logistics information of second-hand items, including but not limited to item ID, encrypted addresses of sellers and buyers, logistics company details, initial status and estimated transportation timeline, are summarized and integrated into a structured data package. This data package is the basis for the subsequent generation of tracking identifiers, and the integrity and accuracy of the information must be ensured.

[0098] S502 uses a cryptographic hash function to hash the data packet and generates a unique hash value as a logistics tracking identifier;

[0099] Next, a secure cryptographic hash algorithm, such as SHA-256 or a more advanced algorithm, is used to hash the combined data packets. The characteristics of the hash function determine that even a small change in the data packet will result in a huge difference in the output hash value, thus ensuring that the generated hash value is unique and highly sensitive to the original data. This hash value becomes the unique identifier for the logistics tracking of used items, referred to as the "logistics tracking code".

[0100] S503 uploads the generated logistics tracking identifier to the blockchain;

[0101] Through the transaction mechanism of blockchain, this logistics tracking identifier is uploaded to the blockchain network as a transaction data. This operation uses the distributed ledger characteristics of blockchain to ensure that once the identifier is on the chain, it cannot be modified or deleted, providing an unalterable storage environment for logistics tracking information.

[0102] S504 associates the logistics tracking identifier with the logistics information of the second-hand item and stores them on the blockchain.

[0103] Finally, the association between the logistics tracking identifier and the actual logistics information is established, and they are stored as a whole in a smart contract or a specific data structure on the blockchain. This means that when the logistics tracking code is used for query, the system can quickly locate and return a complete record of all state changes of the second-hand item from the beginning to the current state. This associated storage method, combined with the transparency and security of the blockchain, greatly enhances the traceability and credibility of logistics information, and provides reliable information basis for buyers, sellers and regulators.

[0104] S105 provides a query interface for users to query the logistics tracking information of second-hand items;

[0105] In order to facilitate users to obtain the logistics dynamics of the second-hand items they are interested in efficiently and in real time, the system designed and implemented a highly available and user-friendly query interface. This interface is a key component for the second-hand trading platform to interact with users, ensuring the seamless integration of the logistics tracking experience.

[0106] S106 automatically updates and verifies logistics tracking information through blockchain’s smart contract technology;

[0107] The specific steps include:

[0108] S601 Each status change in the logistics process is triggered by a logistics node;

[0109] In the logistics process, changes in every key link, such as the change of the status of goods leaving the warehouse, in transit, arriving at the transfer station, customs clearance, delivery, and receipt, will be monitored in real time. These logistics nodes may be warehouses, sorting centers, transport vehicles, couriers' handheld terminals, etc., with built-in sensors or software systems connected to blockchain smart contracts. When the status of the goods changes, these nodes will automatically identify the changes and trigger corresponding event notifications.

[0110] S602 When the status change is triggered, the smart contract automatically executes to update the logistics tracking information on the blockchain.

[0111] Once the event of logistics status change is triggered, the smart contract preset on the blockchain will automatically respond. Smart contracts are self-contained programs that can automatically execute contract terms without human intervention based on preset rules and conditions. In this scenario, the smart contract receives status change information from the logistics node and performs the following operations:

[0112] Verify information: First, the smart contract verifies the authenticity and integrity of the received state change information to ensure that the information has not been tampered with and the source is reliable.

[0113] Update blockchain: After verification, the smart contract will automatically update the logistics tracking information on the blockchain and add the new status record as a new transaction to the next block of the blockchain. This process includes encrypting and packaging transaction data and obtaining network confirmation through a consensus mechanism.

[0114] Trigger notification: As needed, smart contracts can also automatically send real-time notifications to relevant parties (such as buyers, sellers, and logistics companies) to inform them of the latest progress in logistics status, thereby improving user experience and communication efficiency.

[0115] S107 visualizes the logistics tracking information of the second-hand items.

[0116] The specific steps include:

[0117] S701 obtains logistics tracking information of second-hand items from the blockchain;

[0118] S702: Select a visualization tool to visualize the logistics tracking information to obtain logistics visualization data;

[0119] After obtaining the original logistics tracking data, the system enters the data preprocessing and visualization design stage. This stage involves the following key operations:

[0120] Remove invalid or redundant information, ensure the consistency and accuracy of the data, and convert it into a format suitable for visualization tools. Then, based on the user's focus, select key logistics node information, such as the starting point, important transfer stations along the way, destination, etc., as well as the corresponding event timestamps. Select professional data visualization tools or libraries such as D3.js, ECharts, Mapbox, etc. based on needs. These tools are good at processing geospatial data and time series data, and are suitable for displaying logistics routes and time processes.

[0121] S703 overlays the logistics visualization data onto the map to display the logistics tracking information.

[0122] The last step is to integrate the processed logistics visualization data into the interactive map interface. This includes selecting appropriate online map services (such as Google Maps, Amap, OpenStreetMap, etc.) according to the target user group and usage scenarios, and configuring the map style, zoom level, and center point. Use the path planning function provided by the map API or a custom line layer to draw the actual transportation path of the item on the map based on the logistics tracking data. The path can dynamically display the movement of goods, including real-time location and historical trajectory. Mark the logistics nodes on the map, and provide a floating prompt box for each node to display detailed information. Users can click or hover on the logistics nodes on the map to obtain more detailed logistics status updates, timestamps, and possible notes. In order to enhance the user experience, the system can set a timed refresh mechanism to automatically update the logistics location and display the logistics flow through smooth animation effects, making the tracking process vivid and intuitive.

[0123] What is disclosed above is only a preferred embodiment of the present invention, and it certainly cannot be used to limit the scope of rights of the present invention. Ordinary technicians in this field can understand that all or part of the processes of the above embodiment and equivalent changes made according to the claims of the present invention still fall within the scope of the invention.

Claims

1. Commodity logistics tracking method based on blockchain, It is characterized in that These include: establishing a distributed ledger on the blockchain to record logistics information of second-hand items; Encrypt the logistics information of second-hand goods through encryption technology, and upload the encrypted logistics information to the blockchain; Verify and store uploaded logistics information through the blockchain consensus mechanism; Generate a unique logistics tracking identifier on the blockchain to identify the logistics tracking information of second-hand items; Provide a query interface for users to query the logistics tracking information of second-hand items; Automatic update and verification of logistics tracking information through blockchain smart contract technology; Visualize the logistics tracking information of used items.

2. The commodity logistics tracking method based on blockchain as claimed in claim 1, characterized in that: The specific steps of establishing a distributed ledger on the blockchain for recording the logistics information of second-hand goods include: Define the logistics information structure of second-hand goods; Writing smart contract code that defines how logistics information is recorded, updated, and retrieved; Deploy the written smart contract to the blockchain network; Set up participating nodes in the blockchain network; Use public key infrastructure to generate key pairs for participants in the network.

3. The commodity logistics tracking method based on blockchain as claimed in claim 2, characterized in that: The logistics information structure includes item ID, seller information, buyer information, logistics company, transportation status and timestamp.

4. The commodity logistics tracking method based on blockchain as claimed in claim 3, characterized in that: The specific steps of encrypting the logistics information of the second-hand goods by encryption technology and uploading the encrypted logistics information to the blockchain include: Collect logistics information of second-hand items; Format the collected logistics information into a data structure suitable for uploading to the blockchain; Encrypt the formatted logistics information using an encryption algorithm; The encrypted logistics information is uploaded to the blockchain through the interface between the blockchain network and the smart contract.

5. The commodity logistics tracking method based on blockchain as claimed in claim 4, characterized in that: The specific steps of verifying and storing the uploaded logistics information through the consensus mechanism of the blockchain include: The uploader of logistics information sends the encrypted logistics information to the blockchain network; The nodes in the blockchain network receive the uploaded logistics information; Each node verifies the received logistics information, and the verified logistics information is packaged into a block; According to the consensus mechanism of the blockchain network, nodes begin to compete or collaborate to reach a consensus and then store the corresponding blocks.

6. The commodity logistics tracking method based on blockchain as claimed in claim 5, characterized in that: The specific steps of generating a unique logistics tracking identifier on the blockchain for identifying the logistics tracking information of the second-hand item include: Integrate the collected logistics information into data packages; Use a cryptographic hash function to hash the data packet and generate a unique hash value as a logistics tracking identifier; Upload the generated logistics tracking identifier to the blockchain; The logistics tracking identifier is associated with the logistics information of the second-hand items and stored on the blockchain.

7. The commodity logistics tracking method based on blockchain as claimed in claim 6, characterized in that: The specific steps of automatically updating and verifying logistics tracking information through blockchain smart contract technology include: Each state change in the logistics process is triggered by a logistics node; When a status change is triggered, the smart contract automatically executes and updates the logistics tracking information on the blockchain.

8. The commodity logistics tracking method based on blockchain as claimed in claim 7, characterized in that: The specific steps of visually displaying the logistics tracking information of the second-hand goods include: Obtain logistics tracking information of second-hand items from the blockchain; Select visualization tools to visualize the logistics tracking information and obtain logistics visualization data; Overlay logistics visualization data onto the map to display logistics tracking information.