CN113973119B - Distributed management method and device - Google Patents

Distributed management method and device Download PDF

Info

Publication number
CN113973119B
CN113973119B CN202111004850.5A CN202111004850A CN113973119B CN 113973119 B CN113973119 B CN 113973119B CN 202111004850 A CN202111004850 A CN 202111004850A CN 113973119 B CN113973119 B CN 113973119B
Authority
CN
China
Prior art keywords
product
information
user
block
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202111004850.5A
Other languages
Chinese (zh)
Other versions
CN113973119A (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

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

Abstract

The invention provides a distributed management method and a distributed management device, wherein product information in each product end is obtained by acquiring product information, wherein 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 packing product data of the product end by the product end according to a consensus mechanism; carrying out link storage on the product information; receiving inquiry information of a user terminal, and acquiring product information corresponding to the product terminal based on the inquiry information; and responding to the rights and interests link information of the product end, and sending the rights and interests link information to the product end to read the private key of the product information.

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 are emerging at more and more product ends, and product services are provided for users.
However, since the product ends are scattered in various places, the manager cannot monitor in real time, and the user cannot know the actual condition of the product in the product end, the situation that the product end cannot meet the user requirement or the product quality occurs frequently occurs, so how to allow the user to monitor the product condition of the product end in real time becomes a problem to be solved urgently.
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 condition of products in a product end and improve the user experience.
In a first aspect of an embodiment of the present invention, a distributed management method is provided, including:
obtaining product information in each product end, wherein 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 packing product data of the product end by the product end according to a consensus mechanism;
carrying out link storage on the product information;
receiving inquiry information of a user terminal, and acquiring product information corresponding to the product terminal based on the inquiry information;
responding to the rights and links information of the user side, and sending the rights and links information 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 ends from the N product ends, wherein M is less than N;
generating block product ends from M product ends based on election committee election, and generating Y trusted product ends from N product ends, wherein Y is greater than M and less than N, and the block product ends and Y trusted product ends form a distributed storage block chain system;
based on the product data of the product end, the product end is packaged to obtain the current block of the product information;
broadcasting the current block through the block outlet entity end, and storing the current block and the previous block in a link way by all nodes.
Optionally, in one possible implementation manner of the first aspect, before the product information is obtained by the 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 the number of products and the expiration date of the products;
wherein each product and the expiration date of each product are within the imaging range of the vision sensor.
Optionally, in one possible implementation manner of the first aspect, the method further includes:
providing benefits to the product end, which packages the product data to form the product information, based on the service end.
Optionally, in one possible implementation manner of the first aspect, the method further includes:
receiving the fault evidence of the user side to the product side, and forwarding the fault evidence to an overhaul side for verification treatment;
receiving fault verification information of the overhaul terminal;
and providing benefits to the user side providing the fault proof based on the fault verification information.
Optionally, in a possible implementation manner of the first aspect, the product side is provided with a user detector, and 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, based on the user detector, proximity data of a user, the method further includes:
if the product information indicates that the number of the corresponding products is 0, positioning information of a plurality of product ends is obtained;
acquiring position information adjacent to the product end based on the product information and the positioning information, wherein the number of products of corresponding products 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 through voice.
In a second aspect of the embodiment of the present invention, a distributed management method is provided, including:
transmitting product information in each product end to a distributed storage area block chain system for link storage, wherein the product information is used for indicating the product condition in the product end, the product condition at least comprises a quantity condition and a quality condition, and the product information is obtained by packing product data of the product end by the product end according to a consensus mechanism;
the query information of the user side is sent to the distributed storage area block chain system, and the product information corresponding to the product side is obtained by the distributed storage area 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 block chain system in response to the rights and interests of the product end;
wherein the consensus mechanism comprises:
randomly generating an election committee comprising M product ends from the N product ends, wherein M is less than N;
generating block product ends from M product ends based on election committee election, and generating Y trusted product ends from N product ends, wherein Y is greater than M and less than N, and the block product ends and Y trusted product ends form a distributed storage block chain system;
and packing the product data of the product end based on the block-out product end to acquire the product information.
In a third aspect of an embodiment of the present invention, there is provided a distributed management apparatus, including:
the information acquisition module is used for acquiring product information in each product end, wherein 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 packing product data of the product end by the product end according to a consensus mechanism;
the storage module is used for storing the product information in a linked manner;
the query receiving module is used for receiving query information of a user terminal and acquiring product information corresponding to the product terminal based on the query information;
the private key sending module is used for responding to the rights and interests of the product end and sending 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 ends from the N product ends, wherein M is less than N;
generating block product ends from M product ends based on election committee election, and generating Y trusted product ends from N product ends, wherein Y is greater than M and less than N, and the block product ends and Y trusted product ends form a distributed storage block chain system;
and packing the product data of the product end based on the block-out product end to acquire the product information.
In a fourth aspect of an embodiment of the present invention, there is provided a distributed management apparatus, including:
the information transmission module is used for transmitting the product information in each product end to the distributed storage area block chain system for link storage, the product information is used for indicating the product condition in the product end, the product condition at least comprises the quantity condition and the quality condition, and the product information is obtained by packing the product data of the product end by the product end according to a consensus mechanism;
the query sending module is used for sending query information of a user side to the distributed storage area block chain system, and receiving the product information corresponding to the product side by the distributed storage area 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 ends from the N product ends, wherein M is less than N;
generating block product ends from M product ends based on election committee election, and generating Y trusted product ends from N product ends, wherein Y is greater than M and less than N, and the block product ends and Y trusted product ends form a distributed storage block chain system;
and packing the product data of the product end based on the block-out product end to acquire the product information.
In a fifth aspect of an embodiment of the present invention, there is provided a distributed management apparatus, including: a memory, a processor and a computer program stored in the memory, the processor running the computer program to perform the first and second aspects of the invention and the methods with which the first and second aspects may be related.
A sixth aspect of the embodiments of the present invention provides a readable storage medium having stored therein a computer program for implementing the first and second aspects of the present invention and the methods that the first and second aspects may relate to when executed by a processor.
According to the distributed management method and device provided by the invention, a plurality of product ends are connected to form the blockchain system capable of communicating with each other, so that the storage and sharing of information of each product end are realized, a user can access the blockchain system, the real-time inquiry of the user on the product information in the product end is realized, the product supervision of the product end is realized, and the user experience is improved. In addition, the manager of the product end can also supervise the product end based on the product information, so that the service for the user is improved.
Drawings
FIG. 1 is a schematic flow chart of a distributed management method according to an embodiment of the present invention;
FIG. 2 is a schematic 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 according to an embodiment of the present invention;
fig. 5 is a schematic hardware structure of a distributed management device according to an embodiment of the present invention.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
The terms "first," "second," "third," "fourth" and the like in the description and in the claims and in the above drawings, if any, are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the invention described herein may be implemented in sequences other than those illustrated or otherwise described herein.
It should be understood that, in various embodiments of the present invention, the sequence number of each process does not mean that the execution sequence of each process should be determined by its functions and internal logic, 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 invention, "comprising" and "having" and any variations thereof are intended to cover 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 that are expressly listed or inherent to such process, method, article, or apparatus.
It should be understood that in the present invention, "plurality" means two or more. "and/or" is merely an association relationship describing an association object, and means that three relationships may exist, for example, and/or B may mean: a exists alone, A and B exist together, and B exists alone. The character "/" generally indicates that the context-dependent object is an "or" relationship. "comprising A, B and C", "comprising A, B, C" means that all three of A, B, C comprise, "comprising A, B or C" means that one of the three comprises A, B, C, and "comprising A, B and/or C" means that any 1 or any 2 or 3 of the three comprises A, B, C.
It should be understood that in the present invention, "B corresponding to a", "a corresponding to B", or "B corresponding to a" means that B is associated with a, from which B can be determined. Determining B from a does not mean determining B from a alone, but may also determine B from a and/or other information. The matching of A and B is that the similarity of A and B is larger than or equal to a preset threshold value.
As used herein, "if" may be interpreted as "at … …" or "at … …" or "in response to a determination" or "in response to detection" depending on the context.
The technical scheme of the invention is described in detail below by specific examples. The following embodiments may be combined with each other, and some embodiments may not be repeated for the same or similar concepts or processes.
Referring to fig. 1, a flowchart of a distributed management method according to an embodiment of the present invention is shown, where an execution body of the method shown in fig. 1 may be a software and/or hardware device. The execution bodies of the present application may include, but are not limited to, at least one of: user equipment, network equipment, etc. The user equipment may include, but is not limited to, computers, smart phones, personal digital assistants (Personal Digital Assistant, abbreviated as PDA), and the above-mentioned electronic devices. 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 a large number of computers or network servers based on cloud computing, where cloud computing is one of distributed computing, and a super virtual computer consisting of a group of loosely coupled computers. This embodiment is not limited thereto.
The method comprises the steps of S101 to S104, and specifically comprises the following steps:
s101, a distributed storage block chain system acquires product information in each product end, wherein 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 packing product data of the product end by the product end according to a consensus mechanism.
Correspondingly, the product end can transmit product information in each product end to the distributed storage area block chain system for link storage, the product information is used for indicating the product condition in the product end, the product condition at least comprises the quantity condition and the quality condition, and the product information is obtained by packing the product data of the product end by the product end according to a consensus mechanism.
Specifically, the product information of the product end concerned by the user is generally whether the quantity can meet the requirement of purchasing or how the quality of the purchased product is safe, and taking food as an example, the user finds that the food is sold after reaching the product end or the user can take a safety accident after the product is out of date.
According to the embodiment, all the product ends are connected to form the distributed storage block chain system capable of communicating with each other, the product ends are used as nodes in the distributed storage block chain system, product information can be packaged and obtained by utilizing a consensus mechanism and stored in the block chain system, a user can access the distributed storage block chain system to check the quality condition of the product in the product ends at any time, grasp in real time, avoid putting out the air, or buy out the expired product, and improve user experience.
Wherein the consensus mechanism comprises:
randomly generating an election committee comprising M product ends from the N product ends, wherein M is less than N;
generating block product ends from M product ends based on election committee election, and generating Y trusted product ends from N product ends, wherein Y is greater than M and less than N, and the block product ends and Y trusted product ends form a distributed storage block chain system;
based on the product data of the product end, the product end is packaged to obtain the current block of the product information;
broadcasting the current block through the block outlet entity end, and storing the current block and the previous block in a link way by all nodes.
It can be understood that the distributed storage blockchain system of the scheme is composed of all product end nodes, wherein the distributed storage blockchain system comprises a block-out product end node and Y trusted product end nodes, and then the block-out product end is utilized to package punishment and punishment data to form a current block, and the current block is linked for storage so as to realize storage of product information.
In some embodiments, randomly generating an election committee comprising M product ends from N product ends may be based on a preset election model, the preset election model being as follows:
first, the participating N Nodes are set as Nodes = { node i |i=1,2,…,n},{PrivateKey i ,PublicKey i The } is a node i Private and public keys of (a), seed i T Is a node i Seed generation of random number proposed in the T-th round, S i (Message):=σ(Message,PrivateKey i ) Is a node i Signature of Message and { public Key before random number generation algorithm starts i } i=1,2…n Has been broadcast to each node. Each wheel node i Broadcast information M i T =(Address i ,eed i T ,S i (seed i T ),S iT )),S iT ) Let receive M i T Node determination M of (1) i T Is the basis for the information involved in the T-th round.
The foregoing is a preset selection model.
After the preset election model is set, at the T-th round, each node i A binary number seed of a fixed length L is proposed i T The choice of L depends on the total number of nodes n,each round is based on the random number ζ of the round T And { seed } i T I=1, 2, …, n } the nodes are ordered by the following step P1, thereby selecting the first M nodes. Then generating a random number ζ of a T+1 round through the step P2 T+1 I.e. random number ζ T+1 Is a t+1 round of random numbers, each round of random numbers being a binary number of a fixed length bit R.
It should be noted that the above is a framework of the preset election model.
It will be appreciated that the first M nodes may be selected as the election committee after the above number of rounds of random election.
Wherein step P1 (according to the present inventionRandom number ζ of previous round T Ordering the Nodes) specifically includes: each node receives and acknowledges all the proposed seed i T According 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 here), the agreed result length Ha Xihou is L h And (3) calculating:
GS i T :=Hash(Trunked(AppendR(ζ T ,R,seed i T ),R))
Count #1 (a)=number of 1sina
Dist i T :=ount #1 (XOR(upper(GS i T ),lower(GS i T )))
where trunk (s, l) is an operation to remove the leftmost l bits from the binary number s, and XOR (a, b) is a bitwise exclusive or of the binary numbers a, b of the same length.
AppendR(s,r,d):=LeftShift(s,r)+d
Wherein, the LeftShift (s, r) is the operation of shifting s left by r bits, and n is recorded as the result after intercepting the n a bit to the b-1 bit for any binary digit n; len (a) is the length of a.
Finally according to Dist i T The first M are selected as committees of current rounds by ascending sort. If the same occurs, compare M i T The order is determined in the order of arrival of most nodes, and the priority of the average arrival time is higher.
Step P2 (combining the first and last bits ordered in P1 to form the random number ζ of the next round T+1 ) The method specifically comprises the following steps:
in the step P1, the Last node of the ascending sort is called as Last, the First node of the ascending sort is First,
it will be appreciated that this step may generate a random number ζ of the T+1 round T+1
It should be noted that, in the scheme, multiple rounds of random selection are adopted through the preset election model, M nodes are randomly selected from any N nodes to serve as committee, all N nodes have a process of participating in selection, and the selection process cannot be controlled by a few participants in a combined manner to select a result.
In practical application, the product data can be collected based on a visual sensor installed at the product end, and the product data comprises the number of products and the expiration date of the products, wherein each product and the expiration date of the products are located in the shooting range of the visual sensor.
It will be appreciated that the visual sensor needs to be able to capture an overview of the product, and also be able to capture the expiration date of the product, which is then packaged for storage. The vision sensor can be, for example, a camera and an image processor, wherein the camera is used for collecting product pictures, and the image processor is used for processing the collected product pictures to obtain the number of products and the expiration date of the products.
S102, the distributed storage block chain system carries out link storage on the product information.
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 the uplink storage of the product information.
S103, the distributed storage block chain system receives query information of a user terminal and obtains product information corresponding to the product terminal based on the query information.
Correspondingly, the user side sends query information to the distributed storage area block chain system to query the product information of the product side, and the user side receives the product information of the corresponding product side based on the query information by the distributed storage area block chain system.
Specifically, when the user wants to know the product condition in the product end, the user can input query information into the blockchain system to perform targeted query.
For example, a user may input identification information related to the product end 1 to implement query positioning of the product end 1, for example, may input query information such as "product end 1" to implement a query operation, in order to query a product condition in the product end 1.
S104, the distributed storage block chain system responds to the rights and interests of the user side and sends the rights and interests information to the user side to read the private key of the product information.
Correspondingly, the user side receives a private key for reading the product information sent by the distributed storage block chain, and reads the product information.
Specifically, after the user queries the product information, the user needs to read the product information by using the private key, so that 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 package and link the respective data, the service end can provide benefits for the product end which packages the product data to form the product information.
The embodiment can realize real-time query of the user on the product information in the product end, realize product supervision of the product end and improve user experience. In addition, the manager of the product end can also supervise the product end based on the product information, so that the service for the user is improved.
In actual use, the product end inevitably fails, so as to timely maintain the product end, and a stable service client is further included on the basis of the above embodiment:
receiving the fault evidence of the user side to the product side, and forwarding the fault evidence to an overhaul side for verification treatment;
receiving fault verification information of the overhaul terminal;
and providing benefits to the user side providing the fault proof based on the fault verification information.
It can be understood that when the product end fails, the user end can timely upload the failure proof, the blockchain system forwards the failure proof to the maintenance end for verification, and if the failure occurs, the maintenance end can timely maintain, and the blockchain system can provide benefits for the user end providing the failure proof.
In practical use, a user detector may be provided at the product end, and proximity data of the user may be obtained 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 that generates data when the proximity of a user is detected.
For better service of the customer, after the user proximity data is acquired based on the user detector, the method further comprises:
if the product information indicates that the number of the corresponding products is 0, positioning information of a plurality of product ends is obtained;
acquiring position information adjacent to the product end based on the product information and the positioning information, wherein the number of products of corresponding products adjacent to the product end is at least 1;
the location information can be displayed, for example, by voice, or can be displayed based on a display module at the product end.
It can be understood that the embodiment can recommend the product end positions with the number of products larger than 1 in the adjacent product ends to the user, display the positions to the user, and the user can go to enjoy service according to the displayed positions, so that the user experience is further improved.
It should be noted that, the positioning information may be pre-stored in the blockchain system, for example, there are 100 product ends, and then 100 pieces of corresponding positioning information are pre-stored.
Referring to fig. 3, a schematic structural diagram of a distributed management device according to an embodiment of the present invention is provided, where the distributed management device includes:
the information acquisition module is used for acquiring product information in each product end, wherein 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 packing product data of the product end by the product end according to a consensus mechanism;
the storage module is used for storing the product information in a linked manner;
the query receiving module is used for receiving query information of a user terminal and acquiring product information corresponding to the product terminal based on the query information;
the private key sending module is used for responding to the rights and interests of the product end and sending 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 ends from the N product ends, wherein M is less than N;
generating block product ends from M product ends based on election committee election, and generating Y trusted product ends from N product ends, wherein Y is greater than M and less than N, and the block product ends and Y trusted product ends form a distributed storage block chain system;
and packing the product data of the product end based on the block-out product end to acquire the product information.
Accordingly, referring to fig. 4, a schematic structural diagram of another distributed management apparatus according to an embodiment of the present invention is provided, where the distributed management apparatus includes:
the information transmission module is used for transmitting the product information in each product end to the distributed storage area block chain system for link storage, the product information is used for indicating the product condition in the product end, the product condition at least comprises the quantity condition and the quality condition, and the product information is obtained by packing the product data of the product end by the product end according to a consensus mechanism;
the query sending module is used for sending query information of a user side to the distributed storage area block chain system, and receiving the product information corresponding to the product side by the distributed storage area 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 product end, and the private key is sent by the distributed storage block chain system in response to the rights and interests of the product end;
wherein the consensus mechanism comprises:
randomly generating an election committee comprising M product ends from the N product ends, wherein M is less than N;
generating block product ends from M product ends based on election committee election, and generating Y trusted product ends from N product ends, wherein Y is greater than M and less than N, and the block product ends and Y trusted product ends form a distributed storage block chain system;
and packing the product data of the product end based on the block-out product end to acquire the product information.
The apparatus of the above embodiment may be correspondingly used to perform the steps in the method embodiment shown in fig. 1, and the implementation principle and technical effects are similar, and are not repeated herein.
Referring to fig. 5, a schematic hardware structure of a distributed management device according to an embodiment of the present invention is provided, where the distributed management device 50 includes: a processor 51, a memory 52 and a computer program; wherein the method comprises the steps of
A memory 52 for storing the computer program, which memory may also be a flash memory (flash). Such as application programs, functional modules, etc. implementing the methods described above.
A processor 51 for executing the computer program stored in the memory to implement the steps executed by the apparatus in the above method. Reference may be made in particular to the description of the embodiments of the method described above.
Alternatively, the memory 52 may be separate or integrated with the processor 51.
When the memory 52 is a device separate from 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 having stored therein a computer program for implementing the methods provided by the various embodiments described above when executed by a processor.
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 can 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. In the alternative, the readable storage medium may be integral to the processor. The processor and the readable storage medium may reside in an application specific integrated circuit (Application Specific Integrated Circuits, ASIC for short). In addition, the ASIC may reside in a user device. The processor and the readable storage medium may reside as discrete components in a communication device. The readable storage medium may be read-only memory (ROM), random-access memory (RAM), CD-ROMs, magnetic tape, floppy disk, optical data storage device, etc.
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, the execution instructions being executed by the at least one processor to cause the device to implement the methods provided by the various embodiments described above.
In the above embodiment of the apparatus, it should be understood that the processor may be a central processing unit (english: central Processing Unit, abbreviated as CPU), or may be other general purpose processors, digital signal processors (english: digital Signal Processor, abbreviated as DSP), application specific integrated circuits (english: application Specific Integrated Circuit, abbreviated as ASIC), or the like. 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 for execution, or in a combination of hardware and software modules in a processor for execution.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present invention, and not for limiting the same; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some or all of the technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit of the invention.

Claims (4)

1. A distributed management method, comprising:
obtaining product information in each product end, wherein 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 packing product data of the product end by the product end according to a consensus mechanism;
carrying out link storage on the product information;
receiving inquiry information of a user terminal, and acquiring product information corresponding to the product terminal based on the inquiry information;
responding to the rights and links information of the user side, and sending the rights and links information 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 ends from the N product ends, wherein M is less than N;
generating block product ends from M product ends based on election committee election, and generating Y trusted product ends from N product ends, wherein Y is greater than M and less than N, and the block product ends and Y trusted product ends form a distributed storage block chain system;
based on the product data of the product end, the product end is packaged to obtain the current block of the product information;
broadcasting the current block through the block outlet entity end, and storing the current block and the previous block in a link way by all nodes;
receiving the fault evidence of the user side to the product side, and forwarding the fault evidence to an overhaul side for verification treatment;
receiving fault verification information of the overhaul terminal;
providing benefits to the user side providing the fault proof based on the fault verification information;
the product end is provided with a user detector, and proximity data of a user is acquired based on the user detector;
after the user proximity data is acquired based on the user detector, the method further comprises:
if the product information indicates that the number of the corresponding products is 0, positioning information of a plurality of product ends is obtained;
acquiring position information adjacent to the product end based on the product information and the positioning information, wherein the number of products of corresponding products adjacent to the product end is at least 1;
displaying the position information;
the displaying the location information includes:
and displaying the position information through voice.
2. The method of claim 1, further comprising, before the product information is obtained by a product end packaging product data of the product end according to a consensus mechanism:
collecting the product data based on a visual sensor installed at the product end, wherein the product data comprises the number of products and the expiration date of the products;
wherein each product and the expiration date of each product are within the imaging range of the vision sensor.
3. The method according to claim 1 or 2, further comprising:
providing benefits to the product end, which packages the product data to form the product information, based on the service end.
4. A distributed management apparatus, comprising:
the information acquisition module is used for acquiring product information in each product end, wherein 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 packing product data of the product end by the product end according to a consensus mechanism;
the storage module is used for storing the product information in a linked manner;
the query receiving module is used for receiving query information of a user terminal and acquiring product information corresponding to the product terminal based on the query information;
the private key sending module is used for responding to the rights and interests link information of the user side and sending the private key 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 ends from the N product ends, wherein M is less than N;
generating block product ends from M product ends based on election committee election, and generating Y trusted product ends from N product ends, wherein Y is greater than M and less than N, and the block product ends and Y trusted product ends form a distributed storage block chain system;
based on the product data of the product end, the product end is packaged to obtain the current block of the product information;
broadcasting the current block through the block outlet entity end, and storing the current block and the previous block in a link way by all nodes;
receiving the fault evidence of the user side to the product side, and forwarding the fault evidence to an overhaul side for verification treatment;
receiving fault verification information of the overhaul terminal;
providing benefits to the user side providing the fault proof based on the fault verification information;
the product end is provided with a user detector, and proximity data of a user is acquired based on the user detector;
after the user proximity data is acquired based on the user detector, the method further comprises:
if the product information indicates that the number of the corresponding products is 0, positioning information of a plurality of product ends is obtained;
acquiring position information adjacent to the product end based on the product information and the positioning information, wherein the number of products of corresponding products adjacent to the product end is at least 1;
displaying the position information;
the displaying the location information includes:
and displaying the position information through voice.
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 CN113973119A (en) 2022-01-25
CN113973119B true 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 (6)

* 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
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

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11716211B2 (en) * 2016-10-01 2023-08-01 James L. Schmeling 3D-printed packaging with blockchain integration
US11315369B2 (en) * 2018-03-23 2022-04-26 The Boeing Company Blockchain configuration history for vehicle maintenance, modification, and activity tracking

Patent Citations (6)

* 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
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
CN113973119A (en) 2022-01-25

Similar Documents

Publication Publication Date Title
CN107819891A (en) Data processing method, device, computer equipment and storage medium
CN111262851A (en) DDOS attack detection method and device, electronic equipment and storage medium
CN110781153B (en) Cross-application information sharing method and system based on block chain
WO2019056496A1 (en) Method for generating picture review probability interval and method for picture review determination
CN112188247A (en) Data transmission method, device, equipment and computer readable storage medium
CN113973119B (en) Distributed management method and device
CN110536118A (en) A kind of data capture method, device and computer storage medium
CN108076149B (en) Session maintaining method and device
CN112200680B (en) Block link point management method, device, computer and readable storage medium
CN112822208A (en) Internet of things equipment identification method and system based on block chain
CN111241404A (en) Information recommendation method and device and computer readable storage medium
CN110262892A (en) A kind of ticketing service dissemination method based on distributed storage data-link, device and data-link node
CN115310137A (en) Secrecy method and related device of intelligent settlement system
CN112311667B (en) Message transmission method, device, equipment and storage medium
CN113922993B (en) Distributed acquisition data control method and device
CN112131602B (en) Method, device and related product for quickly expanding trust relationship between nodes based on trusted computing
CN113596182B (en) Distributed multi-terminal service method and device
CN113901136A (en) Distributed processing method and device for product data
CN113949711B (en) Distributed process data processing method and device
CN113612619B (en) Distributed multi-terminal supervision method and device
CN114707606B (en) Data processing method and device based on federal learning, equipment and storage medium
CN114547186A (en) Decentralized service supervision method and device
CN113542439B (en) Distributed data storage access method and device
CN113901139A (en) Distributed service method, device and system
CN110442552B (en) Integrity calculation method and system

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