Blockchain information management method and device
By managing product information in the blockchain network and using identity verification and broadcast mechanisms, the problem of low reliability of information management in the existing technology is solved, reliable storage and authenticity identification of product information is achieved, and product information query is improved. reliability.
Patent Information
- Application Number
- CN201910923692.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-09-27
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2040-07-21
AI Technical Summary
Existing product information management methods are prone to tampering with databases or product labels, resulting in low reliability of information management and authenticity queries, and cannot effectively prevent product counterfeiting.
Blockchain technology is used to manage information on nodes in the network. Through identity verification, broadcasting and query request processing, it ensures the consistency and non-tamperability of product information stored in the blockchain network, and provides reliable information query and authenticity. Pseudo identification.
Through the non-tamperability, security and reliability of blockchain technology, the reliability of information management is improved, the authenticity of product information is ensured, and the interests of manufacturers and buyers are protected.
Smart Images

Figure CN110599210B
Abstract
Description
Technical Field
[0001] The present application relates to the field of network technology, and in particular to a blockchain information management method and device. Background Art
[0002] With the development of network technology, there are more counterfeit products on the market, such as electronic equipment counterfeit, which has caused great damage to the interests of manufacturers who actually own the property rights and buyers.
[0003] In the related art, in order to enable the purchaser to trace (i.e. query) the commodity information of the purchased commodity and determine the authenticity of the purchased commodity based on the queried commodity information, the manufacturer of the commodity can set a unique identifier for the commodity it produces and upload the commodity identifier to a designated database. The purchaser can query the commodity information of the commodity in the designated database through the commodity identifier of the purchased commodity.
[0004] However, since the database or product label can be easily tampered with, the reliability of the product information management method in the related art is low, which in turn leads to low reliability of authenticity query. Summary of the invention
[0005] The embodiment of the present application provides a blockchain information management method and device, which can solve the problem of low reliability of information management methods in related technologies. The technical solution is as follows:
[0006] On the one hand, a blockchain information management method is provided, which is applied to any node in a blockchain network, and the method includes:
[0007] When receiving the commodity information provided by the information provider, verifying the identity of the information provider;
[0008] When the identity verification is passed, the commodity information is broadcasted in the blockchain network;
[0009] When receiving a query request from the information requesting end for any commodity information in the blockchain network, obtaining the any commodity information;
[0010] Providing any commodity information to the information requesting end.
[0011] On the other hand, a blockchain information management device is provided, which is applied to any node in a blockchain network, and the device includes:
[0012] A verification module, used to authenticate the identity of the information provider when receiving the commodity information provided by the information provider;
[0013] A broadcast module, used for broadcasting the commodity information in the blockchain network when the identity verification is passed;
[0014] An acquisition module, configured to acquire any commodity information when receiving a query request from an information requesting end for any commodity information in the blockchain network;
[0015] A providing module is used to provide any commodity information to the information requesting end.
[0016] Optionally, the commodity information includes a commodity identification, and the verification module is used to:
[0017] When receiving the commodity information provided by the information provider, detecting whether the commodity identifier is stored in the blockchain network;
[0018] When the commodity identifier is not stored in the blockchain network, the identity of the information provider is authenticated.
[0019] Optionally, the commodity information includes a digital certificate and a digital signature, and the verification module is used to:
[0020] The identity of the information provider is authenticated through the digital certificate and digital signature.
[0021] Optionally, the product information includes: key information and value information, the key information includes the product identification, the value information includes the digital certificate, the digital signature signed by the private key corresponding to the digital certificate, and the product data.
[0022] Optionally, the information provider includes at least one of a parts manufacturing plant, an equipment assembly plant, a logistics unit, and a sales store;
[0023] The product identification includes at least one of a component identification, an equipment identification, a logistics identification and a sales identification;
[0024] The commodity data includes at least one of parts data, equipment data, logistics data and sales data.
[0025] Optionally, the query request includes the key information;
[0026] The providing module is used to provide the value information to the information requesting end.
[0027] On the other hand, a terminal is provided, comprising: a processor and a memory, wherein the memory stores at least one instruction, at least one program, a code set or an instruction set, and the at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by the processor to implement the information management method of the blockchain as described in the above aspects.
[0028] On the other hand, a computer-readable storage medium is provided, wherein at least one instruction, at least one program, a code set or an instruction set is stored in the storage medium, and the at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by a processor to implement the information management method of the blockchain as described in the above aspects.
[0029] The beneficial effects brought by the technical solution provided by the embodiments of the present application may at least include:
[0030] In summary, the embodiments of the present application provide a method and device for information management of a blockchain. Any node of a pre-established blockchain network can receive commodity information provided by an information provider, and can authenticate the identity of the information provider, and when the authentication is passed, broadcast the received commodity information to the entire network, so that all nodes included in the blockchain network can store the same commodity information. And the node can also receive a query request for any commodity information, and provide the queried commodity information to the information requesting end according to the request. By storing and managing information through blockchain network technology, compared with the related technology using database management, this method can make full use of the advantages of blockchain such as immutability, security and reliability, ensure the reliability of information management, and then ensure the reliability of authenticity identification based on the queried information. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0032] Figure 1 It is a schematic diagram of an implementation environment involved in various embodiments of the present application;
[0033] Figure 2 This is a schematic diagram of the structure of a blockchain network provided in an embodiment of the present application;
[0034] Figure 3 This is a flowchart of a blockchain information management method provided by an embodiment of the present application;
[0035] Figure 4This is a flow chart of another blockchain information management method provided by an embodiment of the present application;
[0036] Figure 5 This is a schematic diagram of information included in a blockchain network provided in an embodiment of the present application;
[0037] Figure 6 This is a schematic diagram of the entire chaining process of an electronic device provided in an embodiment of the present application;
[0038] Figure 7 It is a block diagram of a blockchain information management device provided by an embodiment of the present application;
[0039] Figure 8 It is a structural block diagram of a terminal provided in an embodiment of the present application. DETAILED DESCRIPTION
[0040] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.
[0041] Figure 1 Schematic diagram of the implementation environment involved in a blockchain information management method provided in an embodiment of the present application. Figure 1 As shown, the implementation environment may include: a blockchain network 10, wherein the blockchain network 10 includes a plurality of nodes 101 ( Figure 1 Only four nodes are shown), and each node 101 can transmit information through the established communication connection. In addition, each node 101 can include multiple blocks, and each node 101 can store received information in its block and broadcast the received data to other nodes 101. Optionally, each node 101 can be a computer device, for example, Figure 1 The computer device may be a server, or may be a terminal device such as a computer or a mobile phone.
[0042] In the embodiment of the present application, a smart contract can be deployed in the blockchain network 10, which refers to a computer protocol intended to spread, verify or execute a contract in an information-based manner. Each node 101 can receive information input by the information provider through the smart contract, store the received information in a block inside it, and broadcast the received information to the entire network through the smart contract, so that other nodes 101 can also receive the same information (the process can also be called chaining). In addition, in order to realize the information query function, each node 101 can also read the information stored in the blockchain network 10 through the smart contract. In addition, for each node 101, it can also have a node identification corresponding to it, and can store the node identification of other nodes in the blockchain network 10, so that each node 101 can reliably broadcast the received information to other nodes through a communication connection according to the node identification of other nodes.
[0043] For example, referring to Table 1, it shows a node identification list maintained in each node 101, and the node identification list may include: node name and node identification. Among them, the node identification can be an Internet Protocol (IP) address for interconnection between networks and any other information that can be used to identify the node. Table 1 only uses the IP address as an example for explanation. For example, referring to Table 1, the node identification corresponding to the node name Node 1 is: 117.114.151.174.
[0044] Table 1
[0045] Node Name Node ID Node 1 117.114.151.174 Node 2 117.116.189.145 … … Node N 119.123.789.258
[0046] In addition, in order to ensure the consistency of the information stored in each node 101, each node 101 can also maintain the entire blockchain network 10 through a smart contract based on a consensus mechanism. That is, each node 101 can perform multiple data corrections through a pre-configured consensus algorithm, and continuously broadcast the most recently corrected data to the entire network until the information stored in each node 101 is consistent, that is, until each node 101 reaches a consensus. Among them, the principle of the consensus algorithm includes: the node that receives the information compares the received information with the information stored by itself, and broadcasts the information whose accuracy is greater than the accuracy threshold among the multiple information determined after comparison to the entire network again; then, the node that receives the corrected information continues to repeat the comparison operation, that is, performs network diffusion iteration, until the entire network reaches a consensus.
[0047] It should be noted that the blockchain network 10 can be a decentralized network system, that is, the commodity information can be supervised by the blockchain network 10 with decentralized technology. Decentralization means that there is no concept of central nodes in the blockchain network 10, and the status of each node 101 in the blockchain network 10 is equal. Each node 101 can store the same blockchain. The blockchain includes multiple blocks, each block stores different data, and the data stored in all blocks on the blockchain constitutes all shared data of the blockchain network.
[0048] It should also be noted that, since the corresponding product information of a product includes not only manufacturing information, but also logistics information and sales information, in order to achieve all-round management of product information. Figure 2 In the embodiment of the present application, the original parts manufacturing factory that manufactures the parts of the device, the original equipment assembly factory that assembles the device based on the parts, the logistics unit (including the customs unit) that transports the device, and the sales outlets (including online sales outlets) that sell the device can all join the blockchain network 10. Of course, the purchaser can also join the blockchain network 10 through his terminal. It should be noted that Figure 2 Only multiple blocks in one node 101 ( Figure 2 A blockchain consisting of 5 blocks is shown as an example for explanation. After the storage space of one block is used up, the node 101 can store the received information in another block, and the time indicates the time of storing the information.
[0049] Since the operations performed by the blockchain network 10 are: recording product information and querying product information, users who purchase products can query the product information of the products they purchased in the blockchain network, and reliably identify the authenticity of the products they purchased based on the queried product information. Therefore, the blockchain network can also be called a device anti-counterfeiting traceability platform. By managing information through blockchain technology, the advantages of the blockchain network itself, such as non-tamperability, non-forgeability, reliable data encryption, and sharing and openness, can be effectively utilized to achieve effective and secure management of information. Compared with the related technology of managing information through a database, this management method makes information query more reliable.
[0050] For example, users who purchase goods can reliably query the product information of the goods they purchase in the blockchain network, and then the purchaser can reliably judge the authenticity of the goods they purchase based on the product information. And users can clearly query whether their devices are resold based on the product sales information. This provides protection for the original manufacturers of the goods and the users who purchase the goods.
[0051] Figure 3This is a flowchart of a blockchain information management method provided by an embodiment of the present application. Figure 1 The blockchain network shown includes any node. Figure 3 As shown, the method may include:
[0052] Step 301: When receiving commodity information provided by an information provider, authenticate the identity of the information provider.
[0053] The information provider can be any participant who joins the blockchain network. Figure 2 The information provider may be the original manufacturer of the parts. The product information may be any information related to the product, such as the production information or sales information of the product. The product information may be information pre-set for the product by the information provider, such as a product identifier used to uniquely identify the product.
[0054] In the embodiment of the present application, the information provider can input the commodity information related to the commodity to any node through the terminal device, that is, the node can receive the commodity information provided by the information provider. In addition, in order to prevent illegal elements from arbitrarily providing false information in the blockchain network and ensure the security and reliability of information management, when receiving the commodity information, the node can also authenticate the information provider through the smart contract.
[0055] Step 302: When identity verification is passed, the product information is broadcast in the blockchain network.
[0056] When the identity verification is passed, the node that receives the product information can continue to store the product information in a block inside it through the smart contract, and broadcast the received product information to the entire blockchain network, that is, the node that receives the product information can transmit the product information to other nodes through the communication connection established with other nodes, so that each node can store the product information. This step can also be called the chain operation, that is, the node puts the product information on the chain.
[0057] Optionally, in order to ensure the consistency of information stored in each node, each node that receives the product information can also perform consensus processing on the product information through a consensus algorithm and then broadcast it to the entire network again, and continuously execute the consensus processing until the product information stored in each node is consistent.
[0058] Step 303: When a query request for any commodity information in the blockchain network is received from the information requesting end, any commodity information is obtained.
[0059] In the embodiment of the present application, the information request end can be not only any participant who joins the blockchain network, but also other users other than the participants (such as the purchaser of the goods). If it is necessary to query the product information, the user who queries the product information (i.e., the information request end) can input the relevant information of the product to be queried into the node through the terminal, and accordingly, the node can receive the query request from the information request end. Upon receiving the query request, the node can obtain any product information corresponding to the query request in the blockchain network through the smart contract.
[0060] Step 304: Provide any product information to the information requesting end.
[0061] Optionally, when the node finds the product information according to the query request, it can directly display any product information found to the information requesting end, so that the information requesting end can obtain the product information it wants to find.
[0062] In summary, the embodiment of the present application provides a method for information management of a blockchain. Any node of a pre-established blockchain network can receive commodity information provided by an information provider, and can authenticate the identity of the information provider, and when the authentication is passed, broadcast the received commodity information to the entire network, so that all nodes included in the blockchain network can store the same commodity information. And the node can also receive a query request for any commodity information, and provide the queried commodity information to the information requesting end according to the request. By storing and managing information through blockchain network technology, compared with the use of database management in related technologies, this method can make full use of the advantages of blockchain that cannot be tampered with and is safe and reliable, ensuring the reliability of information management, and then ensuring the reliability of authenticity identification based on the queried information.
[0063] Figure 4 This is a flowchart of another blockchain information management method provided by the embodiment of the present application. This method can be applied to Figure 1 In any node of the blockchain network shown. Figure 4 As shown, the method may include:
[0064] Step 401: When receiving the commodity information provided by the information provider, check whether the commodity identification is stored in the blockchain network.
[0065] In the embodiment of the present application, the information provider may be any participant in the blockchain network. Figure 2The information provider may include at least one of a parts manufacturing plant, an equipment assembly plant, a logistics unit, and a sales store. The product information may be information pre-set for the product by any participant. The information provider may input the product information into any node through its terminal device, and accordingly, the node may receive the product information provided by the information provider.
[0066] Among them, the product information may include a product identification, which may be an identification set by the participant for the product before the product information is uploaded to the chain (also known as a product label identification) for uniquely identifying the product. The product identification may include at least one of numbers, letters and special symbols.
[0067] Optional, where participants include Figure 2 When there are multiple participants as shown, the commodity identification may include at least one of: a component identification, an equipment identification, a logistics identification, and a sales identification. When the participant is a component manufacturing original factory, the commodity identification may be an identification set by the component manufacturing original factory for the component after the component is produced and the quality is qualified. For example, the commodity identification set by the component manufacturing original factory for the component it manufactures is: lj0000001. When the participant is an equipment assembly original factory, the commodity identification may be an identification set by the equipment assembly original factory for the equipment after the equipment is assembled. For example, the commodity identification set by the equipment assembly original factory for the equipment it assembles is: sb0000009. When the participant is a logistics unit, the commodity identification may be an identification set by the logistics unit for the logistics situation after the equipment is transported. For example, the logistics identification set by the logistics unit for the equipment it transports is: wl0000005. When the participant is a sales store, the commodity identification may be an identification set by the sales store for the sales situation after the equipment is sold. For example, the sales identification set by the sales store for the equipment it sells is: xs0000006.
[0068] In order to prevent illegal elements from providing false information, or to prevent participants from repeatedly providing information, which leads to low information management efficiency and security, after receiving the product information, the node can first query the blockchain network through the smart contract whether the received product identification has been stored in the blockchain network. If the node detects that the blockchain network has stored the product identification included in the received product information, the node can directly exit the chain operation and the chain fails. If the blockchain network does not store the product identification, the product information chain operation can continue, that is, the following step 402 can be continued.
[0069] Step 402: Authenticate the identity of the information provider.
[0070] In the embodiment of the present application, in order to further prevent illegal elements from arbitrarily providing false information in the blockchain network and ensure the security and reliability of information management, when the node receives the product information, it can also authenticate the identity of the information provider through a smart contract.
[0071] Optionally, the commodity information received by the node may also include: a digital certificate and a digital signature provided by the participant. The digital certificate may be a certificate that the participant has applied for in advance from an authority to uniquely indicate its identity. The digital certificate may be open to all users, that is, all users may authenticate that the certificate is issued by an authority. For example, the authority may be a Certificate Authority (CA) agency, and the participant may provide his or her public key to the CA agency, which may issue a digital certificate to the participant based on the public key. The digital signature may be the signature information after the participant signs the commodity information using the private key.
[0072] Since the private key is only held by the participant itself, the node can authenticate the identity of the information provider through a digital certificate and a digital signature. For example, the node can determine the public key through the digital certificate included in the received product information, and then match the public key with the private key corresponding to the digital signature. If the match is successful, it is determined that the identity authentication of the information provider is successful. At this point, the node can chain the product information, that is, the node can continue to execute the following step 403. If the match fails, the node can determine that the identity authentication has failed. At this time, the node can exit the chain operation and the chain fails. Of course, the identity of the information provider can also be verified by other encryption methods.
[0073] For example, suppose the public key included in the digital certificate is: x0010, and the private key matching the public key is x0020. However, the private key corresponding to the digital signature received by the node is x0011. Correspondingly, the node can determine that the public key of the digital certificate and the private key of the digital signature do not match, and the identity verification fails. By authenticating the identity of the information provider, it can prevent criminals from arbitrarily uploading false information and ensure the security of information management. Furthermore, the inquirer can query the real information, which improves the reliability of authenticity traceability.
[0074] It should be noted that in the embodiment of the present application, the above step 401 may not be performed, that is, the node may directly perform the identity verification operation when receiving the product information.
[0075] Step 403: broadcast the product information in the blockchain network.
[0076] In the embodiment of the present application, in order to facilitate that each node of the entire blockchain network can store the same product information, when the identity verification is passed, the node that receives the product information can put the received product information on the chain. That is, the node that receives the product information can store the received product information in a block it includes through a smart contract, and can broadcast the received product information to the entire network. The node that receives the broadcasted product information can store the product information in a block it includes through a smart contract. Finally, each node that joins the blockchain network stores the same product information.
[0077] Optionally, the commodity information on the chain may include key information and value information, that is, the data format of the commodity information provided by the information provider may be key_value. The key information may include the commodity identification recorded in step 401, and the value information may include at least one of a digital certificate, a digital signature signed by a private key corresponding to the digital certificate, and commodity data. The commodity data may include at least one of component data, equipment data, logistics data, and sales data.
[0078] Among them, the parts data may include the time when the parts were manufactured, the name of the original manufacturer of the parts, the name of the parts, etc.; the equipment data may include the time when the equipment was manufactured, the names of the various parts of the equipment, the name of the original manufacturer of the equipment, etc.; the logistics data may include the name of the logistics unit; the sales data may include the name of the sales store, the sales time, etc. Of course, this is only an illustrative description, and the commodity data is not limited to the data recorded in the embodiments of this application.
[0079] Example, reference Figure 5 , taking the information provider including parts manufacturing original factory, equipment assembly original factory, logistics unit and sales store as an example, it shows a schematic diagram of the commodity information of a commodity after the node is chained. Figure 5 As shown, the commodity identification received by the node includes: component identification (ID), equipment ID, logistics ID and sales ID. The value information corresponding to the component identification ID includes: component ID, component factory time (belonging to commodity data), digital certificate and digital signature. The value information corresponding to the equipment ID includes: equipment ID, IDs of each component used to assemble the equipment, equipment factory time (belonging to commodity data), digital certificate and digital signature. The value information corresponding to the logistics ID includes: logistics ID, equipment ID, logistics information (belonging to commodity data), digital certificate and digital signature. The value information corresponding to the sales ID includes: sales ID, equipment ID, digital certificate and digital signature. Optionally, the value information may not include the ID information included in the key information.
[0080] It should be noted that when the information provider is the original equipment assembly factory, the node can also continue to detect whether the received parts-related information has been used on other devices through the smart contract after executing the above step 402. If it has been used, stop uploading to the chain; if it has not been used, continue with the following step 403. In addition, when the information provider is a sales store, the node can also detect whether there is a sales record of the device in the blockchain network through a smart contract before uploading to the chain. If there is a sales record, the node can also display a prompt message to the information provider to prompt that the device has been sold, so that the user can clearly know the sales status of the device. After that, continue uploading to the chain, that is, continue to execute step 403.
[0081] Step 404: When a query request for any commodity information in the blockchain network is received from the information requesting end, any commodity information is obtained.
[0082] Optionally, the information request end can be not only any participant who joins the blockchain network, but also other users other than the participants (such as buyers of goods). If it is necessary to query product information, the user who queries the product information (i.e., the information request end) can input the relevant information of the product to be queried into the node through the terminal, and accordingly, the node can receive the query request from the information request end. Upon receiving the query request, the node can obtain any product information corresponding to the query request in the blockchain network through a smart contract. It should be noted that the information request end in step 404 and the information provider in step 401 can perform operations on the same node, or can also perform related operations on different nodes, and the embodiment of the present application does not limit this.
[0083] Optionally, since it is easier for a general information request end to directly obtain a product identifier, and when the product information includes key information and value information, the corresponding value information can be directly queried through the key information. Therefore, in order to improve the query efficiency, the key information may include the product identifier, and the query request may include the key information, that is, the query request may include the product identifier. For example, in combination Figure 5 When a node receives key information, it can obtain a series of value information corresponding to the key information. Since buyers can query product information through product identification, the product identification can also be called a traceability code.
[0084] For example, if the information requester is a user who purchases a product, the user enters the product ID of the product he purchased into the node through his terminal device. Correspondingly, the node can receive the user's query request for the product information of the product. At this time, the node can obtain all the product information related to the product in the blockchain network through the smart contract, such as Figure 5The product information shown includes product information corresponding to the parts of the product, product information corresponding to the equipment, product information corresponding to the logistics, and product information corresponding to the sales.
[0085] Step 405: Provide any product information to the information requesting end.
[0086] After the node obtains the product information according to the query request, it can provide the obtained product information to the information request end so that the queryer can obtain the product information he wants to obtain. Optionally, when the product information includes key information and value information, and the query request carries the key information, the value information is obtained by the node according to the query request, and accordingly, the node can provide the obtained value information to the information request end.
[0087] The information management process of blockchain is introduced by taking electronic devices as commodities. The information providers joining the blockchain network include original parts manufacturers, original electronic equipment assembly manufacturers, logistics units, and sales outlets / purchasers. Figure 6 This is a schematic diagram of an electronic device chain and a chain provided in an embodiment of the present application.
[0088] like Figure 6 As shown in the figure, before providing commodity information to the node, the original parts manufacturer can produce the parts, test whether the quality is qualified, and label the parts if the quality is qualified (that is, set the part ID for the parts). If the quality is not qualified, the parts can be re-produced. Then, the original parts manufacturer can provide the parts it produces to the original electronic equipment assembly factory, and can provide the commodity information corresponding to the parts (that is, Figure 6 The component information shown in the figure is recorded on the chain. That is, the component information is input into the node.
[0089] After receiving the parts provided by the parts manufacturer, the electronic device assembly manufacturer can first query the commodity information of the parts in the blockchain network as an information request end (the specific query method can refer to the above step 404) to detect whether the part is an original part. When it is detected that the part is an original part, the electronic device assembly manufacturer can use the part to perform the operation of assembling the electronic device; when it is detected that it is not an original part, it can directly stop uplinking. After assembling the electronic device, the electronic device assembly manufacturer can continue to label the electronic devices it produces (that is, set a device ID for the device). Then, the electronic device assembly manufacturer can provide the electronic equipment it produces to the logistics unit, and can act as an information provider to provide the commodity information corresponding to the electronic device (that is, Figure 6 The electronic device information shown in the figure is recorded on the chain. That is, the electronic device information is input into the node.
[0090] After receiving the electronic device provided by the original electronic device assembly factory, the logistics unit can first query the commodity information of the electronic device in the blockchain network as an information request end (the specific query method can refer to the above step 404) to detect whether the electronic device is an original device. When it is detected that it is an original device, the logistics unit can perform the operation of distributing and supplying goods, that is, distributing the electronic device to the sales store or the purchaser; when it is detected that it is not an original device, it can directly stop the chain. After the distribution and supply, the logistics unit can record the logistics information on the chain as an information provider. That is, input the logistics information into the node.
[0091] Sales outlets / buyers can perform the operation of buying and selling electronic devices, and can verify whether the electronic devices they buy and sell are genuine original products and whether they are resold (i.e. Figure 6 After that, the sales store / buyer can also record the purchase information on the chain, that is, input the purchase information into the node. Figure 6 The operation shown has established a product traceability platform, and users can query the chained information in the blockchain network based on the product information they purchased.
[0092] It should be noted that the order of the steps of the information management method of the blockchain provided in the embodiment of the present application can be appropriately adjusted. For example, the above step 401 can be deleted, or the above step 404 and step 405 can be executed simultaneously. Any technician familiar with the technical field can easily think of a method of change within the technical scope disclosed in this application, which should be included in the protection scope of this application, so it will not be repeated.
[0093] In summary, the embodiment of the present application provides a method for information management of a blockchain. Any node of a pre-established blockchain network can receive commodity information provided by an information provider, and can authenticate the identity of the information provider, and when the authentication is passed, broadcast the received commodity information to the entire network, so that all nodes included in the blockchain network can store the same commodity information. And the node can also receive a query request for any commodity information, and provide the queried commodity information to the information requesting end according to the request. By storing and managing information through blockchain network technology, compared with the use of database management in related technologies, this method can make full use of the advantages of blockchain that cannot be tampered with and is safe and reliable, ensuring the reliability of information management, and then ensuring the reliability of authenticity identification based on the queried information.
[0094] Figure 7 is a block diagram of a blockchain information management device provided in an embodiment of the present application. The device may be Figure 1The blockchain network in the implementation environment shown in the figure includes any node, or the device can also be set on any node included in the blockchain network. Figure 7 As shown, the device 70 may include:
[0095] The verification module 701 is used to verify the identity of the information provider when receiving the commodity information provided by the information provider.
[0096] The broadcast module 702 is used to broadcast the product information in the blockchain network when the identity verification is passed.
[0097] The acquisition module 703 is used to acquire any commodity information when receiving a query request for any commodity information in the blockchain network from the information requesting end.
[0098] The providing module 704 is used to provide any commodity information to the information requesting end.
[0099] Optionally, the commodity information may include a commodity identification. Accordingly, the verification module 701 may be used to: upon receiving the commodity information provided by the information provider, detect whether the commodity identification is stored in the blockchain network, and when the commodity identification is not stored in the blockchain network, authenticate the identity of the information provider.
[0100] Optionally, the product information includes a digital certificate and a digital signature, and the verification module 701 can be used to authenticate the identity of the information provider through the digital certificate and the digital signature.
[0101] Optionally, the product information may include: key information and value information, the key information includes a product identification, the value information includes a digital certificate, a digital signature signed by a private key corresponding to the digital certificate, and product data.
[0102] Optionally, the information provider includes at least one of a parts manufacturing plant, an equipment assembly plant, a logistics unit, and a sales store. The product identification includes at least one of a parts identification, an equipment identification, a logistics identification, and a sales identification. The product data includes at least one of parts data, equipment data, logistics data, and sales data.
[0103] Optionally, the query request includes key information. Accordingly, the providing module 704 can be used to provide value information to the information requesting end.
[0104] In summary, the embodiment of the present application provides an information management device for a blockchain. The device can receive commodity information provided by an information provider, and can authenticate the identity of the information provider, and when the authentication is passed, broadcast the received commodity information to the entire network, so that all nodes included in the blockchain network can store the same commodity information. And the node can also receive a query request for any commodity information, and provide the queried commodity information to the information requesting end according to the request. By storing and managing information through blockchain network technology, compared with the use of database management in related technologies, this method can make full use of the advantages of blockchain that cannot be tampered with and is safe and reliable, ensuring the reliability of information management, and then ensuring the reliability of authenticity identification based on the queried information.
[0105] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.
[0106] Figure 8 The block diagram of the information management device 800 of the blockchain provided by an exemplary embodiment of the present application is shown. The device 800 may be a terminal such as a smart phone, a tablet computer, an MP3 (Moving Picture Experts Group Audio Layer III, Moving Picture Experts Compression Standard Audio Layer 3) player, an MP4 (Moving Picture Experts Group Audio Layer IV, Moving Picture Experts Compression Standard Audio Layer 4) player, a laptop or a desktop computer. The device 800 may also be called a user device, a portable terminal, a laptop terminal, a desktop terminal, or other names. Alternatively, the device 800 may also be a server.
[0107] Typically, the device 800 includes a processor 801 and a memory 802 .
[0108] The processor 801 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 801 may be implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array). The processor 801 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a CPU (Central Processing Unit); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 801 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 801 may also include an AI (Artificial Intelligence) processor, which is used to process computing operations related to machine learning.
[0109] The memory 802 may include one or more computer-readable storage media, which may be non-transitory. The memory 802 may also include a high-speed random access memory, and a non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In some embodiments, the non-transitory computer-readable storage medium in the memory 802 is used to store at least one instruction, which is used to be executed by the processor 801 to implement the information management method of the blockchain provided in the embodiment of the present application.
[0110] In some embodiments, the device 800 may also optionally include: a peripheral device interface 803 and at least one peripheral device. The processor 801, the memory 802 and the peripheral device interface 803 may be connected via a bus or a signal line. Each peripheral device may be connected to the peripheral device interface 803 via a bus, a signal line or a circuit board. Specifically, the peripheral device includes: at least one of a radio frequency circuit 804, a touch display screen 805, a camera 806, an audio circuit 807 and a power supply 809.
[0111] The peripheral device interface 803 may be used to connect at least one peripheral device related to I / O (Input / Output) to the processor 801 and the memory 802. In some embodiments, the processor 801, the memory 802, and the peripheral device interface 803 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 801, the memory 802, and the peripheral device interface 803 may be implemented on a separate chip or circuit board, which is not limited in this embodiment.
[0112] The radio frequency circuit 804 is used to receive and transmit RF (Radio Frequency) signals, also known as electromagnetic signals. The radio frequency circuit 804 communicates with communication networks and other communication devices through electromagnetic signals. The radio frequency circuit 804 converts electrical signals into electromagnetic signals for transmission, or converts received electromagnetic signals into electrical signals. Optionally, the radio frequency circuit 804 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a user identity module card, and the like. The radio frequency circuit 804 can communicate with other terminals through at least one wireless communication protocol. The wireless communication protocol includes, but is not limited to: a metropolitan area network, various generations of mobile communication networks (2G, 3G, 4G and 5G), a wireless local area network and / or a WiFi (Wireless Fidelity) network. In some embodiments, the radio frequency circuit 804 may also include circuits related to NFC (Near Field Communication), which is not limited in this application.
[0113] The display screen 805 is used to display the UI (User Interface). The UI may include graphics, text, icons, videos, and any combination thereof. When the display screen 805 is a touch display screen, the display screen 805 also has the ability to collect touch signals on the surface or above the surface of the display screen 805. The touch signal can be input to the processor 801 as a control signal for processing. At this time, the display screen 805 can also be used to provide virtual buttons and / or virtual keyboards, also known as soft buttons and / or soft keyboards. In some embodiments, the display screen 805 can be one, and the front panel of the device 800 is set; in other embodiments, the display screen 805 can be at least two, which are respectively set on different surfaces of the device 800 or are folded; in some other embodiments, the display screen 805 can be a flexible display screen, which is set on the curved surface or folded surface of the device 800. Even, the display screen 805 can also be set as a non-rectangular irregular shape, that is, a special-shaped screen. The display screen 805 can be made of materials such as LCD (Liquid Crystal Display), OLED (Organic Light-Emitting Diode, organic light-emitting diode).
[0114] The camera assembly 806 is used to capture images or videos. Optionally, the camera assembly 806 includes a front camera and a rear camera. Typically, the front camera is arranged on the front panel of the terminal, and the rear camera is arranged on the back of the terminal. In some embodiments, there are at least two rear cameras, which are any one of a main camera, a depth of field camera, a wide-angle camera, and a telephoto camera, so as to realize the fusion of the main camera and the depth of field camera to realize the background blur function, the fusion of the main camera and the wide-angle camera to realize panoramic shooting and VR (Virtual Reality) shooting function or other fusion shooting functions. In some embodiments, the camera assembly 806 may also include a flash. The flash can be a monochrome temperature flash or a dual-color temperature flash. A dual-color temperature flash refers to a combination of a warm light flash and a cold light flash, which can be used for light compensation at different color temperatures.
[0115] The audio circuit 807 may include a microphone and a speaker. The microphone is used to collect sound waves from the user and the environment, and convert the sound waves into electrical signals and input them into the processor 801 for processing, or input them into the radio frequency circuit 804 to achieve voice communication. For the purpose of stereo acquisition or noise reduction, there may be multiple microphones, which are respectively arranged at different parts of the device 800. The microphone may also be an array microphone or an omnidirectional acquisition microphone. The speaker is used to convert the electrical signal from the processor 801 or the radio frequency circuit 804 into sound waves. The speaker may be a traditional film speaker or a piezoelectric ceramic speaker. When the speaker is a piezoelectric ceramic speaker, it can not only convert the electrical signal into sound waves audible to humans, but also convert the electrical signal into sound waves inaudible to humans for purposes such as ranging. In some embodiments, the audio circuit 807 may also include a headphone jack.
[0116] The power supply 809 is used to power the various components in the device 800. The power supply 809 can be an alternating current, a direct current, a disposable battery, or a rechargeable battery. When the power supply 809 includes a rechargeable battery, the rechargeable battery can support wired charging or wireless charging. The rechargeable battery can also be used to support fast charging technology.
[0117] In some embodiments, the device 800 further includes one or more sensors 810 , including but not limited to: an acceleration sensor 811 , a gyroscope sensor 812 , a pressure sensor 813 , an optical sensor 815 , and a proximity sensor 816 .
[0118] The acceleration sensor 811 can detect the magnitude of acceleration on the three coordinate axes of the coordinate system established by the device 800. For example, the acceleration sensor 811 can be used to detect the components of gravity acceleration on the three coordinate axes. The processor 801 can control the touch display screen 805 to display the user interface in a horizontal view or a vertical view according to the gravity acceleration signal collected by the acceleration sensor 811. The acceleration sensor 811 can also be used to collect game or user motion data.
[0119] The gyroscope sensor 812 can detect the body direction and rotation angle of the device 800, and the gyroscope sensor 812 can cooperate with the acceleration sensor 811 to collect the user's 3D actions on the device 800. The processor 801 can implement the following functions based on the data collected by the gyroscope sensor 812: motion sensing (such as changing the UI according to the user's tilt operation), image stabilization during shooting, game control, and inertial navigation.
[0120] The pressure sensor 813 can be set on the side frame of the device 800 and / or the lower layer of the touch display screen 805. When the pressure sensor 813 is set on the side frame of the device 800, it can detect the user's holding signal of the device 800, and the processor 801 performs left and right hand recognition or shortcut operation according to the holding signal collected by the pressure sensor 813. When the pressure sensor 813 is set on the lower layer of the touch display screen 805, the processor 801 controls the operability controls on the UI interface according to the user's pressure operation on the touch display screen 805. The operability controls include at least one of a button control, a scroll bar control, an icon control, and a menu control.
[0121] The optical sensor 815 is used to collect the ambient light intensity. In one embodiment, the processor 801 can control the display brightness of the touch display screen 805 according to the ambient light intensity collected by the optical sensor 815. Specifically, when the ambient light intensity is high, the display brightness of the touch display screen 805 is increased; when the ambient light intensity is low, the display brightness of the touch display screen 805 is reduced. In another embodiment, the processor 801 can also dynamically adjust the shooting parameters of the camera assembly 806 according to the ambient light intensity collected by the optical sensor 815.
[0122] The proximity sensor 816, also called a distance sensor, is usually disposed on the front panel of the device 800. The proximity sensor 816 is used to collect the distance between the user and the front of the device 800. In one embodiment, when the proximity sensor 816 detects that the distance between the user and the front of the device 800 is gradually decreasing, the processor 801 controls the touch display screen 805 to switch from the screen-on state to the screen-off state; when the proximity sensor 816 detects that the distance between the user and the front of the device 800 is gradually increasing, the processor 801 controls the touch display screen 805 to switch from the screen-off state to the screen-on state.
[0123] Those skilled in the art will understand that Figure 8 The structure shown in the figure does not constitute a limitation on the device 800, and the device 800 may include more or less components than those shown in the figure, or combine some components, or adopt a different arrangement of components.
[0124] The present application also provides a computer-readable storage medium in an embodiment, which can store at least one instruction, at least one program, code set or instruction set, and the at least one instruction, at least one program, code set or instruction set is loaded and executed by a processor to implement the following steps: Figure 3 or Figure 4 The information management method of the blockchain shown.
[0125] Those skilled in the art can understand that all or part of the steps of implementing the above embodiments can be completed by hardware, or by a program to instruct the relevant hardware to complete, and the program can be stored in a computer-readable storage medium, and the above-mentioned storage medium can be a read-only memory, a disk or an optical disk, etc. The above description is only an optional embodiment of the present application and is not intended to limit the present application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.
Claims
1. A blockchain information management method, characterized in that: Applied to any node in a blockchain network, the method includes: When receiving the logistics information provided by the logistics unit, verifying the identity of the logistics unit; When the identity authentication of the logistics unit is passed, the logistics information is broadcasted in the blockchain network; When receiving a query request from the information requesting end for the logistics information in the blockchain network, obtaining the logistics information; Providing the logistics information to the information requesting end; The logistics information is provided by the logistics unit to any node in the following manner: After receiving the electronic device provided by the original electronic device assembly factory, the logistics unit queries the commodity information of the electronic device in the blockchain network to detect whether the electronic device is an original device. When it is detected that the electronic device is an original device, the logistics unit performs the operation of distributing and supplying the electronic device. After the electronic device is distributed and supplied, the logistics information is provided to any one of the nodes. The commodity information of the electronic device is stored in the blockchain network by the electronic device assembly factory in the following manner: After receiving the parts provided by the parts manufacturer, the electronic device assembly factory queries the commodity information of the parts in the blockchain network to detect whether the parts are original parts. When it is detected that the parts are original parts, the parts are used to perform the operation of assembling the electronic device. After the electronic device is assembled, the commodity information of the electronic device is stored in the blockchain network.
2. The method according to claim 1, characterized in that The logistics information includes a logistics identifier. When the logistics information provided by the logistics unit is received, the identity verification of the logistics unit includes: When receiving the logistics information provided by the logistics unit, detecting whether the logistics identifier is stored in the blockchain network; When the logistics identifier is not stored in the blockchain network, the identity of the logistics unit is authenticated.
3. The method according to claim 1, characterized in that The logistics information includes a digital certificate and a digital signature, and the identity verification of the logistics unit includes: The identity of the logistics unit is authenticated through the digital certificate and digital signature.
4. The method according to claim 3, characterized in that The logistics information includes: key information and value information, the key information includes a logistics identifier, the value information includes the digital certificate, the digital signature signed by the private key corresponding to the digital certificate, and logistics data.
5. The method according to claim 1, characterized in that The commodity information of the component includes the component identification and component data; the commodity information of the electronic device includes the device identification and device data; The method further comprises: When receiving sales information provided by a sales store, authenticating the identity of the sales store, wherein the sales information includes a sales identifier and sales data; When the identity authentication of the sales store is passed, the sales information is broadcast in the blockchain network.
6. The method according to claim 4, characterized in that The query request includes the key information; and providing the logistics information to the information requesting end includes: The value information is provided to the information requesting end.
7. A blockchain information management device, characterized in that: Applied to any node in a blockchain network, the device comprises: A verification module, used for verifying the identity of the logistics unit upon receipt of the logistics information provided by the logistics unit; A broadcast module, used for broadcasting the logistics information in the blockchain network when the identity authentication of the logistics unit is passed; An acquisition module, configured to acquire the logistics information when receiving a query request from an information requesting end for the logistics information in the blockchain network; A providing module, used for providing the logistics information to the information requesting end; The logistics information is provided by the logistics unit to any node in the following manner: After receiving the electronic device provided by the original electronic device assembly factory, the logistics unit queries the commodity information of the electronic device in the blockchain network to detect whether the electronic device is an original device. When it is detected that the electronic device is an original device, the logistics unit performs the operation of distributing and supplying the electronic device. After the electronic device is distributed and supplied, the logistics information is provided to any one of the nodes. The commodity information of the electronic device is stored in the blockchain network by the electronic device assembly factory in the following manner: After receiving the parts provided by the parts manufacturer, the electronic device assembly factory queries the commodity information of the parts in the blockchain network to detect whether the parts are original parts. When it is detected that the parts are original parts, the parts are used to perform the operation of assembling the electronic device. After the electronic device is assembled, the commodity information of the electronic device is stored in the blockchain network.
8. The device according to claim 7, characterized in that The logistics information includes a logistics identifier, and the verification module is used to: When receiving the logistics information provided by the logistics unit, detecting whether the logistics identifier is stored in the blockchain network; When the logistics identifier is not stored in the blockchain network, the identity of the logistics unit is authenticated.
9. The device according to claim 7, characterized in that The logistics information includes a digital certificate and a digital signature, and the verification module is used to authenticate the identity of the logistics unit through the digital certificate and the digital signature.
10. The device according to claim 9, characterized in that The logistics information includes: key information and value information, the key information includes a logistics identifier, the value information includes the digital certificate, the digital signature signed by the private key corresponding to the digital certificate, and logistics data.
11. The device according to claim 7, characterized in that The commodity information of the component includes the component identification and component data; the commodity information of the electronic device includes the device identification and device data; The verification module is further used to authenticate the identity of the sales store when receiving sales information provided by the sales store, wherein the sales information includes a sales identifier and sales data; The broadcast module is also used to broadcast the sales information in the blockchain network when the identity authentication of the sales store is passed.
12. The device according to claim 10, characterized in that The query request includes the key information; the providing module is used to provide the value information to the information requesting end.
13. A terminal, characterized in that: The terminal includes: a processor and a memory, wherein the memory stores at least one instruction, at least one program, a code set or an instruction set, and the at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by the processor to implement the information management method of the blockchain as described in any one of claims 1 to 6.
14. A computer-readable storage medium, characterized in that: The storage medium stores at least one instruction, at least one program, a code set or an instruction set, and the at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by the processor to implement the information management method of the blockchain as described in any one of claims 1 to 6.
Citation Information
Patent Citations
Anti-counterfeiting method and system based on block chain, computer device and storage medium
CN108985790A
Commodity logistics tracking method based on block chain
CN109087044A
Commodity information maintenance method based on block chain, block chain node and system thereof
CN109102308A
Food information processing method, device and system
CN109191143A
A drug information management method and system based on a block chain
CN109829726A
