CN112348535B - Traceability application method and system based on blockchain technology - Google Patents

Traceability application method and system based on blockchain technology Download PDF

Info

Publication number
CN112348535B
CN112348535B CN202011217318.7A CN202011217318A CN112348535B CN 112348535 B CN112348535 B CN 112348535B CN 202011217318 A CN202011217318 A CN 202011217318A CN 112348535 B CN112348535 B CN 112348535B
Authority
CN
China
Prior art keywords
traceability
information file
target
tracing
preset
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011217318.7A
Other languages
Chinese (zh)
Other versions
CN112348535A (en
Inventor
向艳丽
李伟
蔡津津
王胜先
闫蕾
汪浩
王小伟
崔傅成
孔成兵
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Xinhua Zhongjing Credit Management Co ltd
Original Assignee
Xinhua Zhongjing Credit Management Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Xinhua Zhongjing Credit Management Co ltd filed Critical Xinhua Zhongjing Credit Management Co ltd
Priority to CN202011217318.7A priority Critical patent/CN112348535B/en
Publication of CN112348535A publication Critical patent/CN112348535A/en
Application granted granted Critical
Publication of CN112348535B publication Critical patent/CN112348535B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/018Certifying business or products
    • G06Q30/0185Product, service or business identity fraud
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines
    • G06F16/9532Query formulation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines
    • G06F16/9538Presentation of query results
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/955Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
    • G06F16/9554Retrieval from the web using information identifiers, e.g. uniform resource locators [URL] by using bar codes
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/30Computing systems specially adapted for manufacturing

Abstract

The application discloses a traceability application method and a traceability application system based on a blockchain technology, comprising the following steps: the method comprises the steps of obtaining tracing information of products corresponding to a preset number of product terminals, storing the preset number of tracing information into a preset number of tracing information files in a blockchain database, determining the association degree of each first tracing information file and other second tracing information files, associating target second tracing information files with the association degree of the first tracing information files being larger than or equal to a preset threshold value, generating tracing labels for the first tracing information files, uploading the tracing labels to N preset proxy servers, obtaining preset signature tracing labels of the N preset proxy servers, receiving scanning instructions sent by the current proxy servers, providing target tracing labels of target products for the current proxy servers, determining whether to transmit the target tracing information files of the target products according to scanning results, and scanning inquiry of tracing information of each product is not needed by users, so that the working efficiency is improved.

Description

Traceability application method and system based on blockchain technology
Technical Field
The application relates to the technical field of blockchain, in particular to a traceability application method and system based on a blockchain technology.
Background
At present, with the high-speed development of social economy and the continuous improvement of the quality of living standard of people, the security problem of commodities draws extensive attention of society, so that various production merchants print and dye the tracing information two-dimensional code of the commodity on a packaging surface to enable consumers to know the tracing information of the commodity at any time when the commodity is packaged, but the method is utilized by various hackers or illegal molecules, the method is tampered with on the webpage of the commodity to enable the tracing information of the commodity to be seriously inconsistent with the original information, the gap between the consumers and the production merchants is increased, and then, the prior art provides the method for realizing the preservation and the calling of the tracing information by utilizing a blockchain technology, so that the illegal molecules cannot be cracked and modified due to the tightness and the ultrahigh security, and the security and the accuracy of the tracing information of the commodity are greatly improved, but the method has the following defects: because the server is connected with the blockchain client, and each product has a respective traceability tag, if a consumer purchases a large number of products of the same type at one time, the traceability tag of each product needs to be scanned for security verification, so that the time of the consumer is greatly consumed, and the experience of the consumer is seriously influenced.
Disclosure of Invention
Aiming at the problems shown above, the application provides a traceability application method and a traceability application system based on a blockchain technology, which are used for solving the problems that in the background technology, as a server is connected with a blockchain client, each product has a respective traceability label, if a consumer purchases a large number of products of the same type at one time, the traceability label of each product needs to be scanned for security verification, so that the time of the consumer is greatly consumed, and the experience of the consumer is seriously influenced.
A traceability application method based on a blockchain technology comprises the following steps:
acquiring the tracing information of products corresponding to a preset number of product terminals, storing the preset number of tracing information into a preset number of tracing information files in a blockchain database, and determining the association degree of each first tracing information file and other second tracing information files;
associating a target second tracing information file with the first tracing information file, wherein the association degree of the target second tracing information file and the first tracing information file is larger than or equal to a preset threshold value;
generating a tracing label for the first tracing information file;
uploading the traceability tag to N preset proxy servers, and acquiring preset signature traceability tags of the N preset proxy servers;
and receiving a scanning instruction sent by the current proxy server, providing a target traceability tag of a target product for the current proxy server, and determining whether to transmit a target traceability information file of the target product according to a scanning result of the current proxy server.
Preferably, the obtaining the tracing information of the products corresponding to the preset number of product terminals stores the preset number of tracing information into a preset number of tracing information files in the blockchain database, and determining the association degree between each first tracing information file and the rest of second tracing information files includes:
detecting terminal identifiers of the preset number of product terminals and connecting base stations;
the method comprises the steps of obtaining factory parameters, manufacturing parameters and identification parameters of each product, wherein the factory parameters comprise product origins, the manufacturing parameters comprise product production batches and production dates, and the identification parameters comprise product components and product pictures;
taking the factory parameters, the manufacturing parameters and the identification parameters of each product as initial tracing information of each product, and adding the terminal identification and the connection base station of the product terminal corresponding to each product into the initial tracing information of each product to obtain final tracing information of each product;
storing a preset number of final tracing information into a preset number of tracing information files in a blockchain database;
comparing factory parameters, manufacturing parameters, identification parameters, terminal identifications of the product terminals and connecting base stations in each traceability information file to obtain similarity of each first traceability information file and other second traceability information files;
and determining the association degree of each first tracing information file and the rest second tracing information files according to a preset similarity association degree conversion algorithm.
Preferably, the associating the target second tracing information file with the first tracing information file association degree greater than or equal to a preset threshold value includes;
extracting a first keyword in the first traceability information file and a second keyword in a target second traceability information file;
determining common keywords of which the first keywords are identical to the second keywords;
constructing an initial network model, inputting the common keywords into the initial network model, and constructing data nodes for each common keyword;
and connecting the data nodes of each common keyword.
Preferably, the traceability tag comprises one or more of a two-dimensional code tag or a bar code tag.
Preferably, the uploading the traceability tag to N preset proxy servers, and obtaining preset signature traceability tags of the N preset proxy servers, includes:
acquiring network addresses of N preset proxy servers;
carrying out security verification on the N network addresses, and setting a key connected with a blockchain database for each preset proxy server after the verification is passed;
after the setting is finished, connecting the blockchain database with the network of N preset proxy servers;
uploading the traceability tag to N preset proxy servers for the N preset proxy servers to carry out system input of the traceability tag;
and after the input is finished, receiving preset signature traceability labels fed back by the N preset proxy servers.
Preferably, a scanning instruction sent by a current proxy server is received, a target traceability tag of a target product is provided for the current proxy server, and whether a target traceability information file of the target product is transmitted or not is determined according to a scanning result of the current proxy server, wherein the method comprises the steps of;
analyzing the scanning instruction to determine a target product;
searching whether the target product has a traceability information file in the blockchain database, if so, acquiring a target traceability tag corresponding to the target traceability file, otherwise, sending a prompt of no traceability information of the target product to the current proxy server;
transmitting the target traceability tag to the current proxy server for scanning, detecting whether the current proxy server feeds back the current signature traceability tag, if yes, transmitting a target traceability information file of a target product to the current proxy server, otherwise, confirming that the current proxy server is invalid, and verifying a current connection key of the current proxy server;
and when the current connection key passes the verification, transmitting the target traceability information file to the current proxy server, and when the current connection key fails the verification for three times, disconnecting the network connection state with the current proxy server.
Preferably, the method further comprises:
acquiring the traceability updating information of the products corresponding to the preset number of product terminals;
and storing the traceability updating information into the traceability information file corresponding to each product.
Preferably, the verifying the current connection key of the current proxy server includes:
acquiring a target traceability file of the target product, analyzing the target traceability file, and acquiring target keywords in the target traceability file;
determining a target data node corresponding to the target keyword, determining whether the current proxy server is a common connection proxy server according to a history connection record of the target node, if so, confirming that the current proxy server is safe in connection, acquiring a current connection key provided by the current proxy server for verification, and if not, confirming that the current proxy server is unsafe;
when the current proxy server is not safe, acquiring a current connection key provided by the current proxy server and signature information of the current proxy server;
and verifying the current connection key, storing signature information of the current proxy server after the current connection key passes the verification, and marking the current proxy server as a security proxy server.
Preferably, the determining the association degree between each first trace source information file and the rest of the second trace source information files includes:
extracting a first keyword in the first tracing information file and a second keyword in the second tracing information file;
calculating an importance coefficient of each first keyword in the first keywords:
wherein k is i The importance coefficient expressed as the i first keyword, M expressed as the number of first keywords, S i The frequency of occurrence of the ith first keyword in the first traceability information file is represented as 0.1 and 0.3]Ln is expressed as natural logarithm, Q i Text length expressed as the ith first keyword, θ expressed as the number of occurrences of the ith first keyword in the first trace information file, and L expressed as the ithThe total text length of the traceability information file, beta represents the influence factor of the residual first keywords on the ith first keyword to calculate the important coefficient, and the value is 0.3;
clearing a first number of third keywords with the importance coefficients smaller than a preset threshold value in the first keywords, and remaining a second number of fourth keywords;
and calculating the association degree of the first tracing information file and the rest second tracing information files according to the second number of fourth keywords:
wherein a is represented as a first traceability information file, b is represented as a b second traceability information file, U b The number of second keywords represented as the b second traceability information file, P is represented as the number of fourth keywords, T ab Expressed as the number, ω, of identical keywords in the second keyword and the fourth keyword a Expressed as the weight, ω, of the same keyword in a second number of fourth keywords b The weight of the same keyword in the second keyword of the b second traceability information file is represented as G ab The association degree is expressed as the association degree of the first tracing information file and the b second tracing information file;
and arranging the association degree of the first tracing information file and the rest of the second tracing information files according to the sequence from big to small.
A traceability application system based on blockchain technology, the system comprising:
the first acquisition module is used for acquiring the traceability information of products corresponding to the preset number of product terminals, storing the preset number of traceability information into the preset number of traceability information files in the blockchain database, and determining the association degree of each first traceability information file and the rest of second traceability information files;
the association module is used for associating the target second tracing information file with the first tracing information file, wherein the association degree of the target second tracing information file and the first tracing information file is larger than or equal to a preset threshold value;
the generation module is used for generating a tracing label for the first tracing information file;
the second acquisition module is used for uploading the traceability tag to N preset proxy servers and acquiring preset signature traceability tags of the N preset proxy servers;
the determining module is used for receiving a scanning instruction sent by the current proxy server, providing a target traceability tag of a target product for the current proxy server, and determining whether to transmit a target traceability information file of the target product according to a scanning result of the current proxy server.
Additional features and advantages of the application will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the application. The objectives and other advantages of the application may be realized and attained by the structure particularly pointed out in the written description and drawings.
The technical scheme of the application is further described in detail through the drawings and the embodiments.
Drawings
The accompanying drawings are included to provide a further understanding of the application and are incorporated in and constitute a part of this specification, illustrate the application and together with the embodiments of the application, serve to explain the application.
FIG. 1 is a workflow diagram of a traceability application method based on a blockchain technique provided by the present application;
FIG. 2 is another workflow diagram of a traceability application method based on blockchain technology provided by the present application;
FIG. 3 is a further workflow diagram of a traceability application method based on blockchain technology provided by the present application;
fig. 4 is a schematic structural diagram of a traceability application system based on a blockchain technology according to the present application.
Detailed Description
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary examples are not representative of all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present disclosure as detailed in the accompanying claims.
At present, with the high-speed development of social economy and the continuous improvement of the quality of living standard of people, the security problem of commodities draws extensive attention of society, so that various production merchants print and dye the tracing information two-dimensional code of the commodity on a packaging surface to enable consumers to know the tracing information of the commodity at any time when the commodity is packaged, but the method is utilized by various hackers or illegal molecules, the method is tampered with on the webpage of the commodity to enable the tracing information of the commodity to be seriously inconsistent with the original information, the gap between the consumers and the production merchants is increased, and then, the prior art provides the method for realizing the preservation and the calling of the tracing information by utilizing a blockchain technology, so that the illegal molecules cannot be cracked and modified due to the tightness and the ultrahigh security, and the security and the accuracy of the tracing information of the commodity are greatly improved, but the method has the following defects: because the server is connected with the blockchain client, and each product has a respective traceability tag, if a consumer purchases a large number of products of the same type at one time, the traceability tag of each product needs to be scanned for security verification, so that the time of the consumer is greatly consumed, and the experience of the consumer is seriously influenced. In order to solve the above problems, the present embodiment discloses a traceability application method based on a blockchain technology.
A traceability application method based on a blockchain technology, as shown in fig. 1, comprises the following steps:
step S101, acquiring the traceability information of products corresponding to a preset number of product terminals, storing the preset number of traceability information into a preset number of traceability information files in a block chain database, and determining the association degree of each first traceability information file and other second traceability information files;
step S102, associating a target second traceability information file with the association degree of the first traceability information file being greater than or equal to a preset threshold value;
step S103, generating a traceability tag for the first traceability information file;
step S104, uploading the traceability tag to N preset proxy servers to obtain preset signature traceability tags of the N preset proxy servers;
step 105, receiving a scanning instruction sent by a current proxy server, providing a target traceability tag of a target product for the current proxy server, and determining whether to transmit a target traceability information file of the target product according to a scanning result of the current proxy server;
in this embodiment, the consumer only needs to scan the tracing label of the first tracing information file to know the tracing information of the target product and know the tracing information of other products.
The working principle of the technical scheme is as follows: acquiring the tracing information of products corresponding to a preset number of product terminals, storing the preset number of tracing information into a preset number of tracing information files in a blockchain database, determining the association degree of each first tracing information file and other second tracing information files, associating the target second tracing information files with the first tracing information files with the association degree larger than or equal to a preset threshold value, generating tracing labels for the first tracing information files, uploading the tracing labels to N preset proxy servers, acquiring preset signature tracing labels of the N preset proxy servers, receiving scanning instructions sent by the current proxy server, providing the target tracing labels of the target products for the current proxy server, and determining whether to transmit the target tracing information files of the target products according to the scanning results of the current proxy server.
The beneficial effects of the technical scheme are as follows: the method has the advantages that the association degree of the tracing information corresponding to each product can be determined when one product produces the tracing label, the tracing label can be related to tracing information of other related products by scanning the tracing label, the user does not need to scan and inquire the tracing information of each product, the working efficiency is improved, the problems that in the prior art, a server is connected with a blockchain client side, each product has own tracing label, if a consumer purchases a large number of products of the same type at one time, the tracing label of each product needs to be scanned for security verification, the problem of consuming time of the consumer is greatly solved, the experience of the user is improved, meanwhile, the data security is guaranteed by storing and calling the tracing information through the regional chain database, the occurrence of the conditions that illegal molecules modify or plagiarize the tracing information is avoided, the security of the tracing information of the product is further guaranteed by limiting a proxy server, the security of the regional chain database is avoided, and the security intrusion of viruses caused by calling the tracing information through the high-vulnerability server is improved.
In one embodiment, the obtaining the trace source information of the products corresponding to the preset number of product terminals, storing the preset number of trace source information into the preset number of trace source information files in the blockchain database, and determining the association degree between each first trace source information file and the rest of second trace source information files includes:
detecting terminal identifiers of the preset number of product terminals and connecting base stations;
the method comprises the steps of obtaining factory parameters, manufacturing parameters and identification parameters of each product, wherein the factory parameters comprise product origins, the manufacturing parameters comprise product production batches and production dates, and the identification parameters comprise product components and product pictures;
taking the factory parameters, the manufacturing parameters and the identification parameters of each product as initial tracing information of each product, and adding the terminal identification and the connection base station of the product terminal corresponding to each product into the initial tracing information of each product to obtain final tracing information of each product;
storing a preset number of final tracing information into a preset number of tracing information files in a blockchain database;
comparing factory parameters, manufacturing parameters, identification parameters, terminal identifications of the product terminals and connecting base stations in each traceability information file to obtain similarity of each first traceability information file and other second traceability information files;
and determining the association degree of each first tracing information file and the rest second tracing information files according to a preset similarity association degree conversion algorithm.
The beneficial effects of the technical scheme are as follows: the tracing information is formed by the terminal identification of the product terminal corresponding to each product, the connection base station and the self parameters of each product, so that consumers or more tracing information about the products can be enabled, the quality and reliability of the products can be further ensured, meanwhile, the correlation degree between each tracing information file is obtained by utilizing a preset similarity correlation degree conversion algorithm, compared with the method of directly utilizing the similarity degree to determine a final result, the final result is more rigorous and accurate, the fault tolerance is improved, and the accuracy of the correlation degree between each tracing information file is ensured.
In one embodiment, as shown in fig. 2, the associating the target second trace information file with the first trace information file with the association degree greater than or equal to the preset threshold includes;
step S201, extracting a first keyword in the first traceability information file and a second keyword in a target second traceability information file;
step S202, determining common keywords of which the first keywords are identical to the second keywords;
step S203, an initial network model is built, the common keywords are input into the initial network model, and data nodes are built for each common keyword;
and step S204, connecting the data nodes of each common keyword.
The beneficial effects of the technical scheme are as follows: the first tracing file information and the second tracing file information are associated by constructing the network model and then constructing the nodes of the common keywords, so that the second tracing information file related to the first tracing information file can be quickly queried when a user scans the tracing label corresponding to the first tracing information file, and the stability is improved.
In one embodiment, the traceability tag includes one or more of a two-dimensional code tag or a bar code tag.
In one embodiment, as shown in fig. 3, the uploading the traceability tag to N preset proxy servers to obtain preset signature traceability tags of the N preset proxy servers includes:
step S301, obtaining network addresses of N preset proxy servers;
step S302, carrying out security verification on N network addresses, and setting a key connected with a block chain database for each preset proxy server after the verification is passed;
step S303, after finishing setting, connecting the blockchain database with the network of N preset proxy servers;
step S304, uploading the traceability tag to N preset proxy servers for the N preset proxy servers to carry out system input of the traceability tag;
and step S305, after the input is completed, receiving preset signature traceability labels fed back by the N preset proxy servers.
The beneficial effects of the technical scheme are as follows: the security of network connection between the preset proxy server and the regional chain database can be ensured by verifying the security of the network address of each preset proxy server, so that the damage of viruses to the files in the regional chain database is further avoided, the security is improved, meanwhile, the security login of the proxy server can be verified by setting a connection key for each preset proxy server, the security of files in the database is further ensured, and further, the tracing labels of the preset signatures fed back by N preset proxy servers can be accurately known, the tracing labels of which products are archived and recorded by the proxy server, and the tracing information of the products can be quickly invoked in the follow-up process.
In one embodiment, a scanning instruction sent by a current proxy server is received, a target traceability tag of a target product is provided for the current proxy server, and whether a target traceability information file of the target product is transmitted or not is determined according to a scanning result of the current proxy server, wherein the method comprises the steps of;
analyzing the scanning instruction to determine a target product;
searching whether the target product has a traceability information file in the blockchain database, if so, acquiring a target traceability tag corresponding to the target traceability file, otherwise, sending a prompt of no traceability information of the target product to the current proxy server;
transmitting the target traceability tag to the current proxy server for scanning, detecting whether the current proxy server feeds back the current signature traceability tag, if yes, transmitting a target traceability information file of a target product to the current proxy server, otherwise, confirming that the current proxy server is invalid, and verifying a current connection key of the current proxy server;
and when the current connection key passes the verification, transmitting the target traceability information file to the current proxy server, and when the current connection key fails the verification for three times, disconnecting the network connection state with the current proxy server.
The beneficial effects of the technical scheme are as follows: the identity security of the current proxy server can be ensured by carrying out key verification on the current proxy server, when the key passes the verification, the target traceability information file is transmitted to the current proxy server, and when the key fails the verification for three times, the network connection with the current proxy server is disconnected, so that the connection state with the current proxy server can be automatically realized according to the actual situation, the intellectualization is realized, and the security of the data in the database is further ensured.
In one embodiment, the method further comprises:
acquiring the traceability updating information of the products corresponding to the preset number of product terminals;
and storing the traceability updating information into the traceability information file corresponding to each product.
The beneficial effects of the technical scheme are as follows: by updating the traceability information of each product, the user can know the latest traceability information about the product at any time, the authenticity of the data is ensured, and the experience of the consumer is further improved.
In one embodiment, said verifying the current connection key of the current proxy server comprises:
acquiring a target traceability file of the target product, analyzing the target traceability file, and acquiring target keywords in the target traceability file;
determining a target data node corresponding to the target keyword, determining whether the current proxy server is a common connection proxy server according to a history connection record of the target node, if so, confirming that the current proxy server is safe in connection, acquiring a current connection key provided by the current proxy server for verification, and if not, confirming that the current proxy server is unsafe;
when the current proxy server is not safe, acquiring a current connection key provided by the current proxy server and signature information of the current proxy server;
and verifying the current connection key, storing signature information of the current proxy server after the current connection key passes the verification, and marking the current proxy server as a security proxy server.
The beneficial effects of the technical scheme are as follows: the security condition of the current proxy server is primarily judged by judging whether the current proxy server is a commonly connected proxy server, so that the monitoring of the proxy server can be realized, and the security of data in a database is further ensured. Further, marking the current proxy server as a secure proxy server by acquiring signature information of the current proxy server can determine the security of the current proxy server from both external factors of the signature information and intrinsic factors of the current proxy server itself. And further, the security verification of each proxy server can be effectively realized, and the security is further improved.
In one embodiment, the determining the association degree between each first trace information file and the remaining second trace information files includes:
extracting a first keyword in the first tracing information file and a second keyword in the second tracing information file;
calculating an importance coefficient of each first keyword in the first keywords:
wherein k is i The importance coefficient expressed as the i first keyword, M expressed as the number of first keywords, S i The frequency of occurrence of the ith first keyword in the first traceability information file is represented as 0.1 and 0.3]Ln is expressed as natural logarithm, Q i The text length of the ith first keyword is represented, theta is represented as the number of times the ith first keyword appears in the first traceability information file, L is represented as the total text length of the first traceability information file, beta is represented as the influence factor of the residual first keyword on the ith first keyword to calculate an important coefficient, and the value is 0.3;
clearing a first number of third keywords with the importance coefficients smaller than a preset threshold value in the first keywords, and remaining a second number of fourth keywords;
and calculating the association degree of the first tracing information file and the rest second tracing information files according to the second number of fourth keywords:
wherein a is represented as a first traceability information file, b is represented as a b second traceability information file, U b The number of second keywords represented as the b second traceability information file, P is represented as the number of fourth keywords, T ab Expressed as the number, ω, of identical keywords in the second keyword and the fourth keyword a Expressed as the weight, ω, of the same keyword in a second number of fourth keywords b The weight of the same keyword in the second keyword of the b second traceability information file is represented as G ab Represented as a relationship of a first trace-source information file with a b-th second trace-source information fileA degree of association;
and arranging the association degree of the first tracing information file and the rest of the second tracing information files according to the sequence from big to small.
The beneficial effects of the technical scheme are as follows: the useless key words are removed by calculating the important coefficient of each first key word in the first tracing information file, so that the calculated amount can be reduced for the calculation of the subsequent association degree, meanwhile, the influence of the useless key words on the calculation result is also discharged, the accuracy of the calculation result is improved, and further, the second tracing information file can be associated with the first tracing information file by calculating the association degree of the first tracing information file and each second tracing information file, so that a user can browse the second tracing information file while browsing the first tracing information file, and the experience of the user is further improved.
The embodiment also provides a traceability application system based on a blockchain technology, as shown in fig. 4, the system includes:
the first acquisition module is used for acquiring the traceability information of products corresponding to the preset number of product terminals, storing the preset number of traceability information into the preset number of traceability information files in the blockchain database, and determining the association degree of each first traceability information file and the rest of second traceability information files;
the association module is used for associating the target second tracing information file with the first tracing information file, wherein the association degree of the target second tracing information file and the first tracing information file is larger than or equal to a preset threshold value;
the generation module is used for generating a tracing label for the first tracing information file;
the second acquisition module is used for uploading the traceability tag to N preset proxy servers and acquiring preset signature traceability tags of the N preset proxy servers;
the determining module is used for receiving a scanning instruction sent by the current proxy server, providing a target traceability tag of a target product for the current proxy server, and determining whether to transmit a target traceability information file of the target product according to a scanning result of the current proxy server.
The working principle and the beneficial effects of the above technical solution are described in the method claims and are not repeated here.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure. This application is intended to cover any adaptations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It is to be understood that the present disclosure is not limited to the precise arrangements and instrumentalities shown in the drawings, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (9)

1. The traceability application method based on the blockchain technology is characterized by comprising the following steps of:
acquiring the tracing information of products corresponding to a preset number of product terminals, storing the preset number of tracing information into a preset number of tracing information files in a blockchain database, and determining the association degree of each first tracing information file and other second tracing information files;
associating a target second tracing information file with the first tracing information file, wherein the association degree of the target second tracing information file and the first tracing information file is larger than or equal to a preset threshold value;
generating a tracing label for the first tracing information file;
uploading the traceability tag to N preset proxy servers, and acquiring preset signature traceability tags of the N preset proxy servers;
receiving a scanning instruction sent by a current proxy server, providing a target traceability tag of a target product for the current proxy server, and determining whether to transmit a target traceability information file of the target product according to a scanning result of the current proxy server;
the determining the association degree between each first tracing information file and the rest of the second tracing information files comprises the following steps:
extracting a first keyword in the first tracing information file and a second keyword in the second tracing information file;
calculating an importance coefficient of each first keyword in the first keywords:
wherein k is i The importance coefficient expressed as the i first keyword, M expressed as the number of first keywords, S i The frequency of occurrence of the ith first keyword in the first traceability information file is represented as 0.1 and 0.3]Ln is expressed as natural logarithm, Q i The text length of the ith first keyword is represented, theta is represented as the number of times the ith first keyword appears in the first traceability information file, L is represented as the total text length of the first traceability information file, beta is represented as the influence factor of the residual first keyword on the ith first keyword to calculate an important coefficient, and the value is 0.3;
clearing a first number of third keywords with the importance coefficients smaller than a preset threshold value in the first keywords, and remaining a second number of fourth keywords;
and calculating the association degree of the first tracing information file and the rest second tracing information files according to the second number of fourth keywords:
wherein a is represented as a first traceability information file, b is represented as a b second traceability information file, U b The number of second keywords represented as the b second traceability information file, P is represented as the number of fourth keywords, T ab Expressed as the number, ω, of identical keywords in the second keyword and the fourth keyword a Expressed as the weight of the same keyword in a second number of fourth keywords,ω b The weight of the same keyword in the second keyword of the b second traceability information file is represented as G ab The association degree is expressed as the association degree of the first tracing information file and the b second tracing information file;
and arranging the association degree of the first tracing information file and the rest of the second tracing information files according to the sequence from big to small.
2. The method for traceability application based on the blockchain technology according to claim 1, wherein the obtaining the traceability information of the products corresponding to the preset number of product terminals, storing the preset number of traceability information into the preset number of traceability information files in the blockchain database, and determining the association degree between each first traceability information file and the remaining second traceability information files includes:
detecting terminal identifiers of the preset number of product terminals and connecting base stations;
the method comprises the steps of obtaining factory parameters, manufacturing parameters and identification parameters of each product, wherein the factory parameters comprise product origins, the manufacturing parameters comprise product production batches and production dates, and the identification parameters comprise product components and product pictures;
taking the factory parameters, the manufacturing parameters and the identification parameters of each product as initial tracing information of each product, and adding the terminal identification and the connection base station of the product terminal corresponding to each product into the initial tracing information of each product to obtain final tracing information of each product;
storing a preset number of final tracing information into a preset number of tracing information files in a blockchain database;
comparing factory parameters, manufacturing parameters, identification parameters, terminal identifications of the product terminals and connecting base stations in each traceability information file to obtain similarity of each first traceability information file and other second traceability information files;
and determining the association degree of each first tracing information file and the rest second tracing information files according to a preset similarity association degree conversion algorithm.
3. The traceability application method based on the blockchain technology according to claim 1, wherein the associating the target second traceability information file with the first traceability information file association degree greater than or equal to a preset threshold value includes;
extracting a first keyword in the first traceability information file and a second keyword in a target second traceability information file;
determining common keywords of which the first keywords are identical to the second keywords;
constructing an initial network model, inputting the common keywords into the initial network model, and constructing data nodes for each common keyword;
and connecting the data nodes of each common keyword.
4. The traceability application method based on blockchain technology according to claim 1, wherein the traceability tag comprises one or more of a two-dimensional code tag or a bar code tag.
5. The method for traceability application based on blockchain technology according to claim 1, wherein uploading the traceability tag to N preset proxy servers to obtain preset signature traceability tags of the N preset proxy servers comprises:
acquiring network addresses of N preset proxy servers;
carrying out security verification on the N network addresses, and setting a key connected with a blockchain database for each preset proxy server after the verification is passed;
after the setting is finished, connecting the blockchain database with the network of N preset proxy servers;
uploading the traceability tag to N preset proxy servers for the N preset proxy servers to carry out system input of the traceability tag;
and after the input is finished, receiving preset signature traceability labels fed back by the N preset proxy servers.
6. The traceability application method based on blockchain technology according to claim 3, wherein receiving a scanning instruction sent by a current proxy server, providing a target traceability tag of a target product for the current proxy server, and determining whether to transmit a target traceability information file of the target product according to a scanning result of the current proxy server, comprising;
analyzing the scanning instruction to determine a target product;
searching whether the target product has a traceability information file in the blockchain database, if so, acquiring a target traceability tag corresponding to the target traceability file, otherwise, sending a prompt of no traceability information of the target product to the current proxy server;
transmitting the target traceability tag to the current proxy server for scanning, detecting whether the current proxy server feeds back the current signature traceability tag, if yes, transmitting a target traceability information file of a target product to the current proxy server, otherwise, confirming that the current proxy server is invalid, and verifying a current connection key of the current proxy server;
and when the current connection key passes the verification, transmitting the target traceability information file to the current proxy server, and when the current connection key fails the verification for three times, disconnecting the network connection state with the current proxy server.
7. The method of claim 1, further comprising:
acquiring the traceability updating information of the products corresponding to the preset number of product terminals;
and storing the traceability updating information into the traceability information file corresponding to each product.
8. The traceable application method based on blockchain technology according to claim 6, wherein said verifying the current connection key of the current proxy server comprises:
acquiring a target traceability file of the target product, analyzing the target traceability file, and acquiring target keywords in the target traceability file;
determining a target data node corresponding to the target keyword, determining whether the current proxy server is a common connection proxy server according to a history connection record of the target node, if so, confirming that the current proxy server is safe in connection, acquiring a current connection key provided by the current proxy server for verification, and if not, confirming that the current proxy server is unsafe;
when the current proxy server is not safe, acquiring a current connection key provided by the current proxy server and signature information of the current proxy server;
and verifying the current connection key, storing signature information of the current proxy server after the current connection key passes the verification, and marking the current proxy server as a security proxy server.
9. A traceability application system based on a blockchain technique, the system comprising:
the first acquisition module is used for acquiring the traceability information of products corresponding to the preset number of product terminals, storing the preset number of traceability information into the preset number of traceability information files in the blockchain database, and determining the association degree of each first traceability information file and the rest of second traceability information files;
the association module is used for associating the target second tracing information file with the first tracing information file, wherein the association degree of the target second tracing information file and the first tracing information file is larger than or equal to a preset threshold value;
the generation module is used for generating a tracing label for the first tracing information file;
the second acquisition module is used for uploading the traceability tag to N preset proxy servers and acquiring preset signature traceability tags of the N preset proxy servers;
the determining module is used for receiving a scanning instruction sent by the current proxy server, providing a target traceability tag of a target product for the current proxy server, and determining whether to transmit a target traceability information file of the target product according to a scanning result of the current proxy server;
the determining the association degree between each first tracing information file and the rest of the second tracing information files comprises the following steps:
extracting a first keyword in the first tracing information file and a second keyword in the second tracing information file;
calculating an importance coefficient of each first keyword in the first keywords:
wherein k is i The importance coefficient expressed as the i first keyword, M expressed as the number of first keywords, S i The frequency of occurrence of the ith first keyword in the first traceability information file is represented as 0.1 and 0.3]Ln is expressed as natural logarithm, Q i The text length of the ith first keyword is represented, theta is represented as the number of times the ith first keyword appears in the first traceability information file, L is represented as the total text length of the first traceability information file, beta is represented as the influence factor of the residual first keyword on the ith first keyword to calculate an important coefficient, and the value is 0.3;
clearing a first number of third keywords with the importance coefficients smaller than a preset threshold value in the first keywords, and remaining a second number of fourth keywords;
and calculating the association degree of the first tracing information file and the rest second tracing information files according to the second number of fourth keywords:
wherein a is represented as a first traceability information file, b is represented as a b second traceability information file, U b Denoted as the b second trace-out sourceThe number of second keywords of the information file, P is expressed as the number of fourth keywords, T ab Expressed as the number, ω, of identical keywords in the second keyword and the fourth keyword a Expressed as the weight, ω, of the same keyword in a second number of fourth keywords b The weight of the same keyword in the second keyword of the b second traceability information file is represented as G ab The association degree is expressed as the association degree of the first tracing information file and the b second tracing information file;
and arranging the association degree of the first tracing information file and the rest of the second tracing information files according to the sequence from big to small.
CN202011217318.7A 2020-11-04 2020-11-04 Traceability application method and system based on blockchain technology Active CN112348535B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011217318.7A CN112348535B (en) 2020-11-04 2020-11-04 Traceability application method and system based on blockchain technology

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011217318.7A CN112348535B (en) 2020-11-04 2020-11-04 Traceability application method and system based on blockchain technology

Publications (2)

Publication Number Publication Date
CN112348535A CN112348535A (en) 2021-02-09
CN112348535B true CN112348535B (en) 2023-09-12

Family

ID=74428384

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011217318.7A Active CN112348535B (en) 2020-11-04 2020-11-04 Traceability application method and system based on blockchain technology

Country Status (1)

Country Link
CN (1) CN112348535B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113282828B (en) * 2021-06-02 2024-03-26 万达信息股份有限公司 Method and system for determining places where users are often, and electronic equipment
CN113610550B (en) * 2021-08-26 2022-07-15 盐城一方信息技术有限公司 Product tracing method and system based on block chain

Citations (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105373091A (en) * 2014-08-11 2016-03-02 费希尔-罗斯蒙特系统公司 Securing Devices to Process Control Systems
CN105893542A (en) * 2016-03-31 2016-08-24 华中科技大学 Method and system for redistributing cold data files in cloud storage system
CN106598940A (en) * 2016-11-01 2017-04-26 四川用联信息技术有限公司 Text similarity solution algorithm based on global optimization of keyword quality
CN106610951A (en) * 2016-09-29 2017-05-03 四川用联信息技术有限公司 Improved text similarity solving algorithm based on semantic analysis
CN108198051A (en) * 2018-03-01 2018-06-22 口碑(上海)信息技术有限公司 Across the Method of Commodity Recommendation and device of merchandise classification
CN108346055A (en) * 2017-01-24 2018-07-31 上海中信信息发展股份有限公司 Food information retroactive method based on prefabricated single-stranded list data structure
CN109726246A (en) * 2018-12-13 2019-05-07 贵州电网有限责任公司 One kind being associated with reason retrogressive method with visual power grid accident based on data mining
CN110110547A (en) * 2019-04-08 2019-08-09 智链万源(北京)数字科技有限公司 Data processing method of tracing to the source and device
CN110288230A (en) * 2019-06-25 2019-09-27 北京慧眼智行科技有限公司 A kind of method and device of batch related product information
CN110674360A (en) * 2019-09-27 2020-01-10 厦门美亚亿安信息科技有限公司 Method and system for constructing data association graph and tracing data
CN110866461A (en) * 2019-10-29 2020-03-06 上海躲猫猫信息技术有限公司 Commodity automatic identification tracing anti-counterfeiting method and system based on texture partition
CN110930168A (en) * 2019-11-21 2020-03-27 山东爱城市网信息技术有限公司 Anti-counterfeiting method and device for anti-counterfeiting label based on block chain and storage medium
CN111047335A (en) * 2019-12-24 2020-04-21 天津理工大学 Article circulation system tracing method and system
CN111062768A (en) * 2019-10-28 2020-04-24 林佳 Commodity recommendation method and commodity recommendation system for online shopping mall
CN111127034A (en) * 2019-12-02 2020-05-08 北京海益同展信息科技有限公司 Commodity tracing method and device, client and storage medium
CN111242652A (en) * 2020-04-24 2020-06-05 支付宝(杭州)信息技术有限公司 Block chaining method of tracing information and related equipment
CN111681017A (en) * 2020-08-14 2020-09-18 支付宝(杭州)信息技术有限公司 Goods batch true checking method and device based on block chain and electronic equipment
CN111681015A (en) * 2020-06-10 2020-09-18 复旦大学 Product tracing method, system and equipment based on alliance chain

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10176481B2 (en) * 2015-12-21 2019-01-08 Beston Technologies Pty Ltd Method and apparatus for managing and providing provenance of product using blockchain
US10795977B2 (en) * 2017-08-24 2020-10-06 Oracle International Corporation Digital asset traceability and assurance using a distributed ledger

Patent Citations (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105373091A (en) * 2014-08-11 2016-03-02 费希尔-罗斯蒙特系统公司 Securing Devices to Process Control Systems
CN105893542A (en) * 2016-03-31 2016-08-24 华中科技大学 Method and system for redistributing cold data files in cloud storage system
CN106610951A (en) * 2016-09-29 2017-05-03 四川用联信息技术有限公司 Improved text similarity solving algorithm based on semantic analysis
CN106598940A (en) * 2016-11-01 2017-04-26 四川用联信息技术有限公司 Text similarity solution algorithm based on global optimization of keyword quality
CN108346055A (en) * 2017-01-24 2018-07-31 上海中信信息发展股份有限公司 Food information retroactive method based on prefabricated single-stranded list data structure
CN108198051A (en) * 2018-03-01 2018-06-22 口碑(上海)信息技术有限公司 Across the Method of Commodity Recommendation and device of merchandise classification
CN109726246A (en) * 2018-12-13 2019-05-07 贵州电网有限责任公司 One kind being associated with reason retrogressive method with visual power grid accident based on data mining
CN110110547A (en) * 2019-04-08 2019-08-09 智链万源(北京)数字科技有限公司 Data processing method of tracing to the source and device
CN110288230A (en) * 2019-06-25 2019-09-27 北京慧眼智行科技有限公司 A kind of method and device of batch related product information
CN110674360A (en) * 2019-09-27 2020-01-10 厦门美亚亿安信息科技有限公司 Method and system for constructing data association graph and tracing data
CN111062768A (en) * 2019-10-28 2020-04-24 林佳 Commodity recommendation method and commodity recommendation system for online shopping mall
CN110866461A (en) * 2019-10-29 2020-03-06 上海躲猫猫信息技术有限公司 Commodity automatic identification tracing anti-counterfeiting method and system based on texture partition
CN110930168A (en) * 2019-11-21 2020-03-27 山东爱城市网信息技术有限公司 Anti-counterfeiting method and device for anti-counterfeiting label based on block chain and storage medium
CN111127034A (en) * 2019-12-02 2020-05-08 北京海益同展信息科技有限公司 Commodity tracing method and device, client and storage medium
CN111047335A (en) * 2019-12-24 2020-04-21 天津理工大学 Article circulation system tracing method and system
CN111242652A (en) * 2020-04-24 2020-06-05 支付宝(杭州)信息技术有限公司 Block chaining method of tracing information and related equipment
CN111681015A (en) * 2020-06-10 2020-09-18 复旦大学 Product tracing method, system and equipment based on alliance chain
CN111681017A (en) * 2020-08-14 2020-09-18 支付宝(杭州)信息技术有限公司 Goods batch true checking method and device based on block chain and electronic equipment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
面向新浪微博的信息溯源技术研究;刘荣叁;张宇;王星;;智能计算机与应用(第02期);全文 *

Also Published As

Publication number Publication date
CN112348535A (en) 2021-02-09

Similar Documents

Publication Publication Date Title
CN109255622B (en) Traceable anti-fake data storage system
CN109978573B (en) Information traceability system based on block chain
EP3227853A1 (en) Cryptographic verification of provenance in a supply chain
CN112348535B (en) Traceability application method and system based on blockchain technology
US20210142337A1 (en) Product Authenticity Verification Based on Environment
CN112950229A (en) Block chain composite tracing method and tracing and identification analysis system
US20200151738A1 (en) Data Driven Product Authenticity Verification
CN107341384A (en) A kind of service verification method and system
CN109034842B (en) Agricultural product supply chain tracing system and method based on block chain
CN106254366A (en) For the identification processing method patrolled and examined, Apparatus and system
CN114331462A (en) Block chain-based product information processing method and computer-readable storage medium
CN112000730A (en) Tracing information writing and tracing information verification method and system based on block chain
CN112131471B (en) Method, device, equipment and medium for recommending relationship based on unowned undirected graph
CN110913397B (en) Short message verification method, device, storage medium and computer equipment
CN110599322B (en) Data auditing method and device based on blockchain network
WO2016155159A1 (en) Anti-fake method for realizing all-barcode verification based on wechat id
US20140158754A1 (en) Item authenticity
US20230334609A1 (en) Information management method and non-transitory, computer readable, tangible storage medium storing information management program
KR20190115343A (en) Operating method for post product management using managing server
WO2023245978A1 (en) Logistics waybill monitoring method, apparatus and device
CN110991961A (en) Block chain-based article inspection method, device, equipment and readable storage medium
CN110689356A (en) Method for recording commodity circulation process by using nested digital twin
KR20150045543A (en) Genuine product certification and sns posting system, and method using nfc tag and smart phone
CN110472707A (en) Product certification system and product certification method
CN115827773A (en) Data processing system, and storage medium and method for processing warehousing business documents of data processing system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant