Batch Commodity Verification via Blockchain Traceability
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Current methods for verifying commodities in batches lack efficiency, as they require individual verification of each commodity, which is time-consuming and prone to errors, especially in large-scale warehousing scenarios.
Innovation Solution
A blockchain-based method and apparatus that utilize traceability identifiers and distributor identifiers to verify commodities in batches by querying and updating states in the blockchain, ensuring that only genuine products from the same production batch are recognized as genuine, thereby streamlining the verification process.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Measurement precision
If individual verification of each commodity is performed, then verification accuracy is maintained, but verification efficiency deteriorates
Solution Approach 1:
The patent merges multiple individual commodity verifications into a single batch verification operation by grouping commodities with the same traceability identifier. The verification device queries the blockchain once for the traceability identifier and receives batch verification results for all commodities in that group, combining multiple verification tasks into one unified operation.
Solution Approach 2:
The patent implements preliminary action by pre-grouping commodities into batches based on their traceability identifiers before verification. Commodities are organized into verification batches in advance, allowing the system to prepare query requests for multiple commodities simultaneously and process them together, rather than verifying them sequentially.
2Productivity
If batch verification is implemented, then verification efficiency is improved, but system complexity increases
Solution Approach 1:
The patent introduces a smart contract as an intermediary layer between the verification device and the blockchain. The smart contract automatically manages batch verification logic, queries the blockchain for traceability identifiers, and returns verification results. This intermediary simplifies the overall system architecture by encapsulating complex batch processing logic in a standardized contract interface.
Solution Approach 2:
The verification device is designed with universal functionality to handle both individual and batch verification operations through a unified interface. The same device can verify single commodities or entire batches by simply adjusting the input parameters, making the system multi-functional without requiring separate verification systems for different modes.
3Loss of time
If traceability identifiers are used for batch verification, then verification time is reduced, but data query complexity increases
Solution Approach 1:
The patent uses traceability identifiers as simplified copies or representations of entire commodity batches. Instead of querying and verifying each commodity's individual data on the blockchain, the system queries the traceability identifier which serves as a reference copy pointing to all commodities in the batch, dramatically reducing query complexity and time.
Data Source
Figure 1
Figure 2
Figure 3~4
AI summary
Embodiments of this specification provide a method and apparatus for verifying commodities in batches based on a blockchain, and an electronic device. The method includes: receiving a warehousing verification transaction sent by a warehousing party, the warehousing verification transaction including a commodity identifier acquired from any to-be-warehoused commodity and a contract address of an invoked smart contract; invoking, in response to the warehousing verification transaction, check logic declared in the smart contract corresponding to the contract address, to check the commodity identifier; invoking, in a case that the check succeeds, warehousing verification logic declared in the smart contract corresponding to the contract address, to query for a traceability identifier and a distributor identifier that are associated with the commodity identifier in the blockchain; determining target commodity identifiers that are present in both commodity identifiers associated with the distributor identifier and commodity identifiers associated with the traceability identifier; and updating states corresponding to the target commodity identifiers recorded in the blockchain to warehousing verification success in batches.