CN110599210A - Information management method and device of block chain - Google Patents

Information management method and device of block chain Download PDF

Info

Publication number
CN110599210A
CN110599210A CN201910923692.XA CN201910923692A CN110599210A CN 110599210 A CN110599210 A CN 110599210A CN 201910923692 A CN201910923692 A CN 201910923692A CN 110599210 A CN110599210 A CN 110599210A
Authority
CN
China
Prior art keywords
information
commodity
block chain
node
identification
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910923692.XA
Other languages
Chinese (zh)
Inventor
吴楠
李亮
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Cloud Computing Beijing Co Ltd
Original Assignee
Tencent Cloud Computing Beijing 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 Cloud Computing Beijing Co Ltd filed Critical Tencent Cloud Computing Beijing Co Ltd
Priority to CN201910923692.XA priority Critical patent/CN110599210A/en
Publication of CN110599210A publication Critical patent/CN110599210A/en
Pending legal-status Critical Current

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
    • G06Q30/00Commerce
    • G06Q30/018Certifying business or products

Abstract

The application discloses an information management method and device of a block chain, and belongs to the technical field of networks. Any node of the pre-established block chain network can receive commodity information provided by an information providing end, and when the identity of the information providing end is verified and the verification is passed, the received commodity information is broadcasted to the whole network, so that all nodes included in the block chain network can store the same commodity information. And the node can also receive a query request aiming at any commodity information and provide the queried commodity information to the information request terminal according to the request. The information is stored and managed through the block chain network technology, and compared with the related technology which adopts database management, the method can fully utilize the advantages of non-falsification, safety, reliability and the like of the block chain, ensure the reliability of information management, and further ensure the reliability of true and false identification according to the inquired information.

Description

Information management method and device of block chain
Technical Field
The present application relates to the field of network technologies, and in particular, to an information management method and apparatus for a block chain.
Background
With the development of network technology, more commodity counterfeiting phenomena, such as electronic equipment counterfeiting, appear in the market. The counterfeiting phenomenon brings great interest damage to both manufacturers and purchasers who really own the property rights.
In the related art, in order to enable a purchaser to trace (i.e., inquire) commodity information of a commodity purchased by the purchaser, the purchaser determines whether the purchased commodity is authentic or counterfeit according to the inquired commodity information. The manufacturer of the manufactured goods can set a unique indication for the goods produced by the manufacturer and upload the goods identification to a designated database. The purchaser can inquire the commodity information of the commodity in the designated database through the commodity identification of the commodity purchased by the purchaser.
However, since the database or the product label is easily tampered with, the reliability of the product information management method in the related art is low, and the authenticity check reliability is low.
Disclosure of Invention
The embodiment of the application provides an information management method and device of a block chain, which can solve the problem of low reliability of the information management method in the related technology. The technical scheme is as follows:
in one aspect, a method for managing information of a blockchain is provided, where the method is applied to any node in a blockchain network, and the method includes:
when commodity information provided by an information providing end is received, carrying out identity verification on the identity of the information providing end;
when the identity authentication is passed, broadcasting the commodity information in the block chain network;
when an information request end is received to inquire any commodity information in the block chain network, acquiring the commodity information;
and providing the information of any commodity to the information request terminal.
In another aspect, an information management apparatus for a blockchain is provided, where the apparatus is applied to any node in a blockchain network, and the apparatus includes:
the authentication module is used for authenticating the identity of the information providing terminal when receiving the commodity information provided by the information providing terminal;
the broadcast module is used for broadcasting the commodity information in the block chain network when the identity authentication is passed;
the acquisition module is used for acquiring any commodity information when receiving a query request of an information request end aiming at the commodity information in the block chain network;
and the providing module is used for providing the information of any commodity for the information requesting terminal.
Optionally, the commodity information includes a commodity identifier, and the verification module is configured to:
when commodity information provided by the information providing end is received, detecting whether the commodity identification is stored in the block chain network;
and when the commodity identification is not stored in the block chain network, carrying out identity verification on the identity of the information providing end.
Optionally, the commodity information includes a digital certificate and a digital signature, and the verification module is configured to:
and performing identity verification on the identity of the information providing end through the digital certificate and the digital signature.
Optionally, the commodity information includes: the system comprises key information and value information, wherein the key information comprises a commodity identification, and the value information comprises the digital certificate, the digital signature for signing the value information by adopting a private key corresponding to the digital certificate and commodity data.
Optionally, the information provider includes at least one of a component manufacturing factory, an equipment assembly factory, a logistics unit, and a sales store;
the commodity identification comprises at least one of a part identification, an equipment identification, a logistics identification and a sales identification;
the commodity data includes at least one of parts data, equipment data, logistics data, and sales data.
Optionally, the query request includes the key information;
the providing module is configured to: and providing the value information to the information request terminal.
In another aspect, a terminal is provided, which includes: a processor and a memory, the memory having stored therein at least one instruction, at least one program, a set of codes, or a set of instructions, which is loaded and executed by the processor to implement the method of information management of a blockchain as described in the above aspect.
In a further aspect, there is provided a computer readable storage medium having stored therein at least one instruction, at least one program, a set of codes, or a set of instructions, which is loaded and executed by a processor to implement the method of information management of a blockchain as described in the above aspect.
The beneficial effects brought by the technical scheme provided by the embodiment of the application at least can comprise:
in summary, the embodiment of the present application provides an information management method and apparatus for a block chain. Any node of the pre-established block chain network can receive commodity information provided by an information providing end, and when the identity of the information providing end is verified and the verification is passed, the received commodity information is broadcasted to the whole network, so that all nodes included in the block chain network can store the same commodity information. And the node can also receive a query request aiming at any commodity information and provide the queried commodity information to the information request terminal according to the request. The information is stored and managed through the block chain network technology, and compared with the related technology which adopts database management, the method can fully utilize the advantages of non-falsification, safety, reliability and the like of the block chain, ensure the reliability of information management, and further ensure the reliability of true and false identification according to the inquired information.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a schematic illustration of an implementation environment to which various embodiments of the present application relate;
fig. 2 is a schematic structural diagram of a blockchain network according to an embodiment of the present invention;
fig. 3 is a flowchart of an information management method for a block chain according to an embodiment of the present application;
fig. 4 is a flowchart of another block chain information management method according to an embodiment of the present application;
fig. 5 is a schematic diagram of information included in a blockchain network according to an embodiment of the present invention;
fig. 6 is a schematic diagram illustrating an entire uplink process of an electronic apparatus according to an embodiment of the present application;
fig. 7 is a block diagram of an information management apparatus of a block chain according to an embodiment of the present application;
fig. 8 is a block diagram of a terminal according to an embodiment of the present disclosure.
Detailed Description
To make the objects, technical solutions and advantages of the present application more clear, embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
Fig. 1 is a schematic diagram of an implementation environment related to an information management method for a block chain according to an embodiment of the present application. As shown in FIG. 1, the implementation environment may include: the blockchain network 10 includes a plurality of nodes 101 (only 4 nodes are shown in fig. 1) that are mutually established with communication connections, and information can be transmitted between the nodes 101 through the established communication connections. Also, each node 101 may include a plurality of tiles, and each node 101 may store received information to its tiles and broadcast received data to other nodes 101. Alternatively, each node 101 may be a computer device, for example, referring to fig. 1, the computer device may be a server, or may also be a terminal device such as a computer or a mobile phone.
In an embodiment of the present application, an intelligent contract may be deployed in the blockchain network 10, where the intelligent contract refers to a computer protocol that is intended to propagate, verify, or execute contracts in an informational manner. Each node 101 may receive information input from the information provider via the smart contract, store the received information in a block therein, and broadcast the received information to the entire network via the smart contract, so that other nodes 101 may also receive the same information (this process may also be referred to as uplink). And, in order to implement the information query function, each node 101 may also read information stored in the blockchain network 10 through the intelligent contract. In addition, for each node 101, it may further have a node identifier corresponding thereto, and may store node identifiers of other nodes in the blockchain network 10, so that each node 101 may reliably broadcast the received information to other nodes through the communication connection according to the node identifiers of other nodes.
For example, referring to table 1, a node identification list maintained in each node 101 is shown, which may include: node name and node identification. The node identifier may be an Internet Protocol (IP) address and any other information that can be used to identify the node, and table 1 only illustrates the IP address as an example. For example, referring to table 1, the node name is node 1, and the node identifier corresponding to the node 1 is: 117.114.151.174.
TABLE 1
Node name Node identification
Node 1 117.114.151.174
Node 2 117.116.189.145
Node N 119.123.789.258
In addition, in order to ensure the consistency of the information stored by each node 101, each node 101 may also maintain the entire blockchain network 10 through an intelligent contract based on a set of consensus mechanisms. That is, the nodes 101 may perform data correction for multiple times through a pre-configured consensus algorithm, and continuously broadcast the data corrected for the last time to the whole network until the information stored by the nodes 101 is consistent, that is, until the nodes 101 achieve consensus. The principle of the consensus algorithm comprises the following steps: the node receiving the information compares the received information with the information stored by the node, and re-broadcasts the information with the accuracy rate larger than the accuracy rate threshold value in the plurality of information determined after comparison to the whole network; then, the node receiving the corrected information continues to repeatedly execute the comparison operation, namely, network diffusion iteration is carried out until the whole network is agreed.
It should be noted that the blockchain network 10 may be a decentralized network system, i.e., commodity information may be supervised by the blockchain network 10 through a decentralized technique. Wherein, decentralization means: there is no concept of a central node in the blockchain network 10, the positions of the nodes 101 in the blockchain network 10 are equal, each node 101 may store the same blockchain, each blockchain includes a plurality of blocks, each block stores different data, and the data stored in all the blocks on the blockchain constitute all the shared data of the blockchain network.
In addition, since the corresponding product information includes not only manufacturing information but also physical distribution information, sales information, and the like for one product, the product information is comprehensively managed. Taking a device (e.g., an electronic device) as an example, referring to fig. 2, in the embodiment of the present application, a component manufacturing factory that manufactures components of the device, a device assembly factory that obtains the device based on component assembly, a logistics unit (including a customs unit) that transports the device, and a sales store (including a network sales store) that sells the device may all join the blockchain network 10. Of course, the purchaser may also join the blockchain network 10 through its terminal. It should be noted that fig. 2 only illustrates a block chain composed of a plurality of blocks (5 blocks are shown in fig. 2) in one node 101, and after the use of a block storage space is completed, the node 101 may store the received information to another block, where the time represents the time for storing the information.
Since the operations performed by the blockchain network 10 are: the commodity information and the inquiry commodity information are recorded, and the user who buys the commodity can inquire the commodity information of the commodity bought by the user in the block chain network and reliably distinguish the authenticity of the commodity bought by the user according to the inquired commodity information. The blockchain network may also be referred to as a device anti-counterfeiting traceable platform. The information is managed through the block chain technology, the advantages that the block chain network cannot be tampered, cannot be forged, data encryption is reliable, sharing is open and the like can be effectively utilized, and effective and safe management of the information is achieved. Compared with the related art that the information is managed through the database, the management method enables the reliability of information query to be higher.
For example, a user who purchases a commodity can reliably inquire the commodity information of the commodity he purchases in the blockchain network, and then a buyer can reliably judge the authenticity of the commodity he purchases according to the commodity information. And the user can clearly inquire whether the equipment is sold for the second time according to the commodity sales information. The method and the system bring guarantee to original manufacturers who really manufacture the commodities and users who buy the commodities.
Fig. 3 is a flowchart of an information management method for a block chain according to an embodiment of the present application. May be applied to any node comprised in the blockchain network shown in fig. 1. As shown in fig. 3, the method may include:
step 301, when receiving the commodity information provided by the information providing terminal, performing identity verification on the identity of the information providing terminal.
Wherein the information provider can be any party participating in the blockchain network. For example, referring to fig. 2, the information provider may be a component manufacturing foundry. The commodity information may be any information related to the commodity, such as production information or sales information of the commodity. The commodity information may be information that is set for the commodity in advance by the information providing terminal, such as a commodity identification for uniquely identifying the commodity.
In the embodiment of the application, the information providing terminal can input commodity information related to commodities to any node through the terminal device, that is, the node can receive the commodity information provided by the information providing terminal. In addition, in order to avoid that illegal molecules provide false information randomly in the block chain network and ensure the safety and reliability of information management, when the nodes receive commodity information, identity verification can be carried out on the information providing end through an intelligent contract.
And step 302, broadcasting the commodity information in the block chain network when the identity verification is passed.
When the identity authentication is passed, the node of the received commodity information can continue to store the commodity information into one block in the node through the intelligent contract and broadcast the received commodity information to the whole block chain network, namely the node of the received commodity information can transmit the commodity information to other nodes through communication connection established with other nodes, so that each node can store the commodity information. This step may also be referred to as uplink operation, i.e., the node uplinks the merchandise information.
Optionally, in order to ensure consistency of information stored in each node, each node that receives the commodity information may further perform consensus processing on the commodity information through a consensus algorithm, and then broadcast the commodity information to the whole network again, and continuously perform the consensus processing until the commodity information stored in each node is consistent.
Step 303, when receiving a query request of the information request terminal for any commodity information in the block chain network, acquiring any commodity information.
In the embodiment of the present application, the information request end may be not only any participant who joins the blockchain network, but also other users (such as a purchaser who purchases goods) besides the participant. If the commodity information needs to be inquired, a user (namely, the information request terminal) for inquiring the commodity information can input the relevant information of the commodity to be inquired into the node through the terminal, and correspondingly, the node can receive the inquiry request of the information request terminal. When receiving the query request, the node can acquire any commodity information corresponding to the query request in the block chain network through the intelligent contract.
Step 304, providing any commodity information to the information request terminal.
Optionally, when the node queries the commodity information according to the query request, the node may directly display any queried commodity information to the information request terminal, so that the information request terminal can obtain the commodity information that the information request terminal wants to query.
In summary, the embodiment of the present application provides an information management method for a block chain. Any node of the pre-established block chain network can receive commodity information provided by an information providing end, and when the identity of the information providing end is verified and the verification is passed, the received commodity information is broadcasted to the whole network, so that all nodes included in the block chain network can store the same commodity information. And the node can also receive a query request aiming at any commodity information and provide the queried commodity information to the information request terminal according to the request. The information is stored and managed through the block chain network technology, and compared with the related technology which adopts database management, the method can fully utilize the advantages of non-falsification, safety, reliability and the like of the block chain, ensure the reliability of information management, and further ensure the reliability of true and false identification according to the inquired information.
Fig. 4 is a flowchart of another block chain information management method according to an embodiment of the present application. The method may be applied in any node of the blockchain network shown in fig. 1. As shown in fig. 4, the method may include:
step 401, when receiving the commodity information provided by the information providing end, detecting whether a commodity identifier is stored in the block chain network.
In the embodiment of the present application, the information provider may be any party participating in the blockchain network. For example, referring to fig. 2, the information provider may include at least one of a component manufacturing factory, an equipment assembly factory, a logistics unit, and a sales outlet. The commodity information may be information that is set in advance for a commodity by any one of the parties. The information providing terminal can input the commodity information into any node through the terminal equipment, and correspondingly, the node can receive the commodity information provided by the information providing terminal.
The commodity information may include a commodity identifier, where the commodity identifier may be an identifier (also referred to as a commodity branding identifier) that is set for the commodity and is used for uniquely identifying the commodity before the participant links the commodity information, and the commodity identifier may include at least one of numbers, letters, and special symbols.
Optionally, when the participant includes a plurality of participants shown in fig. 2, the item identifier may include: at least one of a part identifier, an equipment identifier, a logistics identifier, and a sales identifier. When the participating party is the component manufacturing original factory, the commodity identifier may be an identifier set for the component manufacturing original factory to produce the component after the detection quality is qualified, for example, the commodity identifier set for the component manufactured by the component manufacturing original factory is: lj 0000001. When the participant is the equipment assembly factory, the commodity identifier may be an identifier set for the equipment after the equipment is assembled by the equipment assembly factory, for example, the commodity identifier set for the equipment assembled by the equipment assembly factory is: sb 0000009. When the participant is a logistics unit, the commodity identifier may be an identifier set for the logistics situation after the logistics unit transports the device, for example, the logistics identifier set for the device transported by the logistics unit is: wl 0000005. When the participant is a sales store, the article identifier may be an identifier set by the sales store after selling the device, for example, the sales identifier set by the sales store for the device it sells is: xs 0000006.
In order to avoid the problem that false information is provided by illegal molecules or the problem that the information management efficiency and the safety are low due to the fact that the participator repeatedly provides information, after the node receives commodity information, whether the received commodity identification is stored in the block chain network or not can be inquired in the block chain network through an intelligent contract. If the node detects that the commodity identification included in the received commodity information is stored in the block chain network, the node can directly quit the uplink operation and the uplink fails. If the product identifier is not stored in the blockchain network, the uplink operation of the product information may be continued, i.e., the following step 402 may be continued.
Step 402, performing identity verification on the identity of the information providing terminal.
In the embodiment of the application, in order to further avoid that illegal molecules provide false information randomly in a block chain network and ensure the safety and reliability of information management, when the nodes receive commodity information, identity verification can be performed on an information providing end through an intelligent contract.
Optionally, the commodity information received by the node may further include: a digital certificate and a digital signature provided by the participant. The digital certificate can be a certificate which is applied by a participant to an authority in advance and is used for uniquely indicating the identity of the participant, and the digital certificate can be disclosed to all users, namely all users can authenticate that the certificate is issued by the authority. For example, the Authority may be a Certificate Authority (CA) Authority, and the parties may provide their public keys to the CA Authority, from which the CA Authority may issue digital certificates to the parties. The digital signature can be signature information obtained by signing the commodity information by a private key of a participant.
Since the private key is only held by the participant, the node can authenticate the identity of the information provider through the digital certificate and the digital signature. For example, the node may determine a public key through a digital certificate included in the received commodity information, match the public key with a private key corresponding to the digital signature, and if the matching is successful, determine that the authentication of the information provider is successful. At this time, the node may uplink the commodity information, that is, the node may continue to perform the following step 403. If the matching fails, the node may determine that the identity verification fails, at which point the node may exit the uplink operation and the uplink fails. Of course, the identity of the information provider can also be verified in other encryption manners.
For example, assume that the digital certificate includes public keys of: x0010, and the private key matched with the public key is x 0020. However, if the private key corresponding to the digital signature received by the node is x0011, the node can determine that the public key of the digital certificate and the private key of the digital signature are not matched, and the authentication fails. By carrying out identity verification on the identity of the information providing end, lawbreakers can be prevented from uploading false information at will, and the safety of information management is ensured. Furthermore, the inquirer can inquire the real information, and the authenticity tracing reliability is improved.
It should be noted that, in this embodiment of the application, the step 401 may not be executed, that is, when the node receives the commodity information, the node may directly execute the operation of the identity authentication.
And step 403, broadcasting the commodity information in the block chain network.
In the embodiment of the present application, in order to facilitate that each node of the entire blockchain network can store the same commodity information, when the identity authentication passes, the node of the received commodity information can uplink the received commodity information. That is, the node of the received commodity information may store the received commodity information into one block included therein through the intelligent contract, and may broadcast the received commodity information to the whole network, and the node of the received commodity information may store the commodity information into one block included therein through the intelligent contract. And finally, storing the same commodity information in each node added into the block chain network.
Optionally, the uplink commodity information may include key information and value information, that is, the data format of the commodity information provided by the information providing end may be key _ value. The key information may include the product identifier recorded in step 401, and the value information includes at least one of a digital certificate, a digital signature obtained by signing the value information with a private key corresponding to the digital certificate, and product data. The commodity data may include at least one of part data, equipment data, logistics data, and sales data.
The part data may include the time of leaving the factory, the name of the original factory of the part production, the name of the part, and the like; the equipment data may include equipment delivery time, names of components of the equipment, names of original equipment assembly plants, and the like; the logistics data may include a name of a logistics unit; the sales data may include the name of the sales store, the time of sale, and the like. It is to be understood that the description is merely exemplary, and the product data includes not only the data described in the embodiments of the present application.
For example, referring to fig. 5, the information provider includes a component manufacturing factory, an equipment assembly factory, a logistics unit, and a sales store, which are taken as examples, and a schematic diagram of the commodity information of a commodity after being linked on the node is shown. As shown in fig. 5, the goods identifier received by the node includes: part identification (id), device id, logistics id, and sales id. The value information corresponding to the part identification id includes: part id, part delivery time (belonging to commodity data), digital certificate, and digital signature. The value information corresponding to the device id includes: the device id, the id of each part used for assembling the device, the factory time (belonging to commodity data) of the device, the digital certificate and the 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, device id, digital certificate, and digital signature. Alternatively, the value information may not include id information included in the key information.
It should be noted that, when the information providing end assembles the original factory for the device, the node may further continue to detect, through the smart contract, whether the received information related to the component is already used on another device after the step 402 is performed. Stopping the uplink if the uplink is used; if not, the following step 403 is continued. In addition, when the information providing end is a sales store, the node may detect whether a sales record of the device exists in the block chain network through an intelligent contract before the node links the chain, and if the sales record exists, the node may further display a prompt message to the information providing end for prompting that the device is sold, so that the user can clearly know the sales condition of the device, and then continue the chain linking, that is, continue to perform step 403.
Step 404, when receiving a query request of the information request terminal for any commodity information in the block chain network, acquiring any commodity information.
Alternatively, the information request end can be not only any participant joining the blockchain network, but also other users (such as a buyer purchasing goods) besides the participant. If the commodity information needs to be inquired, a user (namely, the information request terminal) for inquiring the commodity information can input the relevant information of the commodity to be inquired into the node through the terminal, and correspondingly, the node can receive the inquiry request of the information request terminal. When receiving the query request, the node can acquire any commodity information corresponding to the query request in the block chain network through the intelligent contract. It should be noted that the information requesting end in step 404 and the information providing end in step 401 may execute operations on the same node, or may execute related operations on different nodes, which is not limited in this embodiment of the application.
Optionally, since the general information requesting terminal is easier to directly obtain the 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 commodity identification, and the query request may include the key information, that is, the query request may include the commodity identification. For example, referring to fig. 5, when receiving key information, a node may obtain a series of value information corresponding to the key information. Since the purchaser can inquire the commodity information through the commodity identification, the commodity identification can also be called a traceable code.
For example, it is assumed that the information requesting end is a user who purchases a commodity, and the user inputs a commodity identifier of the commodity purchased by the user to the node through the terminal device of the user, and accordingly, the node can receive a query request of the user for commodity information of the commodity. At this time, the node may obtain all commodity information related to the commodity in the block chain network through the intelligent contract, for example, may obtain commodity information corresponding to the part of the commodity, commodity information corresponding to the device, commodity information corresponding to the logistics, and commodity information corresponding to the sales, as shown in fig. 5.
Step 405, providing any commodity information to the information request terminal.
After the node queries the commodity information according to the query request, the queried commodity information can be provided for the information request terminal, so that a querier can obtain the commodity information which the querier wants to obtain. Optionally, when the commodity information includes key information and value information and the query request carries the key information, the value information is queried by the node according to the query request, and correspondingly, the queried value information can be provided by the node to the information request terminal.
The commodity is taken as electronic equipment, and the information providing end added into the block chain network comprises an original part manufacturing factory, an original electronic equipment assembling factory, a logistics unit and a sales store/buyer as examples to introduce the information management process of the block chain. Fig. 6 is a schematic diagram of an electronic device chain according to an embodiment of the present disclosure.
As shown in fig. 6, before providing the commodity information to the node, the component manufacturing factory may perform operations of producing the component, detecting whether the quality is acceptable, and performing branding (i.e., setting the component id for the component) on the component when the quality is acceptable, and may reproduce the component when the quality is not acceptable. Then, the component factory may provide the generated components to the electronic equipment assembly factory, and may serve as an information provider to record and link the commodity information (i.e., the component information shown in fig. 6) corresponding to the components. I.e., inputting the component information to the node.
After receiving the component provided by the component factory, the electronic device factory may first serve as an information request end to query commodity information of the component in the blockchain network (the specific query method may refer to step 404) to detect whether the component is a component of the factory. When detecting that the part is a factory part, an electronic equipment assembly factory can use the part to perform an operation of assembling the electronic equipment; when detecting that the part is not the original part, the winding can be stopped directly. After assembling the electronic device, the electronic device assembly factory may continue to label the electronic device it produces (i.e., set the device id for the device). Then, the electronic equipment assembly factory can provide the electronic equipment produced by the electronic equipment assembly factory to a logistics unit, and can be used as an information providing terminal to record and link commodity information (i.e. the electronic equipment information shown in fig. 6) corresponding to the electronic equipment. I.e. inputting electronic device information to the node.
After receiving the electronic device provided by the original factory assembled by the electronic device, the logistics unit may first serve as an information request end to query the commodity information of the electronic device in the blockchain network (the specific query method may refer to step 404) to detect whether the electronic device is an original factory device. When the electronic equipment is detected to be original factory equipment, the logistics unit can perform goods distribution and supply operation, namely, the electronic equipment is distributed to a sales store or a buyer; when detecting that the equipment is not original factory equipment, the uplink can be stopped directly. After distribution, the logistics unit can serve as an information provider to link the logistics information. I.e. logistics information is input to the nodes.
The store/buyer can execute the operation of buying and selling the electronic device, and can be used as an information requesting end to verify whether the electronic device bought and sold by the store/buyer is the genuine product and whether the electronic device is sold for the second time through the blockchain network (i.e. verifying the quality of the genuine product, tracing the production and supply links as shown in fig. 6). The store/buyer can then link up the purchase information record, i.e., enter the purchase information into the node. Through the operation shown in fig. 6, that is, a tracing platform for goods is established, the user can query the uplink information in the blockchain network according to the information of the goods purchased by the user.
It should be noted that, the order of the steps of the information management method for a block chain provided in the embodiment of the present application may be appropriately adjusted, for example, the step 401 may be deleted, or the step 404 and the step 405 may be executed synchronously. Any method that can be easily conceived by a person skilled in the art within the technical scope disclosed in the present application is also covered by the present application, and thus, the detailed description thereof is omitted.
In summary, the embodiment of the present application provides an information management method for a block chain. Any node of the pre-established block chain network can receive commodity information provided by an information providing end, and when the identity of the information providing end is verified and the verification is passed, the received commodity information is broadcasted to the whole network, so that all nodes included in the block chain network can store the same commodity information. And the node can also receive a query request aiming at any commodity information and provide the queried commodity information to the information request terminal according to the request. The information is stored and managed through the block chain network technology, and compared with the related technology which adopts database management, the method can fully utilize the advantages of non-falsification, safety, reliability and the like of the block chain, ensure the reliability of information management, and further ensure the reliability of true and false identification according to the inquired information.
Fig. 7 is a block diagram of an information management apparatus for a block chain according to an embodiment of the present application. The apparatus may be any node included in the blockchain network in the implementation environment shown in fig. 1, or the apparatus may be disposed on any node included in the blockchain network. As shown in fig. 7, the apparatus 70 may include:
the verification module 701 is configured to perform identity verification on the identity of the information provider when receiving the commodity information provided by the information provider.
The broadcasting module 702 is configured to broadcast the commodity information in the block chain network when the identity authentication passes.
The obtaining module 703 is configured to obtain any commodity information when receiving a query request of an information requesting end for any commodity information in the block chain network.
The providing module 704 is used for providing any commodity information to the information requesting terminal.
Optionally, the merchandise information may include an identification of the merchandise. Accordingly, the verification module 701 may be configured to: when commodity information provided by an information providing end is received, whether a commodity identifier is stored in the block chain network is detected, and when the commodity identifier is not stored in the block chain network, identity authentication is performed on the identity of the information providing end.
Optionally, the commodity information includes a digital certificate and a digital signature, and the verification module 701 may be configured to: and the identity of the information providing end is authenticated through the digital certificate and the digital signature.
Optionally, the commodity information may include: the system comprises key information and value information, wherein the key information comprises a commodity identification, and the value information comprises a digital certificate, a digital signature and commodity data, wherein the digital signature is used for signing the value information by adopting a private key corresponding to the digital certificate.
Optionally, the information providing terminal includes at least one of a component manufacturing factory, an equipment assembly factory, a logistics unit, and a sales outlet. The commodity identification comprises at least one of a part identification, an equipment identification, a logistics identification and a sales identification. The commodity data includes at least one of component data, equipment data, logistics data, and sales data.
Optionally, the query request includes key information. Accordingly, the providing module 704 may be configured to provide the value information to the information requesting end.
In summary, the embodiment of the present application provides an information management apparatus for a block chain. The device can receive commodity information provided by the information providing end, and can broadcast the received commodity information to the whole network when the information providing end is subjected to identity verification and the verification is passed, so that all nodes included in the block chain network can store the same commodity information. And the node can also receive a query request aiming at any commodity information and provide the queried commodity information to the information request terminal according to the request. The information is stored and managed through the block chain network technology, and compared with the related technology which adopts database management, the method can fully utilize the advantages of non-falsification, safety, reliability and the like of the block chain, ensure the reliability of information management, and further ensure the reliability of true and false identification according to the inquired information.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Fig. 8 shows a block diagram of an information management apparatus 800 of a block chain according to an exemplary embodiment of the present application. The apparatus 800 may be: a smart phone, a tablet computer, an MP3(Moving Picture Experts Group Audio Layer III, motion video Experts compression standard Audio Layer 3) player, an MP4(Moving Picture Experts Group Audio Layer IV, motion video Experts compression standard Audio Layer 4) player, a notebook computer, a desktop computer, or the like. Device 800 may also be referred to by other names such as user equipment, portable terminals, laptop terminals, desktop terminals, and the like. Alternatively, the device 800 may also be a server.
In general, the apparatus 800 includes: a processor 801 and a memory 802.
The processor 801 may include one or more processing cores, such as a 4-core processor, an 8-core processor, and so forth. The processor 801 may be implemented in at least one hardware form of a DSP (Digital Signal Processing), an FPGA (Field-Programmable Gate Array), and a PLA (Programmable Logic Array). The processor 801 may also include a main processor and a coprocessor, where the main processor is a processor for processing data in an awake state, and is also called a Central Processing Unit (CPU); a coprocessor is a low power processor for processing data in a 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 required to be displayed on the display screen. In some embodiments, the processor 801 may further include an AI (Artificial Intelligence) processor for processing computing operations related to machine learning.
Memory 802 may include one or more computer-readable storage media, which may be non-transitory. Memory 802 may also include high speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In some embodiments, a non-transitory computer readable storage medium in the memory 802 is used to store at least one instruction for execution by the processor 801 to implement the information management method of the blockchain provided by the embodiments of the present application.
In some embodiments, the apparatus 800 may further optionally include: a peripheral interface 803 and at least one peripheral. The processor 801, memory 802 and peripheral interface 803 may be connected by bus or signal lines. Various peripheral devices may be connected to peripheral interface 803 by a bus, signal line, or circuit board. Specifically, the peripheral device includes: at least one of a radio frequency circuit 804, a touch screen display 805, a camera 806, an audio circuit 807, a positioning component 808, and a power supply 809.
The peripheral interface 803 may be used to connect at least one peripheral related to I/O (Input/Output) to the processor 801 and the memory 802. In some embodiments, the processor 801, memory 802, and peripheral 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 interface 803 may be implemented on separate chips or circuit boards, which are not limited by this embodiment.
The Radio Frequency circuit 804 is used for receiving and transmitting RF (Radio Frequency) signals, also called electromagnetic signals. The radio frequency circuitry 804 communicates with communication networks and other communication devices via electromagnetic signals. The rf circuit 804 converts an electrical signal into an electromagnetic signal to be transmitted, or converts a received electromagnetic signal into an electrical signal. 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 subscriber identity module card, and so forth. The radio frequency circuit 804 may communicate with other terminals via at least one wireless communication protocol. The wireless communication protocols include, but are not limited to: metropolitan area networks, various generation mobile communication networks (2G, 3G, 4G, and 5G), Wireless local area networks, and/or WiFi (Wireless Fidelity) networks. In some embodiments, the radio frequency circuit 804 may further include NFC (Near Field Communication) related circuits, which are not limited in this application.
The display screen 805 is used to display a UI (User Interface). The UI may include graphics, text, icons, video, and any combination thereof. When the display 805 is a touch display, the display 805 also has the ability to capture touch signals on or above the surface of the display 805. The touch signal may be input to the processor 801 as a control signal for processing. At this point, the display 805 may also be used to provide virtual buttons and/or a virtual keyboard, also referred to as soft buttons and/or a soft keyboard. In some embodiments, the display 805 may be one, providing the front panel of the device 800; in other embodiments, the display 805 may be at least two, respectively disposed on different surfaces of the device 800 or in a folded design; in still other embodiments, the display 805 may be a flexible display, disposed on a curved surface or on a folded surface of the device 800. Even further, the display 805 may be arranged in a non-rectangular irregular pattern, i.e., a shaped screen. The Display 805 can be made of LCD (liquid crystal Display), OLED (Organic Light-Emitting Diode), and the like.
The camera assembly 806 is used to capture images or video. Optionally, camera assembly 806 includes a front camera and a rear camera. Generally, a front camera is disposed at a front panel of the terminal, and a rear camera is disposed at a rear surface of the terminal. In some embodiments, the number of the rear cameras is at least two, and each rear camera is any one of a main camera, a depth-of-field camera, a wide-angle camera and a telephoto camera, so that the main camera and the depth-of-field camera are fused to realize a background blurring function, and the main camera and the wide-angle camera are fused to realize panoramic shooting and VR (Virtual Reality) shooting functions or other fusion shooting functions. In some embodiments, camera assembly 806 may also include a flash. The flash lamp can be a monochrome temperature flash lamp or a bicolor temperature flash lamp. The double-color-temperature flash lamp is a combination of a warm-light flash lamp and a cold-light flash lamp, and can be used for light compensation at different color temperatures.
The audio circuit 807 may include a microphone and a speaker. The microphone is used for collecting sound waves of a user and the environment, converting the sound waves into electric signals, and inputting the electric signals to the processor 801 for processing or inputting the electric signals to the radio frequency circuit 804 to realize voice communication. The microphones may be multiple and placed at different locations of the device 800 for stereo sound acquisition or noise reduction purposes. The microphone may also be an array microphone or an omni-directional pick-up microphone. The speaker is used to convert electrical signals from the processor 801 or the radio frequency circuit 804 into sound waves. The loudspeaker can be a traditional film loudspeaker or a piezoelectric ceramic loudspeaker. When the speaker is a piezoelectric ceramic speaker, the speaker can be used for purposes such as converting an electric signal into a sound wave audible to a human being, or converting an electric signal into a sound wave inaudible to a human being to measure a distance. In some embodiments, the audio circuitry 807 may also include a headphone jack.
The positioning component 808 is operative to locate a current geographic Location of the device 800 for navigation or LBS (Location Based Service). The positioning component 808 may be a positioning component based on the GPS (global positioning System) in the united states, the beidou System in china, the graves System in russia, or the galileo System in the european union.
A power supply 809 is used to power the various components in the device 800. The power supply 809 can be ac, dc, disposable or rechargeable. When the power source 809 comprises a rechargeable battery, the rechargeable battery may support wired or wireless charging. Rechargeable batteries may also be used to support fast charge technologies.
In some embodiments, the device 800 also includes one or more sensors 810. The one or more sensors 810 include, but are not limited to: acceleration sensor 811, gyro sensor 812, pressure sensor 813, fingerprint sensor 814, optical sensor 815 and proximity sensor 816.
The acceleration sensor 811 may detect the magnitude of acceleration in three coordinate axes of a coordinate system established with the apparatus 800. For example, the acceleration sensor 811 may be used to detect the components of the gravitational acceleration in three coordinate axes. The processor 801 may control the touch screen 805 to display the user interface in a landscape view or a portrait view according to the gravitational acceleration signal collected by the acceleration sensor 811. The acceleration sensor 811 may also be used for acquisition of motion data of a game or a user.
The gyro sensor 812 may detect a body direction and a rotation angle of the device 800, and the gyro sensor 812 may cooperate with the acceleration sensor 811 to acquire a 3D motion of the user with respect to the device 800. From the data collected by the gyro sensor 812, the processor 801 may implement the following functions: motion sensing (such as changing the UI according to a user's tilting operation), image stabilization at the time of photographing, game control, and inertial navigation.
Pressure sensors 813 may be disposed on the side bezel of device 800 and/or underneath touch display 805. When the pressure sensor 813 is arranged on the side frame of the device 800, the holding signal of the user to the device 800 can be detected, and the processor 801 performs left-right hand identification or shortcut operation according to the holding signal collected by the pressure sensor 813. When the pressure sensor 813 is disposed at a lower layer of the touch display screen 805, the processor 801 controls the operability control on the UI interface according to the pressure operation of the user on the touch display screen 805. The operability control comprises at least one of a button control, a scroll bar control, an icon control and a menu control.
The fingerprint sensor 814 is used for collecting a fingerprint of the user, and the processor 801 identifies the identity of the user according to the fingerprint collected by the fingerprint sensor 814, or the fingerprint sensor 814 identifies the identity of the user according to the collected fingerprint. Upon identifying that the user's identity is a trusted identity, the processor 801 authorizes the user to perform relevant sensitive operations including unlocking a screen, viewing encrypted information, downloading software, paying for and changing settings, etc. Fingerprint sensor 814 may be disposed on the front, back, or side of device 800. When a physical key or vendor Logo is provided on the device 800, the fingerprint sensor 814 may be integrated with the physical key or vendor Logo.
The optical sensor 815 is used to collect the ambient light intensity. In one embodiment, the processor 801 may control the display brightness of the touch screen 805 based on 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 805 is turned down. In another embodiment, the processor 801 may also dynamically adjust the shooting parameters of the camera assembly 806 based on the ambient light intensity collected by the optical sensor 815.
A proximity sensor 816, also known as a distance sensor, is typically provided on the front panel of the device 800. The proximity sensor 816 is used to capture the distance between the user and the front of the device 800. In one embodiment, the processor 801 controls the touch display 805 to switch from a bright screen state to a dark screen state when the proximity sensor 816 detects that the distance between the user and the front surface of the device 800 is gradually reduced; when the proximity sensor 816 detects that the distance between the user and the front of the device 800 is gradually increasing, the touch display 805 is controlled by the processor 801 to switch from a rest screen state to a light screen state.
Those skilled in the art will appreciate that the configuration shown in fig. 8 is not intended to be limiting of the apparatus 800 and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components may be used.
Also provided in an embodiment of the present application is a computer-readable storage medium, where at least one instruction, at least one program, a set of codes, or a set of instructions may be stored in the storage medium, and the at least one instruction, the at least one program, the set of codes, or the set of instructions is loaded and executed by a processor to implement the information management method of the block chain shown in fig. 3 or fig. 4.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc. The above description is only exemplary of the present application and should not be taken as limiting, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present application should be included in the protection scope of the present application.

Claims (10)

1. An information management method of a block chain is applied to any node in a block chain network, and the method comprises the following steps:
when commodity information provided by an information providing end is received, carrying out identity verification on the identity of the information providing end;
when the identity authentication is passed, broadcasting the commodity information in the block chain network;
when an information request end is received to inquire any commodity information in the block chain network, acquiring the commodity information;
and providing the information of any commodity to the information request terminal.
2. The method of claim 1, wherein the merchandise information includes merchandise identification, and the authenticating the identity of the information provider upon receiving the merchandise information provided by the information provider comprises:
when commodity information provided by the information providing end is received, detecting whether the commodity identification is stored in the block chain network;
and when the commodity identification is not stored in the block chain network, carrying out identity verification on the identity of the information providing end.
3. The method of claim 1, wherein the merchandise information comprises a digital certificate and a digital signature, and the authenticating the identity of the information provider comprises:
and performing identity verification on the identity of the information providing end through the digital certificate and the digital signature.
4. The method of claim 3, wherein the merchandise information comprises: the system comprises key information and value information, wherein the key information comprises a commodity identification, and the value information comprises the digital certificate, the digital signature for signing the value information by adopting a private key corresponding to the digital certificate and commodity data.
5. The method of claim 4, wherein the information providing terminal includes at least one of a component manufacturing factory, an equipment assembly factory, a logistics unit, and a sales outlet;
the commodity identification comprises at least one of a part identification, an equipment identification, a logistics identification and a sales identification;
the commodity data includes at least one of parts data, equipment data, logistics data, and sales data.
6. The method according to claim 4 or 5, wherein the query request includes the key information; the providing of the any commodity information to the information request terminal includes:
and providing the value information to the information request terminal.
7. An information management apparatus of a blockchain, applied to any node in a blockchain network, the apparatus comprising:
the authentication module is used for authenticating the identity of the information providing terminal when receiving the commodity information provided by the information providing terminal;
the broadcast module is used for broadcasting the commodity information in the block chain network when the identity authentication is passed;
the acquisition module is used for acquiring any commodity information when receiving a query request of an information request end aiming at the commodity information in the block chain network;
and the providing module is used for providing the information of any commodity for the information requesting terminal.
8. The apparatus of claim 7, wherein the merchandise information comprises an identification of the merchandise, and wherein the verification module is configured to:
when commodity information provided by the information providing end is received, detecting whether the commodity identification is stored in the block chain network;
and when the commodity identification is not stored in the block chain network, carrying out identity verification on the identity of the information providing end.
9. A terminal, characterized in that the terminal comprises: a processor and a memory, said memory having stored therein at least one instruction, at least one program, a set of codes, or a set of instructions, which is loaded and executed by said processor to implement the information management method of a blockchain according to any one of claims 1 to 6.
10. A computer-readable storage medium, having stored therein at least one instruction, at least one program, a set of codes, or a set of instructions, which is loaded and executed by a processor to implement the method of information management of a blockchain according to any one of claims 1 to 6.
CN201910923692.XA 2019-09-27 2019-09-27 Information management method and device of block chain Pending CN110599210A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910923692.XA CN110599210A (en) 2019-09-27 2019-09-27 Information management method and device of block chain

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910923692.XA CN110599210A (en) 2019-09-27 2019-09-27 Information management method and device of block chain

Publications (1)

Publication Number Publication Date
CN110599210A true CN110599210A (en) 2019-12-20

Family

ID=68864192

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910923692.XA Pending CN110599210A (en) 2019-09-27 2019-09-27 Information management method and device of block chain

Country Status (1)

Country Link
CN (1) CN110599210A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111415114A (en) * 2020-03-16 2020-07-14 四川百酒堂科技有限公司 Block chain-based method and system for generating fidelity traceability codes of fast-selling goods
CN111695154A (en) * 2020-06-10 2020-09-22 中国联合网络通信集团有限公司 Information verification method and device based on block chain
CN114531260A (en) * 2020-11-09 2022-05-24 腾讯科技(深圳)有限公司 Information processing method based on alliance chain system and related equipment

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111415114A (en) * 2020-03-16 2020-07-14 四川百酒堂科技有限公司 Block chain-based method and system for generating fidelity traceability codes of fast-selling goods
CN111695154A (en) * 2020-06-10 2020-09-22 中国联合网络通信集团有限公司 Information verification method and device based on block chain
CN111695154B (en) * 2020-06-10 2023-04-28 中国联合网络通信集团有限公司 Information verification method and device based on block chain
CN114531260A (en) * 2020-11-09 2022-05-24 腾讯科技(深圳)有限公司 Information processing method based on alliance chain system and related equipment

Similar Documents

Publication Publication Date Title
CN108614878B (en) Protocol data management method, device, storage medium and system
CN108764797A (en) Circulation information querying method, device, equipment, system and storage medium
CN110687821B (en) Intelligent home control system and method based on block chain
CN111339086B (en) Block processing method, and data query method and device based on block chain
CN110602089A (en) Block chain-based medical data storage method, device, equipment and storage medium
CN111340482B (en) Conflict detection method, device, node equipment and storage medium
CN111080443B (en) Block chain-based service processing method, device, equipment and storage medium
CN110602206A (en) Data sharing method and device based on block chain and storage medium
CN110555780B (en) Insurance data processing method, device and equipment based on block chain and storage medium
CN111045568B (en) Virtual article processing method, device, equipment and storage medium based on block chain
CN110597924B (en) Block chain-based user identification processing method, device, equipment and storage medium
CN111241115B (en) Data synchronization method, device, equipment and storage medium
CN110599210A (en) Information management method and device of block chain
CN110933113B (en) Block chain-based interactive behavior detection method, device, equipment and storage medium
CN110598386B (en) Block chain-based data processing method, device, equipment and storage medium
CN111667371B (en) Resource aggregation method, system, device and storage medium based on block chain
CN111159153A (en) Service data checking method and device, computer equipment and storage medium
CN111212074A (en) Qualification determination method, device, equipment and storage medium based on block chain
CN110677262A (en) Block chain-based information notarization method, device and system
EP4102770A1 (en) Electronic device and method for performing peer to peer service in electronic device
CN110597868A (en) Information query method, device, terminal and storage medium based on block chain
CN110570289A (en) service processing method, device, equipment and storage medium based on block chain
CN110727894A (en) Target material setting method, device, equipment and storage medium
CN111327427B (en) Method, device, node equipment, system and storage medium for submitting alternative blocks
CN108683684B (en) Method, device and system for logging in target instant messaging application

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