A product traceability authentication method and system based on alliance chain
Through the traceability authentication method based on alliance chain, the traceability body and blockchain technology are used to solve the problem of product traceability, and the efficient and safe certification of product traceability information is achieved, ensuring the authenticity of the product and the reliability of market supervision.
Patent Information
- Application Number
- CN202210204662.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-03
- Publication Date
- 2025-01-14
- Estimated Expiration
- 2042-03-03
AI Technical Summary
It is difficult to query product traceability, consumers find it difficult to determine the authentic product, and market supervision is difficult to ensure. Especially when global commodity transaction volume increases, an efficient and safe traceability authentication method is needed.
Using the product traceability authentication method based on alliance chain, abstractly describes the traceability information of the entire process of product production, transaction and circulation through the concept of traceability, utilizes the decentralized and immutable characteristics of blockchain technology, combining the elliptic curve encryption algorithm and FastText Model to realize the separation and verification of platform and consumer authentication.
It realizes the accuracy and efficiency of the certification process, ensures the safety and credibility of platform and consumer certification, and provides a more reference-based final certification result.
Smart Images

Figure CN114584308B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of blockchain, and more particularly to a product traceability authentication method and system based on an alliance chain. Background Art
[0002] With the development of social economy, the commodity market is becoming more and more prosperous. Whether it is offline supermarkets or online stores, the number and variety of commodities sold are increasing, and the number of corresponding merchants and suppliers is also increasing. This will cause problems such as difficulty in checking the source of commodities, difficulty for consumers to determine whether the commodities are genuine, and difficulty for supervisory departments to ensure market stability. Similarly, the current development trend of global economic integration shows that as the global commodity trading volume increases, cross-border shopping volume is also increasing year by year. In order to ensure the authenticity of products and eliminate counterfeits, it is necessary to conduct traceability certification of commodities, provide consumers with information on the authenticity of commodities, and at the same time ensure the supervision of market supervision departments. Summary of the invention
[0003] In response to the above problems, the present invention provides a product traceability authentication method and system based on alliance chain. By introducing the concept of traceability body, an abstract description of the traceability information of the entire process of product production, transaction and circulation is provided, so as to separate the platform authentication process from the real data. By utilizing the decentralized and tamper-proof characteristics of blockchain technology, the authentication process can be made accurate and efficient, and the security and reliability of platform authentication and consumer authentication can be guaranteed.
[0004] To achieve the above purpose, the present invention provides a product traceability authentication method based on alliance chain, comprising:
[0005] Store the encrypted traceability information and consumer review information of the entire product process, and save the hash of the encrypted traceability information and the hash of the consumer review information to the alliance chain;
[0006] Query the traceability body according to the unique identification ID of the product to be authenticated, and call the platform authentication operation and the consumer authentication operation in the traceability body in parallel;
[0007] The platform authentication operation obtains each attribute value in the traceability body, and obtains the hash of the encrypted traceability information stored on the alliance chain according to the unique identification ID, and then obtains the encrypted traceability information of the entire process of the product to be authenticated, calculates the hash value of the encrypted traceability information of each process respectively and compares it with the corresponding attribute value in the traceability body to obtain the platform authentication result;
[0008] The consumer authentication operation obtains the hash of the consumer review information of similar products of the product to be authenticated stored on the alliance chain according to the unique identification ID, and then obtains the consumer review information of similar products to obtain the consumer authentication result;
[0009] The final authentication result of the product to be authenticated is obtained by combining the authentication result of the platform and the authentication result of the consumer.
[0010] As a further improvement of the present invention, the encrypted traceability information of the entire product process is stored, including:
[0011] The product traceability information generated by the product production, transaction, and circulation process is encrypted using the elliptic curve encryption algorithm to obtain encrypted traceability information of the entire product process;
[0012] The encrypted traceability information of the entire product process is stored in the Interstellar File System.
[0013] As a further improvement of the present invention, the traceability body includes attributes, methods and operations;
[0014] The attributes include product unique identification ID, product production process attributes, product transaction process attributes, and product circulation process attributes;
[0015] The method includes a traceability body initialization method and a traceability body attribute query method;
[0016] The operations include platform authentication operations and consumer authentication operations.
[0017] As a further improvement of the present invention, the hash value of the encrypted traceability information of each process is calculated respectively and compared with the corresponding attribute values in the traceability body to obtain the authentication result of the platform side, including:
[0018] If the hash value of the encrypted traceability information in each process is the same as the attribute value of the corresponding process in the traceability body, the platform authentication is successful and the product to be authenticated is true;
[0019] Otherwise, the platform fails the authentication and the product to be authenticated may be genuine.
[0020] As a further improvement of the present invention, obtaining the consumer review information of similar products and obtaining the consumer authentication result includes:
[0021] The consumer review information is input into the trained FastText model to obtain the proportion of non-negative reviews to the total reviews, and then the consumer authentication result is obtained.
[0022] As a further improvement of the present invention, the step of combining the authentication result of the platform and the authentication result of the consumer to obtain the final authentication result of the product to be authenticated includes:
[0023] If the authentication result of the platform is true, then the final authentication result of the product to be authenticated is true, and consumers who have non-negative reviews account for a certain proportion of the total reviews recognize that the product to be authenticated is true;
[0024] If the authentication result of the platform is possibly true, then the final authentication result of the product to be authenticated is possibly true, and consumers whose non-negative reviews account for a certain proportion of the total reviews recognize that the product to be authenticated is possibly true.
[0025] The present invention also provides a product traceability authentication system based on alliance chain, including: a platform authentication center, a blockchain underlying platform and an interplanetary file system, wherein the platform authentication center includes a consumer authentication module and a platform authentication module, and the blockchain underlying platform adopts Fabric alliance chain;
[0026] The platform authentication center is used to:
[0027] Perform product platform authentication operations through the platform authentication module to determine the platform authentication result;
[0028] Perform product consumer authentication operations through the consumer authentication module and determine the consumer authentication result;
[0029] Determine the final authentication result of the product according to the authentication result of the consumer and the authentication result of the platform;
[0030] The underlying blockchain platform is used for:
[0031] Store the hash of the consumer review information and the hash of the encrypted traceability information;
[0032] The Interplanetary File System is used to:
[0033] Stores consumer review information and encrypted traceability information of the entire product process.
[0034] As a further improvement of the present invention, the performing of the product platform authentication operation by the platform authentication module and determining the platform authentication result comprises:
[0035] The platform authentication center calls the chain code in the underlying blockchain platform, queries the corresponding traceability body according to the unique identification ID of the product to be authenticated, and calls the platform authentication operation in the traceability body;
[0036] The platform authentication operation obtains the product production process attribute value, product transaction process attribute value, and product circulation process attribute value in the traceability body, and obtains the hash storage location of the encrypted traceability information stored on the Fabric alliance chain in the interplanetary file system according to the unique identification ID of the product to be authenticated;
[0037] Access the interplanetary file system according to the hash of the encrypted traceability information to obtain the encrypted traceability information of the production, transaction, and circulation processes of the product to be authenticated, and obtain the hash values respectively;
[0038] Compare the product production process attribute value with the encrypted traceability information hash value of the production process of the product to be authenticated, the product transaction process attribute value with the encrypted traceability information hash value of the transaction process of the product to be authenticated, and the product circulation process attribute value with the encrypted traceability information hash value of the circulation process of the product to be authenticated. If they are all the same, the authentication is passed and the product to be authenticated is determined to be true; otherwise, the authentication fails and it is determined that the product to be authenticated may be true;
[0039] The authentication result is returned to the platform authentication center.
[0040] As a further improvement of the present invention, the performing of the product consumer authentication operation by the consumer authentication module and determining the consumer authentication result comprises:
[0041] The platform authentication center calls the chain code in the underlying blockchain platform, queries the corresponding traceability body according to the unique identification ID of the product to be authenticated, and calls the consumer authentication operation in the traceability body;
[0042] The consumer authentication operation obtains the hash of the consumer review information of the same product as the product to be authenticated stored on the Fabric alliance chain according to the unique identification ID of the product to be authenticated;
[0043] Accessing the interplanetary file system to obtain the consumer review information according to the hash of the consumer review information;
[0044] The consumer review information is put into the trained FastText model to obtain the proportion of non-negative reviews to the total reviews, and returned to the platform authentication center.
[0045] As a further improvement of the present invention, the product certification center sets a certification contract and a certification cycle;
[0046] When the number of product authentication requests sent by consumers within a authentication cycle reaches a preset threshold, the authentication contract is triggered and the product is authenticated;
[0047] When the number of product authentication requests issued by consumers within an authentication cycle does not reach a preset threshold, the product will be authenticated regularly according to the authentication cycle.
[0048] Compared with the prior art, the present invention has the following beneficial effects:
[0049] The present invention introduces the concept of traceability to abstractly describe the traceability information of the entire process of product production, transaction, and circulation, and compares the information (attribute values and hash values) described in the abstract description to separate the platform authentication operation from the real data. By storing hash data through the alliance chain, the decentralized and tamper-proof characteristics of blockchain technology are utilized to make the authentication process accurate and efficient, thereby ensuring the security and reliability of platform authentication and consumer authentication.
[0050] The present invention adopts a method combining platform authentication and consumer authentication, making the authentication result more meaningful for reference. BRIEF DESCRIPTION OF THE DRAWINGS
[0051] Figure 1 A flowchart of a product traceability authentication method based on an alliance chain disclosed in an embodiment of the present invention;
[0052] Figure 2 This is an architecture diagram of a product traceability authentication system based on an alliance chain disclosed in an embodiment of the present invention;
[0053] Figure 3 This is a diagram of the traceability architecture disclosed in one embodiment of the present invention. DETAILED DESCRIPTION
[0054] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0055] The present invention is further described in detail below in conjunction with the accompanying drawings:
[0056] like Figure 1 As shown, the present invention provides a product traceability authentication method based on alliance chain, comprising the steps of:
[0057] S1. Store the encrypted traceability information and consumer review information of the entire product process, and save the hash of the encrypted traceability information and the hash of the consumer review information to the alliance chain;
[0058] in,
[0059] The product traceability information generated by the product production, transaction, and circulation process is encrypted using the elliptic curve encryption algorithm to obtain encrypted traceability information of the entire product process;
[0060] Store the encrypted traceability information of the entire product process in the Interstellar File System.
[0061] S2. Query the traceability body according to the unique identification ID of the product to be authenticated, and call the platform authentication operation and consumer authentication operation in the traceability body in parallel;
[0062] in,
[0063] like Figure 3As shown in the figure, the traceability body is an abstract description of the traceability information of the entire process of product production, transaction, and circulation. It is a data structure composed of attributes (AS), methods (MS), and operations (OPS).
[0064] Right now:
[0065] TS={AS,MS,OPS}
[0066] in,
[0067] AS = {ID, PA, SA, TA}
[0068] MS={TSInit(),GetAS(),...}
[0069] OPS={PC(),XC(),...}
[0070] AS refers to the information that needs to be saved in the entire process of product production, transaction, and circulation, including the product unique identification ID, product production process attributes (ProductionAttributes, PA), product transaction process attributes (SaleAttributes, SA), and product circulation process attributes (TransportAttributes, TA);
[0071] MS refers to the method executed on the traceability body itself, including the traceability body initialization method TSInit(), the traceability body attribute query method GetAS(), etc.
[0072] OPS refers to the operation that the user assigns to the traceability body, including the platform authentication operation PC(), the consumer authentication operation XC(), etc.
[0073] There is an inheritance relationship between traceability bodies. The creation of a child traceability body can add new properties, methods and operations. The child traceability body can inherit the properties, methods and operations of the parent traceability body, and can also rewrite the properties, methods and operations of the parent traceability body, but it cannot selectively inherit some properties, methods and operations of the parent traceability body.
[0074] S3. The platform obtains the attribute values (PA, SA, TA) in the traceability body through authentication operation, and obtains the hash of the encrypted traceability information stored on the alliance chain according to the unique identification ID, and then obtains the encrypted traceability information of the entire process of the product to be authenticated. The hash value of the encrypted traceability information of each process is calculated and compared with the corresponding attribute values in the traceability body to obtain the authentication result of the platform;
[0075] in,
[0076] If the hash value of the encrypted traceability information of each process is the same as the attribute value of the corresponding process in the traceability body, the platform authentication is passed and the product to be authenticated is true;
[0077] Otherwise, the platform will fail the authentication and the product to be authenticated may be genuine.
[0078] Specifically, take product A as an example:
[0079] (1) The platform certification center CC calls the chain code of the alliance chain according to the unique identification ID of product A A Query the traceability body TS A , call TS A The platform authentication algorithm PC() performs platform authentication on product A;
[0080]
[0081] (2) The platform authentication operation will be TS A PA, SA, and TA are assigned to hash1, hash2, and hash3, and IPFS is accessed based on the hash (i.e., storage location) address (PA, SA, TA) of the encrypted traceability information stored on the alliance chain to obtain the traceability information A1, A2, and A3 of the production, transaction, and circulation process of product A after encryption;
[0082] (PA,SA,TA)→(hash1,hash2,hash3)
[0083] address(PA,SA,TA)→IPFS→(A1,A2,A3)
[0084] (3) The platform authentication operation takes the hash value of A1, A2, and A3 a 、hash b 、hash c ;
[0085] hash(A1)→hash a
[0086] hash(A2)→hash b
[0087] hash(A3)→hash c
[0088] (4) The platform authentication operation uses the compare function to compare hash1 with hash a , hash2 and hash b , hash3 and hash cAfter comparison, if the two are the same, the platform authentication is considered to be successful; otherwise, the platform authentication is considered to be unsuccessful, and finally the authentication result of product A is returned to the authentication center CC.
[0089] compare(hash1,hash a )→CR1
[0090] compare(hash2,hash b ) → CR2
[0091] compare(hash3,hash c ) → CR3
[0092] IF(CR1==CR2==CR3)CR=True
[0093] ELSE CR=False
[0094] CR→CC
[0095] S4, the consumer authentication operation obtains the hash of the consumer review information of similar products to the product to be authenticated stored on the alliance chain according to the unique identification ID, and then obtains the consumer review information of similar products to obtain the consumer authentication result;
[0096] in,
[0097] The consumer review information is input into the trained FastText model, and the proportion of non-negative reviews to the total reviews is obtained as the consumer authentication result.
[0098] Specifically, take product A as an example:
[0099] (1) The certification center CC calls the blockchain chain code based on the unique identification ID of product A A Query the traceability body TS A , call TS A The consumer authentication algorithm XC() performs consumer authentication on product A;
[0100]
[0101] (2) The consumer authentication operation obtains the storage location addressEM of the consumer's comments on similar products of A stored on the alliance chain based on the ID of product A;
[0102]
[0103] (3) The consumer authentication operation accesses IPFS based on the storage location obtained in the previous step, obtains all the comments EM of consumers on similar products of A from IPFS, and puts the comments into the trained FastText model to obtain the ratio of bad comments (badEM) to non-bad comments in the total comments;
[0104]
[0105] (4) The consumer certification result CCR is obtained based on the ratio of negative reviews to non-negative reviews in the total number of reviews, and is returned to the certification center CC.
[0106]
[0107] S5. Combine the platform authentication result and the consumer authentication result to obtain the final authentication result of the product to be authenticated.
[0108] If the platform's certification result is true, then the final certification result of the product to be certified is true, and consumers who have non-negative reviews account for a certain proportion of the total reviews recognize that the product to be certified is true;
[0109] If the platform's certification result is possibly true, then the final certification result of the product to be certified is possibly true, and if there are consumers whose non-negative reviews account for a certain proportion of the total reviews, they recognize that the product to be certified is possibly true.
[0110] like Figure 2 As shown, the present invention also provides a product traceability authentication system based on alliance chain, including: a platform authentication center, a blockchain underlying platform and an interplanetary file system, the platform authentication center includes a consumer authentication module and a platform authentication module, and the blockchain underlying platform adopts a Fabric alliance chain based on a PBFT (Practical Byzantine Fault Tolerance) consensus algorithm;
[0111] Platform Certification Center, used for:
[0112] (1) Perform product platform authentication operations through the platform authentication module and determine the platform authentication results;
[0113] Among them, include:
[0114] The platform certification center CC calls the chain code in the underlying blockchain platform, queries the corresponding traceability body according to the unique identification ID of the product to be certified, and calls the platform authentication operation in the traceability body;
[0115] The platform authentication operation obtains the product production process attributes, product transaction process attributes, and product circulation process attributes in the traceability body, and obtains the hash of the encrypted traceability information stored on the Fabric alliance chain based on the unique identification ID of the product to be authenticated;
[0116] Access the Interstellar File System based on the hash of the encrypted traceability information to obtain the encrypted traceability information of the production, transaction, and circulation processes of the product to be authenticated, and obtain the hash values respectively;
[0117] Compare the product production process attribute value with the encrypted traceability information hash value of the production process of the product to be authenticated, the product transaction process attribute value with the encrypted traceability information hash value of the transaction process of the product to be authenticated, and the product circulation process attribute value with the encrypted traceability information hash value of the circulation process of the product to be authenticated. If they are all the same, the authentication is passed and the product to be authenticated is judged to be true; otherwise, the authentication fails and it is judged that the product to be authenticated may be true;
[0118] The platform authentication result is returned to the platform authentication center.
[0119] (2) performing product consumer authentication operations through the consumer authentication module and determining the consumer authentication results;
[0120] Among them, include:
[0121] The platform authentication center calls the chain code in the underlying blockchain platform, queries the corresponding traceability body according to the unique identification ID of the product to be authenticated, and calls the consumer authentication operation in the traceability body;
[0122] The consumer authentication operation obtains the hash of consumer review information of similar products to the product to be authenticated stored on the Fabric consortium chain based on the unique identification ID of the product to be authenticated;
[0123] Access the Interstellar File System to obtain the consumer review information based on the hash of the consumer review information;
[0124] The consumer review information is put into the trained FastText model to obtain the proportion of non-negative reviews in the total reviews, and the consumer authentication result is obtained, which is then returned to the platform authentication center.
[0125] (3) Determine the final certification result of the product based on the consumer certification results and the platform certification results;
[0126] The underlying blockchain platform is used for:
[0127] Stores hashes of consumer review information and encrypted traceability information;
[0128] Interplanetary File System, for:
[0129] Stores consumer review information and encrypted traceability information of the entire product process.
[0130] In this application, the product certification center sets the certification contract and certification cycle;
[0131] When the number of product authentication requests sent by consumers within a authentication cycle reaches a preset threshold, the authentication contract is triggered and the product is authenticated;
[0132] When the number of product certification requests made by consumers within a certification cycle does not reach the preset threshold, the product will be regularly certified according to the certification cycle.
[0133] For example, if the authentication period is set to 10 days and the preset threshold of the number of authentication requests is 100, the judgment process is as follows:
[0134] if (number == 100 || time == 10) then trigger the certification contract (CEC);
[0135] / / Number of consumers applying for authentication; time from the last authentication to now (in days)
[0136] The CEC contract is triggered:
[0137] number=0; / / The number of consumers applying for authentication is cleared
[0138] time=0; / / The time from the last authentication to now is cleared
[0139] PC();
[0140] XC();
[0141] if(CR == True)
[0142] PCR shows that the product is authentic. % of consumers recognize the product as authentic;
[0143] else
[0144] PCR results indicate that the product may be authentic. % of consumers believe the product is likely to be authentic;
[0145] Advantages of the present invention:
[0146] (1) By introducing the concept of traceability, the traceability information of the entire process of product production, transaction, and circulation is abstractly described, and comparison is performed based on the abstract description information (attribute value and hash value), so as to separate the platform authentication operation from the real data.
[0147] (2) By storing hash data through the alliance chain, the decentralized and tamper-proof characteristics of blockchain technology are utilized, which can make the authentication process accurate and efficient, and ensure the security and reliability of platform authentication and consumer authentication.
[0148] (3) A method combining platform authentication and consumer authentication is adopted to make the authentication results more meaningful for reference.
[0149] The above are only preferred embodiments of the present invention and are not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A product traceability authentication method based on alliance chain, characterized in that: include: Store the encrypted traceability information and consumer review information of the entire product process, and save the storage location hash of the encrypted traceability information and the storage location hash of the consumer review information to the alliance chain; The traceability body is queried according to the unique identification ID of the product to be authenticated, and the platform authentication operation and the consumer authentication operation in the traceability body are called in parallel; wherein the traceability body includes attributes, methods and operations, and the attributes include the product unique identification ID, product production process attributes, product transaction process attributes, and product circulation process attributes; the methods include the traceability body initialization method and the traceability body attribute query method; the operations include the platform authentication operation and the consumer authentication operation; The platform authentication operation obtains each attribute value in the traceability body, and obtains the storage location hash of the encrypted traceability information stored on the alliance chain according to the unique identification ID, accesses the interstellar file system according to the storage location hash of the encrypted traceability information, and then obtains the encrypted traceability information of the entire process of the product to be authenticated, calculates the hash value of the encrypted traceability information of each process respectively and compares it with the corresponding attribute value in the traceability body to obtain the platform authentication result; wherein, if the hash value of the encrypted traceability information of each process is the same as the attribute value of the corresponding process in the traceability body, the platform authentication is passed, and the product to be authenticated is true; otherwise, the platform authentication fails, and the product to be authenticated may be true; The consumer authentication operation obtains the storage location hash of the consumer review information of similar products of the product to be authenticated stored on the alliance chain according to the unique identification ID, and then obtains the consumer review information of similar products to obtain the consumer authentication result; wherein the consumer authentication result includes the proportion of non-negative reviews to the total reviews; The final authentication result of the product to be authenticated is obtained by combining the authentication result of the platform and the authentication result of the consumer.
2. The product traceability authentication method according to claim 1, characterized in that: Stores encrypted traceability information of the entire product process, including: The product traceability information generated by the product production, transaction, and circulation process is encrypted using the elliptic curve encryption algorithm to obtain encrypted traceability information of the entire product process; The encrypted traceability information of the entire product process is stored in the Interstellar File System.
3. The product traceability authentication method according to claim 1, characterized in that: Obtain the consumer review information of similar products and obtain consumer certification results, including: The consumer review information is input into the trained FastText model, and the proportion of non-negative reviews to total reviews is obtained as the consumer authentication result.
4. The product traceability authentication method according to claim 3, characterized in that: The step of combining the authentication result of the platform and the authentication result of the consumer to obtain the final authentication result of the product to be authenticated comprises: If the authentication result of the platform is true, then the final authentication result of the product to be authenticated is true, and consumers who have non-negative reviews account for a certain proportion of the total reviews recognize that the product to be authenticated is true; If the authentication result of the platform is possibly true, then the final authentication result of the product to be authenticated is possibly true, and consumers whose non-negative reviews account for a certain proportion of the total reviews recognize that the product to be authenticated is possibly true.
5. A system for implementing the product traceability authentication method according to any one of claims 1 to 4, comprising: Platform authentication center, blockchain underlying platform and interplanetary file system. The platform authentication center includes consumer authentication module and platform authentication module. The blockchain underlying platform adopts Fabric alliance chain. The platform authentication center is used to: Perform product platform authentication operations through the platform authentication module to determine the platform authentication result; Perform product consumer authentication operations through the consumer authentication module and determine the consumer authentication result; Determine the final authentication result of the product according to the authentication result of the consumer and the authentication result of the platform; The underlying blockchain platform is used for: A storage location hash for storing consumer review information and a storage location hash for the encrypted traceability information; The Interplanetary File System is used to: Stores consumer review information and encrypted traceability information of the entire product process.
6. The system according to claim 5, characterized in that: The performing of the product platform authentication operation by the platform authentication module and determining the platform authentication result comprises: The platform authentication center calls the chain code in the underlying blockchain platform, queries the corresponding traceability body according to the unique identification ID of the product to be authenticated, and calls the platform authentication operation in the traceability body; The platform authentication operation obtains the product production process attributes, product transaction process attributes, and product circulation process attributes in the traceability body, and obtains the storage location hash of the encrypted traceability information stored on the Fabric alliance chain in the interstellar file system according to the unique identification ID of the product to be authenticated; Access the interplanetary file system according to the storage location hash of the encrypted traceability information to obtain the encrypted traceability information of the production, transaction, and circulation processes of the product to be authenticated, and obtain hash values respectively; Compare the product production process attribute value with the encrypted traceability information hash value of the production process of the product to be authenticated, the product transaction process attribute value with the encrypted traceability information hash value of the transaction process of the product to be authenticated, and the product circulation process attribute value with the encrypted traceability information hash value of the circulation process of the product to be authenticated. If they are all the same, the authentication is passed and the product to be authenticated is determined to be true; otherwise, the authentication fails and it is determined that the product to be authenticated may be true; The platform authentication result is returned to the platform authentication center.
7. The system according to claim 5, characterized in that: The performing of a product consumer authentication operation by the consumer authentication module and determining a consumer authentication result comprises: The platform authentication center calls the chain code in the underlying blockchain platform, queries the corresponding traceability body according to the unique identification ID of the product to be authenticated, and calls the consumer authentication operation in the traceability body; The consumer authentication operation obtains the storage location hash of the consumer review information of the same product as the product to be authenticated stored on the Fabric alliance chain according to the unique identification ID of the product to be authenticated; Access the interplanetary file system according to the storage location hash of the consumer review information to obtain the consumer review information; The consumer review information is put into the trained FastText model to obtain the proportion of non-negative reviews to the total reviews, and the consumer authentication result is obtained, and the consumer authentication result is returned to the platform authentication center.
8. The system according to claim 5, characterized in that: The platform authentication center sets up the authentication contract and authentication cycle; When the number of product authentication requests sent by consumers within a authentication cycle reaches a preset threshold, the authentication contract is triggered and the product is authenticated; When the number of product authentication requests issued by consumers within an authentication cycle does not reach a preset threshold, the product will be authenticated regularly according to the authentication cycle.
Citation Information
Patent Citations
Product deep traceability system based on block chain technology
CN110969447A
Agricultural product information block chain storage and traceability method and device, equipment and storage medium
CN112256662A