CN113973119A - Distributed management method and device - Google Patents

Distributed management method and device Download PDF

Info

Publication number
CN113973119A
CN113973119A CN202111004850.5A CN202111004850A CN113973119A CN 113973119 A CN113973119 A CN 113973119A CN 202111004850 A CN202111004850 A CN 202111004850A CN 113973119 A CN113973119 A CN 113973119A
Authority
CN
China
Prior art keywords
product
information
conditions
data
block
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202111004850.5A
Other languages
Chinese (zh)
Other versions
CN113973119B (en
Inventor
梁远升
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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 CN202111004850.5A priority Critical patent/CN113973119B/en
Publication of CN113973119A publication Critical patent/CN113973119A/en
Application granted granted Critical
Publication of CN113973119B publication Critical patent/CN113973119B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1097Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]
    • 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
    • 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
    • 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
    • G06Q10/00Administration; Management
    • G06Q10/06Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
    • G06Q10/063Operations research, analysis or management
    • G06Q10/0637Strategic management or analysis, e.g. setting a goal or target of an organisation; Planning actions based on goals; Analysis or evaluation of effectiveness of goals
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/08Key distribution or management, e.g. generation, sharing or updating, of cryptographic keys or passwords
    • H04L9/0861Generation of secret information including derivation or calculation of cryptographic keys or passwords
    • H04L9/0869Generation of secret information including derivation or calculation of cryptographic keys or passwords involving random numbers or seeds
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2209/00Additional information or applications relating to cryptographic mechanisms or cryptographic arrangements for secret or secure communication H04L9/00
    • H04L2209/46Secure multiparty computation, e.g. millionaire problem
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/30Computing systems specially adapted for manufacturing

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Theoretical Computer Science (AREA)
  • Human Resources & Organizations (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • Educational Administration (AREA)
  • General Engineering & Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Economics (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Strategic Management (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Tourism & Hospitality (AREA)
  • Quality & Reliability (AREA)
  • General Business, Economics & Management (AREA)
  • Operations Research (AREA)
  • Marketing (AREA)
  • Computing Systems (AREA)
  • Game Theory and Decision Science (AREA)
  • Development Economics (AREA)
  • Computer Security & Cryptography (AREA)
  • Computational Linguistics (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention provides a distributed management method and a distributed management device, 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 management method and device
Technical Field
The present invention relates to distributed management technologies, and in particular, to a distributed management method and apparatus.
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 management method and a distributed management device, which can realize the implementation supervision of a user on the product condition in a product terminal and improve the user experience.
In a first aspect of the embodiments of the present invention, a distributed management method 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 generating an election committee comprising M product peers from the N product peers, wherein M is less than N;
selecting M product ends based on an election committee to generate block product ends, and selecting N product ends to generate Y credible product ends, wherein Y is larger than M and smaller than N, and the block product ends and the Y credible product ends form a distributed storage block chain system;
packaging the product data of the product end based on the block outlet product end to obtain a current block of the product information;
and broadcasting the current block through the block outlet entity terminal, and all nodes store the current block and the 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:
and providing rights and interests for the product end which packs the product data to form the product information based on the server end.
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 management method 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 receiving product information corresponding to the product side, which is obtained by the distributed storage block chain system based on the query information;
receiving a private key of the product end for reading the product information, wherein the private key is sent by the distributed storage area block chain system in response to the rights and interests to chain information of the product end;
wherein the consensus mechanism comprises:
randomly generating an election committee comprising M product peers from the N product peers, wherein M is less than N;
selecting M product ends based on an election committee to generate block product ends, and selecting N product ends to generate Y credible product ends, wherein Y is larger than M and smaller than N, and the block product ends and the Y credible product ends form a distributed storage block chain system;
and packaging the product data of the product end based on the block-out product end to obtain the product information.
In a third aspect of the embodiments of the present invention, a distributed management apparatus is provided, including:
the system comprises an information acquisition module, a data processing module and a data processing module, wherein the information acquisition 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 storage module is used for performing link storage on the product information;
the query receiving 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 private key sending module is used for responding to the rights and interests to chain information of the product end and sending the rights and interests to the chain information to the product end to read the private key of the product information;
wherein the consensus mechanism comprises:
randomly generating an election committee comprising M product peers from the N product peers, wherein M is less than N;
selecting M product ends based on an election committee to generate block product ends, and selecting N product ends to generate Y credible product ends, wherein Y is larger than M and smaller than N, and the block product ends and the Y credible product ends form a distributed storage block chain system;
and packaging the product data of the product end based on the block-out product end to obtain the product information.
A fourth aspect of the embodiments of the present invention provides a distributed management apparatus, including:
the information transmission 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 query sending module is used for sending query information of a user side to the distributed storage block chain system and receiving product information corresponding to the product side, which is obtained by the distributed storage block chain system based on the query information;
the private key receiving 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 generating an election committee comprising M product peers from the N product peers, wherein M is less than N;
selecting M product ends based on an election committee to generate block product ends, and selecting N product ends to generate Y credible product ends, wherein Y is larger than M and smaller than N, and the block product ends and the Y credible product ends form a distributed storage block chain system;
and packaging the product data of the product end based on the block-out product end to obtain the product information.
In a fifth aspect of the embodiments of the present invention, there is provided a distributed management apparatus, 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 and second aspects of the invention and the various possible aspects of the first and second aspects.
A sixth aspect of 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 and second aspects of the present invention and various possible aspects of the first and second aspects.
According to the distributed management method and device provided by the invention, a plurality of product ends are connected to form a block chain system which can be communicated with each other, so that the information of each product end can be stored and shared, a user can access the block chain system, the user can inquire the product information in the product end in real time, the product supervision of the product end is realized, and the 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 schematic flowchart of a distributed management method 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 management apparatus according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of another distributed management apparatus provided in the embodiment of the present invention;
fig. 5 is a schematic diagram of a hardware structure of a distributed management device 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 distributed management method 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 steps S101 to S104, and specifically comprises the following steps:
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 can transmit 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.
In the embodiment, the 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, a user can access the distributed storage block chain system to check the product quality condition in the product ends at any time, the user can master the product quality condition in real time, and the user experience is improved.
Wherein, the consensus mechanism comprises:
randomly generating an election committee comprising M product peers from the N product peers, wherein M is less than N;
selecting M product ends based on an election committee to generate block product ends, and selecting N product ends to generate Y credible product ends, wherein Y is larger than M and smaller than N, and the block product ends and the Y credible product ends form a distributed storage block chain system;
packaging the product data of the product end based on the block outlet product end to obtain a current block of the product information;
and broadcasting the current block through the block outlet entity terminal, and all nodes store the current block and the previous block in a linked manner.
The distributed storage block chain system comprises product end nodes, wherein each product end node comprises a block product end node and Y trusted product end nodes, reward and punishment data are packed by using the block product end to form a current block, and the current block is linked for storage to realize storage of product information.
In some embodiments, randomly generating an election board comprising M product ends from N product ends may be selected according to a preset election model as follows:
first, the participating N Nodes are set as Nodes: ═ Nodesi|i=1,2,…,n},{PrivateKeyi,PublicKeyiIs a nodeiPrivate and public keys of, seedi TIs a nodeiSeed generation of random numbers proposed in round T, Si(Message):=σ(Message,PrivateKeyi) Is a nodeiSignature of Message, { PublicKey before random number Generation Algorithm startsi}i=1,2…nHas been broadcast to each node. Each round of nodeiInformation M of broadcasti T=(Addressi,eedi T,Si(seedi T),SiT)),SiT) Is to let receive Mi TNode of (D) is confirmed to be Mi TIs the basis for the information participating in the T-th round.
The above is the advance setting of the preset election model.
After the preset election model is set, in the T-th round, each nodeiWill put forward a binary number seed of fixed length Li TSelection of LThe selection depends on the total number of nodes n,
Figure BDA0003236900290000071
random number ζ according to this round for each roundTAnd { seedi TI | ═ 1,2, …, n } the first M nodes are selected by sorting the nodes in the following step P1. Then, a random number ζ of the T +1 round is generated through a step P2T+1I.e. random number ζT+1Is a random number for round T +1, each round of which is a binary number of fixed length bits R.
It should be noted that the above is a framework of the preset election model.
It is understood that through the above rounds of random elections, the top M nodes can be selected as an election committee.
Therein, step P1 (random number ζ according to the current round)TRanking Nodes) specifically includes: each node receives and acknowledges seed proposed by all nodesi TAccording to the agreed Hash function Hash (the Hash function Hash can be selected according to the required Hash result length, the selection range of the Hash is not limited), wherein the agreed result length after the Hash is LhAnd (3) calculating:
GSi T:=Hash(Trunked(AppendR(ζT,R,seedi T),R))
Count#1(a)=number of 1sina
Disti T:=ount#1(XOR(upper(GSi T),lower(GSi T)))
where, round (s, l) is an operation of removing the leftmost l bits from the binary number s, and XOR (a, b) is a bitwise XOR of the binary numbers a, b of the same length.
Figure BDA0003236900290000081
AppendR(s,r,d):=LeftShift(s,r)+d
Wherein, leftShift (s, r) is the operation of shifting s to the left by r bits, and for any binary digit n, notation n [ a: b ] is the result of intercepting the nth bit from the (a) th bit to the (b-1) th bit; len (A) is the length of A.
Finally according to Disti TAscending sort selects the top M committees for the current round. If the same occurs, compare Mi TThe order is determined in the arrival sequence of most nodes, and the priority of the earlier average arrival time is higher.
Step P2 (combining the first and last bits of the sequence in P1 to form the random number ζ of the next round)T+1) The method specifically comprises the following steps:
in step P1, the Last node of the ascending sort is recorded simultaneously, which is called that the corresponding generated node is Last, the First node of the ascending sort is First,
Figure BDA0003236900290000082
it will be appreciated that this step may generate a random number ζ for the T +1 roundT+1
It should be noted that in the scheme, multiple rounds of random selection are adopted through a preset election model, M nodes are randomly selected from any N nodes to serve as a committee, all the N nodes have a selection participation process, and the selection process cannot be jointly controlled by a few participants to select a result.
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 to the distributed storage block chain system to query the product information of the product side, and the user side 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.
And 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 which is sent by the distributed storage area block chain and used for reading the product information, and the private key is used for reading the product information.
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 terminals to package and uplink respective data, the server terminal can also provide rights and interests for the product terminals which package the product data to form the product information.
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, which is a schematic structural diagram of a distributed management apparatus according to an embodiment of the present invention, the distributed management apparatus includes:
the system comprises an information acquisition module, a data processing module and a data processing module, wherein the information acquisition 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 storage module is used for performing link storage on the product information;
the query receiving 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 private key sending module is used for responding to the rights and interests to chain information of the product end and sending the rights and interests to the chain information to the product end to read the private key of the product information;
wherein the consensus mechanism comprises:
randomly generating an election committee comprising M product peers from the N product peers, wherein M is less than N;
selecting M product ends based on an election committee to generate block product ends, and selecting N product ends to generate Y credible product ends, wherein Y is larger than M and smaller than N, and the block product ends and the Y credible product ends form a distributed storage block chain system;
and packaging the product data of the product end based on the block-out product end to obtain the product information.
Correspondingly, referring to fig. 4, a schematic structural diagram of another distributed management apparatus provided in the embodiment of the present invention is shown, where the distributed management apparatus includes:
the information transmission 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 query sending module is used for sending query information of a user side to the distributed storage block chain system and receiving product information corresponding to the product side, which is obtained by the distributed storage block chain system based on the query information;
the private key receiving module is used for receiving a private key of the product end for reading the product information, and the private key is sent by the distributed storage area block chain system in response to the rights and interests to chain information of the product end;
wherein the consensus mechanism comprises:
randomly generating an election committee comprising M product peers from the N product peers, wherein M is less than N;
selecting M product ends based on an election committee to generate block product ends, and selecting N product ends to generate Y credible product ends, wherein Y is larger than M and smaller than N, and the block product ends and the Y credible product ends form a distributed storage block chain system;
and packaging the product data of the product end based on the block-out product end to obtain the product information.
The apparatus of the above embodiment can 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, which is a schematic diagram of a hardware structure of a distributed management apparatus according to an embodiment of the present invention, the distributed management apparatus 50 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 distributed management method, 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 generating an election committee comprising M product peers from the N product peers, wherein M is less than N;
selecting M product ends based on an election committee to generate block product ends, and selecting N product ends to generate Y credible product ends, wherein Y is larger than M and smaller than N, and the block product ends and the Y credible product ends form a distributed storage block chain system;
packaging the product data of the product end based on the block outlet product end to obtain a current block of the product information;
and broadcasting the current block through the block outlet entity terminal, and all nodes store the current block and the 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 or 2, further comprising:
and providing rights and interests for the product end which packs the product data to form the product information based on the server end.
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 distributed management method, 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 receiving product information corresponding to the product side, which is obtained by the distributed storage block chain system based on the query information;
receiving a private key for reading the product information, wherein the private key is sent by the distributed storage block chain system in response to the rights to chain information of the user side;
wherein the consensus mechanism comprises:
randomly generating an election committee comprising M product peers from the N product peers, wherein M is less than N;
selecting M product ends based on an election committee to generate block product ends, and selecting N product ends to generate Y credible product ends, wherein Y is larger than M and smaller than N, and the block product ends and the Y credible product ends form a distributed storage block chain system;
and packaging the product data of the product end based on the block-out product end to obtain the product information.
9. A distributed management apparatus, comprising:
the system comprises an information acquisition module, a data processing module and a data processing module, wherein the information acquisition 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 storage module is used for performing link storage on the product information;
the query receiving 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 private key sending 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 user side to read the private key of the product information;
wherein the consensus mechanism comprises:
randomly generating an election committee comprising M product peers from the N product peers, wherein M is less than N;
selecting M product ends based on an election committee to generate block product ends, and selecting N product ends to generate Y credible product ends, wherein Y is larger than M and smaller than N, and the block product ends and the Y credible product ends form a distributed storage block chain system;
and packaging the product data of the product end based on the block-out product end to obtain the product information.
10. A distributed management apparatus, comprising:
the information transmission 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 query sending module is used for sending query information of a user side to the distributed storage block chain system and receiving product information corresponding to the product side, which is obtained by the distributed storage block chain system based on the query information;
the private key receiving 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 generating an election committee comprising M product peers from the N product peers, wherein M is less than N;
selecting M product ends based on an election committee to generate block product ends, and selecting N product ends to generate Y credible product ends, wherein Y is larger than M and smaller than N, and the block product ends and the Y credible product ends form a distributed storage block chain system;
and packaging the product data of the product end based on the block-out product end to obtain the product information.
CN202111004850.5A 2021-08-30 2021-08-30 Distributed management method and device Active CN113973119B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111004850.5A CN113973119B (en) 2021-08-30 2021-08-30 Distributed management method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111004850.5A CN113973119B (en) 2021-08-30 2021-08-30 Distributed management method and device

Publications (2)

Publication Number Publication Date
CN113973119A true CN113973119A (en) 2022-01-25
CN113973119B CN113973119B (en) 2024-03-08

Family

ID=79586390

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111004850.5A Active CN113973119B (en) 2021-08-30 2021-08-30 Distributed management method and device

Country Status (1)

Country Link
CN (1) CN113973119B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108768630A (en) * 2018-05-25 2018-11-06 全链通有限公司 The encryption communication method and system of block chain node
US20190180291A1 (en) * 2016-10-01 2019-06-13 James L. Schmeling 3d-printed packaging with blockchain integration
CN110083620A (en) * 2019-03-21 2019-08-02 深圳壹账通智能科技有限公司 Based on the data query method and device of block chain, storage medium, electronic device
US20190295336A1 (en) * 2018-03-23 2019-09-26 The Boeing Company Blockchain configuration history for vehicle maintenance, modification, and activity tracking
CN110647586A (en) * 2019-09-25 2020-01-03 北京艾摩瑞策科技有限公司 Artwork transfer information tracing method and device based on block chain
CN110990456A (en) * 2019-11-29 2020-04-10 山东爱城市网信息技术有限公司 Block chain-based information reading and converting method, device and medium
CN111369267A (en) * 2020-03-05 2020-07-03 广州宏算信息科技有限公司 Fruit and vegetable agricultural product tracing method, device and system based on block chain and storage medium
CN111950010A (en) * 2020-08-14 2020-11-17 南京邮电大学 Shared bicycle accountability method combining block chain technology and cloud storage technology

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190180291A1 (en) * 2016-10-01 2019-06-13 James L. Schmeling 3d-printed packaging with blockchain integration
US20190295336A1 (en) * 2018-03-23 2019-09-26 The Boeing Company Blockchain configuration history for vehicle maintenance, modification, and activity tracking
CN108768630A (en) * 2018-05-25 2018-11-06 全链通有限公司 The encryption communication method and system of block chain node
CN110083620A (en) * 2019-03-21 2019-08-02 深圳壹账通智能科技有限公司 Based on the data query method and device of block chain, storage medium, electronic device
CN110647586A (en) * 2019-09-25 2020-01-03 北京艾摩瑞策科技有限公司 Artwork transfer information tracing method and device based on block chain
CN110990456A (en) * 2019-11-29 2020-04-10 山东爱城市网信息技术有限公司 Block chain-based information reading and converting method, device and medium
CN111369267A (en) * 2020-03-05 2020-07-03 广州宏算信息科技有限公司 Fruit and vegetable agricultural product tracing method, device and system based on block chain and storage medium
CN111950010A (en) * 2020-08-14 2020-11-17 南京邮电大学 Shared bicycle accountability method combining block chain technology and cloud storage technology

Also Published As

Publication number Publication date
CN113973119B (en) 2024-03-08

Similar Documents

Publication Publication Date Title
CN106549974B (en) Device, method and system for predicting whether social network account is malicious or not
CN108764966A (en) Advertisement placement method, block chain node device and relevant device
CN111784462B (en) Transaction processing method, client, processing terminal and system based on blockchain
CN112000454A (en) Multimedia data processing method and equipment
CN109495378A (en) Detect method, apparatus, server and the storage medium of abnormal account number
CN107766470A (en) Intelligent statistical method, Intelligent statistical display methods and the device of a kind of data sharing
CN110990790B (en) Data processing method and equipment
CN108989881A (en) A kind of main broadcaster's state determines method and device
CN108648017B (en) User requirement matching method, device, equipment and storage medium easy to expand
CN113973119A (en) Distributed management method and device
CN112822208A (en) Internet of things equipment identification method and system based on block chain
CN115310137B (en) Secrecy method and related device of intelligent settlement system
CN113901136A (en) Distributed processing method and device for product data
CN115527090A (en) Model training method, device, server and storage medium
CN112422480B (en) Method and device for determining account attribute, storage medium and electronic device
CN114398994A (en) Method, device, equipment and medium for detecting business abnormity based on image identification
CN113596180B (en) Distributed multi-end docking method and device
CN112131602A (en) Method and device for quickly expanding trust relationship between nodes based on trusted computing and related products
CN111125536A (en) Information pushing method and device, computer equipment and storage medium
Chu et al. Decentralized private information sharing protocol on social networks
CN113596182B (en) Distributed multi-terminal service method and device
CN114547186A (en) Decentralized service supervision method and device
CN113922993B (en) Distributed acquisition data control method and device
CN113612619B (en) Distributed multi-terminal supervision method and device
CN113949711B (en) Distributed process data processing 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
GR01 Patent grant
GR01 Patent grant