CN112003925A - Block chain-based Internet of things data storage method and Internet of things system - Google Patents

Block chain-based Internet of things data storage method and Internet of things system Download PDF

Info

Publication number
CN112003925A
CN112003925A CN202010846153.3A CN202010846153A CN112003925A CN 112003925 A CN112003925 A CN 112003925A CN 202010846153 A CN202010846153 A CN 202010846153A CN 112003925 A CN112003925 A CN 112003925A
Authority
CN
China
Prior art keywords
data
internet
things
node
block chain
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010846153.3A
Other languages
Chinese (zh)
Inventor
唐毅
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Heshu Software Co ltd
Original Assignee
Shanghai Heshu Software 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 Shanghai Heshu Software Co ltd filed Critical Shanghai Heshu Software Co ltd
Priority to CN202010846153.3A priority Critical patent/CN112003925A/en
Publication of CN112003925A publication Critical patent/CN112003925A/en
Pending legal-status Critical Current

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]
    • 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/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
    • 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/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • 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/50Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols using hash chains, e.g. blockchains or hash trees

Abstract

The application discloses a block chain-based data storage method and system of the Internet of things, wherein the Internet of things at least comprises two main nodes which are in communication connection with each other, and each main node manages a plurality of node devices which are in communication connection with the main node; the Internet of things data storage method based on the block chain comprises the following steps: any main node collects data of a plurality of node devices managed by the main node; carrying out unified data expression operation on the data of the node devices to obtain a plurality of data to be stored; and synchronizing the data to be stored to each main node and node equipment based on a preset consensus algorithm. In this embodiment, the block chain is used to implement sharing and synchronization of the data of the internet of things device in the present invention. Due to the fact that the block chain has the non-tampering property, the data of the internet of things written into the block chain cannot be forged or modified maliciously, and therefore distributed storage, tampering prevention or loss of the data of the internet of things are achieved.

Description

Block chain-based Internet of things data storage method and Internet of things system
Technical Field
The application relates to the technical field of Internet of things, in particular to a block chain-based Internet of things data storage method and an Internet of things system.
Background
In recent years, the popularization and rapid development of the technology of the internet of things enable the application of the internet of things to be visible everywhere in daily life and play an important role in various fields. However, because of the openness of the existing internet of things system, there is always a problem that data is illegally tampered or is easily lost due to interaction, thereby affecting the practicability of the internet of things.
Disclosure of Invention
The embodiment of the application provides a block chain-based Internet of things data storage method and an Internet of things system, and aims to solve the problem that source data in data storage in the Internet of things system are easy to tamper or lose.
The application provides a block chain-based data storage method for the Internet of things, wherein the Internet of things at least comprises two main nodes which are in communication connection with each other, and each main node manages a plurality of node devices which are in communication connection with the main node; the Internet of things data storage method based on the block chain comprises the following steps:
any main node collects data of a plurality of node devices managed by the main node;
carrying out unified data expression operation on the data of the node devices to obtain a plurality of data to be stored;
and synchronizing the data to be stored to each main node and node equipment based on a preset consensus algorithm.
In some embodiments, the step of collecting, by any of the master nodes, data of the plurality of node devices managed by the master node further includes:
the main node classifies the data of the node devices according to a preset data volume threshold value to obtain first-class data with large data volume and second-class data with small data volume, and compresses the first-class data to enable the data volume of the first-class data to be smaller than or equal to the preset data volume threshold value.
In some embodiments, the preset data volume threshold is 100 megabits.
In some embodiments, the data expression in the unified data expression operation on the data of the plurality of node devices is in an account data format.
In some embodiments, the data to be stored includes ledger data and multimedia data.
In some embodiments, the ledger data includes at least one of data summary, data size, and data time.
In some embodiments, the multimedia data includes at least one of picture data, audio data, and video data.
In some embodiments, the predetermined consensus algorithm employs a byzantine fault-tolerant algorithm or a delegated byzantine fault-tolerant algorithm.
In some embodiments, a federation chain structure is adopted among the master nodes, and a private chain structure is adopted among the node devices managed by each master node.
The application also provides an internet of things system, which comprises at least two background servers in communication connection with each other, wherein each background server manages a plurality of internet of things devices in communication connection with the background server; the IOT system also comprises a processor, a memory and an IOT data storage program based on the block chain, wherein the IOT data storage program based on the block chain is stored on the memory and can run on the processor, and when being executed by the processor, the IOT data storage program based on the block chain realizes each step of the IOT data storage method based on the block chain.
In this embodiment, data of a plurality of node devices managed by any master node is collected, a unified data expression operation is performed on the data of the plurality of node devices to obtain a plurality of data to be stored, and then the plurality of data to be stored are synchronized to each master node and the node devices based on a preset consensus algorithm. In this embodiment, the block chain is used to implement sharing and synchronization of the data of the internet of things device in the present invention. Due to the fact that the block chain has the non-tampering property, the data of the internet of things written into the block chain cannot be forged or modified maliciously, and therefore distributed storage, tampering prevention or loss of the data of the internet of things are achieved.
Drawings
FIG. 1 is a diagram of the hardware architecture of the Internet of things system of the present application;
fig. 2 is a schematic flowchart of a first embodiment of the data storage method of the internet of things based on a block chain according to the present application;
fig. 3 is a schematic flowchart of a second embodiment of the data storage method of the internet of things based on the blockchain according to the present application.
Detailed Description
For a better understanding of the above technical solutions, exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
The block chain (blackchip) is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, a consensus mechanism, an encryption algorithm and the like. The blockchain is essentially a decentralized database, which is a string of data blocks associated by cryptography, each data block containing information about a network transaction for verifying the validity (anti-counterfeiting) of the information and generating the next block, each block containing a timestamp and a link to the previous block. In a narrow sense, a blockchain is a chain data structure that combines data blocks in a sequential manner according to a time sequence, and cryptographically guarantees a non-falsifiable and non-falsifiable distributed ledger, i.e. data in the blockchain is recorded to be irreversible.
The consensus mechanism (consensus mechanism) is a mathematical algorithm for establishing trust and obtaining rights among different nodes in a blockchain system. In the block chain system, the verification and confirmation of the transaction can be completed in a short time through the voting of special nodes, and if a plurality of nodes with irrelevant benefits can achieve consensus on a transaction, all the nodes in the system can also achieve consensus on the transaction.
The popularization and rapid development of the technology of the internet of things enable the application of the internet of things to be visible everywhere in daily life and play an important role in various fields. However, because of the openness of the existing internet of things system, there is always a problem that data is illegally tampered or is easily lost due to interaction, thereby affecting the practicability of the internet of things.
In view of the above, the problem that source data existing in a data storage in an internet of things system is easy to be tampered or lost is solved. The embodiment provides an Internet of things data storage method based on a block chain and an Internet of things system.
The application provides an internet of things system, the internet of things system includes two at least mutual communication connection's backend server, each backend server manages a plurality of internet of things equipment with it communication connection. The background servers communicate with each other through an operator network (such as a 2G, 3G, 4G and 5G network) or an Internet of things network (such as an NB-IOT and a narrowband Internet of things), and the intelligent home equipment and the background servers are in communication connection through wireless connection modes such as the operator network, the Internet of things network or Bluetooth.
Referring to fig. 1, the internet of things system further includes: a processor 101, e.g. a CPU, a memory 102, a communication bus 103. Wherein a communication bus 103 is used for enabling the connection communication between these components. The memory 102 may be a high-speed RAM memory or a non-volatile memory (e.g., a disk memory). As shown in fig. 1, a memory 102, which is a kind of computer storage medium, may include therein a block chain based internet of things data storage program; and the processor 101 may be configured to invoke the blockchain-based internet of things data storage program stored in the memory 102.
In an embodiment, the processor 101 may be configured to invoke a blockchain-based internet of things data storage program stored in the memory 102 and perform the following operations:
any main node collects data of a plurality of node devices managed by the main node;
carrying out unified data expression operation on the data of the node devices to obtain a plurality of data to be stored;
and synchronizing the data to be stored to each main node and node equipment based on a preset consensus algorithm.
The processor 101 may be configured to invoke a blockchain-based internet of things data storage program stored in the memory 102 and perform the following operations:
the step of collecting data of a plurality of node devices managed by any main node further comprises the following steps:
the main node classifies the data of the node devices according to a preset data volume threshold value to obtain first-class data with large data volume and second-class data with small data volume, and compresses the first-class data to enable the data volume of the first-class data to be smaller than or equal to the preset data volume threshold value.
The processor 101 may be configured to invoke a blockchain-based internet of things data storage program stored in the memory 102 and perform the following operations: the preset data volume threshold is 100 million.
The processor 101 may be configured to invoke a blockchain-based internet of things data storage program stored in the memory 102 and perform the following operations:
and carrying out data expression in unified data expression operation on the data of the plurality of node devices by adopting an account data format.
The processor 101 may be configured to invoke a blockchain-based internet of things data storage program stored in the memory 102 and perform the following operations:
the data to be stored comprises account book data and multimedia data.
The processor 101 may be configured to invoke a blockchain-based internet of things data storage program stored in the memory 102 and perform the following operations:
the book data comprises at least one of data abstract, data size and data time.
The processor 101 may be configured to invoke a blockchain-based internet of things data storage program stored in the memory 102 and perform the following operations:
the multimedia data comprises at least one of picture data, audio data and video data.
The processor 101 may be configured to invoke a blockchain-based internet of things data storage program stored in the memory 102 and perform the following operations:
the preset consensus algorithm adopts a Byzantine fault-tolerant algorithm or a delegated Byzantine fault-tolerant algorithm.
The processor 101 may be configured to invoke a blockchain-based internet of things data storage program stored in the memory 102 and perform the following operations:
and the master nodes adopt a alliance chain structure, and the node devices managed by each master node adopt a private chain structure.
The Internet of things system acquires data of a plurality of node devices managed by any main node, performs unified data expression operation on the data of the node devices to obtain a plurality of data to be stored, and synchronizes the data to be stored to each main node and node device based on a preset consensus algorithm. In this embodiment, the block chain is used to implement sharing and synchronization of the data of the internet of things device in the present invention. Due to the fact that the block chain has the non-tampering property, the data of the internet of things written into the block chain cannot be forged or modified maliciously, and therefore distributed storage, tampering prevention or loss of the data of the internet of things are achieved.
Example one
The implementation provides a block chain-based internet of things data storage method, which includes: the Internet of things at least comprises two main nodes which are in communication connection with each other, and each main node manages a plurality of node devices which are in communication connection with the main node.
It should be noted that the host node may be configured as a background server, and the background server may be configured as a host node, and may store and monitor the device status of each node device, and may also send an instruction to each node device, and each node device completes a specific task based on the instruction, and information interaction between each node device also depends on the background server to perform data transmission. The node equipment can be various Internet of things equipment, and a plurality of Internet of things equipment and the background server form an Internet of things system. Specifically, the internet of things equipment can adopt intelligent household equipment. It can be understood that the internet of things device can also be an internet of things device in other fields, for example, when the device is applied to the field of fire rescue, the internet of things device can also be various sensors suitable for fire scenes, such as a smoke sensor, a temperature sensor, an infrared sensor and the like. When being applied to the commodity circulation field, thing networking device can also be weight sensor, bar code inductor etc..
Referring to fig. 2, the method for storing data of the internet of things based on the block chain includes:
s110, any main node collects data of a plurality of node devices managed by the main node;
it should be noted that the master node herein may employ background servers, the number of the background servers is at least two, the node device may employ an internet of things device, and the number of each background server is at least two. The internet of things equipment can be set into various intelligent equipment which can be connected with the background server through the internet of things, such as the intelligent household equipment, the smoke sensor, the temperature sensor, the infrared sensor, the weight sensor, the bar code sensor and the like. Each background server can collect data of a plurality of Internet of things devices managed by the background server regularly or irregularly.
S120, carrying out unified data expression operation on the data of the node devices to obtain a plurality of data to be stored;
because the data format of each internet of things device is various, in order to unify the data expression, the stored internet of things data is more convenient for storage management and sharing, and the background server of the embodiment collects a plurality of internet of things devices and performs unified data expression operation to obtain a plurality of data to be stored. And performing unified data expression operation on the data of the plurality of node devices, wherein the data expression adopts an account data format. The account data format includes information such as an account public key, an account private key, account assets, a digital certificate, and an account affiliated organization. The account refers to a member which is added into the block chain and can run independently, namely the internet of things equipment in the application, and the data storage of the internet of things equipment is standard and easy to share by carrying out unified data expression operation on various data of the internet of things equipment.
And S130, synchronizing the data to be stored to each main node and node equipment based on a preset consensus algorithm.
In order to solve the problem that source data in data storage in an internet of things system is easy to be tampered or lost, the embodiment adopts a block chain to realize sharing and synchronization of internet of things equipment data. The blockchain technology is a distributed storage mechanism proposed to enable trusted data sharing and state consensus in a purely distributed environment. The block chain has the characteristics of distributed trust, non-tampering and public transparency. Distributed trust ensures that the uniqueness and correctness of the blockchain copies are identified among the Internet of things devices, the non-falsification ensures that data written into the blockchain cannot be forged or modified maliciously, and the public transparency ensures that information on the blockchain is open and all participants can check the information at any time.
In this embodiment, an alliance link structure is adopted among the background servers, alliances are formed among different background servers, only alliance members can maintain block chain data, and other unauthorized nodes cannot maintain the block chain data; and a private chain structure is adopted among the Internet of things devices managed by each background server. Private chains are adopted among the Internet of things devices managed by the background server, and only the internal Internet of things devices can maintain block chain data, so that the possibility that unauthorized nodes contact the block chain data is fundamentally eliminated. The safety and the reliability of the data storage of the Internet of things are improved.
The preset consensus algorithm can adopt a Byzantine fault-tolerant algorithm or a delegated Byzantine fault-tolerant algorithm, and the algorithm is favorable for improving the registration efficiency of the data to be stored. Based on the Byzantine fault-tolerant algorithm, when any background server receives a plurality of data to be stored, the background server broadcasts the data to be stored to all other background servers and the Internet of things equipment, and all other background servers and the Internet of things equipment store the data to be stored in a bookkeeping mode and cannot be tampered. Therefore, the data to be stored are shared and synchronized among the Internet of things devices and in the Internet of things system. Through the block chain technology, data to be stored are stored in the main node and the node equipment and cannot be forged or modified maliciously, and the method is transparent in disclosure. The data to be stored is more accurate and reliable.
It should be noted that the data to be stored includes ledger data and multimedia data. Specifically, the ledger data includes at least one of data summary, data size, and data time. The book data is used for representing basic information of the data of the internet of things, in some embodiments, the book data includes a data summary, a data size and a data time, and the book data is stored in the background server or a local node of the device of the internet of things and cannot be faked or modified maliciously. It is understood that in other embodiments, the ledger data may also include one of a data summary, a data size, and a data time.
The multimedia data comprises at least one of picture data, audio data and video data. In some embodiments, the multimedia data may include picture data, audio data, and video data, and the multimedia data stored in the background server or the service node of the internet of things device may be downloaded at any time when viewing is needed. It will be appreciated that the multimedia data may also include other data, such as text data, e.g., PDF formatted or WORD documents, etc.
The application also provides a blind signature algorithm, which comprises the following steps:
s1001, a background server generates a public and private key pair;
s1002, the Internet of things equipment sends parameters to a background server, and applies for the amount of the money of the pre-stored transaction fund, wherein the parameters comprise the amount of the money of the pre-stored transaction fund, the deadline time for paying the back-stage server when the transaction fund is pre-stored, and the public key address when the transaction fund is pre-stored;
s1003, if the background server accepts, generating a acceptance pre-storage acceptance generated by the background server and sending the acceptance pre-storage acceptance to the Internet of things equipment;
s1004, paying the currency amount of the currency pre-stored transaction fund of the public key address to a background server before the deadline time when the transaction fund is pre-stored in the Internet of things device in the deadline time and the payment is paid to the background server;
s1005, after receiving the currency amount of the currency pre-stored transaction fund, the background server generates a pre-stored transaction fund account-reaching signature generated by the signature background server and sends the pre-stored transaction fund account-reaching signature to the Internet of things equipment to finish pre-storage;
s1006, the Internet of things equipment generates a one-time public key address of each transaction of the one-time public key address for the transaction, the one-time public key address is used as a payment address for the Internet of things equipment and is sent to the Internet of things equipment together with other transaction related parameters to apply for data sharing transaction;
s1007, after the Internet of things equipment receives the application, if the transaction is confirmed, calculating to obtain a one-time public key address of the public key address for each transaction, generating a transaction acceptance generated by signing the Internet of things equipment, and sending the transaction acceptance as the transaction acceptance to the Internet of things equipment;
s1008, after the Internet of things equipment obtains a transaction acceptance, sending a pre-stored transaction fund account-reaching signature generated by a background server and blinded payment information containing a one-time public key address of each transaction of a payment address to a background server;
s1009, the background server signs the pre-stored transaction fund to account signature generated by the background server, if the pre-stored transaction fund to account signature is legal, a part of blind signature algorithm is called, a blind signature payment acceptance embedded with the consensus information is generated, and the blind signature payment acceptance is sent to the Internet of things equipment;
s1010, the Internet of things equipment blindly removes the payment acceptance to obtain the payment acceptance containing the payment address and the blind factor, and sends the payment acceptance containing the payment address to the background server anonymously; the background server verifies the payment acceptance containing the blind factor, and if the payment acceptance is legal, the background server pays the currency of the currency amount of the pre-stored transaction money to the one-time public key address of each transaction of the one-time public key address;
s1011, the Internet of things equipment monitors that the background server on the block chain pays for the one-time public key address, executes a transaction acceptance, and opens data access permission to the Internet of things equipment or sends data to the Internet of things equipment.
The background server is a place which is set by utilizing cloud services and has a trusted public key address, resource and data transaction is realized in a transaction block chain, and the embodiment shortens transaction confirmation time, improves transaction efficiency and realizes privacy protection through a blind signature algorithm.
In summary, in this embodiment, data of a plurality of node devices managed by any host node is collected, a unified data expression operation is performed on the data of the plurality of node devices to obtain a plurality of data to be stored, and then the plurality of data to be stored are synchronized to each host node and node device based on a preset consensus algorithm. In this embodiment, the block chain is used to implement sharing and synchronization of the data of the internet of things device in the present invention. Due to the fact that the block chain has the non-tampering property, the data of the internet of things written into the block chain cannot be forged or modified maliciously, and therefore distributed storage, tampering prevention or loss of the data of the internet of things are achieved.
Example two
In this embodiment, based on the first embodiment, referring to fig. 3, a method for storing data of an internet of things based on a block chain in this embodiment includes:
s210, any main node collects data of a plurality of node devices managed by the main node;
s220, the main node classifies the data of the node devices according to a preset data volume threshold value to obtain first-class data with large data volume and second-class data with small data volume, and compresses the first-class data to enable the data volume of the first-class data to be smaller than or equal to the preset data volume threshold value;
since there are massive heterogeneous data (i.e., data with different data structures) in the internet of things, the multimedia data includes picture data, audio data, video data, and the like. The data size of these different thing networking data often differs very far from each other, and for the standard management, and reduce the too fast pressure of the storage data capacity growth of backend server, this application sets up a preset data volume threshold value to it is a plurality of through this preset data volume threshold value the data of thing networking equipment are categorised, with the data volume more than the data definition of preset data volume threshold value is first class data, with the data volume less than or equal to the data definition of preset data volume threshold value is second class data. And then compressing the first type of data to enable the data volume of the first type of data to be less than or equal to the preset data volume threshold. Therefore, the data volume instantaneously stored by the background server is reduced, the data quality is improved, and the pressure that the storage data capacity of the background server is increased too fast is relieved.
In particular, for picture data, either lossless compression or lossy compression may be employed, the decoded image of lossless compression being exactly the same as the original image, i.e. the compression being fully recoverable or without bias. Lossy compression uses an irreversible encoding method to achieve compression. The restored image of this method has some error from the original image, but the compression rate is chosen such that the visual effect is acceptable. Lossless compression or lossy compression can be selected according to actual needs. For audio data and video data, the video telephone/video conference compression H.261 standard can be adopted for compression.
In some embodiments, the preset data volume threshold is 100 megabits. It is understood that the preset data amount threshold may be set as other data amount thresholds according to different actual needs.
S230, carrying out unified data expression operation on the data of the node devices to obtain a plurality of data to be stored;
and S240, synchronizing the data to be stored to each main node and node equipment based on a preset consensus algorithm.
In this embodiment, the data volume of the first type of data is smaller than or equal to the preset data volume threshold by classifying the collected data of the internet of things device according to the preset data volume threshold and compressing the first type of data. Therefore, the data volume instantaneously stored by the background server is reduced, the data quality is improved, the data processing speed of the background server is improved, and the subsequent flow of synchronizing the data to be stored to each background server and the Internet of things equipment through the consensus algorithm is faster and smoother.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It should be noted that in the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The usage of the words first, second and third, etcetera do not indicate any ordering. These words may be interpreted as names.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the invention.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (10)

1. The data storage method of the Internet of things based on the block chain is characterized in that the Internet of things at least comprises two main nodes which are in communication connection with each other, and each main node manages a plurality of node devices which are in communication connection with the main node; the Internet of things data storage method based on the block chain comprises the following steps:
any main node collects data of a plurality of node devices managed by the main node;
carrying out unified data expression operation on the data of the node devices to obtain a plurality of data to be stored;
and synchronizing the data to be stored to each main node and node equipment based on a preset consensus algorithm.
2. The method for storing data of the internet of things based on the blockchain as claimed in claim 1, wherein the step of collecting the data of the plurality of node devices managed by any of the master nodes further comprises the following steps:
the main node classifies the data of the node devices according to a preset data volume threshold value to obtain first-class data with large data volume and second-class data with small data volume, and compresses the first-class data to enable the data volume of the first-class data to be smaller than or equal to the preset data volume threshold value.
3. The block chain based internet of things data storage method according to claim 2, wherein the preset data volume threshold is 100 million.
4. The method for storing data of the internet of things based on the blockchain as claimed in claim 1, wherein a data expression in the unified data expression operation of the data of the plurality of node devices is in an account data format.
5. The method for storing data of the internet of things based on the blockchain as claimed in claim 1, wherein the data to be stored comprises ledger data and multimedia data.
6. The method for storing data of the internet of things based on the blockchain as claimed in claim 5, wherein the ledger data includes at least one of data summary, data size and data time.
7. The method for storing data of the internet of things based on the blockchain as claimed in claim 5, wherein the multimedia data comprises at least one of picture data, audio data and video data.
8. The method for storing data of the internet of things based on the blockchain as claimed in claim 1, wherein the preset consensus algorithm adopts a Byzantine fault-tolerant algorithm or a delegated Byzantine fault-tolerant algorithm.
9. The block chain based internet of things data storage method as claimed in claim 1, wherein a federation chain structure is adopted between the master nodes, and a private chain structure is adopted between the node devices managed by each master node.
10. The Internet of things system is characterized by comprising at least two background servers which are in communication connection with each other, wherein each background server manages a plurality of Internet of things devices which are in communication connection with the background server; the internet of things system further comprises a processor, a memory, and a blockchain-based internet of things data storage program stored on the memory and executable on the processor, the blockchain-based internet of things data storage program, when executed by the processor, implementing the steps of the blockchain-based internet of things data storage method according to any one of claims 1 to 9.
CN202010846153.3A 2020-08-20 2020-08-20 Block chain-based Internet of things data storage method and Internet of things system Pending CN112003925A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010846153.3A CN112003925A (en) 2020-08-20 2020-08-20 Block chain-based Internet of things data storage method and Internet of things system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010846153.3A CN112003925A (en) 2020-08-20 2020-08-20 Block chain-based Internet of things data storage method and Internet of things system

Publications (1)

Publication Number Publication Date
CN112003925A true CN112003925A (en) 2020-11-27

Family

ID=73472294

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010846153.3A Pending CN112003925A (en) 2020-08-20 2020-08-20 Block chain-based Internet of things data storage method and Internet of things system

Country Status (1)

Country Link
CN (1) CN112003925A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112543236A (en) * 2020-12-18 2021-03-23 中国联合网络通信集团有限公司 Data sharing method and block link point
CN113067874A (en) * 2021-03-22 2021-07-02 南京宏森电子科技有限公司 Decentralized data storage device and system based on block chain

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108023879A (en) * 2017-11-30 2018-05-11 济南浪潮高新科技投资发展有限公司 A kind of NB-IOT device data acquisition system and methods based on block chain
CN110099055A (en) * 2019-04-29 2019-08-06 北京工业大学 Internet of Things service architecture based on lightweight block chain node
CN110389707A (en) * 2018-04-17 2019-10-29 横琴密达科技有限责任公司 A kind of user data storage system and method based on block chain
CN110554616A (en) * 2019-09-24 2019-12-10 北京艾摩瑞策科技有限公司 Intelligent home data chaining method and system of Internet of things on block chain

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108023879A (en) * 2017-11-30 2018-05-11 济南浪潮高新科技投资发展有限公司 A kind of NB-IOT device data acquisition system and methods based on block chain
CN110389707A (en) * 2018-04-17 2019-10-29 横琴密达科技有限责任公司 A kind of user data storage system and method based on block chain
CN110099055A (en) * 2019-04-29 2019-08-06 北京工业大学 Internet of Things service architecture based on lightweight block chain node
CN110554616A (en) * 2019-09-24 2019-12-10 北京艾摩瑞策科技有限公司 Intelligent home data chaining method and system of Internet of things on block chain

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
中国区块链技术和产业发展论坛标准: "区块链 数据格式规范", vol. 1, pages: 3 - 5 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112543236A (en) * 2020-12-18 2021-03-23 中国联合网络通信集团有限公司 Data sharing method and block link point
CN113067874A (en) * 2021-03-22 2021-07-02 南京宏森电子科技有限公司 Decentralized data storage device and system based on block chain
CN113067874B (en) * 2021-03-22 2022-07-01 南京宏森电子科技有限公司 Decentralized data storage device and system based on block chain

Similar Documents

Publication Publication Date Title
CN109766673B (en) Alliance type audio and video copyright block chain system and audio and video copyright chaining method
CN110046996B (en) Data processing method and device
CN114514732B (en) Method, computing system, and readable medium for consensus protocol for blockchain DAG structures
EP3070630B1 (en) Data system and method
CN111445333B (en) Block generation method, device, computer equipment and storage medium
CN115210741B (en) Partially ordered blockchain
CN109409122A (en) File memory method and its electronic equipment, storage medium
CN109472164A (en) The verification method and its network and electronic equipment of contract dataset
CN112235323B (en) Evidence obtaining method and device based on block chain, electronic equipment and readable storage medium
CN108924109B (en) Data transmission method and device and processing equipment
WO2021074719A1 (en) Database snapshot for managing state synchronization
CN109951490A (en) Webpage integrity assurance, system and electronic equipment based on block chain
CN112241919A (en) Multi-domain blockchain network with data flow control
CN112804218A (en) Data processing method, device and equipment based on block chain and storage medium
WO2020000777A1 (en) Method and apparatus for acquiring individual credit information on the basis of block chain, and computer device
CN112003925A (en) Block chain-based Internet of things data storage method and Internet of things system
CN111953546B (en) Internet of things equipment management method based on block chain system and intelligent home system
CN115481121A (en) Data cross-chain storage method and device, electronic equipment and storage medium
JP2022013298A (en) Information processing system
CN113836566B (en) Model processing method, device, equipment and medium based on block chain system
CN113990429B (en) Electronic medical record data protection method and device
CN116708463B (en) Information processing method, device, equipment and medium based on multi-block chain
CN116996331B (en) Block chain-based data processing method, device, equipment and medium
US20230260187A1 (en) Talking Head Digital Identity Authentication On A Distributed Network
CN118036021A (en) Multi-block-chain-based data processing method, device, equipment and medium

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