CN110633999A - Clothing circulation information tracing method and device based on block chain - Google Patents
Clothing circulation information tracing method and device based on block chain Download PDFInfo
- Publication number
- CN110633999A CN110633999A CN201910911596.3A CN201910911596A CN110633999A CN 110633999 A CN110633999 A CN 110633999A CN 201910911596 A CN201910911596 A CN 201910911596A CN 110633999 A CN110633999 A CN 110633999A
- Authority
- CN
- China
- Prior art keywords
- information
- clothing
- clothes
- block chain
- block
- 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.)
- Withdrawn
Links
Images
Classifications
-
- 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/64—Protecting data integrity, e.g. using checksums, certificates or signatures
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06K—GRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
- G06K7/00—Methods or arrangements for sensing record carriers, e.g. for reading patterns
- G06K7/10—Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
- G06K7/14—Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation using light without selection of wavelength, e.g. sensing reflected white light
- G06K7/1404—Methods for optical code recognition
- G06K7/1408—Methods for optical code recognition the method being specifically adapted for the type of code
- G06K7/1417—2D bar codes
-
- 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
- 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/06—Buying, selling or leasing transactions
- G06Q30/0601—Electronic shopping [e-shopping]
- G06Q30/0609—Buyer or seller confidence or verification
Landscapes
- Engineering & Computer Science (AREA)
- Business, Economics & Management (AREA)
- Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Accounting & Taxation (AREA)
- Finance (AREA)
- Marketing (AREA)
- General Health & Medical Sciences (AREA)
- General Business, Economics & Management (AREA)
- Economics (AREA)
- Development Economics (AREA)
- Strategic Management (AREA)
- Computer Security & Cryptography (AREA)
- Health & Medical Sciences (AREA)
- Entrepreneurship & Innovation (AREA)
- Bioethics (AREA)
- Computer Hardware Design (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Electromagnetism (AREA)
- Toxicology (AREA)
- Artificial Intelligence (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The application discloses a block chain-based clothes circulation information tracing method and a block chain-based clothes circulation information tracing device, which are applied to block chain nodes, wherein the method comprises the following steps: receiving a clothing factory information cochain request sent by a service node, wherein the service node is a factory node, and the clothing factory information cochain request comprises a private key signature of the service node; verifying the private key signature of the service node by using the public key of the service node; after the verification is passed, packaging the clothes factory information into a first block, so that the block chain system stores the first block into a block chain after performing consensus verification on the first block. The method can store the circulation information of the clothes into the block chain, and is convenient for a user to inquire, thereby solving the problem of fake clothes.
Description
Technical Field
The invention relates to the technical field of internet big data, in particular to a clothes circulation information tracing method and device based on a block chain.
Background
Currently, the blockchain technology is a distributed stored ledger that uses technologies such as encryption algorithm and consensus mechanism. With the use of blockchain technology, more and more internet data is stored on the blockchain.
The block chain technology has the characteristics of non-falsification and information traceability, and solves the problem of counterfeit clothes by using the block chain technology.
The foregoing description is merely for convenience in understanding and is not to be construed as limiting the prior art to the present application.
Disclosure of Invention
Based on the problems, the application discloses a clothes circulation information tracing method and a device based on a block chain.
The application discloses a clothing circulation information tracing method based on a block chain in a first aspect, which is applied to a block chain node, and the method comprises the following steps:
receiving a clothing factory information cochain request sent by a service node, wherein the service node is a factory node, and the clothing factory information cochain request comprises a private key signature of the service node;
verifying the private key signature of the service node by using the public key of the service node;
after the verification is passed, packaging the clothes factory information into a first block, so that the block chain system stores the first block into a block chain after performing consensus verification on the first block.
In one possible embodiment, the method further comprises: receiving a clothing business information chaining request sent by a merchant node, wherein the clothing business information chaining request comprises a private key signature of the merchant node;
verifying the private key signature of the merchant node by using the merchant node public key;
and after the verification is passed, packaging the clothing trading information into a second block, so that the second block is identified and verified by a block chain system and then stored in a block chain.
In one possible embodiment, the method further comprises: receiving a clothing circulation information query request sent by user equipment, wherein the clothing circulation information query request comprises a private key signature of the user equipment, and the user equipment is registered user equipment of the block chain system;
verifying the private key signature of the user equipment by using the public key of the user equipment;
and after the verification is passed, transmitting the circulation information of the clothes to the user equipment, wherein the circulation information of the clothes comprises the factory information of the clothes and the buying and selling information of the clothes.
In a possible implementation manner, the clothing circulation information query request includes clothing information, so that the block link points perform query of the clothing circulation information according to the clothing information; wherein the content of the first and second substances,
the information of the clothes generates a hash value of the clothes through a hash algorithm, and the hash value of the clothes is stored on a block chain; the information of the clothes comprises one or more of clothes types, clothes names, manufacturer names and production dates.
In one possible embodiment, the apparel marketing information includes an seller of the apparel, a purchaser of the apparel, a name of the apparel, and a marketing date;
the clothing factory information comprises the name of the clothing, the name of a manufacturer and the factory date of the clothing.
In a possible implementation manner, the user equipment queries the clothing factory information and the clothing business information corresponding to the clothing by scanning a two-dimensional code of the clothing.
In one possible embodiment, the method further comprises: receiving comment information of the clothes sent by the user equipment; and packaging the comment information of the clothes into a third block, so that the block chain system stores the third block into the block chain after performing consensus verification on the third block.
The second aspect of the application discloses a clothes circulation information tracing device based on a block chain, wherein the device is a block chain node, and the block chain node comprises a receiving unit and a processing unit; wherein the content of the first and second substances,
the receiving unit is used for receiving a clothes factory information uplink request sent by a service node, wherein the service node is a factory node, and the clothes factory information uplink request comprises a private key signature of the service node;
the processing unit is used for verifying the private key signature of the service node by using the service node public key;
and the processing unit packages the clothes delivery information into a first block after the verification is passed, so that the block chain system stores the first block into a block chain after the consensus verification is carried out on the first block.
In a possible implementation manner, the receiving unit receives a clothing trading information uplink request sent by a merchant node, where the clothing trading information uplink request includes a private key signature of the merchant node;
the processing unit is used for verifying the private key signature of the merchant node by using the merchant node public key;
and the processing unit is used for packaging the clothing trading information into a second block after the verification is passed, so that the second block is identified and verified by the block chain system and then stored in the block chain.
In a possible implementation manner, the blockchain node further includes a sending unit, where the receiving unit receives a clothing flow information query request sent by a user equipment, where the clothing flow information query request includes a private key signature of the user equipment, and the user equipment is a registered user equipment of the blockchain system;
the processing unit is used for verifying the private key signature of the user equipment by using the public key of the user equipment;
and the sending unit sends the circulation information of the clothes to the user equipment after the verification is passed, wherein the circulation information of the clothes comprises the factory information of the clothes and the buying and selling information of the clothes.
The application can store the circulation information of the clothes into the block chain, and facilitates the query of a user, so that the problem of fake clothes is solved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic flow chart of a block chain-based clothes circulation information tracing method disclosed in the present application;
fig. 2 is a schematic structural diagram of a block chain-based clothes circulation information tracing apparatus disclosed in the present application;
fig. 3 is a schematic structural diagram of a block chain-based clothes circulation information traceability device disclosed in the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The terms "first" and "second" in this application are used for convenience of understanding only, and are not to be construed as sequential or limiting in any way.
For the purpose of facilitating understanding of the embodiments of the present invention, the following description will be further explained with reference to specific embodiments, which are not to be construed as limiting the embodiments of the present invention.
As shown in fig. 1, the clothing circulation information tracing method based on the block chain is applied to the block chain node, and the method includes steps S101-S103.
S101, a clothing factory information uplink request sent by a service node is received, wherein the service node is a factory node, and the clothing factory information uplink request comprises a private key signature of the service node.
And S102, verifying the private key signature of the service node by using the public key of the service node.
S103, after the verification is passed, packaging the clothes factory information into a first block, so that the block chain system stores the first block into a block chain after performing consensus verification on the first block.
In one example, the method further comprises: receiving a clothing business information chaining request sent by a merchant node, wherein the clothing business information chaining request comprises a private key signature of the merchant node;
verifying the private key signature of the merchant node by using the merchant node public key;
and after the verification is passed, packaging the clothing trading information into a second block, so that the second block is identified and verified by a block chain system and then stored in a block chain.
In one example, the method further comprises: receiving a clothing circulation information query request sent by user equipment, wherein the clothing circulation information query request comprises a private key signature of the user equipment, and the user equipment is registered user equipment of the block chain system;
verifying the private key signature of the user equipment by using the public key of the user equipment;
and after the verification is passed, transmitting the circulation information of the clothes to the user equipment, wherein the circulation information of the clothes comprises the factory information of the clothes and the buying and selling information of the clothes.
In one example, the clothing circulation information query request includes clothing information, so that the block link points perform query of the clothing circulation information according to the clothing information; wherein the content of the first and second substances,
the information of the clothes generates a hash value of the clothes through a hash algorithm, and the hash value of the clothes is stored on a block chain; the information of the clothes comprises one or more of clothes types, clothes names, manufacturer names and production dates.
In one example, the apparel marketing information includes an seller of the apparel, a purchaser of the apparel, a name of the apparel, and a marketing date; the clothing factory information comprises the name of the clothing, the name of a manufacturer and the factory date of the clothing.
In one example, the user equipment queries the clothing factory information and the clothing business information corresponding to the clothing by scanning a two-dimensional code of the clothing.
In one example, the method further comprises: receiving comment information of the clothes sent by the user equipment;
and packaging the comment information of the clothes into a third block, so that the block chain system stores the third block into the block chain after performing consensus verification on the third block.
The application can store the circulation information of the clothes into the block chain, and facilitates the query of a user, so that the problem of fake clothes is solved.
As shown in fig. 2, the clothing circulation information tracing device based on the block chain is a block chain node, and the block chain node includes a receiving unit and a processing unit.
The receiving unit is used for receiving a clothes factory information uplink request sent by a service node, wherein the service node is a factory node, and the clothes factory information uplink request comprises a private key signature of the service node;
the processing unit is used for verifying the private key signature of the service node by using the service node public key;
and the processing unit packages the clothes delivery information into a first block after the verification is passed, so that the block chain system stores the first block into a block chain after the consensus verification is carried out on the first block.
In one example, the receiving unit receives a clothing trading information uplink request sent by a merchant node, wherein the clothing trading information uplink request comprises a private key signature of the merchant node;
the processing unit is used for verifying the private key signature of the merchant node by using the merchant node public key;
and the processing unit is used for packaging the clothing trading information into a second block after the verification is passed, so that the second block is identified and verified by the block chain system and then stored in the block chain.
In one example, the blockchain node further includes a sending unit, where the receiving unit receives a clothing flow information query request sent by a user equipment, where the clothing flow information query request includes a private key signature of the user equipment, and the user equipment is a registered user equipment of the blockchain system;
the processing unit is used for verifying the private key signature of the user equipment by using the public key of the user equipment;
and the sending unit sends the circulation information of the clothes to the user equipment after the verification is passed, wherein the circulation information of the clothes comprises the factory information of the clothes and the buying and selling information of the clothes.
The application can store the circulation information of the clothes into the block chain, and facilitates the query of a user, so that the problem of fake clothes is solved.
The application further discloses a computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the method of any of the above embodiments when executing the program.
The present application also discloses a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the method of any of the above embodiments.
Fig. 3 shows a schematic diagram of a computer device, which may include: a processor 310, a memory 320, an input/output interface 330, a communication interface 340, and a bus 350. Wherein the processor 340, the memory 320, the input/output interface 330, and the communication interface 340 are communicatively coupled to each other within the device via a bus 350.
The processor 310 may be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an Application Specific Integrated Circuit (ASIC), or one or more Integrated circuits, and is configured to execute related programs to implement the technical solutions provided in the embodiments of the present specification.
The Memory 320 may be implemented in the form of a ROM (Read Only Memory), a RAM (Random Access Memory), a static storage device, a dynamic storage device, or the like. The memory 320 may store an operating system and other application programs, and when the technical solution provided by the embodiments of the present specification is implemented by software or firmware, the relevant program codes are stored in the memory 320 and called to be executed by the processor 310.
The input/output interface 330 is used for connecting an input/output module to realize information input and output. The i/o module may be configured as a component in a device (not shown) or may be external to the device to provide a corresponding function. The input devices may include a keyboard, a mouse, a touch screen, a microphone, various sensors, etc., and the output devices may include a display, a speaker, a vibrator, an indicator light, etc.
The communication interface 340 is used for connecting a communication module (not shown in the figure) to implement communication interaction between the present device and other devices. The communication module can realize communication in a wired mode (such as USB, network cable and the like) and also can realize communication in a wireless mode (such as mobile network, WIFI, Bluetooth and the like).
It should be noted that although the above-mentioned device only shows the processor 310, the memory 320, the input/output interface 330, the communication interface 340 and the bus 350, in a specific implementation, the device may also include other components necessary for normal operation. In addition, those skilled in the art will appreciate that the above-described apparatus may also include only those components necessary to implement the embodiments of the present description, and not necessarily all of the components shown in the figures.
Those of skill would further appreciate that the various illustrative components and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied in hardware, a software module executed by a processor, or a combination of the two. A software module may reside in Random Access Memory (RAM), memory, Read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
The above-mentioned embodiments are intended to illustrate the objects, technical solutions and advantages of the present invention in further detail, and it should be understood that the above-mentioned embodiments are only illustrative of the present invention and are not intended to limit the scope of the present invention, and any modifications, equivalent substitutions, improvements and the like made within the scope of the present invention should be included in the scope of the present invention.
Claims (10)
1. The clothing circulation information tracing method based on the block chain is characterized by being applied to the block chain nodes, and the method comprises the following steps:
receiving a clothing factory information cochain request sent by a service node, wherein the service node is a factory node, and the clothing factory information cochain request comprises a private key signature of the service node;
verifying the private key signature of the service node by using the public key of the service node;
after the verification is passed, packaging the clothes factory information into a first block, so that the block chain system stores the first block into a block chain after performing consensus verification on the first block.
2. The method of claim 1, further comprising:
receiving a clothing business information chaining request sent by a merchant node, wherein the clothing business information chaining request comprises a private key signature of the merchant node;
verifying the private key signature of the merchant node by using the merchant node public key;
and after the verification is passed, packaging the clothing trading information into a second block, so that the second block is identified and verified by a block chain system and then stored in a block chain.
3. The method of claim 2, further comprising:
receiving a clothing circulation information query request sent by user equipment, wherein the clothing circulation information query request comprises a private key signature of the user equipment, and the user equipment is registered user equipment of the block chain system;
verifying the private key signature of the user equipment by using the public key of the user equipment;
and after the verification is passed, transmitting the circulation information of the clothes to the user equipment, wherein the circulation information of the clothes comprises the factory information of the clothes and the buying and selling information of the clothes.
4. The method according to claim 3, wherein the clothing circulation information query request includes clothing information, so that the block link points perform the query of the clothing circulation information according to the clothing information; wherein the content of the first and second substances,
the information of the clothes generates a hash value of the clothes through a hash algorithm, and the hash value of the clothes is stored on a block chain; the information of the clothes comprises one or more of clothes types, clothes names, manufacturer names and production dates.
5. The method of claim 2, wherein the apparel marketing information includes an seller of the apparel, a purchaser of the apparel, a name of the apparel, and a marketing date;
the clothing factory information comprises the name of the clothing, the name of a manufacturer and the factory date of the clothing.
6. The method according to claim 2, wherein the user equipment queries the clothing factory information and the clothing business information corresponding to the clothing by scanning a two-dimensional code of the clothing.
7. The method of claim 3, further comprising:
receiving comment information of the clothes sent by the user equipment;
and packaging the comment information of the clothes into a third block, so that the block chain system stores the third block into the block chain after performing consensus verification on the third block.
8. The clothes circulation information tracing device based on the block chain is characterized in that the device is in a block chain node, and the block chain node comprises a receiving unit and a processing unit; wherein the content of the first and second substances,
the receiving unit is used for receiving a clothes factory information uplink request sent by a service node, wherein the service node is a factory node, and the clothes factory information uplink request comprises a private key signature of the service node;
the processing unit is used for verifying the private key signature of the service node by using the service node public key;
and the processing unit packages the clothes delivery information into a first block after the verification is passed, so that the block chain system stores the first block into a block chain after the consensus verification is carried out on the first block.
9. The apparatus according to claim 8, wherein the receiving unit receives a clothing trading information uplink request sent by a merchant node, and the clothing trading information uplink request includes a private key signature of the merchant node;
the processing unit is used for verifying the private key signature of the merchant node by using the merchant node public key;
and the processing unit is used for packaging the clothing trading information into a second block after the verification is passed, so that the second block is identified and verified by the block chain system and then stored in the block chain.
10. The apparatus of claim 9, wherein the blockchain node further comprises a transmitting unit, wherein,
the receiving unit is used for receiving a clothing circulation information query request sent by user equipment, wherein the clothing circulation information query request comprises a private key signature of the user equipment, and the user equipment is registered user equipment of the block chain system;
the processing unit is used for verifying the private key signature of the user equipment by using the public key of the user equipment;
and the sending unit sends the circulation information of the clothes to the user equipment after the verification is passed, wherein the circulation information of the clothes comprises the factory information of the clothes and the buying and selling information of the clothes.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910911596.3A CN110633999A (en) | 2019-09-25 | 2019-09-25 | Clothing circulation information tracing method and device based on block chain |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910911596.3A CN110633999A (en) | 2019-09-25 | 2019-09-25 | Clothing circulation information tracing method and device based on block chain |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110633999A true CN110633999A (en) | 2019-12-31 |
Family
ID=68974001
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910911596.3A Withdrawn CN110633999A (en) | 2019-09-25 | 2019-09-25 | Clothing circulation information tracing method and device based on block chain |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110633999A (en) |
-
2019
- 2019-09-25 CN CN201910911596.3A patent/CN110633999A/en not_active Withdrawn
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110324363B (en) | Uplink method and device for Internet e-commerce associated data | |
CN110634001A (en) | Food circulation information tracing method and device based on block chain | |
CN104601712B (en) | Resource supplying method and system | |
CN110689358A (en) | Furniture circulation information tracing method and device based on block chain | |
CN110599209A (en) | Wine circulation information tracing method and device based on block chain | |
CN110674218A (en) | Company business license tracing method and device related to block chain | |
CN110380870B (en) | Block chain private key signing method and device for e-commerce platform user | |
CN110634002A (en) | Tracing method and device for household appliance circulation information based on block chain | |
CN110659912A (en) | Cosmetic circulation information tracing method and device based on block chain | |
CN110634003A (en) | Medicine circulation information tracing method and device based on block chain | |
CN114037494A (en) | Random processing method and device for NFT (network File transfer) works | |
CN113536240A (en) | Method and device for using admission ticket by combining NFT (network File transfer) | |
CN110647768A (en) | Passport deposit method and device based on block chain | |
CN110647586A (en) | Artwork transfer information tracing method and device based on block chain | |
CN110634000A (en) | Tea flow information tracing method and device based on block chain | |
CN110688630A (en) | Book circulation information tracing method and device based on block chain | |
CN110633999A (en) | Clothing circulation information tracing method and device based on block chain | |
CN110659518A (en) | House property certificate storing method and device relating to block chain | |
CN110351389B (en) | UpLink method and device for user community associated data | |
CN113537907A (en) | NFT-based real object mapping method and device | |
CN110569306A (en) | evidence storing method and device for roses on block chain | |
CN110427766B (en) | Internet tourism data chaining method and device | |
CN110543521A (en) | Evidence storage method and device for dining room on block chain | |
CN110990418A (en) | Asynchronous processing method and device based on block chain user data | |
CN110544125A (en) | Block chain based cut price data evidence storing method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
WW01 | Invention patent application withdrawn after publication |
Application publication date: 20191231 |
|
WW01 | Invention patent application withdrawn after publication |