CN110826087B - Decoration material management method, device, terminal and medium based on block chain - Google Patents

Decoration material management method, device, terminal and medium based on block chain Download PDF

Info

Publication number
CN110826087B
CN110826087B CN201911059634.3A CN201911059634A CN110826087B CN 110826087 B CN110826087 B CN 110826087B CN 201911059634 A CN201911059634 A CN 201911059634A CN 110826087 B CN110826087 B CN 110826087B
Authority
CN
China
Prior art keywords
decoration
finishing
identification
blockchain
identifier
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201911059634.3A
Other languages
Chinese (zh)
Other versions
CN110826087A (en
Inventor
肖春乐
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201911059634.3A priority Critical patent/CN110826087B/en
Publication of CN110826087A publication Critical patent/CN110826087A/en
Application granted granted Critical
Publication of CN110826087B publication Critical patent/CN110826087B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/382Payment protocols; Details thereof insuring higher security of transaction
    • 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
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/64Protecting data integrity, e.g. using checksums, certificates or signatures
    • 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/00Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
    • G06Q50/08Construction
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Health & Medical Sciences (AREA)
  • Health & Medical Sciences (AREA)
  • Strategic Management (AREA)
  • General Engineering & Computer Science (AREA)
  • General Business, Economics & Management (AREA)
  • Bioethics (AREA)
  • Accounting & Taxation (AREA)
  • Computer Hardware Design (AREA)
  • Software Systems (AREA)
  • Finance (AREA)
  • Economics (AREA)
  • Human Resources & Organizations (AREA)
  • Marketing (AREA)
  • Primary Health Care (AREA)
  • Tourism & Hospitality (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The embodiment of the application discloses a decoration material management method, a device, a terminal and a medium based on a blockchain, wherein the method comprises the following steps: acquiring a decoration material list according to a decoration material identification request sent by a consumer node; calculating a first material hash value based on first finishing material information corresponding to the first finishing material in the finishing material list; acquiring a second material hash value corresponding to the first material identifier from the block chain, and if the first material hash value is different from the second material hash value, determining that an authentication result corresponding to the first decoration material is authentication failure; and when the identification results corresponding to the decoration materials in the decoration material list are all identification passing, sending qualified information of the decoration materials to a consumer node, and indicating the consumer node to generate a material purchasing block according to the decoration list so as to be added into a block chain. By adopting the embodiment of the application, the fake materials can be reduced to flow into the market, the management and control force of the decoration materials is enhanced, the circulation process of the decoration materials is convenient to trace, and the applicability is high.

Description

Decoration material management method, device, terminal and medium based on block chain
Technical Field
The application relates to the technical field of blockchains, in particular to a blockchain-based decoration material management method, a blockchain-based decoration material management device, a blockchain-based decoration material management terminal and a blockchain-based decoration material management medium.
Background
With the continuous development of social economy, the life quality of people is continuously improved, and people put forward higher requirements on building decoration environments nowadays, so that not only can the use requirements of daily life be met, but also the quality, the attractiveness and the safety of decoration materials are paid attention to. At present, market economic activities compete strongly, the market of decoration materials is also fish-dragon hybrid, and general consumers are difficult to identify the authenticity of the materials or articles, so that some fake decoration materials and articles enter families, and the problem of indoor air pollution is caused, so that the health of residents is endangered. Therefore, the disorder of the current home decoration market is faced, the management system of the decoration material industry is perfected, the flow of counterfeit and inferior materials into the decoration market is reduced to a certain extent, and the problem to be solved is urgent at present.
Disclosure of Invention
The embodiment of the application provides a decoration material management method, device, terminal and medium based on a blockchain, which can reduce the flow of fake and inferior materials into the market, reduce the possibility that consumers purchase fake and inferior decoration materials, strengthen the management and control strength of the decoration materials and have high applicability.
In a first aspect, embodiments of the present application provide a blockchain-based finishing material management method, the method including:
acquiring a decoration material identification request sent by a consumer node, and acquiring a decoration material list according to the decoration material identification request, wherein the decoration material list comprises decoration material information corresponding to at least one decoration material;
calculating a first material hash value corresponding to first decoration material information aiming at the first decoration material information corresponding to the first decoration material in the decoration material list, wherein the first decoration material information comprises a first material mark and first material verification information;
acquiring a second material hash value corresponding to the first material identifier from a blockchain according to the first material identifier, and if the first material hash value is different from the second material hash value, determining that an authentication result corresponding to the first decoration material is authentication failure;
and when the identification results corresponding to the decoration materials in the decoration material list are all identification passing, sending qualified information of the decoration materials to the consumer node, and indicating the consumer node to generate a material purchasing block according to the decoration list so as to be added into the block chain.
With reference to the first aspect, in one possible implementation manner, the first material verification information includes a first material distributor identifier and a first material type; the method further comprises the following steps:
acquiring a first material dealer set corresponding to the first material type from the blockchain;
if the first material dealer identifier does not belong to the first material dealer set, determining that the authentication result corresponding to the first decoration material is authentication failure.
With reference to the first aspect, in a possible implementation manner, the decoration bill of materials includes a decoration delivery date, and the first material verification information includes a first material production date and a first material shelf life; the method further comprises the following steps:
determining a first material expiration date corresponding to the first finishing material according to the first material production date and the first material quality guarantee period;
and if the expiration date of the first material is smaller than the decoration delivery date, determining that the identification result corresponding to the first decoration material is identification failure.
With reference to the first aspect, in a possible implementation manner, the method further includes:
acquiring at least one first material transfer block including the first material identifier from the blockchain according to the first material identifier;
Generating a first decoration material transfer track corresponding to the first decoration material according to the first decoration material transfer information included in each first material transfer block;
if the first decoration material transfer track is not a unidirectional continuous track, determining that the identification result corresponding to the first decoration material is identification failure.
With reference to the first aspect, in one possible implementation manner, before the acquiring the finishing material identification request sent by the consumer node, the method further includes:
acquiring a finishing material agency request sent by a dealer node, wherein the finishing material agency request comprises a material dealer identifier, a material type and a material agency number;
acquiring historical material agency amounts corresponding to the material distributor identifiers and material distributor sets corresponding to the material types from the blockchain;
if the material distributor identification is included in the material distributor set and the historical material agency quantity is greater than the material agency quantity, the distributor node is instructed to generate a material transfer block according to the finishing material agency request and add the material transfer block to the blockchain.
With reference to the first aspect, in one possible implementation manner, the first material verification information includes a first material manufacturer identifier and a first material production date; the obtaining, from the blockchain, the second material hash value corresponding to the first material identifier according to the first material identifier includes:
Acquiring a first material production block including the first material manufacturer identifier and the first material production date from the blockchain;
and obtaining a second material hash value corresponding to the first material identifier from the first material production block.
With reference to the first aspect, in one possible implementation manner, before the acquiring the finishing material identification request sent by the consumer node, the method further includes:
acquiring a decoration material production request sent by a manufacturer node, wherein the decoration material production request comprises a material manufacturer identifier and a material type;
acquiring a material manufacturer set corresponding to the material type from the block chain;
if the material manufacturer identity is included in the material manufacturer set, the manufacturer node is instructed to generate a material production block according to the finishing material production request and add the material production block to the blockchain.
In a second aspect, embodiments of the present application provide a tile chain based finishing material management device, the device comprising:
a decoration material list obtaining module, configured to obtain a decoration material identification request sent by a consumer node, and obtain a decoration material list according to the decoration material identification request, where the decoration material list includes decoration material information corresponding to at least one decoration material;
The material hash value acquisition module is used for calculating a first material hash value corresponding to the first decoration material information aiming at the first decoration material information corresponding to the first decoration material in the decoration material list, wherein the first decoration material information comprises a first material identifier and first material verification information;
the decoration material identification module is used for acquiring a second material hash value corresponding to the first material identifier from the blockchain according to the first material identifier, and if the first material hash value is different from the second material hash value, determining that an identification result corresponding to the first decoration material is identification failure;
and the material purchasing block generation module is used for sending qualified information of the decoration materials to the consumer node when the identification results corresponding to the decoration materials in the decoration material list are all identification passing, and instructing the consumer node to generate a material purchasing block according to the decoration list so as to be added into the block chain.
With reference to the second aspect, in one possible implementation manner, the first material verification information includes a first material distributor identifier and a first material type; the apparatus further includes a dealer authentication module, the dealer authentication module including:
A first material dealer set obtaining unit, configured to obtain a first material dealer set corresponding to the first material type from the blockchain;
and the first authentication result determining unit is used for determining that the authentication result corresponding to the first decoration material is authentication failure if the first material distributor identifier does not belong to the first material distributor set.
With reference to the second aspect, in a possible implementation manner, the decoration bill of materials includes a decoration delivery date, and the first material verification information includes a first material production date and a first material shelf life; the apparatus further comprises a material expiration date identification module, the material expiration date identification module comprising:
a first material expiration date determining unit, configured to determine a first material expiration date corresponding to the first finishing material according to the first material production date and the first material quality guarantee period;
and a second authentication result determining unit configured to determine that the authentication result corresponding to the first finishing material is authentication failure if the expiration date of the first material is smaller than the finishing delivery date.
With reference to the second aspect, in one possible implementation manner, the apparatus further includes a material circulation identification module, where the material circulation identification module includes:
A first material transfer block acquisition unit configured to acquire at least one first material transfer block including the first material identifier from the blockchain according to the first material identifier;
a first decoration material transfer track determining unit, configured to generate a first decoration material transfer track corresponding to the first decoration material according to first decoration material transfer information included in each first material transfer block;
and a third authentication result determining unit configured to determine that the authentication result corresponding to the first decorative material is authentication failure if the first decorative material transfer trajectory is not a unidirectional continuous trajectory.
With reference to the second aspect, in one possible implementation manner, the finishing further includes a material transfer block generating module, where the material transfer block generating module includes:
a finishing material agent request acquisition unit, configured to acquire a finishing material agent request sent by a dealer node, where the finishing material agent request includes a material dealer identifier, a material type, and a material agent number;
a material dealer set acquisition unit configured to acquire, from the blockchain, a historical material agent amount corresponding to the material dealer identifier, and a material dealer set corresponding to the material type;
And a material dealer auditing unit for instructing the dealer node to generate a material transfer block according to the finishing material agency request and adding the material transfer block to the block chain if the material dealer identifier is included in the material dealer set and the historical material agency quantity is greater than the material agency quantity.
With reference to the second aspect, in one possible implementation manner, the first material verification information includes a first material manufacturer identifier and a first material production date; the finishing material identification module comprises a second material hash value acquisition unit and a fourth identification result determination unit, wherein the second material hash value acquisition unit is specifically used for:
acquiring a first material production block including the first material manufacturer identifier and the first material production date from the blockchain;
and obtaining a second material hash value corresponding to the first material identifier from the first material production block.
With reference to the second aspect, in a possible implementation manner, the apparatus further includes a material production block generating module, where the material production block generating module includes:
a decoration material production request acquisition unit, configured to acquire a decoration material production request sent by a manufacturer node, where the decoration material production request includes a material manufacturer identifier and a material type;
A material manufacturer set acquisition unit, configured to acquire a material manufacturer set corresponding to the material type from the blockchain;
and the material producer checking unit is used for indicating the producer node to generate a material production block according to the decoration material production request and adding the material production block into the block chain if the material producer mark is contained in the material producer set.
In a third aspect, embodiments of the present application provide a terminal device that includes a processor and a memory, where the processor and the memory are interconnected. The memory is configured to store a computer program supporting the terminal device to perform the method provided by the first aspect and/or any of the possible implementation manners of the first aspect, the computer program comprising program instructions, the processor being configured to invoke the program instructions to perform the method provided by the first aspect and/or any of the possible implementation manners of the first aspect.
In a fourth aspect, embodiments of the present application provide a computer readable storage medium storing a computer program comprising program instructions which, when executed by a processor, cause the processor to perform the method provided by the first aspect and/or any one of the possible implementations of the first aspect.
In the embodiment of the application, by acquiring the decoration material identification request sent by the consumer node, a decoration material list can be acquired according to the decoration material identification request, wherein the decoration material list comprises decoration material information corresponding to at least one decoration material. And calculating a first material hash value corresponding to the first decoration material information aiming at the first decoration material information corresponding to the first decoration material in the decoration material list, wherein the first decoration material information comprises a first material identifier and first material verification information. And acquiring a second material hash value corresponding to the first material identifier from the blockchain according to the first material identifier, wherein if the first material hash value is different from the second material hash value, determining that the authentication result corresponding to the first decoration material is authentication failure. And when the identification results corresponding to the decoration materials in the decoration material list are all identification passing, sending qualified information of the decoration materials to a consumer node, and indicating the consumer node to generate a material purchasing block according to the decoration list so as to be added into a block chain. By adopting the embodiment of the application, the fake material can be reduced from flowing into the market by identifying the decoration material, the possibility that consumers purchase the fake decoration material is reduced, the management and control strength of the decoration material is enhanced, and the applicability is high.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic structural diagram of a blockchain network topology according to an embodiment of the present disclosure;
FIG. 2 is a flow chart of a method for managing a blockchain-based finishing material according to an embodiment of the present disclosure;
FIG. 3 is a schematic diagram of a blockchain and blockarchitecture provided in embodiments of the present application;
fig. 4 is an application scenario schematic diagram of a consensus mechanism provided in an embodiment of the present application;
FIG. 5 is another flow chart of a blockchain-based finishing material management method provided in an embodiment of the present application;
FIG. 6 is a schematic diagram of a same block including a set of material manufacturers and a set of material distributors provided in an embodiment of the present application;
FIG. 7 is a schematic diagram of the effects of different transfer trajectories according to an embodiment of the present disclosure;
FIG. 8 is a schematic diagram of a block chain based finishing material management device according to one embodiment of the present disclosure;
FIG. 9 is another schematic structural view of a blockchain-based finishing material management device provided in an embodiment of the present application;
fig. 10 is a schematic structural diagram of a terminal device provided in an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are only some, but not all, of the embodiments of the present application. All other embodiments, which can be made by one of ordinary skill in the art based on the embodiments herein without making any inventive effort, are intended to be within the scope of the present application.
Referring to fig. 1, fig. 1 is a schematic structural diagram of a blockchain network topology according to an embodiment of the present application. The blockchain network topology may include multiple party nodes, such as the management node, consumer node, producer node, and distributor node shown in fig. 1. It should be appreciated that the management nodes, consumer nodes, producer nodes, and distributor nodes in the blockchain network topology may be collectively referred to as nodes in the blockchain network, where each node has a connection relationship with other nodes. It will be appreciated that any node in the blockchain network topology may be any form of computing device, such as a server, terminal, etc., without limitation. It should be understood that terminals include, but are not limited to, cell phones, tablet computers, notebook computers, palm top computers, mobile internet devices (mobile internet device, MID), and the like, without limitation. Each node may receive input information while operating normally and maintain shared data within the blockchain network topology based on the received input information. In order to ensure information intercommunication in the blockchain network topology, information connection can exist between each node in the blockchain network topology, and information transmission can be carried out between the nodes through the information connection. For example, when any node in the blockchain network topology receives input information, other nodes in the blockchain network topology acquire the input information according to a consensus algorithm, and store the input information as data in shared data, so that the data stored on all nodes in the blockchain network topology are consistent.
Each node in the blockchain network topology has a node identifier corresponding to the node, and each node in the blockchain network topology can store the node identifiers of other nodes in the blockchain network topology so as to broadcast the generated blocks to other nodes in the blockchain network topology according to the node identifiers of other nodes. Each node can maintain a node identification list shown in the following table, and the node names and the node identifications are correspondingly stored in the node identification list. The node identifier may be an IP (Internet Protocol, protocol of interconnection between networks) address, and any other information that can be used to identify the node, and the IP address is only illustrated in table 1.
Node name Node identification
Node 1 117.114.151.174
Node 2 117.116.189.145
Node N 119.123.789.258
TABLE 1
The decoration material management method based on the blockchain can be widely applied to a decoration material management system in the industry of decoration materials. According to the method, the management node can obtain the decoration material list according to the decoration material identification request by obtaining the decoration material identification request sent by the consumer node, wherein the decoration material list comprises decoration material information corresponding to at least one decoration material. And calculating a first material hash value corresponding to the first decoration material information aiming at the first decoration material information corresponding to the first decoration material in the decoration material list, wherein the first decoration material information comprises a first material identifier and first material verification information. And acquiring a second material hash value corresponding to the first material identifier from the blockchain according to the first material identifier, wherein if the first material hash value is different from the second material hash value, determining that the authentication result corresponding to the first decoration material is authentication failure. And when the identification results corresponding to the decoration materials in the decoration material list are all identification passing, sending qualified information of the decoration materials to a consumer node, and indicating the consumer node to generate a material purchasing block according to the decoration list so as to be added into a block chain. By adopting the embodiment of the application, the fake material can be reduced from flowing into the market by identifying the decoration material, the possibility that consumers purchase the fake decoration material is reduced, the management and control strength of the decoration material is enhanced, and the applicability is high.
The method and the related apparatus according to the embodiments of the present application will be described in detail below with reference to fig. 2 to 4, respectively. The method provided by the embodiment of the application may include a data processing stage for obtaining a decoration bill of materials, calculating a first material hash value according to first decoration material information included in the decoration bill of materials, obtaining a second material hash value corresponding to the first material identifier, determining an identification result of the first decoration material based on the first material hash value and the second material hash value, and generating a material purchasing block based on the identification result corresponding to each decoration material in the decoration bill of materials. The implementation of the above-mentioned individual data processing phases can be seen from the following fig. 2 to 5.
Referring to fig. 2, fig. 2 is a flow chart of a method for managing a decoration material based on a blockchain according to an embodiment of the present application. The method provided by the embodiment of the application may include the following steps 101 to 104:
101. and acquiring a finishing material identification request sent by a consumer node, and acquiring a finishing material list according to the finishing material identification request.
In some possible embodiments, when a consumer purchases a finishing material at an online store or online store, to avoid the consumer purchasing counterfeit materials, a finishing material identification request may be sent to the management node by the consumer node prior to payment. The management node can obtain the decoration bill of materials corresponding to the decoration bill identification according to the decoration bill identification included in the decoration bill identification request by obtaining the decoration bill identification request sent by the consumer node. The management node is a node corresponding to the material authentication center, and the consumer node is a node corresponding to the consumer. In general, the finishing bill may be a specific item related to the finishing of a house, which is planned by a finishing team for a house, wherein the finishing bill may include finishing bill information corresponding to at least one finishing material, a project plan of a finishing project, and the like. In particular, the finishing material information corresponding to the finishing material may include a material identification and material verification information, wherein the material verification information may be composed of a material name, a material type, a material production date, a material shelf life, a material composition, a material weight, a material color, a material texture, a material manufacturer identification, and a material distributor identification. The fitting project plan may include fitting progress plan, fitting delivery date, fitting material budget plan, etc., without limitation. It should be appreciated that a material identifier corresponds to a repair material, that is, the material identifier may be used to uniquely mark a repair material. For example, assuming that 3 barrels of finishing paint are included in the finishing bill of materials, each barrel of finishing paint has a corresponding one of the paint identifications, in other words, one of the paint identifications is used to uniquely mark one barrel of paint. In the embodiment of the application, each material mark is distributed in advance for each repair material in the material production stage, and the aim is to prevent a dealer from selling the counterfeited inferior material and the genuine material in a mixed manner, thereby disturbing the order of the repair market and damaging the rights of consumers. The material identifier may be formed by combining numbers, letters, symbols, and/or the like, and is specifically determined according to an actual application scenario, which is not limited herein.
102. And calculating a first material hash value corresponding to the first decoration material information aiming at the first decoration material information corresponding to the first decoration material in the decoration material list.
In some possible embodiments, for the first finishing material information corresponding to the first finishing material in the finishing material list, a first material hash value corresponding to the first finishing material information may be calculated. It should be understood that the first finishing material may be any finishing material included in the finishing material list, that is, each finishing material included in the finishing material list may be sequentially used as the first finishing material, wherein the finishing material information corresponding to the first finishing material is the first finishing material information. For example, assuming that the finishing material list includes 3 barrels of finishing paint, 2 barrels of finishing paint and 2 pieces of finishing gypsum board together, each barrel of finishing paint in the above 3 barrels of finishing paint, each barrel of finishing material in the 2 barrels of finishing paint, and each piece of finishing gypsum board in the 2 pieces of finishing gypsum board are sequentially used as the first finishing material.
In some possible embodiments, the material identifier corresponding to the first decoration material, that is, the first material identifier, and the material verification information corresponding to the first decoration material, that is, the first material verification information, which are included in the first decoration material information, may be obtained by acquiring the first decoration material information corresponding to the first decoration material. The first material verification information comprises a material name, a material type, a material production date, a material quality guarantee period, a material composition, a material weight, a material color, a material texture, a material manufacturer identifier and a material distributor identifier corresponding to the first decoration material. Specifically, hash calculation is performed on the first material identifier and the first material verification information included in the first decoration material information based on a hash algorithm, so that a first material hash value corresponding to the first decoration material information can be obtained. It should be understood that the hash algorithm is a one-way cryptosystem, that is, it is an irreversible mapping from plaintext to ciphertext, only has an encryption process, and no decryption process, and at the same time, the hash algorithm can obtain a fixed-length output after any length of input data is changed, and if any character in the input data is changed, the hash value of the final output will be different. The hash algorithm used in the embodiments of the present application includes, but is not limited to, MD series hash algorithm including MD2, MD4 and MD5, SHA hash algorithm including SHA-1, SHA-224, SHA-256, SHA-384, SHA-512, and SM3 hash algorithm. For convenience of description, in this embodiment, the SHA-256 algorithm is taken as an example to describe the first material hash value=sha-256 (material identifier+material name+material type+material date of manufacture+material shelf life+material composition+material weight+material color+material texture+material manufacturer identifier).
103. And acquiring a second material hash value corresponding to the first material identifier from the blockchain according to the first material identifier, and if the first material hash value is different from the second material hash value, determining that the authentication result corresponding to the first decoration material is authentication failure.
In some possible embodiments, according to the first material identifier, a second material hash value corresponding to the first material identifier may be obtained from the blockchain, where if the first material hash value is different from the second material hash value, it is determined that the authentication result corresponding to the first finishing material is authentication failure. Specifically, by acquiring the first material manufacturer identifier and the first material production date included in the first material verification information, a first material production block including the first material manufacturer identifier and the first material production date may be determined from the blockchain, and then, according to the first material identifier, a second material hash value corresponding to the first material identifier may be acquired from the first material production block. The first material manufacturer identifier is a material manufacturer identifier corresponding to a material manufacturer that manufactures the first decoration material, and the first material manufacture date is a date when the first decoration material is manufactured. It should be understood that the first material hash value is a hash value corresponding to the first finishing material calculated based on the first finishing material information, that is, an actual hash value of the first finishing material. The second material hash value is a hash value uploaded by the material manufacturer node in the production stage, that is, the second material hash value is a real hash value corresponding to the first finishing material. It is thus possible to determine whether the first finishing material is maliciously replaced in the market circulation process by comparing the first material hash value with the second material hash value. In other words, when the hash value of the first material is calculated based on the first decoration material information, since the hash value to be finally output is different from any character in the first decoration material information, the hash value of the first material is changed if the first decoration material information is tampered with by a person or the first decoration material is replaced with a counterfeit material by a person in an intermediate link during the circulation of the first decoration material. That is, when the first material hash value is the same as the second material hash value, the authentication result corresponding to the first decoration material is determined to be passing, otherwise, if the first material hash value is different from the second material hash value, the authentication result corresponding to the first decoration material is determined to be failed.
It should be understood that the blockchain described in the embodiments of the present application is a special distributed database, and may also be referred to as a distributed ledger system. The distributed database (i.e., blockchain) may have the following two functions: one is to store information, i.e. any information to be stored can be written into the blockchain by the nodes on the blockchain after consensus is achieved by the consensus mechanism. It should be appreciated that the consensus mechanism herein may include: workload certification (PoW), rights and interests certification (PoS), utility bayer fault tolerance (PBFT), etc., without limitation; and secondly, any person can erect a server and join a blockchain network to form a node. Thus, the distributed ledger system may be understood as an asset database that may be shared across multiple sites, different geographic locations, or a blockchain network of multiple institutions. Participants in a blockchain network may obtain a copy of a unique, true ledger. Any changes in the ledger will be reflected in all copies and the reaction time can be in minutes or even seconds. The blockchain may be formed by blocks in a block structure, and the blockchain formed by blocks may be referred to as a nested hash chain, that is, each block in the nested hash chain includes a hash value of a previous block and detailed information (for convenience of description, abbreviated as transaction information) that needs to be saved.
Referring to fig. 3, fig. 3 is a schematic diagram of a blockchain and a blockstructure provided in an embodiment of the present application. The blockchain as shown in fig. 3 includes a block N, a block n+1 and a block n+2, where N is a positive integer. Each block shown in fig. 3 may include a hash value of a previous block and detailed data generated within a certain period of time, including all transaction records or other information generated in the block creation process of the current block after verification, which is abbreviated as transaction information for convenience of description. That is, the data contained by the blocks in the blockchain is unique and traceable. As shown in fig. 3, the block N may include a hash value of a previous block of the block N (i.e., the hash value of the block N-1 shown in fig. 3) and transaction information X. Similarly, the block n+1 may include the hash value of the previous block of the block n+1 (i.e., the hash value of the block N shown in fig. 3) and the transaction information Y; by analogy, the block n+2 may include the previous block hash value of the block n+2 (i.e., the hash value of the block n+1 shown in fig. 3) and the transaction information Z. Further, for ease of understanding, the block n+1 is taken as an example in the embodiment of the present application, and the block structure of the block n+1 is described. Block n+1 may consist of a block header and a block body as shown in fig. 3, where the block header may include a hash value of a previous block (i.e., a hash value of block N shown in fig. 3), a timestamp, a calculated difficulty value, a random number set for generating block n+1, a merck root (i.e., a hash value of the present block, here, block n+1), and so on. In addition, the block shown in fig. 3 may include transaction information 1, transaction information 2, transaction information 3, transaction information 4, etc. acquired and packaged from the transaction pool during the period of time before the generation of the block n+1 and after the generation of the block N, and these transaction information may be organized together in the form of a merck tree. It should be appreciated that the merck tree building process is a process that recursively computes hash values. Taking transaction information 1, transaction information 2, transaction information 3 and transaction information 4 in fig. 3 as an example, hash value 1 (i.e. Hash 1) corresponding to transaction information 1, hash value 2 (i.e. Hash 2) corresponding to transaction information 2, hash value 3 (i.e. Hash 3) corresponding to transaction information 3, hash value 4 (i.e. Hash 4) corresponding to transaction information 4 can be calculated based on SHA256 algorithm. Further, hash1 and Hash2 are connected in series, hash transformation is continued, so that Hash value 12 (i.e. Hash 12) shown in fig. 3 can be obtained, and by analogy, hash3 and Hash4 are connected in series, hash value 34 (i.e. Hash 34) shown in fig. 3 can be obtained, so that Hash value 1234 (i.e. Hash 1234) can be obtained by further connecting Hash12 and Hash34 in series. At this time, the embodiment of the present application may use the hash value of all the transaction information obtained finally as the merck root of the block n+1. It can be seen that the merck tree is very scalable, and eventually a merck tree and a fixed length merck tree root can be generated, regardless of the transaction information.
104. And when the identification results corresponding to the decoration materials in the decoration material list are all identification passing, sending qualified information of the decoration materials to a consumer node, and indicating the consumer node to generate a material purchasing block according to the decoration list so as to be added into a block chain.
In some possible embodiments, by sequentially taking each repair material included in the repair material list as the first repair material and passing the first repair material information corresponding to the first repair material through the above-mentioned authentication in step 102 to step 103, assuming that the authentication results corresponding to each repair material in the repair material list are all authenticated, the management node may send the repair material qualification information to the consumer node, and instruct the consumer node to generate a material procurement block according to the repair list for adding to the blockchain. Otherwise, if the authentication result corresponding to any finishing material in the finishing material list is that the authentication fails, the fact that the fake and fake materials exist in the finishing material list is indicated, so that the management node can send the unqualified finishing material information to the consumer node to inform the consumer node that the unqualified finishing material is included in the finishing material list, and the consumer node can terminate the purchase.
Optionally, in some possible embodiments, if the defective information of the finishing material includes finishing material information corresponding to a specific defective finishing material, the consumer node may further delete the defective finishing material in the finishing material list according to the defective finishing material indicated in the defective finishing material information, and then generate a material purchasing block based on the finishing material list from which the defective finishing material is deleted, so as to add the material purchasing block to the blockchain. Specifically, after a consumer node generates a material procurement block, the material procurement block may be broadcast in the blockchain network so that other nodes in the blockchain network can verify the material procurement block, and when each node included in the blockchain network agrees with the material procurement block, the material procurement block may be added to the blockchain. Referring to fig. 4, fig. 4 is an application scenario schematic diagram of a consensus mechanism provided in an embodiment of the present application. The blockchain network as in fig. 4 includes management nodes, consumer nodes, producer nodes, and distributor nodes, wherein the nodes have a connection relationship therebetween. When a consumer node initiates a finishing material identification request to a management node, the management node can identify each finishing material included in the finishing material list by acquiring the finishing material list carried in the finishing material identification request, when the identification results corresponding to each finishing material in the finishing material list are all identification passing, the finishing material qualification information is sent to the consumer node, when the consumer node receives the finishing material qualification information, a material purchasing block can be generated according to the finishing list, and the generated material purchasing block is broadcasted in a blockchain network, so that the management node, a producer node and a distributor node in the blockchain network check the material purchasing block after receiving the material purchasing block. When the management node, the producer node and the distributor node in the blockchain network all independently check the received material purchasing blocks and generate check results, each check result can be returned to the consumer node. Generally, when the proportion of verification passing in each verification result received by the consumer node is not less than the preset passing proportion, it can be determined that each node in the blockchain network has agreed on the material purchasing block so as to add the material purchasing block into the blockchain.
In this embodiment of the present application, the management node may obtain the finishing material list according to the finishing material authentication request by obtaining the finishing material authentication request sent by the consumer node, where the finishing material list includes finishing material information corresponding to at least one finishing material. And calculating a first material hash value corresponding to the first decoration material information aiming at the first decoration material information corresponding to the first decoration material in the decoration material list, wherein the first decoration material information comprises a first material identifier and first material verification information. And acquiring a second material hash value corresponding to the first material identifier from the blockchain according to the first material identifier, wherein if the first material hash value is different from the second material hash value, determining that the authentication result corresponding to the first decoration material is authentication failure. And when the identification results corresponding to the decoration materials in the decoration material list are all identification passing, sending qualified information of the decoration materials to a consumer node, and indicating the consumer node to generate a material purchasing block according to the decoration list so as to be added into a block chain. By adopting the embodiment of the application, the fake material can be reduced from flowing into the market by identifying the decoration material, the possibility that consumers purchase the fake decoration material is reduced, the management and control strength of the decoration material is enhanced, and the applicability is high.
Referring to fig. 5, fig. 5 is another flow chart of a block chain-based finishing material management method according to an embodiment of the present application. The method provided by the embodiment of the present application may be illustrated by the implementation manner provided in the following steps 201 to 206:
201. and acquiring a finishing material production request sent by a producer node, acquiring a material producer set corresponding to the material type from the blockchain, and if the material producer identifier is contained in the material producer set, indicating the producer node to generate a material production block according to the finishing material production request and adding the material production block into the blockchain.
In some possible embodiments, data circulation refers to data-oriented behavior between a data provider and a data requester according to certain circulation rules. In the embodiment of the application, in order to ensure the reliability and transparency of the quality of the decoration material from the data source, the data corresponding to each link from production to circulation of the decoration material can be stored on the blockchain. Specifically, the management node obtains a finishing material production request sent by the manufacturer node, where the finishing material production request includes a material manufacturer identifier and a material type, and one material manufacturer identifier is used to uniquely mark one material manufacturer. Based on the material type, a material manufacturer set corresponding to the material type is obtained from the blockchain, and whether the manufacturer corresponding to the manufacturer identifier has the production qualification of producing the decoration material of the material type can be determined according to the material manufacturer set and the material manufacturer identifier carried in the decoration material production request. It will be appreciated that if a particular material manufacturer identity is included in a corresponding set of material manufacturers, then it is explained that the material manufacturer identity corresponds to a manufacturer that is eligible to produce a finishing material of the type of material described above, so that the management node may instruct the manufacturer node to generate a material production block according to a finishing material production request and add it to the blockchain. Specifically, if the material manufacturer identifier is included in the material manufacturer set, after the management node instructs the manufacturer node to generate a material production block according to the finishing material production request, the manufacturer node may broadcast the material production block in the blockchain network, so that other nodes in the blockchain network can verify the material production block, and when each node included in the blockchain network agrees with the material production block, the material production block may be added to the blockchain.
It should be understood that the block in the blockchain including the material types and the sets of material manufacturers corresponding to the material types is a block generated by the management node, and each set of material manufacturers corresponding to each material type is stored in the block, that is, the set of material manufacturers qualified for material production is stored in the blockchain in advance.
For example, assuming that the material types include paint brand A1, paint brand a2, and paint brand b1, a set of material manufacturers corresponding to the various material types may be stored in a block of the blockchain, and specifically, paint manufacturer a11, paint manufacturer a12, and paint manufacturer a13 may be included in set of material manufacturers A1 that qualify for producing paint brand A1; paint manufacturer a21 and paint manufacturer a22 may be included in a collection of material manufacturers A2 that qualifies to produce paint brand A2; the collection of material manufacturers B1 eligible to produce the coating brand B1 may include a coating manufacturer B11, a coating manufacturer B12, and a coating manufacturer B13. Thus, it is assumed that the material manufacturer included in the finishing material production request is identified as a11 and the material type is the paint brand A1. By acquiring a material manufacturer set corresponding to the material type, a material manufacturer set corresponding to the paint brand A1 is A1, wherein the material manufacturer set a1= { paint manufacturer a11, paint manufacturer a12, paint manufacturer a13}, and the material manufacturer identifier included in the decoration material production request is a11 and is included in the material manufacturer set A1, so that the paint manufacturer a11 is described as having the qualification of producing decoration paint corresponding to the paint brand A1.
202. And acquiring a finishing material agency request sent by a dealer node, acquiring a historical material agency quantity corresponding to a material dealer mark and a material dealer set corresponding to a material type from a blockchain, and if the material dealer mark is contained in the material dealer set and the historical material agency quantity is larger than the material agency quantity, indicating the dealer node to generate a material transfer block according to the finishing material agency request and adding the material transfer block into the blockchain.
In some possible embodiments, the management node may parse out the material dealer identity, the material type, and the number of material agents included in the finishing material agency request by obtaining the finishing material agency request sent by the dealer node, wherein one material dealer identity is used to uniquely sign one material dealer. By acquiring the historical material agency quantity corresponding to the material agency mark and the material dealer set corresponding to the material type from the blockchain, whether the material dealer corresponding to the material dealer mark has agency qualification for agency of the finishing material of the material type can be determined according to the material agency quantity, the historical material agency quantity, the material dealer set and the material dealer mark carried in the finishing material agency request. The historical material agency amount may be the last material agency amount of the corresponding material dealer, or may be an arithmetic average of the last n material agency amounts of the material dealer, where n is an integer greater than 1, without limitation.
It will be appreciated that when a material dealer identity is included in a corresponding collection of material dealers and the historical material agency quantity is greater than the material agency quantity, it is stated that the material dealer identity corresponds to a dealer that qualifies as a agency for the finishing material of the material type described above and is able to afford the quantity of material agency it has requested. The dealer node may be instructed to generate a material transfer block from the finishing material agency request and add to the blockchain. Specifically, when the material dealer identifier is included in the material dealer set and the number of material agents is greater than the historical material agent amount, the management node may broadcast the material transfer block in the blockchain network by instructing the dealer node to generate the material transfer block according to the finishing material agent request, so that other nodes in the blockchain network may verify the material transfer block, and when each node included in the blockchain network agrees with the material transfer block, the material transfer block may be added to the blockchain.
It should be appreciated that a block in the blockchain that includes material types and sets of material dealers corresponding to the material types may also be a block generated for the management node, where each set of material dealers corresponding to each material type is stored, that is, where a set of material dealers qualifying for a material agent is stored in advance in the blockchain. The block including the material type and the material dealer set corresponding to the material type and the block including the material manufacturer set corresponding to the material type may be the same block or may be different blocks, which is not limited herein. For example, referring to fig. 6, fig. 6 is a schematic diagram of a material manufacturer set and a material dealer set included in the same block provided in an embodiment of the present application. As shown in fig. 2, the block is composed of a block header and a block body, wherein the block header includes a hash value, a time stamp, a difficulty value, a random number of a previous block and a hash value of the present block, and the block body includes detailed information to be saved, namely, each material type, a material manufacturer set corresponding to each material type and a material distributor set.
For example, assuming that the material types include paint brand a1, paint brand a2, and paint brand b1, a set of material distributors corresponding to the various material types may be stored in a block of the blockchain, and specifically, a set of material distributors X1 qualifying for the agent paint brand a1 may include paint distributor X11, paint distributor X12, and paint distributor X13; the set of material distributors Y2 eligible for the agent paint brand a2 may include a paint distributor Y21 and a paint distributor Y22; the collection of material distributors Z1 eligible for the agent coating brand b1 may include a coating distributor Z11, a coating distributor Z12, and a coating distributor Z13. Wherein, assuming that the material dealer identifier included in the finishing material agency request is X13, the material type is the paint brand X1, and the material agency number is 100. By acquiring the historical material agency amount corresponding to the material dealer identifier, the historical material agency amount of the paint dealer X13 is 150, and by acquiring the material dealer set corresponding to the material type, the material dealer set corresponding to the paint brand a1 is X1, wherein the material dealer set x1= { the paint dealer X11, the paint dealer X12, the paint dealer X13}, and the paint dealer Y22 is indicated to have the agency qualification of the decoration paint corresponding to the paint brand a1 because the material dealer identifier included in the decoration material agency request is X13, the historical material agency amount 150 is greater than the material agency amount 100.
203. And acquiring a finishing material identification request sent by a consumer node, and acquiring a finishing material list according to the finishing material identification request.
In some possible embodiments, when a consumer purchases a finishing material at an online store or online store, to avoid the consumer purchasing counterfeit materials, a finishing material identification request may be sent to the management node by the consumer node prior to payment. The management node can obtain the decoration bill of materials corresponding to the decoration bill identification according to the decoration bill identification included in the decoration bill identification request by obtaining the decoration bill identification request sent by the consumer node. The management node is a node corresponding to the material authentication center, and the consumer node is a node corresponding to the consumer. In general, the finishing bill may be a specific item related to the finishing of a house, which is planned by a finishing team for a house, wherein the finishing bill may include finishing bill information corresponding to at least one finishing material, a project plan of a finishing project, and the like. In particular, the finishing material information corresponding to the finishing material may include a material identification and material verification information, wherein the material verification information may be composed of a material name, a material type, a material production date, a material shelf life, a material composition, a material weight, a material color, a material texture, a material manufacturer identification, and a material distributor identification. The fitting project plan may include fitting progress plan, fitting delivery date, fitting material budget plan, etc., without limitation. It should be appreciated that a material identifier corresponds to a repair material, that is, the material identifier may be used to uniquely mark a repair material. For example, assuming that 3 barrels of finishing paint are included in the finishing bill of materials, each barrel of finishing paint has a corresponding one of the paint identifications, in other words, one of the paint identifications is used to uniquely mark one barrel of paint. In the embodiment of the application, each material mark is distributed in advance for each repair material in the material production stage, and the aim is to prevent a dealer from selling the counterfeited inferior material and the genuine material in a mixed manner, thereby disturbing the order of the repair market and damaging the rights of consumers. The material identifier may be formed by combining numbers, letters, symbols, and/or the like, and is specifically determined according to an actual application scenario, which is not limited herein.
204. And calculating a first material hash value corresponding to the first decoration material information aiming at the first decoration material information corresponding to the first decoration material in the decoration material list.
In some possible embodiments, for the first finishing material information corresponding to the first finishing material in the finishing material list, a first material hash value corresponding to the first finishing material information may be calculated. It should be understood that the first finishing material may be any finishing material included in the finishing material list, that is, each finishing material included in the finishing material list may be sequentially used as the first finishing material, wherein the finishing material information corresponding to the first finishing material is the first finishing material information. For example, assuming that the finishing material list includes 3 barrels of finishing paint, 2 barrels of finishing paint and 2 pieces of finishing gypsum board together, each barrel of finishing paint in the above 3 barrels of finishing paint, each barrel of finishing material in the 2 barrels of finishing paint, and each piece of finishing gypsum board in the 2 pieces of finishing gypsum board are sequentially used as the first finishing material.
In some possible embodiments, the material identifier corresponding to the first decoration material, that is, the first material identifier, and the material verification information corresponding to the first decoration material, that is, the first material verification information, which are included in the first decoration material information, may be obtained by acquiring the first decoration material information corresponding to the first decoration material. The first material verification information comprises a material name, a material type, a material production date, a material quality guarantee period, a material composition, a material weight, a material color, a material texture, a material manufacturer identifier and a material distributor identifier corresponding to the first decoration material. Specifically, hash calculation is performed on the first material identifier and the first material verification information included in the first decoration material information based on a hash algorithm, so that a first material hash value corresponding to the first decoration material information can be obtained. It should be understood that the hash algorithm is a one-way cryptosystem, that is, it is an irreversible mapping from plaintext to ciphertext, only has an encryption process, and no decryption process, and at the same time, the hash algorithm can obtain a fixed-length output after any length of input data is changed, and if any character in the input data is changed, the hash value of the final output will be different. The hash algorithm used in the embodiments of the present application includes, but is not limited to, MD series hash algorithm including MD2, MD4 and MD5, SHA hash algorithm including SHA-1, SHA-224, SHA-256, SHA-384, SHA-512, and SM3 hash algorithm. For convenience of description, in this embodiment, the SHA-256 algorithm is taken as an example to describe the first material hash value=sha-256 (material identifier+material name+material type+material date of manufacture+material shelf life+material composition+material weight+material color+material texture+material manufacturer identifier).
205. And acquiring a second material hash value corresponding to the first material identifier from the blockchain according to the first material identifier, and if the first material hash value is different from the second material hash value, determining that the authentication result corresponding to the first decoration material is authentication failure.
In some possible embodiments, according to the first material identifier, a second material hash value corresponding to the first material identifier may be obtained from the blockchain, where if the first material hash value is different from the second material hash value, it is determined that the authentication result corresponding to the first finishing material is authentication failure. Specifically, by acquiring the first material manufacturer identifier and the first material production date included in the first material verification information, a first material production block including the first material manufacturer identifier and the first material production date may be determined from the blockchain, and then, according to the first material identifier, a second material hash value corresponding to the first material identifier may be acquired from the first material production block. The first material manufacturer identifier is a material manufacturer identifier corresponding to a material manufacturer that manufactures the first decoration material, and the first material manufacture date is a date when the first decoration material is manufactured. It should be understood that the first material hash value is a hash value corresponding to the first finishing material calculated based on the first finishing material information, that is, an actual hash value of the first finishing material. The second material hash value is a hash value uploaded by the material manufacturer node in the production stage, that is, the second material hash value is a real hash value corresponding to the first finishing material. It is thus possible to determine whether the first finishing material is maliciously replaced in the market circulation process by comparing the first material hash value with the second material hash value. In other words, when the hash value of the first material is calculated based on the first decoration material information, since the hash value to be finally output is different from any character in the first decoration material information, the hash value of the first material is changed if the first decoration material information is tampered with by a person or the first decoration material is replaced with a counterfeit material by a person in an intermediate link during the circulation of the first decoration material. That is, when the first material hash value is the same as the second material hash value, the authentication result corresponding to the first decoration material is determined to be passing, otherwise, if the first material hash value is different from the second material hash value, the authentication result corresponding to the first decoration material is determined to be failed.
It should be understood that the blockchain described in the embodiments of the present application is a special distributed database, and may also be referred to as a distributed ledger system. The distributed database (i.e., blockchain) may have the following two functions: one is to store information, i.e. any information to be stored can be written into the blockchain by the nodes on the blockchain after consensus is achieved by the consensus mechanism. It should be appreciated that the consensus mechanism herein may include: workload certification (PoW), rights and interests certification (PoS), utility bayer fault tolerance (PBFT), etc., without limitation; and secondly, any person can erect a server and join a blockchain network to form a node. Thus, the distributed ledger system may be understood as an asset database that may be shared across multiple sites, different geographic locations, or a blockchain network of multiple institutions. Participants in a blockchain network may obtain a copy of a unique, true ledger. Any changes in the ledger will be reflected in all copies and the reaction time can be in minutes or even seconds. The blockchain may be formed by blocks in a block structure, and the blockchain formed by blocks may be referred to as a nested hash chain, that is, each block in the nested hash chain includes a hash value of a previous block and detailed information (for convenience of description, abbreviated as transaction information) that needs to be saved.
Alternatively, in some possible embodiments, the circulation process of the finishing material is typically material producer→material master→material distributor 1→ … →material distributor n→consumer, where n is an integer. Thus, in addition to verifying that the finishing material itself is acceptable, it is possible to verify that the material distributor selling the finishing material to the consumer is authorized to be authorized by the agency, that is, that the material distributor n is authorized by the agency. Specifically, the management node may obtain a material dealer set corresponding to the first material type from the blockchain, that is, the first material dealer set, and determine whether the material dealer corresponding to the first material dealer identifier has the agent qualification by determining whether the first material dealer identifier is included in the first material dealer set. In the embodiment of the present application, if the first material dealer identifier does not belong to the first material dealer set, the material dealer corresponding to the first material dealer identifier does not have the agent qualification, so that the authentication result corresponding to the first finishing material is authentication failure. It should be appreciated that a collection of material dealers qualifying for material agents of various material types have been previously stored in the blockchain.
Alternatively, in some possible embodiments, house decoration typically requires a certain period of decoration, so that the selected decoration material is not typically used up on the day of the purchase date. However, in fact, the finishing material has a material shelf life, and even if the finishing material exceeding the material shelf life is a genuine material, the finishing material can cause damage to human body, so that the quality shelf life of the finishing material can be verified in addition to verifying the authenticity of the finishing material. Specifically, by acquiring the first material production date and the first material quality guarantee period included in the first material verification information, the first material expiration date corresponding to the first decoration material can be determined according to the first material production date and the first material quality guarantee period. Wherein if the expiration date of the first material is less than the decoration delivery date, it indicates that the decoration material has expired before the decoration delivery date, and thus the authentication result corresponding to the first decoration material can be determined as authentication failure.
Alternatively, in some possible embodiments, the circulation process of the finishing material is typically material producer→material master→material distributor 1→ … →material distributor n→consumer, where n is an integer. It is thus also possible to verify whether the finishing material is acceptable for the entire subsequent circulation process in the finishing market, since it was produced by the manufacturer. Specifically, at least one first material transfer block including the first material identifier is obtained from the blockchain according to the first material identifier, and a first decoration material transfer track corresponding to the first decoration material can be generated according to the first decoration material transfer information included in each first material transfer block. When the first decoration material transfer track is not the unidirectional continuous track, the corresponding identification result of the first decoration material can be determined to be identification failure. Here, the unidirectional continuous track refers to that the first decoration material cannot be branched and broken in the circulation process, and in this embodiment of the present application, since the first decoration material transfer track is a transfer track corresponding to one decoration material, it is impossible for the same decoration material to be simultaneously proxied by two distributors in the normal transfer track, or for the same decoration material to be purchased by two different consumers, or for the break to occur in the circulation process. For example, referring to fig. 7, fig. 7 is a schematic diagram illustrating effects of different transfer tracks according to an embodiment of the present application. The tracks listed include unidirectional continuous tracks, tracks with break points and tracks with bifurcation, and it is understood that only unidirectional continuous tracks are normal tracks, and other tracks with break points and/or bifurcation are abnormal tracks.
206. And when the identification results corresponding to the decoration materials in the decoration material list are all identification passing, sending qualified information of the decoration materials to a consumer node, and indicating the consumer node to generate a material purchasing block according to the decoration list so as to be added into a block chain.
In some possible embodiments, by sequentially taking each repair material included in the repair material list as the first repair material and passing the first repair material information corresponding to the first repair material through the above-mentioned authentication in step 102 to step 103, assuming that the authentication results corresponding to each repair material in the repair material list are all authenticated, the management node may send the repair material qualification information to the consumer node, and instruct the consumer node to generate a material procurement block according to the repair list for adding to the blockchain. Otherwise, if the authentication result corresponding to any finishing material in the finishing material list is that the authentication fails, the fact that the fake and fake materials exist in the finishing material list is indicated, so that the management node can send the unqualified finishing material information to the consumer node to inform the consumer node that the unqualified finishing material is included in the finishing material list, and the consumer node can terminate the purchase.
Optionally, in some possible embodiments, if the defective information of the finishing material includes finishing material information corresponding to a specific defective finishing material, the consumer node may further delete the defective finishing material in the finishing material list according to the defective finishing material indicated in the defective finishing material information, and then generate a material purchasing block based on the finishing material list from which the defective finishing material is deleted, so as to add the material purchasing block to the blockchain. Specifically, after a consumer node generates a material procurement block, the material procurement block may be broadcast in the blockchain network so that other nodes in the blockchain network can verify the material procurement block, and when each node included in the blockchain network agrees with the material procurement block, the material procurement block may be added to the blockchain.
In this embodiment of the present application, in a finishing material production stage, the management node may obtain a material manufacturer set corresponding to a material type from the blockchain by obtaining a finishing material production request sent by the manufacturer node, and if the material manufacturer identifier is included in the material manufacturer set, instruct the manufacturer node to generate a material production block according to the finishing material production request, and add the material production block to the blockchain. In the finishing material circulation stage, the management node can obtain the historical material agency quantity corresponding to the material distributor identification and the material distributor set corresponding to the material type from the blockchain by obtaining the finishing material agency request sent by the distributor node, and if the material distributor identification is contained in the material distributor set and the historical material agency quantity is larger than the material agency quantity, the distributor node is instructed to generate a material transfer block according to the finishing material agency request and the material transfer block is added into the blockchain. In the finishing material selling stage, the management node can acquire a finishing material list according to the finishing material identification request by acquiring the finishing material identification request sent by the consumer node, wherein the finishing material list comprises at least one finishing material information corresponding to the finishing material. And calculating a first material hash value corresponding to the first decoration material information aiming at the first decoration material information corresponding to the first decoration material in the decoration material list, wherein the first decoration material information comprises a first material identifier and first material verification information. And acquiring a second material hash value corresponding to the first material identifier from the blockchain according to the first material identifier, wherein if the first material hash value is different from the second material hash value, determining that the authentication result corresponding to the first decoration material is authentication failure. Alternatively, it is also possible to verify whether a material dealer selling finishing materials to consumers is qualified as a regular agency. Alternatively, the shelf life of the finishing material may be verified, or the whole circulation process of the finishing material in the finishing market from the time of production by the manufacturer may be verified. And when the identification results corresponding to the decoration materials in the decoration material list are all identification passing, sending qualified information of the decoration materials to a consumer node, and indicating the consumer node to generate a material purchasing block according to the decoration list so as to be added into a block chain. By adopting the embodiment of the application, the fake and inferior decoration materials can be reduced to flow into the market through identifying the decoration materials, the circulation process of the decoration materials can be traced, the possibility that consumers purchase the fake and inferior decoration materials is reduced, the management and control force of the decoration materials is enhanced, and the applicability is high.
Referring to fig. 8, fig. 8 is a schematic structural view of a decoration material management apparatus based on a blockchain according to an embodiment of the present application. The decoration material management device based on block chain that this application embodiment provided includes:
a finishing material list obtaining module 31, configured to obtain a finishing material identification request sent by a consumer node, and obtain a finishing material list according to the finishing material identification request, where the finishing material list includes finishing material information corresponding to at least one finishing material;
a material hash value obtaining module 32, configured to calculate, for first decoration material information corresponding to a first decoration material in the decoration material list, a first material hash value corresponding to the first decoration material information, where the first decoration material information includes a first material identifier and first material verification information;
a finishing material identification module 33, configured to obtain a second material hash value corresponding to the first material identifier from the blockchain according to the first material identifier, and if the first material hash value is different from the second material hash value, determine that an identification result corresponding to the first finishing material is an identification failure;
and a material purchasing block generating module 34, configured to send qualified information of the finishing materials to the consumer node when the authentication results corresponding to the finishing materials in the finishing bill of materials are all passed, and instruct the consumer node to generate a material purchasing block according to the finishing bill so as to add the material purchasing block to the blockchain.
Referring to fig. 9, fig. 9 is another schematic structural diagram of a decoration material management device based on blockchain according to an embodiment of the present application. Wherein:
in some possible embodiments, the first material verification information includes a first material dealer identification and a first material type; the apparatus further includes a dealer authentication module 35, the dealer authentication module 35 including:
a first material dealer set obtaining unit 351 configured to obtain a first material dealer set corresponding to the first material type from the blockchain;
and a first authentication result determining unit 352 configured to determine that the authentication result corresponding to the first finishing material is authentication failure if the first material dealer identifier does not belong to the first material dealer set.
In some possible embodiments, the decoration bill of materials includes a decoration delivery date, and the first material verification information includes a first material production date and a first material shelf life; the apparatus further includes a material expiration date identification module 36, the material expiration date identification module 36 including:
a first material expiration date determining unit 361 configured to determine a first material expiration date corresponding to the first decorative material according to the first material production date and the first material quality guarantee period;
And a second authentication result determining unit 362 configured to determine that the authentication result corresponding to the first finishing material is authentication failure if the first material expiration date is smaller than the finishing delivery date.
In some possible embodiments, the apparatus further comprises a material flow identification module 37, the material flow identification module 37 comprising:
a first material transfer block acquisition unit 371 for acquiring at least one first material transfer block including the first material identifier from the blockchain according to the first material identifier;
a first finishing material transfer trajectory determining unit 372 for generating a first finishing material transfer trajectory corresponding to the first finishing material according to the first finishing material transfer information included in each first material transfer block;
and a third authentication result determining unit 373 for determining that the authentication result corresponding to the first finishing material is authentication failure if the first finishing material transfer trajectory is not a unidirectional continuous trajectory.
In some possible embodiments, the finishing further includes a material transfer block generation module 38, the material transfer block generation module 38 including:
a finishing material agent request obtaining unit 381, configured to obtain a finishing material agent request sent by a dealer node, where the finishing material agent request includes a material dealer identifier, a material type, and a material agent number;
A material dealer set acquisition unit 382 configured to acquire, from the blockchain, a historical material agent amount corresponding to the material dealer identifier, and a material dealer set corresponding to the material type;
and a material dealer auditing unit 383 for instructing the dealer node to generate a material transfer block according to the finishing material agency request and adding the material transfer block to the blockchain if the material dealer identifier is included in the material dealer set and the historical material agency quantity is greater than the material agency quantity.
In some possible embodiments, the first material verification information includes a first material manufacturer identifier and a first material production date; the finishing material authentication module 33 includes a second material hash value acquisition unit 331 and a fourth authentication result determination unit 332, where the second material hash value acquisition unit 331 is specifically configured to:
acquiring a first material production block including the first material manufacturer identifier and the first material production date from the blockchain;
and obtaining a second material hash value corresponding to the first material identifier from the first material production block.
In some possible embodiments, the apparatus further comprises a material production block generation module 39, the material production block generation module 39 comprising:
A finishing material production request obtaining unit 391, configured to obtain a finishing material production request sent by a producer node, where the finishing material production request includes a material producer identifier and a material type;
a material manufacturer set acquisition unit 392 configured to acquire a material manufacturer set corresponding to the material type from the blockchain;
and a material producer checking unit 393 for instructing the producer node to generate a material producing block according to the finishing material producing request and adding the material producing block to the blockchain if the material producing block identification is included in the material producer set.
In particular, the above-mentioned blockchain-based finishing material management device may perform the implementation provided in the steps of fig. 2 to 5 through its built-in functional modules. For example, the above-mentioned finishing material list obtaining module 31 may be used to perform the above-mentioned steps to obtain the finishing material identification request, obtain the finishing material list, and the like, and the detailed description will be omitted herein. The material hash value obtaining module 32 may be configured to obtain the first decoration material information corresponding to the first decoration material in the decoration material list in the above steps, calculate the implementation manner described in the related steps such as the first material hash value corresponding to the first decoration material information, and specifically refer to the implementation manner provided in the above steps, which is not described herein again. The finishing material identification module 33 may be configured to perform the above steps to obtain the second material hash value corresponding to the first material identifier from the blockchain, determine the identification result corresponding to the first finishing material based on the first material hash value and the second material hash value, and the like, and the implementation manner provided by the above steps may be referred to specifically, and will not be described herein. The material purchasing block generating module 34 may be configured to send the qualified information of the decoration material to the consumer node when the identification result corresponding to each decoration material in the decoration material list is the identification result in each step, instruct the consumer node to generate the material purchasing block based on the decoration list, and the like, and the implementation manner provided by each step is specifically referred to and will not be repeated herein. The dealer identifying module 35 may be configured to perform the above steps to obtain the first material dealer set, determine the implementation manner described in the related steps such as the identification result of the first material dealer corresponding to the first finishing material, and specifically refer to the implementation manner provided in the above steps, which is not described herein again. The material validity period identifying module 36 may be configured to perform the above-mentioned steps to obtain the expiration date of the first material, determine the identification result of the validity period corresponding to the first finishing material based on the expiration date of the first material and the finishing delivery date, and the like, and the detailed description will be omitted herein. The material circulation identifying module 37 may be configured to perform the above steps to obtain the first material transfer block, obtain the first decoration material transfer track corresponding to the first decoration material, determine the identifying result of the material circulation process, and the like, and the implementation manner provided by the above steps may be referred to herein and will not be described in detail. The material transfer block generating module 38 may be configured to perform the above steps to obtain the finishing material agent request, determine the agent qualification of the material dealer, and instruct the dealer node to generate the material transfer block according to the implementation described in the related steps, and the implementation provided in the above steps may be referred to herein and will not be described in detail. The material production block generating module 39 may be configured to perform the above steps to obtain the decoration material production request, determine the production qualification of the material producer, instruct the material producer node to generate the material production block, and the like, and the implementation manner provided by the above steps may be referred to herein, which is not described herein.
In this embodiment of the present application, in a finishing material production stage, the management node may obtain a material manufacturer set corresponding to a material type from the blockchain by obtaining a finishing material production request sent by the manufacturer node, and if the material manufacturer identifier is included in the material manufacturer set, instruct the manufacturer node to generate a material production block according to the finishing material production request, and add the material production block to the blockchain. In the finishing material circulation stage, the management node can obtain the historical material agency quantity corresponding to the material distributor identification and the material distributor set corresponding to the material type from the blockchain by obtaining the finishing material agency request sent by the distributor node, and if the material distributor identification is contained in the material distributor set and the historical material agency quantity is larger than the material agency quantity, the distributor node is instructed to generate a material transfer block according to the finishing material agency request and the material transfer block is added into the blockchain. In the finishing material selling stage, the management node can acquire a finishing material list according to the finishing material identification request by acquiring the finishing material identification request sent by the consumer node, wherein the finishing material list comprises at least one finishing material information corresponding to the finishing material. And calculating a first material hash value corresponding to the first decoration material information aiming at the first decoration material information corresponding to the first decoration material in the decoration material list, wherein the first decoration material information comprises a first material identifier and first material verification information. And acquiring a second material hash value corresponding to the first material identifier from the blockchain according to the first material identifier, wherein if the first material hash value is different from the second material hash value, determining that the authentication result corresponding to the first decoration material is authentication failure. Alternatively, it is also possible to verify whether a material dealer selling finishing materials to consumers is qualified as a regular agency. Alternatively, the shelf life of the finishing material may be verified, or the whole circulation process of the finishing material in the finishing market from the time of production by the manufacturer may be verified. And when the identification results corresponding to the decoration materials in the decoration material list are all identification passing, sending qualified information of the decoration materials to a consumer node, and indicating the consumer node to generate a material purchasing block according to the decoration list so as to be added into a block chain. By adopting the embodiment of the application, the fake and inferior decoration materials can be reduced to flow into the market through identifying the decoration materials, the circulation process of the decoration materials can be traced, the possibility that consumers purchase the fake and inferior decoration materials is reduced, the management and control force of the decoration materials is enhanced, and the applicability is high.
Referring to fig. 10, fig. 10 is a schematic structural diagram of a terminal device provided in an embodiment of the present application. As shown in fig. 10, the terminal device in the present embodiment may include: one or more processors 401 and a memory 402. The processor 401 and the memory 402 are connected via a bus 403. The memory 402 is used for storing a computer program comprising program instructions, and the processor 401 is used for executing the program instructions stored in the memory 402 for performing the following operations:
acquiring a decoration material identification request sent by a consumer node, and acquiring a decoration material list according to the decoration material identification request, wherein the decoration material list comprises decoration material information corresponding to at least one decoration material;
calculating a first material hash value corresponding to first decoration material information aiming at the first decoration material information corresponding to the first decoration material in the decoration material list, wherein the first decoration material information comprises a first material mark and first material verification information;
acquiring a second material hash value corresponding to the first material identifier from a blockchain according to the first material identifier, and if the first material hash value is different from the second material hash value, determining that an authentication result corresponding to the first decoration material is authentication failure;
And when the identification results corresponding to the decoration materials in the decoration material list are all identification passing, sending qualified information of the decoration materials to the consumer node, and indicating the consumer node to generate a material purchasing block according to the decoration list so as to be added into the block chain.
In some possible embodiments, the first material verification information includes a first material dealer identification and a first material type; the processor 401 is configured to:
acquiring a first material dealer set corresponding to the first material type from the blockchain;
if the first material dealer identifier does not belong to the first material dealer set, determining that the authentication result corresponding to the first decoration material is authentication failure.
In some possible embodiments, the decoration bill of materials includes a decoration delivery date, and the first material verification information includes a first material production date and a first material shelf life; the processor 401 is configured to:
determining a first material expiration date corresponding to the first finishing material according to the first material production date and the first material quality guarantee period;
and if the expiration date of the first material is smaller than the decoration delivery date, determining that the identification result corresponding to the first decoration material is identification failure.
In some possible embodiments, the processor 401 is configured to:
acquiring at least one first material transfer block including the first material identifier from the blockchain according to the first material identifier;
generating a first decoration material transfer track corresponding to the first decoration material according to the first decoration material transfer information included in each first material transfer block;
if the first decoration material transfer track is not a unidirectional continuous track, determining that the identification result corresponding to the first decoration material is identification failure.
In some possible embodiments, the processor 401 is configured to:
acquiring a finishing material agency request sent by a dealer node, wherein the finishing material agency request comprises a material dealer identifier, a material type and a material agency number;
acquiring historical material agency amounts corresponding to the material distributor identifiers and material distributor sets corresponding to the material types from the blockchain;
if the material distributor identification is included in the material distributor set and the historical material agency quantity is greater than the material agency quantity, the distributor node is instructed to generate a material transfer block according to the finishing material agency request and add the material transfer block to the blockchain.
In some possible embodiments, the first material verification information includes a first material manufacturer identifier and a first material production date; the processor 401 is configured to:
acquiring a first material production block including the first material manufacturer identifier and the first material production date from the blockchain;
and obtaining a second material hash value corresponding to the first material identifier from the first material production block.
In some possible embodiments, the processor 401 is configured to:
acquiring a decoration material production request sent by a manufacturer node, wherein the decoration material production request comprises a material manufacturer identifier and a material type;
acquiring a material manufacturer set corresponding to the material type from the block chain;
if the material manufacturer identity is included in the material manufacturer set, the manufacturer node is instructed to generate a material production block according to the finishing material production request and add the material production block to the blockchain.
It should be appreciated that in some possible embodiments, the processor 401 described above may be a central processing unit (central processing unit, CPU), which may also be other general purpose processors, digital signal processors (digital signal processor, DSP), application specific integrated circuits (application specific integrated circuit, ASIC), off-the-shelf programmable gate arrays (field programmable gate array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The memory 402 may include read only memory and random access memory and provides instructions and data to the processor 401. A portion of memory 402 may also include non-volatile random access memory. For example, the memory 402 may also store information of device type.
In a specific implementation, the terminal device may execute, through each function module built in the terminal device, an implementation manner provided by each step in fig. 2 to 5, and specifically, the implementation manner provided by each step may be referred to, which is not described herein again.
In this embodiment of the present application, in a finishing material production stage, the management node may obtain a material manufacturer set corresponding to a material type from the blockchain by obtaining a finishing material production request sent by the manufacturer node, and if the material manufacturer identifier is included in the material manufacturer set, instruct the manufacturer node to generate a material production block according to the finishing material production request, and add the material production block to the blockchain. In the finishing material circulation stage, the management node can obtain the historical material agency quantity corresponding to the material distributor identification and the material distributor set corresponding to the material type from the blockchain by obtaining the finishing material agency request sent by the distributor node, and if the material distributor identification is contained in the material distributor set and the historical material agency quantity is larger than the material agency quantity, the distributor node is instructed to generate a material transfer block according to the finishing material agency request and the material transfer block is added into the blockchain. In the finishing material selling stage, the management node can acquire a finishing material list according to the finishing material identification request by acquiring the finishing material identification request sent by the consumer node, wherein the finishing material list comprises at least one finishing material information corresponding to the finishing material. And calculating a first material hash value corresponding to the first decoration material information aiming at the first decoration material information corresponding to the first decoration material in the decoration material list, wherein the first decoration material information comprises a first material identifier and first material verification information. And acquiring a second material hash value corresponding to the first material identifier from the blockchain according to the first material identifier, wherein if the first material hash value is different from the second material hash value, determining that the authentication result corresponding to the first decoration material is authentication failure. Alternatively, it is also possible to verify whether a material dealer selling finishing materials to consumers is qualified as a regular agency. Alternatively, the shelf life of the finishing material may be verified, or the whole circulation process of the finishing material in the finishing market from the time of production by the manufacturer may be verified. And when the identification results corresponding to the decoration materials in the decoration material list are all identification passing, sending qualified information of the decoration materials to a consumer node, and indicating the consumer node to generate a material purchasing block according to the decoration list so as to be added into a block chain. By adopting the embodiment of the application, the fake and inferior decoration materials can be reduced to flow into the market through identifying the decoration materials, the circulation process of the decoration materials can be traced, the possibility that consumers purchase the fake and inferior decoration materials is reduced, the management and control force of the decoration materials is enhanced, and the applicability is high.
The embodiment of the present application further provides a computer readable storage medium, where the computer readable storage medium stores a computer program, where the computer program includes program instructions, and when the program instructions are executed by a processor, implement the blockchain-based finishing material management method provided in each step of fig. 2 to 5, and specifically, reference may be made to the implementation manner provided in each step, which is not repeated herein.
The computer readable storage medium may be the blockchain-based finishing material management device provided in any of the foregoing embodiments or an internal storage unit of the terminal device, such as a hard disk or a memory of an electronic device. The computer readable storage medium may also be an external storage device of the electronic device, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) card, a flash card (flash card) or the like, which are provided on the electronic device. Further, the computer-readable storage medium may also include both an internal storage unit and an external storage device of the electronic device. The computer-readable storage medium is used to store the computer program and other programs and data required by the electronic device. The computer-readable storage medium may also be used to temporarily store data that has been output or is to be output.
The terms "first," "second," "third," "fourth," and the like in the claims and in the description and drawings of the present application, are used for distinguishing between different objects and not for describing a particular sequential order. Furthermore, the terms "comprise" and "have," as well as any variations thereof, are intended to cover a non-exclusive inclusion. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those listed steps or elements but may include other steps or elements not listed or inherent to such process, method, article, or apparatus.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment may be included in at least one embodiment of the present application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. Those of skill in the art will explicitly and implicitly appreciate that the embodiments described herein may be combined with other embodiments. The term "and/or" as used in this specification and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes such combinations. Those of ordinary skill in the art will appreciate that the elements and algorithm steps described in connection with the embodiments disclosed herein may be embodied in electronic hardware, in computer software, or in a combination of the two, and that the elements and steps of the examples have been generally described in terms of function in the foregoing description to clearly illustrate the 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 solution. 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 application.
The methods and related devices provided in the embodiments of the present application are described with reference to the method flowcharts and/or structure diagrams provided in the embodiments of the present application, and each flowchart and/or block of the method flowcharts and/or structure diagrams may be implemented by computer program instructions, and combinations of flowcharts and/or blocks in the flowchart and/or block diagrams. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks. These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or structural diagram block or blocks. These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or structures.

Claims (8)

1. A blockchain-based finishing material management method, applied to a management node, the method comprising:
acquiring a finishing material agency request sent by a dealer node, wherein the finishing material agency request comprises a material dealer identifier, a material type and a material agency number;
acquiring historical material agency amounts corresponding to the material distributor identifiers and material distributor sets corresponding to the material types from the blockchain;
if the material distributor identification is contained in the material distributor set and the historical material agency quantity is greater than the material agency quantity, indicating the distributor node to generate a material transfer block according to the finishing material agency request and adding the material transfer block into the blockchain;
acquiring a decoration material identification request sent by a consumer node, and acquiring a decoration material list according to the decoration material identification request, wherein the decoration material list comprises decoration material information corresponding to at least one decoration material;
acquiring first decoration material information corresponding to a first decoration material in the decoration material list, wherein the first decoration material information comprises a first material identifier and first material verification information;
Acquiring at least one first material transfer block including the first material identification from the blockchain according to the first material identification;
generating a first decoration material transfer track corresponding to the first decoration material according to the first decoration material transfer information included in each first material transfer block;
if the first decoration material transfer track is not a unidirectional continuous track, determining that the identification result corresponding to the first decoration material is identification failure, wherein the unidirectional continuous track is used for indicating that the first decoration material does not have bifurcation and break points in the circulation process;
calculating a first material hash value corresponding to first decoration material information aiming at the first decoration material information corresponding to the first decoration material in the decoration material list;
acquiring a second material hash value corresponding to the first material identifier from a blockchain according to the first material identifier, and if the first material hash value is different from the second material hash value, determining that an authentication result corresponding to the first decoration material is authentication failure;
and when the identification results corresponding to the decoration materials in the decoration material list are all identification passing, sending qualified information of the decoration materials to the consumer node, and indicating the consumer node to generate a material purchasing block according to the decoration material list so as to be added into the block chain.
2. The method of claim 1, wherein the first material verification information includes a first material dealer identification and a first material type; the method further comprises the steps of:
acquiring a first material dealer set corresponding to the first material type from the blockchain;
and if the first material dealer identifier does not belong to the first material dealer set, determining that the authentication result corresponding to the first decoration material is authentication failure.
3. The method of claim 1, wherein the list of finishing materials includes a finishing delivery date, and wherein the first material verification information includes a first material production date and a first material expiration date; the method further comprises the steps of:
determining a first material expiration date corresponding to the first finishing material according to the first material production date and the first material quality guarantee period;
and if the expiration date of the first material is smaller than the decoration delivery date, determining that the identification result corresponding to the first decoration material is identification failure.
4. The method of claim 1, wherein the first material verification information comprises a first material manufacturer identification and a first material production date; the obtaining, from the blockchain, a second material hash value corresponding to the first material identifier according to the first material identifier includes:
Obtaining a first material production block from the blockchain that includes the first material manufacturer identification and the first material production date;
and acquiring a second material hash value corresponding to the first material identifier from the first material production block.
5. The method of claim 4, wherein prior to the obtaining the finishing material authentication request sent by the consumer node, the method further comprises:
acquiring a decoration material production request sent by a manufacturer node, wherein the decoration material production request comprises a material manufacturer identifier and a material type;
acquiring a material manufacturer set corresponding to the material type from the blockchain;
and if the material manufacturer identification is included in the material manufacturer set, instructing the manufacturer node to generate a material production block according to the finishing material production request and adding the material production block into the block chain.
6. A blockchain-based finishing material management device for use in a management node, the device comprising:
a material transfer block generation module, the material transfer block generation module comprising:
a finishing material agent request acquisition unit, configured to acquire a finishing material agent request sent by a dealer node, where the finishing material agent request includes a material dealer identifier, a material type, and a material agent number;
A material dealer set acquisition unit configured to acquire, from the blockchain, a historical material agent amount corresponding to the material dealer identifier, and a material dealer set corresponding to the material type;
a material dealer auditing unit configured to instruct the dealer node to generate a material transfer block according to the finishing material agency request and add the material transfer block to the blockchain if the material dealer identifier is included in the material dealer set and the historical material agency quantity is greater than the material agency quantity;
the system comprises a decoration material list acquisition module, a decoration material identification module and a display module, wherein the decoration material list acquisition module is used for acquiring a decoration material identification request sent by a consumer node and acquiring a decoration material list according to the decoration material identification request, and the decoration material list comprises decoration material information corresponding to at least one decoration material;
a material flow identification module, the material flow identification module comprising:
a first material transfer block obtaining unit, configured to obtain first decoration material information corresponding to a first decoration material in the decoration material list, where the first decoration material information includes a first material identifier and first material verification information; acquiring at least one first material transfer block including the first material identification from the blockchain according to the first material identification;
A first decoration material transfer track determining unit, configured to generate a first decoration material transfer track corresponding to the first decoration material according to first decoration material transfer information included in each first material transfer block;
a third identification result determining unit, configured to determine that, if the first decoration material transfer track is not a unidirectional continuous track, the identification result corresponding to the first decoration material is an identification failure, where the unidirectional continuous track is used to indicate that the first decoration material has no bifurcation and no breakpoint in the circulation process;
the material hash value acquisition module is used for calculating a first material hash value corresponding to first decoration material information aiming at the first decoration material information corresponding to the first decoration material in the decoration material list;
the decoration material identification module is used for acquiring a second material hash value corresponding to the first material identifier from a blockchain according to the first material identifier, and if the first material hash value is different from the second material hash value, determining that an identification result corresponding to the first decoration material is identification failure;
and the material purchasing block generation module is used for sending qualified information of the decoration materials to the consumer node when the identification results corresponding to the decoration materials in the decoration material list are all identification passing, and instructing the consumer node to generate a material purchasing block according to the decoration material list so as to be added to the block chain.
7. A terminal device comprising a processor and a memory, said processor and memory being interconnected;
the memory is for storing a computer program comprising program instructions, the processor being configured to invoke the program instructions to perform the method of any of claims 1-5.
8. A computer readable storage medium, characterized in that the computer readable storage medium stores a computer program comprising program instructions which, when executed by a processor, cause the processor to perform the method of any of claims 1-5.
CN201911059634.3A 2019-11-01 2019-11-01 Decoration material management method, device, terminal and medium based on block chain Active CN110826087B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911059634.3A CN110826087B (en) 2019-11-01 2019-11-01 Decoration material management method, device, terminal and medium based on block chain

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911059634.3A CN110826087B (en) 2019-11-01 2019-11-01 Decoration material management method, device, terminal and medium based on block chain

Publications (2)

Publication Number Publication Date
CN110826087A CN110826087A (en) 2020-02-21
CN110826087B true CN110826087B (en) 2023-07-25

Family

ID=69551933

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911059634.3A Active CN110826087B (en) 2019-11-01 2019-11-01 Decoration material management method, device, terminal and medium based on block chain

Country Status (1)

Country Link
CN (1) CN110826087B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106570710A (en) * 2016-10-27 2017-04-19 纸飞机(北京)科技有限公司 Commodity anti-counterfeiting method and device
WO2018124718A1 (en) * 2016-12-29 2018-07-05 주식회사 코인플러그 Method for providing integrated point service by managing balance database for each block in blockchain, and support server using same
CN108520293A (en) * 2018-04-03 2018-09-11 中兴能源(天津)有限公司 A kind of product false proof source tracing method, device, server and storage medium
CN108960863A (en) * 2018-07-03 2018-12-07 广州市格利网络技术有限公司 A kind of food block chain retroactive method, device and electronic equipment
CN109146528A (en) * 2018-09-05 2019-01-04 郑州信大壹密科技有限公司 Antiforge method for commodities and system based on block chain

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107220837A (en) * 2017-05-31 2017-09-29 北京汇通金财信息科技有限公司 A kind of destination object source tracing method and device
CN109034851B (en) * 2018-09-05 2022-03-08 深圳正品创想科技有限公司 Commodity anti-counterfeiting tracing method and device based on block chain and block chain link points

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106570710A (en) * 2016-10-27 2017-04-19 纸飞机(北京)科技有限公司 Commodity anti-counterfeiting method and device
WO2018124718A1 (en) * 2016-12-29 2018-07-05 주식회사 코인플러그 Method for providing integrated point service by managing balance database for each block in blockchain, and support server using same
CN108520293A (en) * 2018-04-03 2018-09-11 中兴能源(天津)有限公司 A kind of product false proof source tracing method, device, server and storage medium
CN108960863A (en) * 2018-07-03 2018-12-07 广州市格利网络技术有限公司 A kind of food block chain retroactive method, device and electronic equipment
CN109146528A (en) * 2018-09-05 2019-01-04 郑州信大壹密科技有限公司 Antiforge method for commodities and system based on block chain

Also Published As

Publication number Publication date
CN110826087A (en) 2020-02-21

Similar Documents

Publication Publication Date Title
CN108667632B (en) Credit record sharing method and device based on block chain and electronic equipment
Al Kawasmi et al. Bitcoin‐based decentralized carbon emissions trading infrastructure model
WO2020063185A1 (en) Blockchain-based anti-counterfeiting method and apparatus, and electronic device
US11495075B2 (en) Distributed voting system, method, apparatus, computer device and readable storage medium
CN109299943A (en) A kind of method and device of the intellectual property transaction based on block chain
EP3540662A1 (en) Computer implemented method for supply chain management and provenance in a data processing network
CN105893042A (en) Intelligent contract implementation method based on block chain
TWI727281B (en) Block chain-based data processing method and device, and electronic equipment
CN110490282A (en) Source tracing method, device of tracing to the source, traceability system and storage medium
CN106407795A (en) Data existence authentication system, authentication method and verification method
CN112200571B (en) Resource distribution method and device based on block chain and electronic equipment
CN111177253A (en) Power big data protection method and system based on identity digital authentication
Forte et al. Beyond Bitcoin-Part I: A critical look at blockchain-based systems
CN110765211A (en) Engineering bid inviting management method, device, terminal and storage medium based on block chain
CN112200568B (en) Block chain based account creation method and device and electronic equipment
CN110471982A (en) Data processing method and device based on block chain
CN116628757B (en) Spacecraft supply chain management method, equipment and storage medium based on block chain
CN111414434A (en) Block chain-based data transaction management network, transaction device and storage medium
CN113706313A (en) Financing method, system and computer readable storage medium based on block chain
Di Silvestre et al. An energy blockchain, a use case on tendermint
CN112801785A (en) Fair data transaction method and device based on block chain intelligent contract
CN114529283A (en) Internet of things equipment transaction method based on block chain
CN101714222A (en) Safe electronic stamping method based on notarization stamp of notarization institution
CN114218591A (en) Digital asset management method capable of realizing anonymous transaction
CN110826087B (en) Decoration material management method, device, terminal and medium based on block chain

Legal Events

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