Internet of Things data sharing and security protection system based on block chain
The blockchain-based IoT data sharing and security protection system solves the data security and reliability issues of IoT devices, achieves efficient data sharing and privacy protection, and improves the system's security and transparency.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- GUANGZHOU JINCAIZHILIAN DIGITAL TECH CO LTD
- Filing Date
- 2024-01-31
- Publication Date
- 2026-04-24
AI Technical Summary
In existing IoT systems, IoT devices are vulnerable to data attacks and data leaks. The massive amount of data is often lost or false alarms due to reliability issues. Data sharing is limited by access control, leading to inefficient use and reduced value.
A blockchain-based data sharing and security protection system is adopted, including a blockchain network module, an IoT device access module, a data encryption module, a data storage module, and a smart contract execution module. Through AES encryption, decentralized storage, and smart contracts that define data sharing rules and permissions, data security and reliability are ensured.
It achieves security, reliability, and transparency of IoT data, prevents data tampering and unauthorized access, improves data sharing efficiency and added value, and ensures data privacy, security, and efficient utilization.
Smart Images

Figure CN121923780A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of IoT data sharing and security protection, and more specifically, to a blockchain-based IoT data sharing and security protection system. Background Technology
[0002] Blockchain technology is a distributed database technology that achieves secure data storage and transmission through decentralization, encryption, and consensus mechanisms. The core components of blockchain technology include blocks, chains, transactions, and smart contracts. A block is the basic unit of a blockchain, containing a set of transaction records. A chain is a linear structure composed of multiple blocks linked together in chronological order. A transaction is the exchange of data on the blockchain. A smart contract is an automatically executing, blockchain-based program. The Internet of Things (IoT) is a technology that connects objects via the internet. IoT devices collect, process, and exchange data through sensors, actuators, and communication modules. IoT technology has wide applications in smart cities, industrial automation, healthcare, and other fields.
[0003] However, existing systems have some shortcomings that require improvement. Firstly, IoT devices are typically connected to the internet, making them vulnerable to data attacks and leaks. Data security issues in existing systems include data tampering, unauthorized access, and data breaches. Secondly, the sheer volume of data generated by IoT devices is enormous, but data reliability issues in existing systems can lead to data loss or false alarms. Furthermore, the sharing of IoT data is often limited by access control and permissions, which can result in inefficient data utilization and reduced value. Therefore, we propose an IoT data sharing and security protection system based on blockchain technology. Summary of the Invention
[0004] The purpose of this invention is to address the problems currently existing in the present invention. To achieve the above-mentioned objective, this invention provides the following solution: a blockchain-based Internet of Things (IoT) data sharing and security protection system, comprising a blockchain network module, wherein the blockchain network module is responsible for establishing and maintaining the blockchain network to ensure decentralized storage and transmission of data; the blockchain network module is data-connected to an IoT device access module; the IoT device access module is responsible for receiving and processing access requests from IoT devices and adding them to the blockchain network;
[0005] The IoT device access module is connected to the data encryption module. The data encryption module encrypts user-uploaded data using AES 128; ECB(P,K) encryption algorithm and Electronic Codebook (ECB) mode to encrypt plaintext P with key K, ensuring data security during transmission. The data encryption module is also connected to the data storage module.
[0006] The data storage module stores encrypted data on the blockchain to ensure data integrity and immutability. The IoT Long Short Term Memory Network (IoT Memory Network) is defined as f(W1*(W2*X)+b), where W1 is the weight matrix, W2 is the weight matrix of the input features, b is the bias term, and f is the activation function. The data storage module is connected to the data sharing protocol module. The data sharing protocol module defines the rules and procedures for data sharing, ensuring secure data sharing within the blockchain network.
[0007] The data sharing protocol module is connected to the smart contract execution module; the execution function is (1 / n)*Σ(Xi;Xbar)*(Yi;Ybar); Xi: execution input feature; Yi: execution target value; n: number of execution samples; Xbar: execution sample mean; Ybar: target mean; smart contract execution module: executes the defined smart contract to realize automatic data sharing and transactions.
[0008] In a preferred embodiment of the present invention, the smart contract execution module is data-connected to the data query and analysis module; the data query and analysis module: IoT Self Encoder: Y = f(W1*(W2*X)+b); Y: predicted value; W1: weight matrix of the encoder; W2: weight matrix of the decoder; b: bias term; f: activation function; providing users with services to query and analyze data stored on the blockchain; the data query and analysis module is data-connected to the data authorization management module; the data authorization management module: manages users' data access permissions to ensure data privacy and security.
[0009] In a preferred embodiment of the present invention, the data authorization management module is data-connected to the data integrity verification module; the data integrity verification module verifies the integrity of data on the blockchain to prevent data tampering; the data integrity verification module is data-connected to the data source verification module; the verification function is f(W1*(W2*X)+b); W1: weight matrix of the generator; W2: weight matrix of the discriminator; b: bias term; f: activation function; the data source verification module verifies the uploaded data source to ensure the authenticity of the data.
[0010] As a preferred embodiment of the present invention, the data source verification module is data-connected to the privacy protection module; the privacy protection module provides privacy protection functions to make user data sharing more secure; the privacy protection module is data-connected to the performance optimization module; f(W1*(W2*X)+b); W1: weight matrix of the self-attention layer; W2: weight matrix of the input features; b: bias term; the performance optimization module optimizes the performance of the system and improves the operating efficiency of the system.
[0011] In a preferred embodiment of the present invention, the performance optimization module and the security assessment module are data-connected; the IoT optimization learning model function is: f(W1*X1+W2*X2+...+Wn*Xn+b,a); W1,W2,...,Wn: optimized weight matrix; X1,X2,...,Xn: optimized input features; b: optimized bias term; f: optimized activation function; a: optimized constant; the security assessment module: evaluates the security of the system to prevent potential security risks; the security assessment module is data-connected to the user interface module; the user interface module: provides a user-friendly interface for convenient user operation of the system.
[0012] In a preferred embodiment of the present invention, the user interface module is data-connected to the system monitoring module; the system monitoring module monitors the system's operating status in real time to promptly identify and resolve problems; the system monitoring module is data-connected to the data backup and recovery module; the data backup and recovery module backs up and restores data on the blockchain to prevent data loss.
[0013] As a preferred embodiment of the present invention, the data backup and recovery module is connected to the system upgrade module; the system upgrade module upgrades and maintains the system to ensure its stable operation.
[0014] In a preferred embodiment of the present invention, the system upgrade module is data-connected to the blockchain support module; the algorithm of the system upgrade module is f(X1,X2,...,Xn); X1,X2,...,Xn: upgrade input algorithm; f: upgrade model; the blockchain support module: provides blockchain support services to help users solve problems encountered during use.
[0015] In a preferred embodiment of the present invention, the blockchain support module is connected to the blockchain data training module; the blockchain data training module provides blockchain data training services to help users understand and use blockchain.
[0016] In a preferred embodiment of the present invention, the blockchain data training module is connected to the application development module; the application development module provides application development services to help users apply blockchain to the Internet of Things (IoT) field.
[0017] Compared to existing technologies, the beneficial effects of this invention are as follows: In the solution of this invention, the data encryption module and consensus mechanism of blockchain can ensure the security of IoT data, preventing data tampering, unauthorized access, and data leakage. The decentralized nature of blockchain technology can improve the reliability of IoT data and reduce the risk of data loss and false alarms. A blockchain-based IoT data sharing system can achieve more efficient data sharing and utilization, increasing the added value of data. Through smart contracts, more flexible data permission control and access control can be achieved. The openness and transparency of blockchain technology can improve the transparency of IoT data, preventing data abuse and unfair distribution. Attached Figure Description
[0018] Figure 1 This is a schematic diagram of the module logic block diagram provided by the present invention;
[0019] Figure 2 This is a schematic diagram of the module logic block diagram provided by the present invention;
[0020] Figure 3 This is a schematic diagram of the module logic block provided by the present invention. Detailed Implementation
[0021] To make the objectives, solutions, and advantages of the embodiments of the present invention clearer, the solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of the present invention.
[0022] Therefore, the following detailed description of the embodiments of the present invention is not intended to limit the scope of the claimed invention, but merely illustrates some embodiments of the invention. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without inventive effort are within the scope of protection of the present invention. It should be noted that, in the absence of conflict, the embodiments and features and solutions in the embodiments of the present invention can be combined with each other. It should be noted that similar reference numerals and letters in the following figures indicate similar items; therefore, once an item is defined in one figure, it does not need to be further defined and explained in subsequent figures.
[0023] Example 1: Please refer to Figures 1-3A blockchain-based IoT data sharing and security protection system includes a blockchain network module. This module is responsible for establishing and maintaining the blockchain network, ensuring decentralized data storage and transmission. The blockchain network module is data-connected to an IoT device access module. The IoT device access module is responsible for receiving and processing access requests from IoT devices and adding them to the blockchain network. This module is also data-connected to a data encryption module. The data encryption module encrypts user-uploaded data using AES-128;ECB(P,K) encryption algorithm in Electronic Codebook (ECB) mode, encrypting plaintext P with key K to ensure data security during transmission. The data encryption module is also data-connected to a data storage module.
[0024] Data storage module: Stores encrypted data on the blockchain to ensure data integrity and immutability; IoT Long Short Term Memory Network: f(W1*(W2*X)+b); W1: Weight matrix; W2: Weight matrix of input features; b: Bias term; f: Activation function; Data storage module is connected to data sharing protocol module; Data sharing protocol module: Defines the rules and processes for data sharing to ensure secure data sharing in the blockchain network; Data sharing protocol module is connected to smart contract execution module; Execution function is (1 / n)*Σ(Xi; Xbar)*(Yi; Ybar); Xi: Execution input feature; Yi: Execution target value; n: Number of execution samples; Xbar: Execution sample mean; Ybar: Target mean; Smart contract execution module: Executes predefined smart contracts to achieve automatic data sharing and transactions.
[0025] The smart contract execution module is connected to the data query and analysis module. The data query and analysis module provides IoT data query and decoding (IoT Self; Encoder): Y = f(W1*(W2*X)+b); Y: predicted value; W1: encoder weight matrix; W2: decoder weight matrix; b: bias term; f: activation function; providing users with services to query and analyze data stored on the blockchain. The data query and analysis module is also connected to the data authorization management module. This module manages user data access permissions to ensure data privacy and security. The data authorization management module is also connected to the data integrity verification module. This module verifies the integrity of data on the blockchain to prevent data tampering. The data integrity verification module is also connected to the data source verification module. The verification function is f(W1*(W2*X)+b); W1: generator weight matrix; W2: discriminator weight matrix; b: bias term; f: activation function. The data source verification module verifies the uploaded data source to ensure data authenticity.
[0026] The data source verification module is connected to the privacy protection module; the privacy protection module provides privacy protection functions to make user data sharing more secure; the privacy protection module is connected to the performance optimization module; f(W1*(W2*X)+b); W1: weight matrix of the self-attention layer; W2: weight matrix of the input features; b: bias term; the performance optimization module optimizes the system performance and improves the system's operating efficiency.
[0027] The performance optimization module and security assessment module are connected via data connection. The IoT optimization learning model function is: f(W1*X1+W2*X2+...+Wn*Xn+b,a); W1,W2,...,Wn: optimized weight matrix; X1,X2,...,Xn: optimized input features; b: optimized bias term; f: optimized activation function; a: optimized constant. The security assessment module evaluates system security to prevent potential security risks. The security assessment module is connected to the user interface module. The user interface module provides a user-friendly interface for convenient system use. The user interface module is connected to the system monitoring module. The system monitoring module monitors the system's operating status in real time, promptly identifying and resolving problems. The system monitoring module is connected to the data backup and recovery module. The data backup and recovery module backs up and restores data on the blockchain to prevent data loss. The data backup and recovery module is connected to the system upgrade module. The system upgrade module upgrades and maintains the system to ensure stable operation.
[0028] The system upgrade module and the blockchain support module are connected via data; the algorithm of the system upgrade module is f(X1,X2,...,Xn); X1,X2,...,Xn: upgrade input algorithm; f: upgrade model; the blockchain support module provides blockchain support services to help users solve problems encountered during use.
[0029] The blockchain support module is connected to the blockchain data training module; the blockchain data training module provides blockchain data training services to help users understand and use blockchain. The blockchain data training module is also connected to the application development module; the application development module provides application development services to help users apply blockchain to the Internet of Things (IoT) field.
[0030] In this invention, IoT devices collect real-time data, such as temperature, humidity, and location information. The collected data is first encrypted to ensure it is not tampered with during transmission. Mainstream encryption algorithms such as AES can be used. The encrypted data is stored on a blockchain. As a decentralized database, the blockchain ensures data security and immutability. When data needs to be shared, users can define access permissions and usage rules through smart contracts. For example, a user can view temperature data but not modify humidity data; users can retrieve specific data by querying the smart contract. The smart contract returns the corresponding data based on the user's permissions and requests. The IoT devices update the data periodically or in real-time, with new data overwriting the old data to ensure real-time accuracy. All operations on the blockchain are recorded, forming a transparent audit log. Users can view this log to understand the data modification history and usage.
[0031] The data authorization management module is connected to the data integrity verification module; the data integrity verification module verifies the integrity of data on the blockchain to prevent data tampering; the data integrity verification module is connected to the data source verification module; the verification function is f(W1*(W2*X)+b); W1: the weight matrix of the generator;
[0032] W2: Weight matrix of the discriminator; b: Bias term; f: Activation function; Data source verification module: verifies the uploaded data source to ensure the authenticity of the data. The data source verification module is connected to the privacy protection module; Privacy protection module: provides privacy protection functions to make user data sharing more secure; The privacy protection module is connected to the performance optimization module; f(W1*(W2*X)+b); W1: Weight matrix of the self-attention layer; W2: Weight matrix of the input features; b: Bias term; Performance optimization module: optimizes the system performance and improves the system's operating efficiency. The performance optimization module and security assessment module are connected via data connection. The IoT optimization learning model function is: f(W1*X1+W2*X2+...+Wn*Xn+b,a); W1,W2,...,Wn: optimized weight matrix; X1,X2,...,Xn: optimized input features; b: optimized bias term; f: optimized activation function; a: optimized constant. The security assessment module evaluates system security to prevent potential security risks. The security assessment module is connected to the user interface module. The user interface module provides a user-friendly interface for convenient system use. The user interface module is connected to the system monitoring module. The system monitoring module monitors the system's operating status in real time, promptly identifying and resolving problems. The system monitoring module is connected to the data backup and recovery module. The data backup and recovery module backs up and restores data on the blockchain to prevent data loss. The data backup and recovery module is connected to the system upgrade module. The system upgrade module upgrades and maintains the system to ensure stable operation. The system upgrade module and the blockchain support module are connected via data; the algorithm of the system upgrade module is f(X1,X2,...,Xn); X1,X2,...,Xn: upgrade input algorithm; f: upgrade model; the blockchain support module provides blockchain support services to help users solve problems encountered during use.
[0033] The above embodiments are only used to illustrate the present invention and are not intended to limit the solutions described herein. Although the present invention has been described in detail with reference to the above embodiments, the present invention is not limited to the specific embodiments described above. Therefore, any modifications or equivalent substitutions to the present invention, as well as all solutions and improvements that do not depart from the spirit and scope of the invention, are covered within the scope of the claims of the present invention.
Claims
1. A blockchain-based Internet of Things (IoT) data sharing and security protection system, characterized in that, The system includes a blockchain network module, which establishes and maintains the blockchain network to ensure decentralized storage and transmission of data; the blockchain network module is connected to an IoT device access module; and the IoT device access module receives and processes access requests from IoT devices and adds them to the blockchain network. The IoT device access module is connected to the data encryption module; the data encryption module encrypts the data uploaded by the user using AES; 128; ECB(P,K): using the AES; 128 encryption algorithm and Electronic Codebook (ECB) mode, it encrypts the plaintext P with the key K. Ensure data security during transmission; the data encryption module is connected to the data storage module. The data storage module stores the encrypted data on the blockchain to ensure data integrity and immutability; the IoT data storage memory network is f(W1*(W2*X)+b). W1: Weight matrix; W2: Weight matrix of input features; b: Bias term; f: Activation function; The data storage module is connected to the data sharing protocol module; The data sharing protocol module defines the rules and procedures for data sharing to ensure the secure sharing of data in the blockchain network; The data sharing protocol module is connected to the smart contract execution module; the execution function is (1 / n)*Σ(Xi;Xbar)*(Yi;Ybar); Xi: execution input feature; Yi: execution target value; n: Number of execution samples; Xbar: Mean of execution samples; Ybar: Target mean; Smart contract execution module: Executes predefined smart contracts, enabling data sharing and transactions.
2. The blockchain-based IoT data sharing and security protection system according to claim 1, characterized in that, The smart contract execution module is connected to the data query and analysis module; the data query and analysis module: decodes IoT data (IoT Self; Encoder): Y = f(W1*(W2*X)+b); Y: predicted value; W1: The encoder's weight matrix; W2: The weight matrix of the decoder; b: Bias term; f: Activation function; provides users with services to query and analyze data stored on the blockchain; the data query and analysis module is connected to the data authorization management module; the data authorization management module manages users' data access permissions.
3. The blockchain-based IoT data sharing and security protection system according to claim 2, characterized in that, The data authorization management module is connected to the data integrity verification module; the data integrity verification module verifies the integrity of data on the blockchain to prevent data from being tampered with; the data integrity verification module is connected to the data source verification module; the verification function is f(W1*(W2*X)+b); W1: The weight matrix of the generator; W2: Weight matrix of the discriminator; b: Bias term; f: Activation function; The data source verification module verifies the uploaded data source.
4. The blockchain-based IoT data sharing and security protection system according to claim 3, characterized in that, The data source verification module is connected to the privacy protection module; the privacy protection module provides privacy protection functions to make user data sharing more secure; the privacy protection module is connected to the performance optimization module; f(W1*(W2*X)+b); W1: Weight matrix of the self-attention layer; W2: Weight matrix of input features; b: Bias term; The performance optimization module: optimizes the system performance.
5. The blockchain-based IoT data sharing and security protection system according to claim 4, characterized in that, The performance optimization module and the security assessment module are connected via data; the IoT optimization learning model function is: f(W1*X1+W2*X2+...+Wn*Xn+b,a); W1,W2,...,Wn: optimization weight matrix; X1,X2,...,Xn: optimization input features; b: Optimize bias terms; f: Optimize activation function; a: Optimize constant; The security assessment module: assesses the security of the system to prevent potential security risks; The security assessment module is data-connected to the user interface module; User Interface Module: Provides a user-friendly interface.
6. The blockchain-based IoT data sharing and security protection system according to claim 5, characterized in that, The user interface module is connected to the system monitoring module; the system monitoring module monitors the system's operating status in real time and promptly identifies and resolves problems; the system monitoring module is connected to the data backup and recovery module; the data backup and recovery module backs up and restores data on the blockchain.
7. The blockchain-based IoT data sharing and security protection system according to claim 6, characterized in that, The data backup and recovery module is connected to the system upgrade module; the system upgrade module is responsible for upgrading and maintaining the system.
8. The blockchain-based IoT data sharing and security protection system according to claim 7, characterized in that, The system upgrade module is connected to the blockchain support module via data connection; the system upgrade module has an algorithm f(X1,X2,...,Xn); X1,X2,...,Xn: upgrade input algorithm; f: upgrade model; the blockchain support module provides blockchain IoT support services.
9. The blockchain-based IoT data sharing and security protection system according to claim 8, characterized in that, The blockchain support module is connected to the blockchain data training module; the blockchain data training module is used to provide a blockchain data training service port.
10. The blockchain-based IoT data sharing and security protection system according to claim 9, characterized in that, The blockchain data training module and the application development module are connected; the application development module provides an application development service port.