Decentralized information storage node communication network system and methodTechnical Field
The invention relates to the technical field of decentralized information storage, in particular to a decentralized information storage node communication network system and a decentralized information storage node communication method.
Background
When all the existing intelligent terminal networks communicate, centralized data terminal storage nodes can be selected, all data communication needs to access the centralized storage nodes and then put back to the intelligent terminals for judgment and operation, along with the fact that more and more intelligent terminals are accessed to the centralized internet, the infrastructure cost, the maintenance cost and the like of the data center are increased continuously, the data center is easy to attack in a centralized mode, all data are stored in a cloud server database, once abnormity occurs, a data pile villa can cause great loss, the data are easy to tamper, the data in data transmission are easy to leak, networking equipment is easy to control, and user data privacy is difficult to guarantee, so that the data privacy is urgently needed to change.
Disclosure of Invention
The present invention is directed to a decentralized information storage node communication network system and method for solving the above-mentioned problems.
To achieve the above object, the present invention employs a decentralized information storage node communication network system, comprising:
a data layer, a network layer and an interaction contract layer;
the data layer is used for storing the generated data information and storing the data information;
the network layer is used for realizing communication among all distributed nodes in the network;
the interaction contract layer is used for realizing consensus of all distributed nodes in the network under the decentralized environment and allowing interactive access.
Optionally, the data bureau includes an intelligent terminal, a data acquisition module, a transmission communication module, a control module, and a data storage module.
Optionally, a threshold parameter is set in the control module, and when receiving information acquired by the acquisition module itself or communication information of other intelligent terminals, the control module performs data screening and filtering according to the preset threshold parameter, and broadcasts the filtered data in a network layer.
Optionally, there are a plurality of independent distributed nodes in the network layer, configured to store blocks including recorded data, respectively, and link the blocks to form a de-neutralized block network;
the independent distributed nodes at least comprise one branch interactive node, and the branch interactive node is used for establishing an encrypted interactive channel, receiving interactive data submitted by a specific user through the encrypted interactive channel, and sending the interactive data to all the distributed nodes.
Optionally, each time the information content between the multiple independent distributed nodes in the network layer is subjected to hash value calculation, and whether the information content is consistent or not is determined by comparing different hash values between the multiple independent distributed nodes in the network layer.
The invention also adopts a decentralized information storage node communication network method, which comprises the following steps:
1) when the network is initialized, each interactive node in the network layer constructs a message according to the interactive node list broadcast by the sink node, and acquires the parameter information of each other interactive node through the transmission communication module to construct an interactive node list.
2) The intelligent terminal requests interactive information by using a public key, the public key and the interactive information are broadcasted to an interactive node list, a control module signs the interactive information by using a unique private key, the signature information is checked and signed by using the public key, after confirmation, the control module starts an acquisition module to acquire data, hash calculation is carried out on the acquired data, a summary is generated, the hash data and the information summary are signed by using the private key of the distributed node and broadcasted among other distributed nodes in a network layer, other distributed nodes in the interactive node list store the information by using a data storage module, and meanwhile, the acquired data are encrypted by using the public key of the interactive intelligent terminal and are transmitted to the interactive intelligent terminal.
3) After receiving the acquired data encrypted by the distributed interactive nodes in the network layer, the intelligent terminal requesting interaction decrypts the acquired data by using the unique private key, so as to decrypt the original acquired data, the abstract and the hash value, and decrypts the data by using the public key corresponding to the distributed nodes;
4) judging whether each node in the interactive node list allows the current sharing request, if the number of the nodes allowing the current sharing request in the interactive node list is less than half of the total number of the interactive node list, rejecting the current data sharing request, otherwise, allowing the current data sharing operation, broadcasting the data operation block in the interactive node list, judging the correctness and the effectiveness of the data operation block by all nodes in the interactive node list, and if all nodes in the interactive node list achieve consensus on the correctness and the effectiveness of the data operation block, adding the shared data into a data storage module in the interactive node list for data storage;
5) negotiating whether a new external interactive node is allowed to join the interactive node list constructed in S1, broadcasting the joining application in the interactive node list when the new external interactive node sends an application for joining the interactive node list to a certain interactive node in the interactive node list, negotiating by each interactive node in the interactive node list to determine whether to agree with the application, if the negotiation result agrees, storing the parameter information of the node and adding the parameter information at the tail of the interactive node list, broadcasting in the interactive node list, and storing in other interactive nodes in the interactive node list; if the negotiation result is not agreed, the rejected message is broadcasted in the interactive node list
Compared with the prior art, the invention has the following advantages:
according to the invention, each intelligent terminal plays a role of data storage, and all networked terminals can be used as data storage nodes to update own data storage when any terminal is subjected to information updating, so that the terminals can make flexible judgment and response by utilizing local storage data.
The intelligent terminal can be installed, set and maintained independently without a data network center, and comprises an acquisition module, a transmission communication module, a control module and the like, and an independent data storage module, so that the user operation efficiency is greatly improved, and the use threshold is reduced.
In order to avoid data redundancy and too frequent data updating, when the control module receives self-acquisition information or other intelligent terminal communication information, the control module can perform data screening and filtering on preset threshold parameters, and performs node storage and updating on filtered data, so that the storage efficiency is improved.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all embodiments.
A decentralized information storage node communication network system, the system comprising:
the data layer is used for storing the generated data information and storing the data information;
the network layer is used for realizing communication among all distributed nodes in the network;
the interaction contract layer is used for realizing the consensus of each distributed node in the network under the decentralized environment and allowing interactive access.
In this embodiment, the data bureau includes an intelligent terminal, a data acquisition module, a transmission communication module, a control module, and a data storage module.
In this embodiment, a threshold parameter is set in the control module, and when the control module receives information acquired by the acquisition module itself or communication information of other intelligent terminals, the control module performs data filtering according to the preset threshold parameter, and broadcasts the filtered data in the network layer.
In this embodiment, there are a plurality of independent distributed nodes in the network layer, which are used to store the blocks containing the recorded data, respectively, and link the blocks to form a de-neutralized block network;
in this embodiment, the plurality of independent distributed nodes at least include one branch interactive node, and the branch interactive node is configured to establish an encrypted interactive channel, and is configured to receive interactive data submitted by a specific user through the encrypted interactive channel, and send the interactive data to all the distributed nodes.
In this embodiment, each time hash value calculation is performed on information content between a plurality of independent distributed nodes in the network layer, and whether the information content is consistent or not is determined by comparing different hash values between the plurality of independent distributed nodes in the network layer.
A decentralized information storage node communications network method, the method comprising the steps of:
1) when the network is initialized, each interactive node in the network layer constructs a message according to the interactive node list broadcast by the sink node, and acquires the parameter information of each other interactive node through the transmission communication module to construct an interactive node list.
2) The intelligent terminal requests interactive information by using a public key, the public key and the interactive information are broadcasted to an interactive node list, a control module signs the interactive information by using a unique private key, the signature information is checked and signed by using the public key, after confirmation, the control module starts an acquisition module to acquire data, hash calculation is carried out on the acquired data, a summary is generated, the hash data and the information summary are signed by using the private key of the distributed node and broadcasted among other distributed nodes in a network layer, other distributed nodes in the interactive node list store the information by using a data storage module, and meanwhile, the acquired data are encrypted by using the public key of the interactive intelligent terminal and are transmitted to the interactive intelligent terminal.
3) After receiving the acquired data encrypted by the distributed interactive nodes in the network layer, the intelligent terminal requesting interaction decrypts the acquired data by using the unique private key, so as to decrypt the original acquired data, the abstract and the hash value, and decrypts the data by using the public key corresponding to the distributed nodes;
4) judging whether each node in the interactive node list allows the current sharing request, if the number of the nodes allowing the current sharing request in the interactive node list is less than half of the total number of the interactive node list, rejecting the current data sharing request, otherwise, allowing the current data sharing operation, broadcasting the data operation block in the interactive node list, judging the correctness and the effectiveness of the data operation block by all nodes in the interactive node list, and if all nodes in the interactive node list achieve consensus on the correctness and the effectiveness of the data operation block, adding the shared data into a data storage module in the interactive node list for data storage;
5) negotiating whether a new external interactive node is allowed to join the interactive node list constructed in S1, broadcasting the joining application in the interactive node list when the new external interactive node sends an application for joining the interactive node list to a certain interactive node in the interactive node list, negotiating by each interactive node in the interactive node list to determine whether to agree with the application, if the negotiation result agrees, storing the parameter information of the node and adding the parameter information at the tail of the interactive node list, broadcasting in the interactive node list, and storing in other interactive nodes in the interactive node list; and if the negotiation result is not agreed, broadcasting the rejected message in the interactive node list.
While the foregoing disclosure shows illustrative embodiments of the invention, it should be noted that various changes and modifications could be made herein without departing from the scope of the invention as defined by the appended claims. The functions, steps and/or actions of the method claims in accordance with the embodiments of the invention described herein need not be performed in any particular order. Furthermore, although elements of the invention may be described or claimed in the singular, the plural is contemplated unless limitation to the singular is explicitly stated.