A Verification Method and System for Supply Chain Data Based on Blockchain
Identity authentication of IoT devices through blockchain technology and using smart contracts to verify the authenticity of supply chain data, solving the problem of off-chain data verification in the supply chain and improving the security and reliability of data.
Patent Information
- Application Number
- CN202310265703.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-20
- Publication Date
- 2025-06-27
- Estimated Expiration
- 2043-03-20
AI Technical Summary
The existing technology cannot effectively verify the authenticity of off-chain data in the supply chain, making it difficult to achieve reliable data basis in areas such as supply chain financial financing, and data lacks security during transmission and storage.
Through blockchain technology, the root certificate is issued to IoT devices, map their identity information, and fragmented mapping relationships are stored in multiple full nodes to realize device identity authentication. Use smart contracts to verify the data collected by IoT devices and the data in the supply chain management system to ensure the authenticity and consistency of the data.
It improves the authenticity and security of supply chain data, realizes the reliability of data in transmission and storage, and supports trusted data basis in the fields of supply chain finance and other fields.
Smart Images

Figure CN118677616B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of data security, and particularly to a method and system for verifying supply chain data based on blockchain. Background Art
[0002] At present, blockchain technology has experienced more than a decade of development. Its ledger consistency, joint maintenance, and consensus algorithm ensure the authenticity of data on the chain, but the authenticity of off-chain data has not been solved yet. At the same time, combined with the requirements of supply chain management, blockchain cannot achieve rapid and effective verification of data from different sources on the chain, and cannot promote the development of a trusted supply chain management ecosystem.
[0003] From the perspective of supply chain business, the supply chain has strong requirements for the timeliness, authenticity, and accuracy of data because seamless data links need to be established among all production, distribution, procurement, and after-sales services. Although a full-chain business data closed-loop has been established, due to the lack of self-certification ability of data, it cannot be provided to financial institutions as a reliable basis in supply chain finance financing, making it even more difficult for small and medium-sized enterprises to finance. How to achieve the security of data from the source, transmission, and storage has become the key, and how to achieve multi-dimensional data authenticity verification has become an urgent problem to be solved. Summary of the Invention
[0004] The purpose of the present invention is to provide a method and system for verifying supply chain data based on blockchain, which improves the authenticity of supply chain data.
[0005] To achieve the above purpose, the present invention provides the following solutions:
[0006] A method for verifying supply chain data based on blockchain includes:
[0007] The blockchain issues a root certificate to the Internet of Things device and maps the identity information of the Internet of Things device to the root certificate of the Internet of Things device;
[0008] The blockchain fragmentarily stores the mapping relationship between the identity information of the Internet of Things device and the root certificate of the Internet of Things device into a plurality of preset full-scale nodes;
[0009] The Internet of Things device sends the identity information of the Internet of Things device to the blockchain;
[0010] The blockchain extracts fragmented information from a plurality of preset full-scale nodes according to the received identity information of the Internet of Things device, and combines the plurality of fragmented information according to a set rule for identity authentication;
[0011] When the Internet of Things device passes the identity authentication, the blockchain collects data from the Internet of Things device, denoted as the first data, and obtains data corresponding to the first data from the supply chain management system, denoted as the second data;
[0012] The blockchain uses smart contracts to verify the first data and the second data and outputs a verification result; the smart contract is used to verify whether the first data and the second data are consistent according to a set verification model; the verification result is that the data is consistent or the data is inconsistent.
[0013] Optionally, for the goods transportation scenario, the Internet of Things devices include a carrier device, a receiver device, and a vehicle; the carrier device is used to identify the shipper information, and the receiver device is used to identify the vehicle information;
[0014] The first data includes shipper information, carrier information, vehicle information, and consignee information; the second data includes shipper information, carrier information, vehicle information, and consignee information.
[0015] Optionally, the set verification model is used to verify whether the shipper information, carrier information, vehicle information, and consignee information in the first data correspond and are consistent with the shipper information, carrier information, vehicle information, and consignee information in the second data.
[0016] Optionally, the identity information of the Internet of Things device is the Internet of Things device ID.
[0017] Optionally, the number of the preset full nodes is odd.
[0018] The present invention discloses a verification system for supply chain data based on a blockchain, including: an Internet of Things device, a blockchain, and a supply chain management system; the Internet of Things device and the supply chain management system are both connected to the blockchain;
[0019] The blockchain is used to issue a root certificate to the Internet of Things device and map the identity information of the Internet of Things device to the root certificate of the Internet of Things device;
[0020] The blockchain is further used to fragmentarily store the mapping relationship between the identity information of the Internet of Things device and the root certificate of the Internet of Things device into a plurality of preset full nodes;
[0021] The Internet of Things device is used to send the identity information of the Internet of Things device to the blockchain;
[0022] The blockchain is further used to extract fragmented information from a plurality of preset full nodes according to the received identity information of the Internet of Things device, and combine the plurality of fragmented information according to a set rule for identity authentication;
[0023] After the Internet of Things device passes the identity authentication, the blockchain is further used to collect data from the Internet of Things device, denoted as the first data, and obtain data corresponding to the first data from the supply chain management system, denoted as the second data;
[0024] The blockchain is also used to verify the first data and the second data by using smart contracts and output a verification result; the smart contract is used to verify whether the first data and the second data are consistent according to a set verification model; the verification result is that the data is consistent or the data is inconsistent.
[0025] Optionally, for the goods transportation scenario, the Internet of Things devices include a carrier device, a receiver device, and a vehicle; the carrier device is used to identify the shipper information, and the receiver device is used to identify the vehicle information;
[0026] The first data includes shipper information, carrier information, vehicle information, and consignee information; the second data includes shipper information, carrier information, vehicle information, and consignee information.
[0027] Optionally, the set verification model is used to verify whether the shipper information, carrier information, vehicle information, and consignee information in the first data correspond and are consistent with the shipper information, carrier information, vehicle information, and consignee information in the second data.
[0028] According to the specific embodiments provided by the present invention, the following technical effects of the present invention are disclosed:
[0029] The present invention verifies the legality of the identity of the Internet of Things device by extracting the fragmented root certificate, and verifies the data collected by the Internet of Things device and the data stored in the supply chain management system through a smart contract, so as to verify the authenticity of the data collected by the Internet of Things device and the data stored in the supply chain management system. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings required for use in the embodiments. Obviously, the drawings in the following description are only some embodiments of the present invention. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.
[0031] Figure 1 It is a schematic flowchart of a method for verifying supply chain data based on blockchain provided by an embodiment of the present invention;
[0032] Figure 2 It is a schematic structural diagram of a system for verifying supply chain data based on blockchain provided by an embodiment of the present invention. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0033] Next, the technical solutions in the embodiments of the present invention will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all the embodiments. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present invention without creative efforts shall fall within the protection scope of the present invention.
[0034] The object of the present invention is to provide a method and system for verifying supply chain data based on blockchain, which improves the authenticity of supply chain data.
[0035] In order to make the above objects, features, and advantages of the present invention more obvious and understandable, the present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments.
[0036] Embodiment 1
[0037] This embodiment provides a method for verifying supply chain data based on blockchain, as Figure 1 shown, the method includes:
[0038] Step 101: The blockchain issues a root certificate to the Internet of Things device, and maps the identity information of the Internet of Things device to the root certificate of the Internet of Things device.
[0039] Step 102: The blockchain fragmentarily stores the mapping relationship between the identity information of the Internet of Things device and the root certificate of the Internet of Things device into a plurality of preset full - amount nodes.
[0040] Step 103: The Internet of Things device sends the identity information of the Internet of Things device to the blockchain.
[0041] Step 104: The blockchain extracts fragmented information from a plurality of preset full - amount nodes according to the received identity information of the Internet of Things device, and combines the plurality of fragmented information according to a set rule for identity authentication.
[0042] Specifically, step 104 includes: combining a plurality of fragmented information according to a set rule to obtain the mapping relationship between the identity information of the Internet of Things device and the root certificate of the Internet of Things device. If the combined identity information of the Internet of Things device is consistent with the identity information of the Internet of Things device sent by the Internet of Things device to the blockchain, the identity of the Internet of Things device is legal and the following steps are continued; otherwise, the identity of the Internet of Things device is illegal and the subsequent steps are not executed.
[0043] The identity information of the Internet of Things device is the Internet of Things device ID.
[0044] The number of the preset full - amount nodes is odd. The number of the preset full - amount nodes is 3 or 5.
[0045] In this embodiment, fragmented certificate information is extracted from 3 or 5 preset full-scale nodes according to the Internet of Things device ID, and the extracted fragmented certificate information is combined according to a set rule to obtain a combined root certificate.
[0046] Step 105: After the Internet of Things device passes the identity authentication, the blockchain collects data from the Internet of Things device, denoted as the first data, and obtains data corresponding to the first data from the supply chain management system, denoted as the second data.
[0047] Step 106: The blockchain uses a smart contract to verify the first data and the second data, and outputs a verification result; the smart contract is used to verify whether the first data and the second data are consistent according to a set verification model; the verification result is that the data is consistent or the data is inconsistent.
[0048] When the verification result is that the data is consistent, the data collected by the Internet of Things device subsequently is stored in the blockchain and the supply chain management system respectively.
[0049] For the goods transportation scenario, the Internet of Things device includes a shipper device, a carrier device, a receiver device, and a vehicle; the carrier device is used to identify shipper information, and the receiver device is used to identify vehicle information.
[0050] The first data includes shipper information, carrier information, vehicle information, and consignee information; the second data includes shipper information, carrier information, vehicle information, and consignee information.
[0051] The set verification model is used to verify whether the shipper information, carrier information, vehicle information, and consignee information in the first data correspond and are consistent with the shipper information, carrier information, vehicle information, and consignee information in the second data.
[0052] For the goods transportation scenario, a verification method for supply chain data based on blockchain includes the following steps.
[0053] (1) Goods carrier identity identification process:
[0054] The carrier device ID is sent to the blockchain for identity verification. After the verification is legal, the carrier holds the carrier device to scan the code, takes orders through scanning, and obtains shipper information through scanning. The shipper information includes a waybill code, and the shipper information is sent to the blockchain.
[0055] The blockchain verifies the authenticity of the shipper information and the carrier information according to the shipper information.
[0056] (2) Means of transportation identification process:
[0057] The shipper's device ID is sent to the blockchain for identity verification. After successful verification, the shipper scans the code with the shipper's device to obtain the carrier's vehicle information, which includes the vehicle code, fuel quantity information, and location information.
[0058] The blockchain verifies the authenticity of the vehicle information.
[0059] (3) Goods acceptance identification process:
[0060] The receiver's device ID is sent to the blockchain for identity verification. After successful verification, the receiver scans the code with the receiver's device to obtain the carrier's vehicle information and the shipper's information.
[0061] The blockchain verifies the authenticity of the combined information of the vehicle information and the shipper's information (waybill code + vehicle code = combined code).
[0062] This embodiment realizes the one-to-one correspondence of shipper-carrier-vehicle-consignee information, preventing the mismatch between people and vehicles and preventing disputes over lost goods receipts.
[0063] When auditing supply chain data, a verification method for supply chain data based on blockchain according to the present invention is applicable to the verification of the authenticity of supply chain data.
[0064] The present invention integrates blockchain, the Internet of Things, and a supply chain management system to form a cross-verification architecture. The cross-verification architecture of the present invention adopts microservices and modular design (providing a management mechanism and operating environment covering service registration, discovery, communication, and invocation, supporting the development and deployment of "loosely coupled" applications integrated based on microservice units), and has strong scalability and redundancy. First, taking blockchain as the data base, it is seamlessly integrated with the Internet of Things and supply chain management through full nodes and node authentication. The full nodes are used for transactions, regularly generate distributed ledgers and send them to other nodes, vote on the transaction information in each received ledger, package the transaction information that meets the preset voting conditions as consensus result information, send it to other nodes, and stop voting and store the information after receiving the information. Secondly, the blockchain node authentication method is used to authenticate the Internet of Things and the supply chain management system to realize the locking of device-data identities. Finally, using smart contracts, the authenticity verification of multiple parties of data is carried out for specific data or time periods, and a verification warning mechanism is provided to ensure the authenticity and credibility of data among multiple parties.
[0065] The present invention has completed the acquisition of large-scale, deep-level, and heterogeneous data through various technical means such as Internet of Things device information acquisition and data warehouse technology (ETL) data acquisition, and cooperates with protocol parsing technology and edge computing technology. Relying on protocol conversion technology, it realizes the normalization and edge integration of multi-source heterogeneous data, realizes the aggregation and processing of underlying data, and realizes the integration of data into the platform.
[0066] The encryption algorithm of SM2, SM4, and SM3 is used to encrypt the verification data. Through distributed book storage technology / blockchain technology, the structured and unstructured data of verification is stored to ensure the security of data storage. Based on verification rules, this invention obtains and conducts compliance review on trustworthy production and transaction data in the form of a software program of smart contract, providing an effective data means for supply chain data management and monitoring.
[0067] A verification method for supply chain data based on blockchain in this invention adopts identity verification and data verification to solve the problem of poor security and reliability of database storage, making the data true and credible. At the same time, combined with smart contract, the verification process can be completed within seconds, and the rule customization can adapt to the data authenticity verification in more supply chain scenarios.
[0068] Embodiment 2
[0069] This embodiment provides a verification system for supply chain data based on blockchain. As Figure 2 shown, the system includes: Internet of Things devices, blockchain, and supply chain management system; both the Internet of Things devices and the supply chain management system are connected to the blockchain.
[0070] The blockchain is used to issue root certificates to the Internet of Things devices and map the identity information of the Internet of Things devices to the root certificates of the Internet of Things devices.
[0071] The blockchain is also used to fragmentarily store the mapping relationship between the identity information of the Internet of Things devices and the root certificates of the Internet of Things devices into multiple preset full - volume nodes.
[0072] The Internet of Things devices are used to send the identity information of the Internet of Things devices to the blockchain.
[0073] The blockchain is also used to extract fragmented information from multiple preset full - volume nodes according to the received identity information of the Internet of Things devices, and combine multiple fragmented information according to set rules for identity authentication.
[0074] After the Internet of Things devices pass the identity authentication, the blockchain is also used to collect data from the Internet of Things devices, recorded as the first data, and obtain the data corresponding to the first data from the supply chain management system, recorded as the second data.
[0075] The blockchain is also used to verify the first data and the second data by using a smart contract and output a verification result; the smart contract is used to verify whether the first data and the second data are consistent according to a set verification model; the verification result is that the data is consistent or the data is inconsistent.
[0076] For the goods transportation scenario, the Internet of Things devices include a carrier device, a recipient device, and a vehicle; the carrier device is used to identify the shipper information, and the recipient device is used to identify the vehicle information;
[0077] The first data includes shipper information, carrier information, vehicle information, and consignee information; the second data includes shipper information, carrier information, vehicle information, and consignee information.
[0078] The set verification model is used to verify whether the shipper information, carrier information, vehicle information, and consignee information in the first data correspond exactly to the shipper information, carrier information, vehicle information, and consignee information in the second data.
[0079] The various embodiments in this specification are described in a progressive manner. Each embodiment focuses on the differences from other embodiments. The same or similar parts among the various embodiments can be referred to each other. For the system disclosed in the embodiments, since it corresponds to the method disclosed in the embodiments, the description is relatively simple. For the relevant parts, refer to the description in the method section.
[0080] Specific examples are used in this article to elaborate on the principles and implementation manners of the present invention. The descriptions of the above embodiments are only used to help understand the method of the present invention and its core idea; at the same time, for those of ordinary skill in the art, based on the idea of the present invention, there will be changes in the specific implementation manners and application scopes. In summary, the content of this specification should not be construed as a limitation on the present invention.
Claims
1. A verification method for supply chain data based on blockchain, characterized in that, including: The blockchain issues a root certificate to the IoT device and maps the identity information of the IoT device to the root certificate of the IoT device; The blockchain fragmentarily stores the mapping relationship between the identity information of the IoT device and the root certificate of the IoT device in multiple preset full nodes; The IoT device sends the identity information of the IoT device to the blockchain; The blockchain extracts fragmented information from multiple preset full nodes according to the received identity information of the IoT device, and combines multiple fragmented information according to the set rules for identity authentication; When the IoT device passes the identity authentication, the blockchain collects data from the IoT device, denoted as the first data, and obtains data corresponding to the first data from the supply chain management system, denoted as the second data; The blockchain uses a smart contract to verify the first data and the second data, and outputs a verification result; The smart contract is used to verify whether the first data and the second data are consistent according to the set verification model; the verification result is that the data is consistent or the data is inconsistent.
2. The verification method of supply chain data based on blockchain according to claim 1, wherein For the goods transportation scenario, the IoT device includes a carrier device, a receiver device, and a vehicle; the carrier device is used to identify the shipper information, and the receiver device is used to identify the vehicle information; The first data includes shipper information, carrier information, vehicle information, and consignee information; the second data includes shipper information, carrier information, vehicle information, and consignee information.
3. The verification method of supply chain data based on blockchain according to claim 2, characterized in that, The set verification model is used to verify whether the shipper information, carrier information, vehicle information, and consignee information in the first data correspond and are consistent with the shipper information, carrier information, vehicle information, and consignee information in the second data.
4. The verification method for supply chain data based on blockchain according to claim 1, wherein The identity information of the IoT device is the IoT device ID.
5. The verification method of supply chain data based on blockchain according to claim 1, characterized in that The number of the preset full nodes is odd.
6. A verification system for supply chain data based on blockchain, characterized in that including: IoT device, blockchain, and supply chain management system; Both the IoT device and the supply chain management system are connected to the blockchain; The blockchain is used to issue a root certificate to the IoT device and map the identity information of the IoT device to the root certificate of the IoT device; The blockchain is also used to fragmentarily store the mapping relationship between the identity information of the IoT device and the root certificate of the IoT device in multiple preset full nodes; The IoT device is used to send the identity information of the IoT device to the blockchain; The blockchain is also used to extract fragmented information from multiple preset full nodes according to the received identity information of the IoT device, and combine multiple fragmented information according to the set rules for identity authentication; When the IoT device passes the identity authentication, the blockchain is also used to collect data from the IoT device, denoted as the first data, and obtain data corresponding to the first data from the supply chain management system, denoted as the second data; The blockchain is also used to use a smart contract to verify the first data and the second data, and output a verification result; The smart contract is used to verify whether the first data and the second data are consistent according to the set verification model; the verification result is that the data is consistent or the data is inconsistent.
7. The verification system for supply chain data based on blockchain according to claim 6, wherein, For the goods transportation scenario, the Internet of Things devices include the carrier device, the recipient device, and the vehicle; the carrier device is used to identify the shipper information, and the recipient device is used to identify the vehicle information; The first data includes shipper information, carrier information, vehicle information, and consignee information; the second data includes shipper information, carrier information, vehicle information, and consignee information.
8. The verification system for supply chain data based on blockchain according to claim 7, wherein The set verification model is used to verify whether the shipper information, carrier information, vehicle information, and consignee information in the first data correspond and match the shipper information, carrier information, vehicle information, and consignee information in the second data.
Citation Information
Patent Citations
Internet of Things equipment identity authentication method and authentication system based on blockchain
CN110995448A
Communication method and device based on block chain
CN111787020A