CN113901136A - Distributed processing method and device for product data - Google Patents

Distributed processing method and device for product data Download PDF

Info

Publication number
CN113901136A
CN113901136A CN202111120488.8A CN202111120488A CN113901136A CN 113901136 A CN113901136 A CN 113901136A CN 202111120488 A CN202111120488 A CN 202111120488A CN 113901136 A CN113901136 A CN 113901136A
Authority
CN
China
Prior art keywords
product
information
block
data
conditions
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
CN202111120488.8A
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.)
Shenzhen Spacetime Cloud Technology Co ltd
Original Assignee
Shenzhen Spacetime Cloud Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Spacetime Cloud Technology Co ltd filed Critical Shenzhen Spacetime Cloud Technology Co ltd
Priority to CN202111120488.8A priority Critical patent/CN113901136A/en
Publication of CN113901136A publication Critical patent/CN113901136A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2455Query execution
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/64Protecting data integrity, e.g. using checksums, certificates or signatures

Abstract

The invention provides a distributed processing method and a distributed processing device for product data, wherein product information in each product end is obtained, the product information is used for indicating the product condition in the product end, the product condition at least comprises quantity condition and quality condition, and the product information is obtained by packaging the product data of the product end by the product end according to a consensus mechanism; performing link storage on the product information; receiving query information of a user side, and acquiring product information corresponding to the product side based on the query information; the technical scheme that the right and interest chain information of the product end is responded and sent to the product end to read the private key of the product information can realize real-time query of the product information in the product end by a user, realize product supervision of the product end and improve user experience.

Description

Distributed processing method and device for product data
Technical Field
The present invention relates to distributed management technologies, and in particular, to a distributed processing method and apparatus for product data.
Background
Under the modern market mechanism, in order to develop and occupy the market, managers emerge more and more product ends and provide product services for users.
However, since the product ends are scattered in various places, managers cannot monitor the product ends in real time, users often cannot know the actual conditions of the products in the product ends, and the conditions that the product ends cannot meet the requirements of the users or the product quality occurs frequently, so that the problem that how to supervise the product conditions of the product ends in real time becomes an urgent need to be solved is solved.
Disclosure of Invention
The embodiment of the invention provides a distributed processing method and device for product data, which can realize the implementation supervision of a user on the product condition in a product end and improve the user experience.
In a first aspect of the embodiments of the present invention, a distributed processing method for product data is provided, including:
the method comprises the steps that product information in each product end is obtained, the product information is used for indicating product conditions in the product end, the product conditions at least comprise quantity conditions and quality conditions, and the product information is obtained by packaging product data of the product end by the product end according to a consensus mechanism;
performing link storage on the product information;
receiving query information of a user side, and acquiring product information corresponding to the product side based on the query information;
responding to the rights and interests to the chain information of the user side, and sending the rights and interests to the chain information of the user side to read the private key of the product information;
wherein the consensus mechanism comprises:
randomly extracting a public trust authority for authenticating block signatures from a plurality of product terminals, and randomly generating a plurality of candidate nodes;
performing signature authentication processing on the blocks generated by the candidate nodes based on the public trust authority, and taking the block with the largest signature authentication number as a common identification block;
packaging the product data of the product end according to the consensus block to obtain a current block of the product information;
broadcasting the current block through the common block, and all nodes store the current block and a previous block in a linked manner.
Optionally, in a possible implementation manner of the first aspect, before the product information is obtained by a product end by packaging product data of the product end according to a consensus mechanism, the method further includes:
collecting the product data based on a visual sensor installed at the product end, wherein the product data comprises a product quantity and a product expiration date;
wherein each product and the product expiration date of each product are within the capture range of the visual sensor.
Optionally, in a possible implementation manner of the first aspect, the method further includes:
providing, on a server-side basis, rights to the candidate node that generated the consensus block.
Optionally, in a possible implementation manner of the first aspect, the method further includes:
receiving a fault certificate of the user terminal to the product terminal, and forwarding the fault certificate to a maintenance terminal for verification processing;
receiving fault verification information of the repair end;
providing rights to the user terminal providing the proof of failure based on the failure verification information.
Optionally, in a possible implementation manner of the first aspect, the product end is provided with a user detector, and the proximity data of the user is acquired based on the user detector.
Optionally, in a possible implementation manner of the first aspect, after the acquiring proximity data of the user based on the user detector, the method further includes:
if the product information indicates that the product quantity of the corresponding product is 0, acquiring positioning information of a plurality of product ends;
acquiring position information adjacent to the product end based on the product information and the positioning information, wherein the product quantity of a corresponding product adjacent to the product end is at least 1;
and displaying the position information.
Optionally, in a possible implementation manner of the first aspect, the presenting the location information includes:
and displaying the position information in a voice mode.
In a second aspect of the embodiments of the present invention, a distributed processing method for product data is provided, including:
transmitting product information in each product end to a distributed storage block chain system for link storage, wherein the product information is used for indicating product conditions in the product ends, the product conditions at least comprise quantity conditions and quality conditions, and the product information is obtained by packaging product data of the product ends by the product ends according to a consensus mechanism;
sending query information of a user side to a distributed storage block chain system, and acquiring product information corresponding to the product side based on the query information;
receiving a private key of the user side for reading the product information, wherein the private key is sent by the distributed storage block chain system in response to the rights and interests to chain information of the user side;
wherein the consensus mechanism comprises:
randomly extracting a public trust authority for authenticating block signatures from a plurality of product terminals, and randomly generating a plurality of candidate nodes;
performing signature authentication processing on the blocks generated by the candidate nodes based on the public trust authority, and taking the block with the largest signature authentication number as a common identification block;
packaging the product data of the product end according to the consensus block to obtain a current block of the product information;
broadcasting the current block through the common block, and all nodes store the current block and a previous block in a linked manner.
In a third aspect of the embodiments of the present invention, there is provided a distributed processing apparatus for product data, including:
the system comprises a first product module, a second product module and a third product module, wherein the first product module is used for acquiring product information in each product end, the product information is used for indicating product conditions in the product end, the product conditions at least comprise quantity conditions and quality conditions, and the product information is obtained by packaging product data of the product end by the product end according to a consensus mechanism;
the first storage module is used for performing link storage on the product information;
the first query module is used for receiving query information of a user side and acquiring product information corresponding to the product side based on the query information;
the first private key module is used for responding to the rights and interests to the chain information of the user side and sending the rights and interests to the chain information of the user side to read the private key of the product information;
wherein the consensus mechanism comprises:
randomly extracting a public trust authority for authenticating block signatures from a plurality of product terminals, and randomly generating a plurality of candidate nodes;
performing signature authentication processing on the blocks generated by the candidate nodes based on the public trust authority, and taking the block with the largest signature authentication number as a common identification block;
packaging the product data of the product end according to the consensus block to obtain a current block of the product information;
broadcasting the current block through the common block, and all nodes store the current block and a previous block in a linked manner.
In a fourth aspect of the embodiments of the present invention, there is provided a distributed processing apparatus for product data, including:
the second product module is used for transmitting product information in each product end to a distributed storage block chain system for link storage, the product information is used for indicating product conditions in the product ends, the product conditions at least comprise quantity conditions and quality conditions, and the product information is obtained by packaging product data of the product ends by the product ends according to a consensus mechanism;
the second query module is used for sending query information of a user side to the distributed storage block chain system and receiving the product information corresponding to the product side, which is obtained by the distributed storage block chain system based on the query information;
the second private key module is used for receiving a private key of the product information read by the user side, and the private key is sent by the distributed storage block chain system in response to the rights and interests of the user side;
wherein the consensus mechanism comprises:
randomly extracting a public trust authority for authenticating block signatures from a plurality of product terminals, and randomly generating a plurality of candidate nodes;
performing signature authentication processing on the blocks generated by the candidate nodes based on the public trust authority, and taking the block with the largest signature authentication number as a common identification block;
packaging the product data of the product end according to the consensus block to obtain a current block of the product information;
broadcasting the current block through the common block, and all nodes store the current block and a previous block in a linked manner.
In a third aspect of the embodiments of the present invention, there is provided a distributed processing apparatus for product data, including: memory, a processor and a computer program, the computer program being stored in the memory, the processor running the computer program to perform the method of the first aspect of the invention as well as various possible aspects of the first aspect.
A fourth aspect of the embodiments of the present invention provides a readable storage medium, in which a computer program is stored, the computer program being, when executed by a processor, configured to implement the method according to the first aspect of the present invention and various possible aspects of the first aspect.
According to the distributed processing method and device for the product data, the plurality of product ends are connected to form the block chain system which can be communicated with each other, storage and sharing of information of each product end are achieved, a user can access the block chain system, real-time query of the user on product information in the product ends is achieved, product supervision on the product ends is achieved, and user experience is improved. In addition, a manager of the product end can supervise the product end based on the product information, and service to the user is improved.
Drawings
FIG. 1 is a flow chart of a distributed processing method for product data according to an embodiment of the present invention;
FIG. 2 is a block diagram of a distributed memory blockchain system according to an embodiment of the present invention;
FIG. 3 is a schematic structural diagram of a distributed processing apparatus for product data according to an embodiment of the present invention;
FIG. 4 is a schematic structural diagram of another distributed processing apparatus for product data according to an embodiment of the present invention;
fig. 5 is a schematic hardware structure diagram of a distributed processing device for product data according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The terms "first," "second," "third," "fourth," and the like in the description and in the claims, as well as in the drawings, if any, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein.
It should be understood that, in various embodiments of the present invention, the sequence numbers of the processes do not mean the execution sequence, and the execution sequence of the processes should be determined by the functions and the internal logic of the processes, and should not constitute any limitation on the implementation process of the embodiments of the present invention.
It should be understood that in the present application, "comprising" and "having" and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
It should be understood that, in the present invention, "a plurality" means two or more. "and/or" is merely an association describing an associated object, meaning that three relationships may exist, for example, and/or B, may mean: a exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship. "comprises A, B and C" and "comprises A, B, C" means that all three of A, B, C comprise, "comprises A, B or C" means that one of A, B, C comprises, "comprises A, B and/or C" means that any 1 or any 2 or 3 of A, B, C comprises.
It should be understood that in the present invention, "B corresponding to a", "a corresponds to B", or "B corresponds to a" means that B is associated with a, and B can be determined from a. Determining B from a does not mean determining B from a alone, but may be determined from a and/or other information. And the matching of A and B means that the similarity of A and B is greater than or equal to a preset threshold value.
As used herein, "if" may be interpreted as "at … …" or "when … …" or "in response to a determination" or "in response to a detection", depending on the context.
The technical solution of the present invention will be described in detail below with specific examples. The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments.
Referring to fig. 1, which is a flowchart illustrating a method for distributed processing of product data according to an embodiment of the present invention, an execution subject of the method shown in fig. 1 may be a software and/or hardware device. The execution subject of the present application may include, but is not limited to, at least one of: user equipment, network equipment, etc. The user equipment may include, but is not limited to, a computer, a smart phone, a Personal Digital Assistant (PDA), the above mentioned electronic equipment, and the like. The network device may include, but is not limited to, a single network server, a server group of multiple network servers, or a cloud of numerous computers or network servers based on cloud computing, wherein cloud computing is one type of distributed computing, a super virtual computer consisting of a cluster of loosely coupled computers. The present embodiment does not limit this. The method comprises the following steps of S101 to S104:
s101, a distributed storage block chain system acquires product information in each product end, the product information is used for indicating product conditions in the product ends, the product conditions at least comprise quantity conditions and quality conditions, and the product information is obtained by packaging product data of the product ends by the product ends according to a consensus mechanism.
Correspondingly, the product end transmits product information in each product end to the distributed storage block chain system for link storage, the product information is used for indicating product conditions in the product end, the product conditions at least comprise quantity conditions and quality conditions, and the product information is obtained by packaging product data of the product end by the product end according to a consensus mechanism.
Specifically, the product information of the product end that the user cares about is generally whether the quantity can satisfy the purchase, or how the quality of the purchased product is safe, taking food as an example, after the user reaches the product end, the user finds that the food is sold out, or after the product is out of date, the user may have a safety accident when eating the product.
Referring to fig. 2, in this embodiment, product ends are connected to form a distributed storage block chain system capable of communicating with each other, the product ends serve as nodes therein, product information can be obtained by packaging through a consensus mechanism and stored in the block chain system, and a user can access the distributed storage block chain system to check the product quality condition in the product ends at any time, grasp the product quality condition in real time, avoid getting out of work, or buy an expired product, and improve user experience.
Wherein, the consensus mechanism comprises:
randomly extracting a public trust authority for authenticating block signatures from a plurality of product terminals, and randomly generating a plurality of candidate nodes;
performing signature authentication processing on the blocks generated by the candidate nodes based on the public trust authority, and taking the block with the largest signature authentication number as a common identification block;
packaging the product data of the product end according to the consensus block to obtain a current block of the product information;
broadcasting the current block through the common block, and all nodes store the current block and a previous block in a linked manner.
It can be understood that the distributed storage block chain system of the present solution is composed of product end nodes, and a public trust authority for block signature authentication performs signature authentication on a generated block, selects a block with the largest number of authentications as a common identification block, and then packs product data to form a current block for link storage, so that data chaining can be realized, and product information in each product end can be supervised according to the data, and can be queried in real time.
Wherein the candidate node generating the consensus block may be provided with an interest on a server side basis.
In practical applications, the product data may be collected based on a visual sensor installed at the product end, where the product data includes a product quantity and a product expiration date, and each product and the product expiration date of each product are located within a shooting range of the visual sensor.
It will be appreciated that the visual sensor needs to be able to capture the full look of the product, while also being able to capture the expiration date of the product, which is then packaged for storage. The visual sensor can be, for example, a camera and an image processor, the camera is used for collecting product pictures, and the image processor is used for processing the collected product pictures and acquiring the product quantity and the product expiration date.
And S102, the distributed storage block chain system stores the product information in a link mode.
It can be understood that after the product information is packaged to form the current block, all nodes link and store the current block and the previous block, so as to realize uplink storage of the product information.
S103, the distributed storage area block chain system receives query information of a user side, and obtains product information corresponding to the product side based on the query information.
Correspondingly, the user side sends query information of the user side to the distributed storage block chain system, and receives the product information corresponding to the product side, which is obtained by the distributed storage block chain system based on the query information.
Specifically, when a user wants to know the product condition in the product end, the user can input query information to the blockchain system to perform a query.
For example, when a user wants to query a product condition in the product end 1, identification information related to the product end 1 may be input to achieve query positioning of the product end 1, for example, query information such as "product end 1" may be input to achieve query operation.
S104, the distributed storage area block chain system responds to the rights and interests chain information of the user side and sends the rights and interests chain information to the user side to read the private key of the product information;
correspondingly, the user side receives a private key of the product side for reading the product information, and the private key is sent by the distributed storage block chain system in response to the rights and interests of the user side.
Specifically, after querying the product information, the user needs to read the product information by using the private key, and therefore the user needs to obtain the private key from the blockchain system to read the product information.
Meanwhile, in order to encourage the product end to uplink the respective data in a packaging manner, the candidate nodes generating the consensus blocks can also be provided with rights and interests based on the service end.
The embodiment can realize real-time inquiry of the user on the product information in the product end, realize product supervision on the product end and improve user experience. In addition, a manager of the product end can supervise the product end based on the product information, and service to the user is improved.
In actual use, the product end will inevitably break down, and in order to timely implement the maintenance of the product end and stably service the customer, on the basis of the above embodiment, the method further includes:
receiving a fault certificate of the user terminal to the product terminal, and forwarding the fault certificate to a maintenance terminal for verification processing;
receiving fault verification information of the repair end;
providing rights to the user terminal providing the proof of failure based on the failure verification information.
It can be understood that, when a product end fails, a user end can upload a failure certificate in time, and the blockchain system forwards the failure certificate to a repair end for verification.
In practical use, the product end can be provided with a user detector, and the user proximity data can be acquired based on the user detector. The user detector may be, for example, an infrared sensor or may be a proximity sensor, or may be a camera, which generates data when a user is detected in proximity thereto.
For better service of the customer, after the obtaining of the proximity data of the user based on the user detector, the method further comprises:
if the product information indicates that the product quantity of the corresponding product is 0, acquiring positioning information of a plurality of product ends;
acquiring position information adjacent to the product end based on the product information and the positioning information, wherein the product quantity of a corresponding product adjacent to the product end is at least 1;
the displaying of the location information may be, for example, displaying the location information in voice, or displaying the location information based on a display module at a product end.
It can be understood that, in the embodiment, the product end position where the number of products in the adjacent product end is greater than 1 can be recommended to the user and displayed to the user, and the user can go to enjoy the service according to the displayed position, thereby further improving the user experience.
It should be noted that the positioning information may be pre-stored in the blockchain system, for example, if there are 100 product terminals, there are 100 corresponding positioning information for pre-storage.
Referring to fig. 3, a schematic structural diagram of a distributed processing apparatus for product data according to an embodiment of the present invention is shown, where the distributed processing apparatus for product data includes:
the system comprises a first product module, a second product module and a third product module, wherein the first product module is used for acquiring product information in each product end, the product information is used for indicating product conditions in the product end, the product conditions at least comprise quantity conditions and quality conditions, and the product information is obtained by packaging product data of the product end by the product end according to a consensus mechanism;
the first storage module is used for performing link storage on the product information;
the first query module is used for receiving query information of a user side and acquiring product information corresponding to the product side based on the query information;
the first private key module is used for responding to the rights and interests to the chain information of the user side and sending the rights and interests to the chain information of the user side to read the private key of the product information;
wherein the consensus mechanism comprises:
randomly extracting a public trust authority for authenticating block signatures from a plurality of product terminals, and randomly generating a plurality of candidate nodes;
performing signature authentication processing on the blocks generated by the candidate nodes based on the public trust authority, and taking the block with the largest signature authentication number as a common identification block;
packaging the product data of the product end according to the consensus block to obtain a current block of the product information;
broadcasting the current block through the common block, and all nodes store the current block and a previous block in a linked manner.
Referring to fig. 4, a schematic structural diagram of another distributed processing apparatus for product data according to an embodiment of the present invention is shown, where the distributed processing apparatus for product data includes:
the second product module is used for transmitting product information in each product end to a distributed storage block chain system for link storage, the product information is used for indicating product conditions in the product ends, the product conditions at least comprise quantity conditions and quality conditions, and the product information is obtained by packaging product data of the product ends by the product ends according to a consensus mechanism;
the second query module is used for sending query information of a user side to the distributed storage block chain system and receiving the product information corresponding to the product side, which is obtained by the distributed storage block chain system based on the query information;
the second private key module is used for receiving a private key of the product information read by the user side, and the private key is sent by the distributed storage block chain system in response to the rights and interests of the user side;
wherein the consensus mechanism comprises:
randomly extracting a public trust authority for authenticating block signatures from a plurality of product terminals, and randomly generating a plurality of candidate nodes;
performing signature authentication processing on the blocks generated by the candidate nodes based on the public trust authority, and taking the block with the largest signature authentication number as a common identification block;
packaging the product data of the product end according to the consensus block to obtain a current block of the product information;
broadcasting the current block through the common block, and all nodes store the current block and a previous block in a linked manner.
The apparatus of the foregoing embodiment may be correspondingly used to perform the steps in the method embodiment shown in fig. 1, and the implementation principle and the technical effect are similar, which are not described herein again.
Referring to fig. 5, a schematic diagram of a hardware structure of a distributed processing apparatus for product data according to an embodiment of the present invention is provided, where the distributed processing apparatus 50 for product data includes: a processor 51, a memory 52 and computer programs; wherein
A memory 52 for storing the computer program, which may also be a flash memory (flash). The computer program is, for example, an application program, a functional module, or the like that implements the above method.
A processor 51 for executing the computer program stored in the memory to implement the steps performed by the apparatus in the above method. Reference may be made in particular to the description relating to the preceding method embodiment.
Alternatively, the memory 52 may be separate or integrated with the processor 51.
When the memory 52 is a device independent of the processor 51, the apparatus may further include:
a bus 53 for connecting the memory 52 and the processor 51.
The present invention also provides a readable storage medium, in which a computer program is stored, which, when being executed by a processor, is adapted to implement the methods provided by the various embodiments described above.
The readable storage medium may be a computer storage medium or a communication medium. Communication media includes any medium that facilitates transfer of a computer program from one place to another. Computer storage media may be any available media that can be accessed by a general purpose or special purpose computer. For example, a readable storage medium is coupled to the processor such that the processor can read information from, and write information to, the readable storage medium. Of course, the readable storage medium may also be an integral part of the processor. The processor and the readable storage medium may reside in an Application Specific Integrated Circuits (ASIC). Additionally, the ASIC may reside in user equipment. Of course, the processor and the readable storage medium may also reside as discrete components in a communication device. The readable storage medium may be a read-only memory (ROM), a random-access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
The present invention also provides a program product comprising execution instructions stored in a readable storage medium. The at least one processor of the device may read the execution instructions from the readable storage medium, and the execution of the execution instructions by the at least one processor causes the device to implement the methods provided by the various embodiments described above.
In the above embodiments of the apparatus, it should be understood that the Processor may be a Central Processing Unit (CPU), other general purpose processors, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of a method disclosed in connection with the present invention may be embodied directly in a hardware processor, or in a combination of the hardware and software modules within the processor.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.

Claims (10)

1. A method for distributed processing of product data, comprising:
the method comprises the steps that product information in each product end is obtained, the product information is used for indicating product conditions in the product end, the product conditions at least comprise quantity conditions and quality conditions, and the product information is obtained by packaging product data of the product end by the product end according to a consensus mechanism;
performing link storage on the product information;
receiving query information of a user side, and acquiring product information corresponding to the product side based on the query information;
responding to the rights and interests to the chain information of the user side, and sending the rights and interests to the chain information of the user side to read the private key of the product information;
wherein the consensus mechanism comprises:
randomly extracting a public trust authority for authenticating block signatures from a plurality of product terminals, and randomly generating a plurality of candidate nodes;
performing signature authentication processing on the blocks generated by the candidate nodes based on the public trust authority, and taking the block with the largest signature authentication number as a common identification block;
packaging the product data of the product end according to the consensus block to obtain a current block of the product information;
broadcasting the current block through the common block, and all nodes store the current block and a previous block in a linked manner.
2. The method of claim 1, before the product information is obtained by a product end according to a consensus mechanism by packaging product data of the product end, further comprising:
collecting the product data based on a visual sensor installed at the product end, wherein the product data comprises a product quantity and a product expiration date;
wherein each product and the product expiration date of each product are within the capture range of the visual sensor.
3. The method of claim 1, further comprising:
providing, on a server-side basis, rights to the candidate node that generated the consensus block.
4. The method of claim 1, further comprising:
receiving a fault certificate of the user terminal to the product terminal, and forwarding the fault certificate to a maintenance terminal for verification processing;
receiving fault verification information of the repair end;
providing rights to the user terminal providing the proof of failure based on the failure verification information.
5. The method of claim 1, wherein the product end is provided with a user detector and wherein the user proximity data is obtained based on the user detector.
6. The method of claim 5, further comprising, after said obtaining proximity data of a user based on said user detector:
if the product information indicates that the product quantity of the corresponding product is 0, acquiring positioning information of a plurality of product ends;
acquiring position information adjacent to the product end based on the product information and the positioning information, wherein the product quantity of a corresponding product adjacent to the product end is at least 1;
and displaying the position information.
7. The method of claim 6, wherein said presenting the location information comprises:
and displaying the position information in a voice mode.
8. A method for distributed processing of product data, comprising:
transmitting product information in each product end to a distributed storage block chain system for link storage, wherein the product information is used for indicating product conditions in the product ends, the product conditions at least comprise quantity conditions and quality conditions, and the product information is obtained by packaging product data of the product ends by the product ends according to a consensus mechanism;
sending query information of a user side to a distributed storage block chain system, and acquiring product information corresponding to the product side based on the query information;
receiving a private key of the user side for reading the product information, wherein the private key is sent by the distributed storage block chain system in response to the rights and interests to chain information of the user side;
wherein the consensus mechanism comprises:
randomly extracting a public trust authority for authenticating block signatures from a plurality of product terminals, and randomly generating a plurality of candidate nodes;
performing signature authentication processing on the blocks generated by the candidate nodes based on the public trust authority, and taking the block with the largest signature authentication number as a common identification block;
packaging the product data of the product end according to the consensus block to obtain a current block of the product information;
broadcasting the current block through the common block, and all nodes store the current block and a previous block in a linked manner.
9. An apparatus for distributed processing of product data, comprising:
the system comprises a first product module, a second product module and a third product module, wherein the first product module is used for acquiring product information in each product end, the product information is used for indicating product conditions in the product end, the product conditions at least comprise quantity conditions and quality conditions, and the product information is obtained by packaging product data of the product end by the product end according to a consensus mechanism;
the first storage module is used for performing link storage on the product information;
the first query module is used for receiving query information of a user side and acquiring product information corresponding to the product side based on the query information;
the first private key module is used for responding to the rights and interests to the chain information of the user side and sending the rights and interests to the chain information of the user side to read the private key of the product information;
wherein the consensus mechanism comprises:
randomly extracting a public trust authority for authenticating block signatures from a plurality of product terminals, and randomly generating a plurality of candidate nodes;
performing signature authentication processing on the blocks generated by the candidate nodes based on the public trust authority, and taking the block with the largest signature authentication number as a common identification block;
packaging the product data of the product end according to the consensus block to obtain a current block of the product information;
broadcasting the current block through the common block, and all nodes store the current block and a previous block in a linked manner.
10. An apparatus for distributed processing of product data, comprising:
the second product module is used for transmitting product information in each product end to a distributed storage block chain system for link storage, the product information is used for indicating product conditions in the product ends, the product conditions at least comprise quantity conditions and quality conditions, and the product information is obtained by packaging product data of the product ends by the product ends according to a consensus mechanism;
the second query module is used for sending query information of a user side to the distributed storage block chain system and receiving the product information corresponding to the product side, which is obtained by the distributed storage block chain system based on the query information;
the second private key module is used for receiving a private key of the product information read by the user side, and the private key is sent by the distributed storage block chain system in response to the rights and interests of the user side;
wherein the consensus mechanism comprises:
randomly extracting a public trust authority for authenticating block signatures from a plurality of product terminals, and randomly generating a plurality of candidate nodes;
performing signature authentication processing on the blocks generated by the candidate nodes based on the public trust authority, and taking the block with the largest signature authentication number as a common identification block;
packaging the product data of the product end according to the consensus block to obtain a current block of the product information;
broadcasting the current block through the common block, and all nodes store the current block and a previous block in a linked manner.
CN202111120488.8A 2021-09-24 2021-09-24 Distributed processing method and device for product data Pending CN113901136A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111120488.8A CN113901136A (en) 2021-09-24 2021-09-24 Distributed processing method and device for product data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111120488.8A CN113901136A (en) 2021-09-24 2021-09-24 Distributed processing method and device for product data

Publications (1)

Publication Number Publication Date
CN113901136A true CN113901136A (en) 2022-01-07

Family

ID=79029277

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111120488.8A Pending CN113901136A (en) 2021-09-24 2021-09-24 Distributed processing method and device for product data

Country Status (1)

Country Link
CN (1) CN113901136A (en)

Similar Documents

Publication Publication Date Title
JP2022500963A (en) Network security monitoring methods, network security monitoring devices and systems
CN104348810B (en) The detection method of stolen account number, apparatus and system
CN110730225A (en) Data processing method of Internet of things based on block chain, Internet of things and storage medium
CN111786950A (en) Situation awareness-based network security monitoring method, device, equipment and medium
CN111784462B (en) Transaction processing method, client, processing terminal and system based on blockchain
CN110348519A (en) Financial product cheats recognition methods and the device of clique
CN105007301A (en) Electronic evidence processing system and method based on social platform
CN111522735A (en) Shunting method and device for test experiment
CN113763211A (en) Infringement detection method and device based on block chain and electronic equipment
CN110941840B (en) Data processing method, system and terminal
CN106157215B (en) Information processing method and device
CN110536118A (en) A kind of data capture method, device and computer storage medium
CN109495471A (en) A kind of pair of WEB attack result determination method, device, equipment and readable storage medium storing program for executing
CN113901136A (en) Distributed processing method and device for product data
CN105512208B (en) Information publishing method, device and system
WO2023125435A1 (en) Directional network detection method and apparatus based on tf-idf algorithm, device and medium
JP2005242988A (en) Log information management system, service providing system, log information management program, service providing program, log information management method, and service providing method
CN114398994A (en) Method, device, equipment and medium for detecting business abnormity based on image identification
US20210390519A1 (en) Storage medium, detection method, and detection device
CN113973119B (en) Distributed management method and device
CN113762970A (en) Data processing method and device, computer readable storage medium and computer equipment
US20180041526A1 (en) Method and apparatus for mutual-aid collusive attack detection in online voting systems
CN112926037A (en) Internet of things authentication method and device and storage medium
CN114428704A (en) Method and device for full-link distributed monitoring, computer equipment and storage medium
CN113612619B (en) Distributed multi-terminal supervision method and device

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