CN111311284A - Cosmetics traceability platform system based on block chain - Google Patents
Cosmetics traceability platform system based on block chain Download PDFInfo
- Publication number
- CN111311284A CN111311284A CN202010105493.0A CN202010105493A CN111311284A CN 111311284 A CN111311284 A CN 111311284A CN 202010105493 A CN202010105493 A CN 202010105493A CN 111311284 A CN111311284 A CN 111311284A
- Authority
- CN
- China
- Prior art keywords
- data
- cosmetic
- block chain
- circulation
- information
- 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.)
- Granted
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION 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/00—Commerce
- G06Q30/018—Certifying business or products
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/24—Querying
- G06F16/245—Query processing
- G06F16/2458—Special types of queries, e.g. statistical queries, fuzzy queries or distributed queries
- G06F16/2471—Distributed queries
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/27—Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/60—Protecting data
- G06F21/602—Providing cryptographic facilities or services
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/60—Protecting data
- G06F21/62—Protecting access to data via a platform, e.g. using keys or access control rules
- G06F21/6218—Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/455—Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
- G06F9/45533—Hypervisors; Virtual machine monitors
- G06F9/45558—Hypervisor-specific management and integration aspects
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/455—Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
- G06F9/45533—Hypervisors; Virtual machine monitors
- G06F9/45558—Hypervisor-specific management and integration aspects
- G06F2009/45595—Network integration; Enabling network access in virtual machine instances
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Databases & Information Systems (AREA)
- Business, Economics & Management (AREA)
- Bioethics (AREA)
- Computer Security & Cryptography (AREA)
- Computer Hardware Design (AREA)
- General Health & Medical Sciences (AREA)
- Health & Medical Sciences (AREA)
- Data Mining & Analysis (AREA)
- Fuzzy Systems (AREA)
- Mathematical Physics (AREA)
- Probability & Statistics with Applications (AREA)
- Computational Linguistics (AREA)
- Computing Systems (AREA)
- Entrepreneurship & Innovation (AREA)
- Accounting & Taxation (AREA)
- Development Economics (AREA)
- Economics (AREA)
- Finance (AREA)
- Marketing (AREA)
- Strategic Management (AREA)
- General Business, Economics & Management (AREA)
- Storage Device Security (AREA)
Abstract
The invention discloses a cosmetic traceability platform system based on a block chain, which comprises the following modules: the system comprises a receiving uplink module, a data processing module and a judging and sending module. According to the method, data such as the data set and the Mercker trusted tree are stored in the cloud, the cloud processes and queries the error tracing data, and the keys of the check data and the error tracing data are stored in the block chain, so that the block chain and cloud computing are effectively combined, the storage efficiency and stability are greatly improved, and the data tracing safety is effectively guaranteed.
Description
Technical Field
The invention belongs to the technical field of cosmetic block chains, and particularly relates to a cosmetic traceability platform system based on a block chain.
Background
With the improvement of living standard, people pay more and more attention to the modification of the people, the requirements on cosmetics are higher and higher, and the cosmetics are gradually developed towards a more scientific, natural and effective direction. Therefore, professional functional products such as high-efficiency moisturizing, whitening, aging resistance and the like are sequentially produced, so that the existing cosmetics are various in types and different in performance characteristics. The block chain technology is utilized in the market at present to solve the problem of counterfeit cosmetics.
However, in the existing cosmetic circulation information tracing, a block chain and cloud computing are not effectively combined, the data storage capacity of the block chain is too large, system collapse is easy to occur, the storage efficiency is not high, the stability is not good, the safety of tracing data cannot be effectively guaranteed, when a tracing result is wrong, the relevance degree and the data quality of query data and wrong data are not considered when the wrong data part of a corresponding stage is queried, so that the retrieval efficiency is not high, the accuracy cannot be guaranteed, the wrong code identification is not accurate when the wrong tracing result data is stored, the block chain is greatly modified, and the compatibility is not good.
Disclosure of Invention
The invention aims to overcome the defects and provide a cosmetic traceability platform system based on a block chain;
the invention relates to a cosmetic traceability platform system based on a block chain, which comprises the following modules:
the system comprises a receiving uplink module, a block chain system and a transmitting module, wherein the receiving uplink module is used for receiving a cosmetic circulation information uplink request sent by a cosmetic manufacturer, verifying the cosmetic circulation information, packaging the cosmetic circulation information into blocks after the verification is passed, and storing the blocks into the block chain after the block chain system verifies the blocks;
the data processing module is used for receiving a cosmetic circulation information query request sent by a user and tracing the cosmetic circulation information;
and the judgment and sending module is used for judging whether the cosmetic circulation information traceability result is correct or not and sending the judgment result to the block chain system for storage.
The invention stores data such as data sets, a Mercury trusted tree and the like into a cloud end, the cloud end processes and queries error tracing data, and a secret key of verification data and the error tracing data is stored into a block chain, so that the block chain is effectively combined with cloud computing, the storage efficiency and stability are greatly improved, the safety of the tracing data is effectively guaranteed, when a tracing result is wrong, the association degree of the error tracing data and single data is stored into a data sequence with the length of L, the highest association degree of the L data is finally determined to ensure the data quality, the needed data context is less, the occupied computing resource is small, the query achieves the effect of reducing the search space, the retrieval efficiency and the accuracy are greatly improved, and the codes of a bottom layer virtual machine are identified by compiling the judgment result as the input into the codes of the bottom layer virtual machine, so that the error codes can be accurately identified, the read-only area of the variable function memory block chain is designed without greatly modifying the block chain, so that the data can be quickly sorted and inquired, the working efficiency and the data security level can be effectively improved, and the compatibility is very strong.
Drawings
Fig. 1 is a schematic diagram of a cosmetic traceability system based on a blockchain and cloud computing.
Detailed Description
The invention is further illustrated by the following specific examples:
a cosmetic traceability platform system based on a block chain comprises the following modules:
the system comprises a receiving uplink module, a block chain system and a transmitting module, wherein the receiving uplink module is used for receiving a cosmetic circulation information uplink request sent by a cosmetic manufacturer, verifying the cosmetic circulation information, packaging the cosmetic circulation information into blocks after the verification is passed, and storing the blocks into the block chain after the block chain system verifies the blocks;
the data processing module is used for receiving a cosmetic circulation information query request sent by a user and tracing the cosmetic circulation information;
and the judgment and sending module is used for judging whether the cosmetic circulation information traceability result is correct or not and sending the judgment result to the block chain system for storage.
The receiving uplink module is specifically used for processing each single item of data of the cosmetic circulation information as a node of a Mercker trusted tree according to a Mercker trusted tree generation algorithm to generate the Mercker trusted tree, conducting hash processing on the cosmetic circulation information to obtain cosmetic circulation hash data, conducting data encryption on the cosmetic circulation hash data and the Mercker trusted tree, conducting hash operation on the encrypted result to serve as verification data, storing the cosmetic circulation information and the Mercker trusted tree in a cloud end, recording cosmetic circulation main key information and a cosmetic circulation number, storing the verification data and the cosmetic circulation main key information in a block chain in a transaction mode, and storing the corresponding cosmetic circulation block information number and the corresponding cosmetic circulation transaction hash number.
The data processing module is also used for generating a cosmetic code according to the content information of the cosmetic flow number, generating a two-dimensional code corresponding to the cosmetic and sending the two-dimensional code to a user.
The data processing module is also specifically used for the user to obtain a cosmetic code through the identification of the cosmetic two-dimensional code, so that a cosmetic transfer number is obtained*Through cosmetic flow numbering*Obtaining cosmetic circulation information by cloud inquiry*Cosmetic circulation block information number*Hash number with cosmetics circulation transaction*By cosmetic circulation block information numbering*Hash number with cosmetics circulation transaction*Checking data is inquired on the block chain, and cosmetics circulation information is inquired*Hash processing is carried out and then encryption is carried out to generate check data*Will check the data*And comparing the data with the checking data obtained by inquiry.
The judging and sending module is specifically used for checking data*When the correlation degree is less than the minimum correlation degree in the data sequence, stopping traversing and returning to the previous node for continuous traversing if the correlation degree is more than the minimum correlation degree in the data sequence, and continuously traversing all sub-nodes of the cosmetics flow to single data if the correlation degree is more than the minimum correlation degree in the data sequence; such asIf the second single data with the out-degree of 0 is encountered, calculating the association degree of the second single data and the error tracing data, if the association degree is smaller than the minimum association degree in the data sequence, continuing to traverse, and if the association degree is larger than the minimum association degree in the data sequence, replacing the minimum association degree in the data sequence with the association degree and continuing to traverse; by analogy, the association degrees in the final data sequence are the L highest data association degrees; the cloud end sorts the calculated score results, and returns the encrypted data downloading IP address list of the previous L stages corresponding to the results to the user; and the user downloads the encrypted data, decrypts the data after interacting the downloading key with the block chain, finds the modified data part and displays the tracing result with problems.
The relevance R of the error tracing data and the single dataed,sdThe calculation formula is as follows:
wherein d isedAnd dsdRespectively representing the data set with error tracing data ed and single data sd, N (d)ed*both*dsd) The number of data sets N (d) representing the simultaneous existence of error tracing data ed and singleton data sded*least*dsd) The number of data sets indicating that at least one error tracing data ed and the single data sd exist is larger, and the more the number of data sets the error tracing data ed and the single data sd appear in the same data set is, the greater the association degree of the error tracing data ed and the single data sd is.
The judging and sending module is further specifically used for compiling the judgment result as an input into a code of a bottom virtual machine, identifying the code of the bottom virtual machine, judging an operation code and an operand according to an input condition, marking the jump operation code and the operand of a cross-function, making a design variable function of the jump operation code and the operand, inputting a false storage address of the judgment operation code and the operand into the jump operation code and the operand of the design variable function, and storing a block chain read-only region of the design variable function.
Claims (7)
1. A cosmetics traceability platform system based on a block chain is characterized by comprising the following modules:
the system comprises a receiving uplink module, a block chain system and a transmitting module, wherein the receiving uplink module is used for receiving a cosmetic circulation information uplink request sent by a cosmetic manufacturer, verifying the cosmetic circulation information, packaging the cosmetic circulation information into blocks after the verification is passed, and storing the blocks into the block chain after the block chain system verifies the blocks;
the data processing module is used for receiving a cosmetic circulation information query request sent by a user and tracing the cosmetic circulation information;
and the judgment and sending module is used for judging whether the cosmetic circulation information traceability result is correct or not and sending the judgment result to the block chain system for storage.
2. The block chain-based cosmetic traceability platform system of claim 1, wherein the receive uplink module is specifically configured to process each individual item of data of the cosmetic circulation information as a node of the mercker trusted tree according to the mercker trusted tree generation algorithm to generate the mercker trusted tree, performing Hash processing on the cosmetic circulation information to obtain cosmetic circulation Hash data, performing data encryption on the cosmetic circulation Hash data and the Mercker trusted tree, and then carrying out Hash operation on the encrypted result to be used as verification data, storing the cosmetic circulation information and the Mercker trusted tree into the cloud, recording the cosmetic circulation key information and the cosmetic circulation serial number, storing the verification data and the cosmetic circulation key information into a block chain in a transaction form, and storing the corresponding cosmetic circulation block information serial number and the corresponding cosmetic circulation transaction Hash serial number.
3. The block chain-based cosmetic traceability platform system of claim 2, wherein the data processing module is further configured to generate a cosmetic code according to the content information of the cosmetic turnover number, generate a two-dimensional code corresponding to the cosmetic, and send the two-dimensional code to the user.
4. The block chain-based cosmetic traceability platform system of claim 3, wherein the data processing module is further specifically configured to enable a user to obtain a cosmetic code through cosmetic two-dimension code recognition, thereby obtaining a cosmetic product number*Through cosmetic flow numbering*Obtaining cosmetic circulation information by cloud inquiry*Cosmetic circulation block information number*Hash number with cosmetics circulation transaction*By cosmetic circulation block information numbering*Hash number with cosmetics circulation transaction*Checking data is inquired on the block chain, and cosmetics circulation information is inquired*Hash processing is carried out and then encryption is carried out to generate check data*Will check the data*And comparing the data with the checking data obtained by inquiry.
5. The block chain-based cosmetic traceability platform system of claim 4, wherein the judgment sending module is specifically configured to check the data*When the correlation degree is less than the minimum correlation degree in the data sequence, stopping traversing and returning to the previous node for continuous traversing if the correlation degree is more than the minimum correlation degree in the data sequence, and continuously traversing all sub-nodes of the cosmetics flow to single data if the correlation degree is more than the minimum correlation degree in the data sequence; if the second single data with the out degree of 0 is encountered, calculating the association degree of the second single data and the error tracing data, if the association degree is smaller than the minimum association degree in the data sequence, continuing traversal, and if the association degree is larger than the minimum association degree in the data sequence, replacing the association degree with the dataMinimum correlation degree in the sequence and continuous traversal; by analogy, the association degrees in the final data sequence are the L highest data association degrees; the cloud end sorts the calculated score results, and returns the encrypted data downloading IP address list of the previous L stages corresponding to the results to the user; and the user downloads the encrypted data, decrypts the data after interacting the downloading key with the block chain, finds the modified data part and displays the tracing result with problems.
6. The block chain-based cosmetic traceability platform system of claim 5, wherein the relevance R of the error traceability data and the single data ised,sdThe calculation formula is as follows:
wherein d isedAnd dsdThe data sets respectively represent that the error tracing data ed and the single data sd exist, N (ded × both × dsd) represents the number of data sets that the error tracing data ed and the single data sd exist at the same time, N (ded × left × dsd) represents the number of data sets that the error tracing data ed and the single data sd at least exist, and the more the error tracing data ed and the single data sd appear in the same data set, the greater the association degree of the error tracing data ed and the single data sd.
7. The block chain-based cosmetic traceability platform system of claim 5 or 6, wherein the judgment sending module is further specifically configured to compile a judgment result as an input into a code of the underlying virtual machine, identify the code of the underlying virtual machine, input the condition judgment operation code and the operand, point to the jump operation code and the operand at an actual storage address, mark the jump operation code and the operand across functions, make a design variable function of the jump operation code and the operand, point to the jump operation code and the operand of the design variable function at a false storage address of the judgment operation code and the operand, store the design variable function into the block chain read-only region.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010105493.0A CN111311284B (en) | 2020-02-20 | 2020-02-20 | Cosmetics traceability platform system based on block chain |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010105493.0A CN111311284B (en) | 2020-02-20 | 2020-02-20 | Cosmetics traceability platform system based on block chain |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111311284A true CN111311284A (en) | 2020-06-19 |
CN111311284B CN111311284B (en) | 2021-10-08 |
Family
ID=71161927
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010105493.0A Active CN111311284B (en) | 2020-02-20 | 2020-02-20 | Cosmetics traceability platform system based on block chain |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111311284B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112547737A (en) * | 2020-11-21 | 2021-03-26 | 宁波甜宝生物信息技术有限公司 | Instrument cleaning equipment for microbial detection |
CN112632640A (en) * | 2020-12-30 | 2021-04-09 | 杭州趣链科技有限公司 | Green power tracing method, electronic device and storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108599963A (en) * | 2018-05-11 | 2018-09-28 | 招商局重庆交通科研设计院有限公司 | A kind of detection data based on block chain technology is traced to the source verification method |
CN108734475A (en) * | 2017-04-19 | 2018-11-02 | 中山大学 | A kind of method for anti-counterfeit of tracing to the source based on big data correlation analysis |
CN109034809A (en) * | 2018-08-16 | 2018-12-18 | 北京京东尚科信息技术有限公司 | Generation method, device, block chain node and the storage medium of block chain |
CN110545250A (en) * | 2018-05-29 | 2019-12-06 | 国际关系学院 | Tracing method for fusion association of multi-source attack traces |
CN110659912A (en) * | 2019-09-25 | 2020-01-07 | 北京艾摩瑞策科技有限公司 | Cosmetic circulation information tracing method and device based on block chain |
-
2020
- 2020-02-20 CN CN202010105493.0A patent/CN111311284B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108734475A (en) * | 2017-04-19 | 2018-11-02 | 中山大学 | A kind of method for anti-counterfeit of tracing to the source based on big data correlation analysis |
CN108599963A (en) * | 2018-05-11 | 2018-09-28 | 招商局重庆交通科研设计院有限公司 | A kind of detection data based on block chain technology is traced to the source verification method |
CN110545250A (en) * | 2018-05-29 | 2019-12-06 | 国际关系学院 | Tracing method for fusion association of multi-source attack traces |
CN109034809A (en) * | 2018-08-16 | 2018-12-18 | 北京京东尚科信息技术有限公司 | Generation method, device, block chain node and the storage medium of block chain |
CN110659912A (en) * | 2019-09-25 | 2020-01-07 | 北京艾摩瑞策科技有限公司 | Cosmetic circulation information tracing method and device based on block chain |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112547737A (en) * | 2020-11-21 | 2021-03-26 | 宁波甜宝生物信息技术有限公司 | Instrument cleaning equipment for microbial detection |
CN112547737B (en) * | 2020-11-21 | 2022-04-26 | 深圳市明鉴细胞专业技术有限公司 | Instrument cleaning equipment for microbial detection |
CN112632640A (en) * | 2020-12-30 | 2021-04-09 | 杭州趣链科技有限公司 | Green power tracing method, electronic device and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN111311284B (en) | 2021-10-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109040341B (en) | Intelligent contract address generation method and device, computer equipment and readable storage medium | |
CN105027115B (en) | Inquiry to document and index | |
Drew et al. | Polymorphic malware detection using sequence classification methods | |
CN111311284B (en) | Cosmetics traceability platform system based on block chain | |
CN108595980A (en) | A kind of commodity trace to the source information guard method and device | |
CN111476673A (en) | Method, device and medium for aligning users among social networks based on neural network | |
US20230177089A1 (en) | Identifying similar content in a multi-item embedding space | |
CN114386046A (en) | Unknown vulnerability detection method and device, electronic equipment and storage medium | |
Fan et al. | Towards efficient authenticated subgraph query service in outsourced graph databases | |
CN113704781A (en) | File secure transmission method and device, electronic equipment and computer storage medium | |
CN114493630A (en) | Industrial internet-based white spirit product tracing method and equipment | |
CN110489466A (en) | Generation method, device, terminal device and the storage medium of invitation code | |
CN113610545A (en) | Product anti-counterfeiting method, system, equipment and storage medium | |
CN113987427A (en) | Tracing method of homologous codes | |
CN111124421B (en) | Abnormal contract data detection method and device for blockchain intelligent contract | |
CN112839055B (en) | Network application identification method and device for TLS encrypted traffic and electronic equipment | |
CN114707166A (en) | Data storage and reading method, device, equipment and storage medium | |
CN114372291A (en) | Privacy joint reasoning method, device, equipment and storage medium | |
WO2014175873A1 (en) | Validation in serialization flow | |
CN113656466B (en) | Policy data query method, device, equipment and storage medium | |
CN113420119B (en) | Intelligent question-answering method, device, equipment and storage medium based on knowledge card | |
CN115375329A (en) | Digital collection transaction traceability anti-counterfeiting management method and system | |
CN108304467A (en) | For matched method between text | |
CN111311283B (en) | Cosmetic source tracing production process method based on block chain and cloud computing | |
CN111898157A (en) | Method for accessing inadvertent storage of machine learning multi-source training set |
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 | ||
TA01 | Transfer of patent application right |
Effective date of registration: 20210825 Address after: 318026 tou Tuo Zhen Pu Kou Cun, Huangyan District, Taizhou City, Zhejiang Province Applicant after: Taizhou Lingya plastic mould Co.,Ltd. Address before: 315100 No.222 Tiangao lane, Shounan street, Yinzhou District, Ningbo City, Zhejiang Province Applicant before: Ningbo Tianbao bio information technology Co., Ltd |
|
TA01 | Transfer of patent application right | ||
GR01 | Patent grant | ||
GR01 | Patent grant |