CN113793158A - Textile inspection detection information query method and system - Google Patents

Textile inspection detection information query method and system Download PDF

Info

Publication number
CN113793158A
CN113793158A CN202111061678.7A CN202111061678A CN113793158A CN 113793158 A CN113793158 A CN 113793158A CN 202111061678 A CN202111061678 A CN 202111061678A CN 113793158 A CN113793158 A CN 113793158A
Authority
CN
China
Prior art keywords
data
detection
inspection
textile
textile inspection
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.)
Pending
Application number
CN202111061678.7A
Other languages
Chinese (zh)
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.)
Luzhou Tuolv Textile Technology Co ltd
Original Assignee
Luzhou Tuolv Textile Technology 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 Luzhou Tuolv Textile Technology Co ltd filed Critical Luzhou Tuolv Textile Technology Co ltd
Priority to CN202111061678.7A priority Critical patent/CN113793158A/en
Publication of CN113793158A publication Critical patent/CN113793158A/en
Pending legal-status Critical Current

Links

Images

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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2458Special types of queries, e.g. statistical queries, fuzzy queries or distributed queries
    • G06F16/2471Distributed queries
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/602Providing cryptographic facilities or services
    • 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
    • G06Q50/00Systems or methods specially adapted for specific business sectors, e.g. utilities or tourism
    • G06Q50/04Manufacturing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/04Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks
    • H04L63/0428Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload
    • H04L63/0442Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload wherein the sending and receiving network entities apply asymmetric encryption, i.e. different keys for encryption and decryption
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/08Key distribution or management, e.g. generation, sharing or updating, of cryptographic keys or passwords
    • H04L9/0816Key establishment, i.e. cryptographic processes or cryptographic protocols whereby a shared secret becomes available to two or more parties, for subsequent use
    • H04L9/0819Key transport or distribution, i.e. key establishment techniques where one party creates or otherwise obtains a secret value, and securely transfers it to the other(s)
    • H04L9/0825Key transport or distribution, i.e. key establishment techniques where one party creates or otherwise obtains a secret value, and securely transfers it to the other(s) using asymmetric-key encryption or public key infrastructure [PKI], e.g. key signature or public key certificates
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/32Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials
    • H04L9/3236Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials using cryptographic hash functions
    • H04L9/3239Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials using cryptographic hash functions involving non-keyed hash functions, e.g. modification detection codes [MDCs], MD5, SHA or RIPEMD
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/32Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials
    • H04L9/3247Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials involving digital signatures
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/50Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols using hash chains, e.g. blockchains or hash trees
    • 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 invention relates to the technical field of textile inspection and detection, and particularly discloses a method and a system for inquiring textile inspection and detection information, wherein a block chain system is constructed, block chain nodes are arranged, textile inspection and detection flow data are uploaded to the block chain nodes, and a user inquires the textile inspection and detection flow data in real time through the textile inspection and detection block chain system; the textile inspection and detection process data comprises inspector production data, sample sampling data, sample circulation data and inspection and detection data, and the block link points comprise inspection nodes, sampling nodes, circulation nodes and inspection and detection nodes; the system comprises a forwarding and checking party, a sampling party, a circulation party and a detection party, solves the problems that the results cannot be traced, the real-time information is asymmetric, the information is difficult to share, the falsification is easy, the data storage center is easy to detect and detect in the textile detection and detection process, and realizes the credibility, the traceability and the traceability of the full chain of the textile detection and detection information and data.

Description

Textile inspection detection information query method and system
Technical Field
The invention relates to the technical field of textile inspection and detection, in particular to a method and a system for inquiring textile inspection and detection information.
Background
With the rapid development of textile industry, the processes of textile production, sales, service and the like gradually become standardized and large-scale, and great convenience is brought to textile operators. However, with the change of the consumption concept of consumers and the increase of the consumption demand of textiles, the existing textile industry management mode cannot meet the operation demand of the textile industry. At present, the textile industry is generally managed in the market in a management mode in which each textile operation enterprise manages the textile industry individually. However, the management mode easily causes information sealing, cannot achieve data sharing of textile enterprises, easily causes resource waste, and affects purchasing experience of consumers.
Meanwhile, China, as a large manufacturing country, exports a large number of industrial and civil textiles abroad every year. Under the trend, the technical trade barrier means is adopted abroad, and huge barriers and barriers are caused to foreign trade in China. In China, inspection and quarantine organizations undertake the responsibility of service export economy, break through foreign technical barriers and ensure that export textiles meet the requirements of imported technical regulations and standards.
Since international and technical trade barriers are dynamically changing, it has long been a difficult problem to determine export textiles that need intensive supervision. The textile sample to be detected is usually sent to a detection mechanism or a detection center for detection by a manufacturer, multiple persons can stand in the sample sampling and actual detection processes, once the detection result is disputed, it is difficult to determine which link is the problem, the product quality of the manufacturer is possibly the problem, the sample can be maliciously unpacked by people who are not good in mind in the sample sending and detection process, the detection mechanism is not strictly operated according to the detection standard, the detection instrument of the detection mechanism is possibly failed or the detection reagent is deteriorated, the detection result can be maliciously changed by detection personnel, the storage condition of the sample to be detected is improper, the quality loss is possibly caused, the logistics link of the sample to be detected in the sending and detection process is also possible to cause the problems and errors, in a word, in the whole process that the sample to be detected is sent from a production workshop to a detection laboratory and a detection report is issued, errors may occur in a plurality of links, and the existing textile detection system is difficult to complete effective investigation of each link, which brings great difficulty to later investigation and evidence collection. Therefore, there is an urgent need for a textile inspection and detection mechanism to develop a system and method capable of integrating the full flow information of textile inspection and detection and effectively inquiring and tracing the textile detection data.
The blockchain is a decentralized electronic accounting technology, can safely store transaction or other data, and information cannot be forged or falsified. The transaction may be digital currency such as bitcoin, digital assets such as a debt, a stock right, a copyright, and the like, and may be any digital information in a broad sense. Its presence greatly reduces the cost of trust and accounting for real economies. By means of the block chain structure and the timestamp technology, information on the chain is only allowed to be newly added and cannot be modified or replaced, the data on the chain cannot be tampered in content and time, and the evidence storage record can be permanently traced and audited.
The block chain technology has the advantages that the information cannot be tampered, the information on the chain is only allowed to be newly added and cannot be modified and replaced by relying on the block chain structure and the timestamp technology, the data on the chain cannot be tampered in content and time, and the evidence storage record is permanently traceable and auditable. The block chain technology has distributed management, data accounts on the block chain are stored in a distributed mode through all the participating nodes, all the block chain nodes store the full data on the chain through a preset consensus algorithm, and the data on the chain are maintained together. The block chain technology has a consensus mechanism and a data review mechanism with the public transparency and through multi-party agreement, the data processing flow on the chain is opened and audited for the participating nodes, and all users can inquire the evidence storage data through a block chain browser. The block chain technology is also autonomous, multiple parties on the chain can agree on the operation rules and evidence storage rules applied on the chain, the subsequent chain application can strictly operate according to the agreement, and any third party cannot privately tamper with the operation rules, so that the safe operation of the chain application is guaranteed.
The inventor provides a technical scheme of the invention, and provides a textile inspection detection information query method and system based on the block chain technology to solve the problems.
Disclosure of Invention
In order to solve the technical problems, the invention provides a textile inspection detection information query method and system based on a block chain technology, which well solve the centralization problem of textile inspection detection data by constructing a textile inspection detection information query system and by means of the textile inspection detection information query method, solve the problems of incapability of tracing the result, asymmetry of real-time information, difficulty in sharing information, easiness in tampering information, centralization of inspection detection data storage and the like in the traditional textile inspection detection process, and realize the credibility, the traceability and the traceability of the full chain of the textile inspection detection information and data.
In order to achieve the purpose, the technical scheme of the invention is as follows:
a textile inspection detection information query method comprises the following steps: constructing a textile inspection and detection block chain system, setting block chain nodes, uploading textile inspection and detection flow data to the block chain nodes, and inquiring the textile inspection and detection flow data in real time by a user through the textile inspection and detection block chain system; the textile inspection and detection process data comprises inspector production data, sample sampling data, sample circulation data and inspection and detection data, and the block link points comprise inspection and detection nodes, sampling nodes, circulation nodes and inspection and detection nodes; the user comprises a forwarding party, a sampling party, a circulation party and a detection party.
Further, the textile inspection detection block chain system comprises an infrastructure layer, a data layer, a consensus layer, a contract layer, and an application layer.
Further, the infrastructure layer comprises an information network cloud platform, and the information network cloud platform is used for calculating, storing and managing the textile inspection and detection process data safely.
Further, the data layer comprises a data cooperation verification module, the data cooperation verification module performs data labeling on the textile inspection detection data by adopting a bar code or a two-dimensional code, and the data verification process of the data cooperation verification module is as follows: and the upstream node sends a data transaction request, the downstream node verifies whether the data transaction request is consistent with the bar code or the two-dimensional code data, if the verification result is negative, the verification fails and the uplink cannot be carried out, and if the verification result is positive, the data are packaged and stored in an uplink mode.
Further, the data layer comprises a data collaborative verification module and a data dynamic storage module, the data dynamic storage module performs dynamic verification storage on the textile inspection detection data, and the dynamic verification storage process comprises: the data issuing node applies for issuing dynamic data, the block chain system calculates a public key of the issuing node and a front end hash value corresponding to a private key and carries out data signature by using the private key to obtain a front end data set, the data issuing node adopts the public key of the data receiving node to carry out encryption sending on the front end data set, the data receiving node adopts a private key of the data receiving node to carry out decryption on the received front end data set to obtain a rear end data set and adopts the public key of the data issuing node to verify the signature to obtain a rear end hash value, hash operation is carried out on the public key of the rear end data set and the public key of the data issuing node to obtain a verification hash value, the verification hash value is compared with the rear end hash value, if equal, the dynamic data is received, and if unequal, the dynamic data is not received.
Further, the consensus layer runs a consensus algorithm that includes an integral penalty mechanism.
Furthermore, intelligent contracts are deployed and operated on the contract layer, are installed by authorized users, and exchange data with the intelligent contract node servers through the intelligent contract client.
Further, the application layer comprises a computer client or a mobile phone client, and the computer client and the mobile phone client both support an HTML5 or CSS data interaction interface.
The invention also provides a textile inspection detection information query system, which runs the textile inspection detection information query method of any one of claims 1 to 8 and is used for querying the production data, sample sampling data, sample circulation data and inspection detection data of a testee in the textile inspection detection process.
Further, the system includes a gateway, a data service, and a distributed database store.
Compared with the prior art, the invention has the following beneficial effects:
by constructing a textile inspection and detection information inquiry system and by means of a textile inspection and detection information inquiry method, the centralized problem of textile inspection and detection data is well solved, the problems that the result cannot be traced back, the real-time information is asymmetric, the information is difficult to share, the information is easy to tamper, the inspection and detection data is stored centrally and the like in the traditional textile inspection and detection process are solved, and the full-chain credibility, the traceability and the traceability of the textile inspection and detection information and data are realized.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a block chain system according to the present invention.
Detailed Description
For further understanding of the present invention, embodiments of the present invention will be described in further detail below with reference to examples and comparative examples, but embodiments of the present invention are not limited thereto.
In order to make the purpose and technical solution of the present invention more apparent, the present invention is further described in detail with reference to the following examples. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention. The following describes the application of the present invention in detail.
A textile inspection detection information query method comprises the following steps: constructing a textile inspection and detection block chain system, setting block chain nodes, uploading textile inspection and detection flow data to the block chain nodes, and inquiring the textile inspection and detection flow data in real time by a user through the textile inspection and detection block chain system; the textile inspection and detection process data comprises inspector production data, sample sampling data, sample circulation data and inspection and detection data, and the block link points comprise inspection and detection nodes, sampling nodes, circulation nodes and inspection and detection nodes; the user comprises a forwarding party, a sampling party, a circulation party and a detection party.
In actual use, the delivery side uploads delivery person production data of a sample to be tested (referred to as a sample to be tested) to the blockchain system through a delivery node, wherein the delivery person production data includes but is not limited to: production time, workshop shift, raw material source, processing shift and main process parameters in the production process; the sampling method comprises the steps that a sampling party samples a sample to be detected to generate sample sampling data, and the sample sampling data are uploaded to a block chain system through sampling nodes, wherein the sample sampling data comprise but are not limited to sampling time, sampling place, sampling position, sampling size, sampling rate, sampling method and sampling standard; the circulation party transports or circulates the sampled sample to be detected to generate sample circulation data, and the sample circulation data is uploaded to the block chain system through a circulation node, wherein the sample circulation data comprises but is not limited to a sample circulation transportation mode, a storage mode in sample circulation transportation, sample receiving time, sample sending time, a sample delivery person and a sample signing person; the detection method comprises the steps that a detection party carries out detection on delivered samples and generates detection data, the detection party uploads the detection data to a block chain through detection nodes, and the detection data comprises but is not limited to used detection standards, detection time, detection laboratory positions, detection laboratory physical environments, detection process whole-course monitoring videos, detection instrument models and manufacturers, detection reagent types, detection reagent using amounts, detection reagent manufacturers, detection result rechecking conditions, detection result recording conditions and detection result uploading conditions.
As shown in figure 1, the censored production data, the sample sampling data, the sample flow data and the inspection detection data are transmitted by modern wireless transmission channels such as WLAN, 4G, 5G and the like, the data are used as the source of block chain data formed by detailed information of the sample to be inspected, and the system comprises a gateway, a data service and distributed database storage.
The blockchain system used in the invention can be regarded as a distributed ledger, which is a data structure for recording transactions. Blocks for recording information in the system are connected into a chain, each block comprises transaction information and a hash pointer of the previous block, the hash pointers connect the blocks, and the sequence arrangement of past transactions is realized through time stamps. The block chain solves the problem of un-trust between nodes based on a cryptology principle and a consensus mechanism, so that two trading parties can reach a consensus without participation of a third party, information is commonly maintained by all nodes, and decentralization is realized.
The storage structure of the block chain is chain-type, and the generated transaction information is stored in the blocks. Each block is divided into a block head and a block body, wherein the block head and the block body comprise a hash value of a previous block and are used for connecting a block, a time stamp, a hash value of the block body and the like are also included, the block chain technology mainly comprises three types, namely a public chain, a private chain and a alliance chain, and the public chain is actually a so-called public block chain, and has public property for all people in the public internet, so that the public block chain technology does not need to provide identification or request permission for joining the network, all people have the right to read data, all can send transactions and effectively confirm, and all people can participate in the process of common identification. Typical representatives of this type are etherhouse and bitcoin. Private chain, which is a so-called fully private block chain, mainly means that only a very few people or an organization have rights. It limits the rights to open and read to the outside, and while it is sometimes desirable to have some public auditability, it is not generally required because of its centralisation. The alliance chain, namely a so-called alliance block chain, is an intermediate type with the characteristics of the two, and the alliance chain refers to the fact that a preselected node can control the consensus process of the preselected node to a certain extent, only an organization in a system can read and write accounts, record related data and enter an alliance chain network after authorization is obtained. There is therefore a limit to the extent of this type of decentralization and openness, requiring participants to be designated or pre-screened, and certain rights with respect to reading transaction data, which may be public or owned only by those system participants. The invention selects the alliance chain technology according to the characteristics of the organizational structure, the tracing speed, the local centralization and the data security of the textile inspection and detection block chain system.
In the textile inspection and detection block chain system, a plurality of data or all data of a sample to be detected in the production, adoption, sample conveying and transfer and detection processes are collected and recorded, finally, production data, sample sampling data, sample conveying and transfer data and inspection and detection data of an inspector are formed, and data of all links are stored to a block chain network through verification and chaining. After the textile inspection detection information is linked up and stored, the uploaded data is encrypted by using a cryptography encryption technology to prevent a production party (or a delivery party) or a circulation party of a sample to be inspected from tampering related information of the sample to be inspected, and the traceability of the related information of the sample to be inspected is realized by means of a timestamp in a block chain technology. A block chain capable of being inquired and supervised in a traceable mode is generated by means of a timestamp technology in the block chain system, and the chain runs through the sample to be detected from production and processing to final detection, so that the product state can be inquired through the chain at any time.
The censorship production data, the sample sampling data, the sample flow conversion data and the inspection detection data which are uploaded to the block chain system need to be encrypted. Asymmetric encryption is different from symmetric encryption, which requires two keys, and after data is encrypted by using a public key, the data can be decrypted only by using a corresponding private key. The public key is public, the private key is held by an individual and cannot be acquired by others, and the public key is generated by the private key, so that the public key can be derived, but the public key cannot be derived. The block chain encryption algorithm has the advantages of high safety, but relatively low encryption and decryption speed. Typical algorithms that may be used with the present invention are DSA, RSA, elliptic curve algorithms, etc., as desired.
The textile inspection detection block chain system comprises an infrastructure layer, a data layer, a consensus layer, a contract layer and an application layer.
The infrastructure layer in the textile inspection detection block chain system comprises an information network cloud platform, commercial cloud platforms on the market such as Ariiyun, Tencent cloud or Baidu cloud can be directly adopted, and the information network cloud platform is used for calculating, storing and safely managing textile inspection detection flow data.
The data layer in the textile inspection detection block chain system is mainly used for uploading production data, sample sampling data, sample flow transfer data, inspection detection data and the like of a sample to be inspected to generate blocks in a dynamic storage mode.
The application of the block chain technology can ensure that the information of the sample to be detected cannot be changed after the block is generated, but can not ensure the authenticity of the data before the data is stored in the block chain. Therefore, the problem of data authenticity is a priority of the system of the present invention, otherwise the decentralized and tamper-proof properties of the blockchain technology become meaningless once counterfeit data is stored during data link storage, and for this problem, the present invention provides a collaborative verification function in the data layer to ensure the authenticity of the information of the sample to be checked.
The data collaborative verification module arranged in the data layer carries out data annotation on the textile inspection detection data by adopting a bar code or a two-dimensional code, and the data verification process of the data collaborative verification module is as follows: and the upstream node sends a data transaction request, the downstream node verifies whether the data transaction request is consistent with the bar code or the two-dimensional code data, if the verification result is negative, the verification fails and the uplink cannot be carried out, and if the verification result is positive, the data are packaged and stored in an uplink mode.
The specific operation of the data collaborative verification module is completed by specific staff of a submission party, a sampling party, a circulation party and a detection party, each staff has a set of work numbers and corresponding electronic signatures, the numbers of the staff need to be input as the identification when a product to be detected is detected, the signature is completed, and a signature result and information are written into the two-dimensional code after the signature is completed. The digital signature has the authentication function, can inquire the related information of a signer through the signature, can protect the content of the label, and is equivalent to a layer of coded lock arranged for internal data. The use of digital signatures essentially requires two flows: and verifying and sending information mutually. The flow needs to use the assignment mode of hash operation, firstly, the operation is used for obtaining the information to be sent, the sender writes the own secret key number in the information and the hash number, and then the two-party number is packaged and sent out. And the receiver after receiving the information contacts the sender, after the receiver and the sender are confirmed to be correct, the secret key of the sender is input, the data package is opened, the hash algorithm the same as that of the sender is used for carrying out hash operation on the received data, the obtained hash value is compared with the hash value in the verification result, and if the hash value is the same as that of the sender, the verification is passed.
Meanwhile, the data layer comprises a data dynamic storage module, the data dynamic storage module carries out dynamic verification storage on the textile inspection detection data, and each entity organization node in the block chain network of the sample to be detected has a public key and a private key and has a unique identity. When a node applies to issue new dynamic data or operates existing dynamic data, the node needs to be verified to achieve consensus and form a message digest to be stored on a alliance chain network. Performing hash operation on the application meeting the conditions through a verification node of a consensus algorithm, storing a generated hash value in a Mercker tree structure, packaging the hash value into data blocks by using a block generation mechanism in a alliance chain, connecting the blocks by using hash pointers of block heads, calculating the hash value of the data block to compare with data on the block chain after a receiving node receives dynamic data, and if the hash value is inconsistent with the data block, indicating that the data is tampered and cannot be linked up; and if the comparison result is consistent, receiving the data uplink storage.
The data dynamic verification and storage process comprises the following steps:
1) the data publishing node applies for publishing the dynamic data;
2) the block chain system calculates a public key of the release node and a front-end hash value corresponding to the private key, and performs data signature by using the private key to obtain a front-end data set;
3) the data publishing node encrypts and sends the front-end data set by adopting a public key of the data receiving node; 4) the data receiving node decrypts the received front-end data set by adopting a private key of the data receiving node to obtain a back-end data set, and verifies the signature by adopting a public key of the data publishing node to obtain a back-end hash value;
5) and carrying out Hash operation on the back-end data set and the public key of the data publishing node to obtain a verification Hash value, comparing the verification Hash value with the back-end Hash value, receiving the dynamic data if the verification Hash value is equal to the back-end Hash value, and not receiving the dynamic data if the verification Hash value is not equal to the back-end Hash value.
The consensus layer of the present invention runs a consensus algorithm that includes an integral penalty mechanism.
The intelligent contract used by the invention is actually a program, a certain computing programming language writing technology is applied, so that the program can operate in a container provided by a block chain system, and the program can automatically operate under the stimulation of certain external force or internal conditions and is approximately consistent with logic of if.. According to the actual demand of the information query of the sample to be detected, the product information between all links of the textile detection can realize encrypted transaction and seamless connection through the execution of the intelligent contract.
The application layer comprises a computer client or a mobile phone client, and the computer client and the mobile phone client both support HTML5 or CSS data interaction interfaces.
A textile inspection detection information query system running the textile inspection detection information query method of any one of claims 1-8, the textile inspection detection information query system configured to query the carrier production data, sample sampling data, sample flow data, and inspection detection data during the textile inspection detection process. The system comprises a gateway, a data service and a distributed database storage, wherein the gateway is used for storing detailed information of samples to be detected to form a source of block chain data.
The gateway of the present invention is chosen as APISIX, which is a high performance, extensible microservice API gateway. Compared with the traditional API gateway, the APISIX serving as the micro-service request gateway provides the functions of load balancing, log recording, identity verification and the like through the plug-in, the dynamic load balancing comprises the steps of supporting the dynamic load balancing of different upstream services, a safety plug-in, a built-in safety processing layer, supporting OAuth2, ACL, CORS, dynamic SSL, IP limitation and the like, a flow control plug-in, rate limitation, request size limitation, response rate limitation and the like, and analyzing and monitoring the plug-in: visualization, inspection and monitoring of API traffic is done with products such as Prometheus, Datadog and Runscope, log plug-ins: and recording a request or response log, and transmitting the log to the system in an HTTP, TCP or UDP mode or the like.
The data storage of the invention uses a distributed database, and the distributed database refers to a logically unified database formed by connecting a plurality of physically dispersed data storage units by using a high-speed computer network. The basic idea of the distributed database is to store data in an original centralized database to a plurality of data storage nodes connected through a network in a scattered manner, so as to obtain a larger storage capacity and a higher concurrent access amount. In recent years, with the rapid increase of data volume, the traditional relational database starts to develop from a centralized model to a distributed architecture, and the relational distributed database is from a centralized storage to a distributed storage and from a centralized computation to a distributed computation under the condition of keeping the data model and the basic characteristics of the traditional database.
The distributed database used by the invention supports the storage and access of massive structured data and unstructured data, and is built by mainly adopting a Hadoop + Hbase + Hive mode in the industry.
The Hadoop component is a core service function component of the distributed database, is based on an Apache open source community version, and is used for enhancing the functions of enterprise applications.
The HBase is a distributed storage system which is high in reliability, high in performance, column-oriented and telescopic, the design goal of the HBase is to solve the limitation of a relational database in processing mass data, the HBase is suitable for storing large table data, and the read access and the write access of the large table data can reach a real-time level.
Hive is a data warehouse frame built on Hadoop, provides structured data similar to SQL (structured query language) and operated by an HQL language, and has the basic principle that the HQL language is automatically converted into a MapReduce task, so that massive data stored in a Hadoop cluster are inquired and analyzed. Hive is mainly characterized as follows: data extraction, transformation and loading (ETL) is very easily accomplished through the HQL language; massive structured data analysis is completed through the HQL; the data storage format is flexible, the storage formats such as JSON, CSV, TEXTFILE, RCFILE, SEQUENCEEFILE and the like are supported, and the custom expansion is supported; hive is mainly applied to off-line analysis (such as historical data analysis and diffusion trend analysis) of mass data, large-scale data mining (user behavior analysis, interest partition, area display) and other scenes.
The distributed database used by the invention has the main characteristics that:
1) a Distributed unstructured (NoSQL) and Structured (SQL) heterogeneous database built on top of a Hadoop HDFS (Hadoop Distributed File System);
2) the method allows the storage of structured and semi-structured data, and has no requirement on the data type;
3) the reading and writing of mass data are supported;
4) the performance and the reliability are high, and the expansion is flexible;
5) kerboras authentication is integrated, so that the system is safer and more reliable;
6) more compression formats are supported, and the production requirement is met;
7) using ZooKeeper as a cooperative service;
8) the expanded Hive function has more perfect SQL support.
By adopting the distributed architecture, the invention realizes the uniform data cleaning comparison, the association fusion, the enterprise relation search and the labeling of the system source data, the performance linearly increases along with the capacity expansion of the equipment, and the invention is not limited by the capacity expansion. By utilizing distributed memory data calculation, different interface files are read in parallel in a mode of combining multiple processes and multiple threads, and an efficient ETL (extract transform load) function of data acquisition is realized, so that structured data can meet the storage and processing capacity of the structured data of more than one billion levels; unstructured data meets the PB level and above data storage and processing capability requirements.
By constructing a textile inspection and detection information inquiry system and by means of a textile inspection and detection information inquiry method, the centralized problem of textile inspection and detection data is well solved, the problems that the result cannot be traced back, the real-time information is asymmetric, the information is difficult to share, the information is easy to tamper, the inspection and detection data is stored centrally and the like in the traditional textile inspection and detection process are solved, and the full-chain credibility, the traceability and the traceability of the textile inspection and detection information and data are realized.
In addition, it should be noted that the specific examples described in the present specification may differ in terms of formulation, process name, and the like. All equivalent or simple changes of the structure, the characteristics and the principle of the invention which are described in the patent conception of the invention are included in the protection scope of the patent of the invention. Various modifications, additions and substitutions for the specific embodiments described may be made by those skilled in the art without departing from the scope of the invention as defined in the accompanying claims.
Although the present invention has been described with reference to the above embodiments, it should be understood that the scope of the present invention is not limited thereto, and that various changes and modifications can be made by those skilled in the art without departing from the spirit and scope of the present invention.

Claims (10)

1. A textile inspection detection information query method is characterized by comprising the following steps: constructing a textile inspection and detection block chain system, setting block chain nodes, uploading textile inspection and detection flow data to the block chain nodes, and inquiring the textile inspection and detection flow data in real time by a user through the textile inspection and detection block chain system; the textile inspection and detection process data comprises inspector production data, sample sampling data, sample circulation data and inspection and detection data, and the block link points comprise inspection and detection nodes, sampling nodes, circulation nodes and inspection and detection nodes; the user comprises a forwarding party, a sampling party, a circulation party and a detection party.
2. The method as claimed in claim 1, wherein the textile inspection detection block chain system comprises an infrastructure layer, a data layer, a consensus layer, a contract layer and an application layer.
3. The method as claimed in claim 2, wherein the infrastructure layer comprises an information network cloud platform, and the information network cloud platform is used for computing, storing and managing the data of the textile inspection and detection process.
4. The method for inquiring the textile inspection detection information according to claim 2, wherein the data layer comprises a data cooperation verification module, the data cooperation verification module performs data labeling on the textile inspection detection data by adopting a bar code or a two-dimensional code, and the data cooperation verification module has a data verification process that: and the upstream node sends a data transaction request, the downstream node verifies whether the data transaction request is consistent with the bar code or the two-dimensional code data, if the verification result is negative, the verification fails and the uplink cannot be carried out, and if the verification result is positive, the data are packaged and stored in an uplink mode.
5. The method for querying textile inspection detection information according to claim 4, wherein the data layer comprises a data dynamic storage module, the data dynamic storage module performs dynamic verification storage on the textile inspection detection data, and the dynamic verification storage process is as follows: the data issuing node applies for issuing dynamic data, the block chain system calculates a public key of the issuing node and a front end hash value corresponding to a private key and carries out data signature by using the private key to obtain a front end data set, the data issuing node adopts the public key of the data receiving node to carry out encryption sending on the front end data set, the data receiving node adopts a private key of the data receiving node to carry out decryption on the received front end data set to obtain a rear end data set and adopts the public key of the data issuing node to verify the signature to obtain a rear end hash value, hash operation is carried out on the public key of the rear end data set and the public key of the data issuing node to obtain a verification hash value, the verification hash value is compared with the rear end hash value, if equal, the dynamic data is received, and if unequal, the dynamic data is not received.
6. The method as claimed in claim 2, wherein the consensus layer runs a consensus algorithm, the consensus algorithm comprising an integral penalty mechanism.
7. The method for querying the textile inspection and detection information as claimed in claim 2, wherein an intelligent contract is deployed and operated on the contract layer, and the intelligent contract is installed by an authorized user and performs data exchange with the intelligent contract node server through the intelligent contract client.
8. The method for inquiring the textile inspection detection information according to claim 2, wherein the application layer comprises a computer client or a mobile phone client, and both the computer client and the mobile phone client support an HTML5 or CSS data interaction interface.
9. A textile inspection detection information query system, wherein the system runs the textile inspection detection information query method of any one of claims 1 to 8, and the textile inspection detection information query system is used for querying the production data, sample sampling data, sample circulation data and inspection detection data of a tester in the textile inspection detection process.
10. The textile inspection detection information interrogation system of claim 9, wherein the system includes a gateway, a data service and a distributed database store.
CN202111061678.7A 2021-09-10 2021-09-10 Textile inspection detection information query method and system Pending CN113793158A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111061678.7A CN113793158A (en) 2021-09-10 2021-09-10 Textile inspection detection information query method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111061678.7A CN113793158A (en) 2021-09-10 2021-09-10 Textile inspection detection information query method and system

Publications (1)

Publication Number Publication Date
CN113793158A true CN113793158A (en) 2021-12-14

Family

ID=79183062

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111061678.7A Pending CN113793158A (en) 2021-09-10 2021-09-10 Textile inspection detection information query method and system

Country Status (1)

Country Link
CN (1) CN113793158A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114363091A (en) * 2022-03-02 2022-04-15 工业互联网创新中心(上海)有限公司 Method and system for realizing unified login of platform application based on APISIX
CN115099726A (en) * 2022-08-25 2022-09-23 南通飞隼信息科技有限公司 Intelligent management and control method and system based on full life cycle of textile product

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110443627A (en) * 2019-09-11 2019-11-12 西安清宇网络科技有限公司 Sample commission detection logistics and information management system and method based on block chain
CN110852595A (en) * 2019-11-07 2020-02-28 国网浙江省电力有限公司 Electric power material full life cycle management mechanism based on alliance chain
CN110910010A (en) * 2019-11-20 2020-03-24 深圳拓谱信息技术有限公司 Method, device and equipment for realizing textile supply chain based on block chain technology
CN111507709A (en) * 2020-03-25 2020-08-07 农业农村部农药检定所(国际食品法典农药残留委员会秘书处) Data traceability system
CN111651518A (en) * 2020-05-06 2020-09-11 国网电力科学研究院武汉南瑞有限责任公司 Material detection management system and method based on block chain technology

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110443627A (en) * 2019-09-11 2019-11-12 西安清宇网络科技有限公司 Sample commission detection logistics and information management system and method based on block chain
CN110852595A (en) * 2019-11-07 2020-02-28 国网浙江省电力有限公司 Electric power material full life cycle management mechanism based on alliance chain
CN110910010A (en) * 2019-11-20 2020-03-24 深圳拓谱信息技术有限公司 Method, device and equipment for realizing textile supply chain based on block chain technology
CN111507709A (en) * 2020-03-25 2020-08-07 农业农村部农药检定所(国际食品法典农药残留委员会秘书处) Data traceability system
CN111651518A (en) * 2020-05-06 2020-09-11 国网电力科学研究院武汉南瑞有限责任公司 Material detection management system and method based on block chain technology

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114363091A (en) * 2022-03-02 2022-04-15 工业互联网创新中心(上海)有限公司 Method and system for realizing unified login of platform application based on APISIX
CN114363091B (en) * 2022-03-02 2022-11-15 工业互联网创新中心(上海)有限公司 Method and system for realizing unified login of platform application based on APISIX
CN115099726A (en) * 2022-08-25 2022-09-23 南通飞隼信息科技有限公司 Intelligent management and control method and system based on full life cycle of textile product
CN115099726B (en) * 2022-08-25 2022-11-15 南通飞隼信息科技有限公司 Intelligent management and control method and system based on full life cycle of textile product

Similar Documents

Publication Publication Date Title
Lu The blockchain: State-of-the-art and research challenges
Bodkhe et al. Blockchain for industry 4.0: A comprehensive review
Zhao et al. Blockchain enabled industrial Internet of Things technology
US10225078B2 (en) Managing a database management system using a blockchain database
CN106982203B (en) Robust ATM network system based on block chain technology and information processing method thereof
CN108428141B (en) Food traceability information management system based on ERP system and block chain
CN103338188B (en) A kind of dynamic authentication method of client side being applicable to mobile cloud
CN109409122A (en) File memory method and its electronic equipment, storage medium
TW201947446A (en) Blockchain-based information supervision method and device
CN102355461B (en) XBRL (Extensible Business Reporting Language) credible data storage method and credible data storage system
CN109472164A (en) The verification method and its network and electronic equipment of contract dataset
CN111639914A (en) Block chain case information management method and device, electronic equipment and storage medium
CN113793158A (en) Textile inspection detection information query method and system
CN109491965A (en) The storage method and its network and electronic equipment of purchase sale of electricity contract
CN112036995A (en) Large-scale enterprise financial data management method and system based on block chain and readable storage medium
Wei Blockchain-based data traceability platform architecture for supply chain management
CN116168820A (en) Medical data interoperation method based on virtual integration and blockchain fusion
CN109034987A (en) A kind of tax administration method and system based on block chain
CN111385751B (en) Information sending method, device, terminal and readable storage medium
Yang et al. Application of blockchain in internet of things
KR20220167146A (en) System for providing blockchain based international trade automation service for import and export business using smart contract
CN115277122A (en) Cross-border data flow and supervision system based on block chain
Guo Implementation of a blockchain-enabled federated learning model that supports security and privacy comparisons
Lu et al. Research on agricultural internet of things data sharing system based on blockchain
CN103647650A (en) Rule definition based automatic signature/signature verification device and method

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