# Research on Privacy Data Protection Based on Trusted Computing and Blockchain

Authors: Linkai Zhu; Sheng Peng; Zhiming Cai; Wenjian Liu; Chunjiang He; Weikang Tang
Journal: Security and Communication Networks
 (2021)

---

## Abstract

Aiming at the problems of low protection accuracy and long time consumption in traditional privacy data protection methods, a privacy data protection method based on trusted computing and blockchain is proposed. Set up the Internet node secure transmission protocol through the trusted node uplink transmission protocol and the downlink transmission protocol, and according to the transmission protocol, combined with the blockchain technology, the ECC elliptic curve encryption algorithm is used to encrypt the amount of data existing in the blockchain, and the AES symmetric encryption algorithm is used to encrypt the private data that exists in the nonblockchain, thereby completing the protection of network private data. The simulation experiment results show that the privacy data protection accuracy of the proposed method is higher and the work efficiency is faster.


---

## Body

## 1. Introduction

The continuous deepening of network applications in various industries has made life more convenient, and at the same time, problems such as network data privacy have emerged. As the network system adopts a centralized communication control mechanism, the privacy of network data faces the risk of leakage. Internet data privacy issues in various fields include multiple aspects [1]. If the security protection of the network system is not complete, there are many loopholes. Although some large-scale Internet companies have invested more manpower and material resources for network data security protection, they still face more risks. Cloud storage is a network data storage service based on the user's trust in the server, but because cloud storage is a centralized storage method, cloud servers have security risks such as network data leakage [2]. Therefore, the issue of privacy data protection has attracted more and more attention and worries. Wikipedia defines privacy as the ability of individuals or groups to hide themselves or their attributes so that they can express themselves selectively. In the network environment, privacy is more a symbol of information and data, which can be used to confirm the identity and characteristics of specific individuals (or groups). But such information and data are sensitive content that individuals do not want to expose, such as patient data, personal location information, and financial status [3].Literature [4] proposes a method for protecting personal privacy data based on honeypot encryption algorithm and applies the honeypot encryption algorithm to personal electronic wallets to solve the problem of weak passwords for protecting users’ bank card account numbers and passwords. First, introduce the basic idea of the honeypot encryption algorithm, and then design a fine-grained message space for the application to provide credible lure messages. The machine learning method is introduced for the first time to discuss the security of the honeypot encryption algorithm. Experiments show that with honeypot encryption the security of the algorithm is higher than that of the existing password-based encryption algorithm, and the generated decoy message is also difficult to distinguish. However, the above method takes a long time to perform privacy data protection. Literature [5] proposed a PPDM-based privacy data protection method for smart library users. Based on the analysis of traditional library data mining methods, it tried to cite PPDM (Privacy-Preserving Data Mining) data generalization, cleaning, shielding, and distortion, etc. The method integrates data mining with business requirements and aims at the standardized use of user data, explores user privacy protection mechanisms in the context of smart services, and constructs a feasible plan for the integration of business implementation and data protection. Literature [6] proposed a method of protecting privacy data in a software development database based on differential protection, using an exponential mechanism to gradually refine the data, using the sequence combination properties of differential privacy to generalize the data, and fusing the theory of principal component analysis to establish the original data. The covariance matrix of the matrix is obtained, and the low-order approximate matrix of the original matrix is obtained, and the best projection of the private data characteristics is obtained to complete the privacy data protection in the software development database. The experiment proves that the privacy data under the proposed method is more secure and can significantly improve the quality of software information system development. However, the accuracy of the above two methods for privacy data protection is low, leading to the possibility of privacy data leakage. Joint learning is a hot topic in the field of multisource data. Its advantages are that the data cannot be localized, and the local model parameters are difficult to integrate and the model accuracy is low. Literature [7] proposed an improved gradient-enhanced decision tree (GBDT) joint ensemble learning method, in which the average gradient of similar samples and its own gradient were taken as new gradients to improve the accuracy of local models. In order to improve the inheritance and protection ability of ethnic sports, an association data mining model of ethnic sports inheritance and protection based on association rule feature extraction was proposed. Literature [8] designed a neurofuzzy paradigm system that could carry out both feature analysis and SI (sin) integration. The time series analysis model of data related to inheritance and protection of ethnic sports is constructed, and the overall framework model of data mining related to inheritance and protection of ethnic sports is designed.Blockchain technology has the potential to help solve some of the privacy and scalability issues of Internet data security users. Because of its unique functions and advantages, the blockchain has become an “innovator of the rules of the information game.” The core of the blockchain system is a distributed digital ledger shared between system participants on the Internet, which is always stored on the Internet: transactions or events are verified and recorded in the ledger and cannot be modified later or deleted. It provides a way for the user community to record and share information. In a blockchain network, selected members keep a copy of their ledger and must collectively verify all new transactions through a consensus process before accepting the new ledger. Blockchain can help alleviate the privacy and scalability issues of Internet data security users in the following ways. The distributed ledger in the blockchain system is tamper-proof, which eliminates the need for trust between participants. No organization can have absolute control over the large amounts of data generated by Internet devices. Using blockchain to store Internet data will add a layer of security. Hackers need to crack the security of the blockchain to tamper with data records. However, the blockchain provides a stronger encryption level, and it is almost impossible for hackers to overwrite existing data records. Blockchain provides transparency by allowing anyone with access to the network to track transactions that have occurred in the past. Based on this, in response to the problems of the above methods, this article combines trusted computing and blockchain technology to propose a privacy data protection method, and the effectiveness of this method is verified through simulation experiments, and the problems in the traditional methods are solved.Our contribution includes the following three points:(1)
Aiming at the problems of low protection accuracy and long time consumption in traditional privacy data protection methods, a privacy data protection method based on trusted computing and blockchain is proposed.(2)
In this paper, ECC elliptic curve encryption algorithm is used to encrypt the amount of data existing in the block chain, and AES symmetric encryption algorithm is used to encrypt the private data existing in the nonblock chain, so as to complete the protection of network private data.(3)
The simulation experiment results show that the privacy data protection accuracy of the proposed method is higher and the work efficiency is faster.The remainder of this paper is organized as follows. Section2 introduces the Internet node secure transmission protocol based on trusted computing. Section 3 discusses the blockchain-based privacy data protection. Section 4 discusses experiment and analysis. Section 5 presents the conclusions of the study.


## 2. Internet Node Secure Transmission Protocol Based on Trusted Computing

### 2.1. Trusted Computing

With the popularization of computers and networks, information security issues have become more prominent. The top 3 security threats are malicious code attacks, illegal information theft, and illegal data and system damage. Among them, malicious code attacks that target users’ private information surpassing traditional viruses has become the biggest security threat. The root of these security threats is that the computer's malicious code attack immunity mechanism has not been established from the architecture [9]. Trusted computing is a technical concept proposed in this context. It establishes a specific integrity measurement mechanism to enable the computing platform to have the ability to distinguish between trusted program code and untrusted program code during operation. The program code establishes effective prevention and control measures. Trusted computing takes the crypto chip as the root of trust, establishes a computing platform security function system, and solves the core security issues of the computing platform.The trusted computing platform implements platform security functions through the following three types of mechanisms.(1)
Starting from the root of trustworthiness measurement, calculate the integrity measurement value of the system platform, establish the trust chain of the computer system platform, ensure the trustworthiness of the system platform, and resist malicious code attacks such as viruses [10].(2)
The trusted report root marks the credibility of the platform's identity and is unique. Based on the trusted report root, platform identity certification and integrity certification are realized to identify counterfeit platforms.(3)
Based on the trusted storage root, realize key management and platform data security protection functions and provide corresponding password services to ensure that protected data will not be illegally copied [11].


### 2.2. Trusted Node Uplink Transmission Protocol

Many terminals that receive monitoring data on the Internet need to be transmitted to the control center through energy routers at all levels. Then the security and credibility of each connected network node in the communication system are the foundation, and credible communication is the fundamental guarantee for the normal and efficient operation of the system. Trusted node uplink transmission protocol refers to the one-to-one type of transmission that needs to hand over and collect data.In the uplink transmission process, taking the Internet sensor submitting data to the subenergy router as an example, the sensor is in the next-level network node, and the subenergy router is in the upper-level network node. This process includes two processes: firstly, the nodes of the two parties in the communication are credible and need to be integrity-checked; secondly, the communication interaction content has the security requirements of authenticity, confidentiality, and integrity [12]. Specific steps are as follows:(1)
The next-level network node, namely, the sensor, uses the node identity private key to sign its ownPCR and S sends it to the upper-level network node, namely, the subenergy router; after receiving the signature, the subenergy router verifies the identity key to ensure that it comes from the trusted module. Then, the PCR value is compared with the locally stored trusted value PCRexp. If it is consistent, it is determined that the source of the message is a node in a safe and controllable operation state [13].(1)S=fPIKPri+LNPCR,fPIKPri+LNS=fPIKPri+LNfPIKPri+LNPCR=PCR,PCR=PCRexp.(2)
When the trusted identity of the sensor node is authenticated, the subenergy router generates and sends a random valuenonce to the sensor node [14].(3)
The amount of sensor data of the sensor node will not be too large, so the trusted module generates the symmetric keyKeySM4 to encrypt the sensor data to obtain the encrypted data Edata and then uses the digital envelope method to encrypt the public key SNpub with the subenergy router to encrypt KeySM4 Get EKey and string the two together to get Updata.(2)Edata=fKeySM4Sensor Data,EKey=fSNpubKeySM4,Updata=EdataEKey.(4)
At the same time, the sensor node uses the identity private key to encrypt the data, the random valuenonce,PCR is calculated to obtain the signature Quote, and finally Quote,Updata is sent to the upper-level node.(3)Quote=fPIKPri+LNPCR,nonce,Updata.(5)
The subenergy router receives dataS and verifies signature Quote. The step is to verify the signature with the public key of the sensor node's identity and then check the value of PCR and nonce to confirm the correctness and credibility of the data source;(4)Verify Quote=fPIKPri+LNfPIKPri+LNPCR,nonce,Updata=PCR,nonce,Updata.(6)
Then decrypt the data packet and the encryption key, obtain the sensor dataSensor Data, and feed back to the sensor node that the data upload is successful [15].(5)DecEkey=fPIKPri+LNKeySM4=KeySM4,DecEdata=fPIKPri+LNSensor Data=Sensor Data.(7)
If the subenergy router fails to pass any verification of the sensor node, it will discard the data packet and return the upload failure to the sensor node.


### 2.3. Trusted Node Downlink Transmission Protocol

The trusted node downlink transmission protocol refers to the data transmission of instructions issued by the sink node, one-to-many type [16].First, assign a label to each node, and the correspondingnonce value is n000−n111. Then use the hash algorithm to hash the nonce values of multiple nodes pairwise to obtain hN.Definition.
Operationh1⊕h2 means to hash two hash values to obtain a new hash value.(6)hN=n000⊕n001⊕n010⊕n011⊕n100⊕n101⊕n110⊕n111=h01⊕h23.
At the same time, the value ofsni is sent to node o for signature verification. For example, if the label sent to the node is 101, then the package is sn101. When node 101 gets sn101 verification, add its own n101 to compare the hash value generated by the Merkle tree with the received hn. If they are consistent, it indicates the validity of the source of the instruction. On the contrary, discard the data packet [17].


## 2.1. Trusted Computing

With the popularization of computers and networks, information security issues have become more prominent. The top 3 security threats are malicious code attacks, illegal information theft, and illegal data and system damage. Among them, malicious code attacks that target users’ private information surpassing traditional viruses has become the biggest security threat. The root of these security threats is that the computer's malicious code attack immunity mechanism has not been established from the architecture [9]. Trusted computing is a technical concept proposed in this context. It establishes a specific integrity measurement mechanism to enable the computing platform to have the ability to distinguish between trusted program code and untrusted program code during operation. The program code establishes effective prevention and control measures. Trusted computing takes the crypto chip as the root of trust, establishes a computing platform security function system, and solves the core security issues of the computing platform.The trusted computing platform implements platform security functions through the following three types of mechanisms.(1)
Starting from the root of trustworthiness measurement, calculate the integrity measurement value of the system platform, establish the trust chain of the computer system platform, ensure the trustworthiness of the system platform, and resist malicious code attacks such as viruses [10].(2)
The trusted report root marks the credibility of the platform's identity and is unique. Based on the trusted report root, platform identity certification and integrity certification are realized to identify counterfeit platforms.(3)
Based on the trusted storage root, realize key management and platform data security protection functions and provide corresponding password services to ensure that protected data will not be illegally copied [11].


## 2.2. Trusted Node Uplink Transmission Protocol

Many terminals that receive monitoring data on the Internet need to be transmitted to the control center through energy routers at all levels. Then the security and credibility of each connected network node in the communication system are the foundation, and credible communication is the fundamental guarantee for the normal and efficient operation of the system. Trusted node uplink transmission protocol refers to the one-to-one type of transmission that needs to hand over and collect data.In the uplink transmission process, taking the Internet sensor submitting data to the subenergy router as an example, the sensor is in the next-level network node, and the subenergy router is in the upper-level network node. This process includes two processes: firstly, the nodes of the two parties in the communication are credible and need to be integrity-checked; secondly, the communication interaction content has the security requirements of authenticity, confidentiality, and integrity [12]. Specific steps are as follows:(1)
The next-level network node, namely, the sensor, uses the node identity private key to sign its ownPCR and S sends it to the upper-level network node, namely, the subenergy router; after receiving the signature, the subenergy router verifies the identity key to ensure that it comes from the trusted module. Then, the PCR value is compared with the locally stored trusted value PCRexp. If it is consistent, it is determined that the source of the message is a node in a safe and controllable operation state [13].(1)S=fPIKPri+LNPCR,fPIKPri+LNS=fPIKPri+LNfPIKPri+LNPCR=PCR,PCR=PCRexp.(2)
When the trusted identity of the sensor node is authenticated, the subenergy router generates and sends a random valuenonce to the sensor node [14].(3)
The amount of sensor data of the sensor node will not be too large, so the trusted module generates the symmetric keyKeySM4 to encrypt the sensor data to obtain the encrypted data Edata and then uses the digital envelope method to encrypt the public key SNpub with the subenergy router to encrypt KeySM4 Get EKey and string the two together to get Updata.(2)Edata=fKeySM4Sensor Data,EKey=fSNpubKeySM4,Updata=EdataEKey.(4)
At the same time, the sensor node uses the identity private key to encrypt the data, the random valuenonce,PCR is calculated to obtain the signature Quote, and finally Quote,Updata is sent to the upper-level node.(3)Quote=fPIKPri+LNPCR,nonce,Updata.(5)
The subenergy router receives dataS and verifies signature Quote. The step is to verify the signature with the public key of the sensor node's identity and then check the value of PCR and nonce to confirm the correctness and credibility of the data source;(4)Verify Quote=fPIKPri+LNfPIKPri+LNPCR,nonce,Updata=PCR,nonce,Updata.(6)
Then decrypt the data packet and the encryption key, obtain the sensor dataSensor Data, and feed back to the sensor node that the data upload is successful [15].(5)DecEkey=fPIKPri+LNKeySM4=KeySM4,DecEdata=fPIKPri+LNSensor Data=Sensor Data.(7)
If the subenergy router fails to pass any verification of the sensor node, it will discard the data packet and return the upload failure to the sensor node.


## 2.3. Trusted Node Downlink Transmission Protocol

The trusted node downlink transmission protocol refers to the data transmission of instructions issued by the sink node, one-to-many type [16].First, assign a label to each node, and the correspondingnonce value is n000−n111. Then use the hash algorithm to hash the nonce values of multiple nodes pairwise to obtain hN.Definition.
Operationh1⊕h2 means to hash two hash values to obtain a new hash value.(6)hN=n000⊕n001⊕n010⊕n011⊕n100⊕n101⊕n110⊕n111=h01⊕h23.
At the same time, the value ofsni is sent to node o for signature verification. For example, if the label sent to the node is 101, then the package is sn101. When node 101 gets sn101 verification, add its own n101 to compare the hash value generated by the Merkle tree with the received hn. If they are consistent, it indicates the validity of the source of the instruction. On the contrary, discard the data packet [17].


## 3. Blockchain-Based Privacy Data Protection

### 3.1. Blockchain Technology

Under normal circumstances, the blockchain is composed of an application layer, a data layer, a contract layer, a network layer, an incentive layer, and a consensus layer. The blockchain structure is shown in Figure1.Figure 1
Blockchain structure.The components and functions of each layer of the blockchain are as follows:(1)
This layer includes the hash function, the chain structure corresponding to the data block, the Merkle tree, the time stamp, and the public key cryptography technology. At the bottom of the blockchain structure, the blockchain technology is used to integrate the above technologies. Constitute a reliable and safe network data storage mode, as shown in Figure2.(2)
Network layer: The verification mechanism, propagation mechanism, and P2P network are applied to the network layer. Blockchain obtains adaptive networking functions based on P2P technology, determines data verification methods and information dissemination protocols through verification mechanisms and dissemination mechanisms, and determines specific methods and protocols based on actual application scenarios. Every node in the blockchain can participate in data accounting and verification through verification mechanisms and dissemination technologies.(3)
Consensus layer: The core of the blockchain structure is the consensus layer. The formula protocols used in the consensus layer include certificate of authorization for shares, proof of rights and interests, and proof of workload [18].(4)
Incentive layer: Apply economic incentive mechanism to the incentive layer, encourage more nodes existing in the network to join the operation, and set up the corresponding distribution method and incentive issuance mechanism. Corresponding punishments are imposed on network nodes that do not comply with the rules, and the system is guided to continue to cyclically develop in a good direction [19].(5)
Contract layer: There are various smart contracts, algorithm mechanisms, and script codes in the contract layer, which improve the programmability of the blockchain. Ethereum and Bitcoin have powerful programming functions and scripting functions, respectively. Users can implement smart contracts with different functions through programming and algorithm mechanisms. Under normal circumstances, people treat smart contracts as automatic guarantee accounts [20].(6)
Application layer: Display cases and actual needs such as programmable society, programmable finance, and programmable currency exist in the application layer.Figure 2
Network data storage mode.


### 3.2. Network Data Privacy Protection Method

On the basis of the secure transmission protocol of Internet nodes, the privacy protection of network data is carried out. Blockchain can complete the protection of private data through two types of encryption algorithms, one is to use ECC elliptic curve encryption algorithm to encrypt the amount of data existing in the blockchain, and the other is to use AES symmetric encryption algorithm to protect nonblockchains. The private data that exists is encrypted [21].Letprivate Key represents the private key generated by the private blockchain, and puhlic Key represents the public key generated by the private blockchain. The expressions are as follows:(7)private Key=SHA256message,puhlic Key=Secp256private Key.In the formula,message represents the sliding data of the touch screen or the user's mouse, which is regarded as a random value entered into the system, SHA256 represents the hash algorithm, and Secp256 represents the ECC elliptic curve algorithm, which is often applied to blockchain technology middle [22].The generation rate of blocks in each round affects the security of the blockchain. Letf represent the generation rate of blocks in each round, which is used to represent the expected value of the solution required for each round of proof of information transmission [23]. The block generation rate in each round is inversely proportional to the security of the blockchain, and 1/f can be used to represent the security of the blockchain. Let tP represent the propagation rate of the transaction in the blockchain, bS represent the size of the block in the network, and rD represent the duration of each round [24]. The relationship between the duration of each round, block size, transaction propagation speed, and the block generation rate of each round can be expressed by the following formula:(8)tP∝bS⋅frD.The time intervalb of block generation in the network is proportional to the duration of each round. The above formula can be changed to the following formula:(9)tP∝bSbI⋅1/f.From equations (8) and (9), it can be seen that the transaction propagation speed, block generation time interval, and block size affect the security of the blockchain in the network, and they restrict each other [25].The relationship between the time interval of block generation in the network and the block size is as follows:(10)bS=m⋅Q⋅bIFX,V.In the formula,m represents the average size of each transaction data in the network, and Q represents the number of transactions uploaded in the network per second [26]. The analysis formula (10) shows that, given the number of transactions and the size of transaction data, the block size and the time interval of block generation in the network are mutually restricted.According to the restriction relationship between the duration of each round, block size, transaction propagation speed, block generation interval, and block security, reasonably adjust the duration of each round in the network, block size, transaction propagation speed, and block generation At intervals, the privacy protection of network data is completed through the public key and the private key [27].


## 3.1. Blockchain Technology

Under normal circumstances, the blockchain is composed of an application layer, a data layer, a contract layer, a network layer, an incentive layer, and a consensus layer. The blockchain structure is shown in Figure1.Figure 1
Blockchain structure.The components and functions of each layer of the blockchain are as follows:(1)
This layer includes the hash function, the chain structure corresponding to the data block, the Merkle tree, the time stamp, and the public key cryptography technology. At the bottom of the blockchain structure, the blockchain technology is used to integrate the above technologies. Constitute a reliable and safe network data storage mode, as shown in Figure2.(2)
Network layer: The verification mechanism, propagation mechanism, and P2P network are applied to the network layer. Blockchain obtains adaptive networking functions based on P2P technology, determines data verification methods and information dissemination protocols through verification mechanisms and dissemination mechanisms, and determines specific methods and protocols based on actual application scenarios. Every node in the blockchain can participate in data accounting and verification through verification mechanisms and dissemination technologies.(3)
Consensus layer: The core of the blockchain structure is the consensus layer. The formula protocols used in the consensus layer include certificate of authorization for shares, proof of rights and interests, and proof of workload [18].(4)
Incentive layer: Apply economic incentive mechanism to the incentive layer, encourage more nodes existing in the network to join the operation, and set up the corresponding distribution method and incentive issuance mechanism. Corresponding punishments are imposed on network nodes that do not comply with the rules, and the system is guided to continue to cyclically develop in a good direction [19].(5)
Contract layer: There are various smart contracts, algorithm mechanisms, and script codes in the contract layer, which improve the programmability of the blockchain. Ethereum and Bitcoin have powerful programming functions and scripting functions, respectively. Users can implement smart contracts with different functions through programming and algorithm mechanisms. Under normal circumstances, people treat smart contracts as automatic guarantee accounts [20].(6)
Application layer: Display cases and actual needs such as programmable society, programmable finance, and programmable currency exist in the application layer.Figure 2
Network data storage mode.


## 3.2. Network Data Privacy Protection Method

On the basis of the secure transmission protocol of Internet nodes, the privacy protection of network data is carried out. Blockchain can complete the protection of private data through two types of encryption algorithms, one is to use ECC elliptic curve encryption algorithm to encrypt the amount of data existing in the blockchain, and the other is to use AES symmetric encryption algorithm to protect nonblockchains. The private data that exists is encrypted [21].Letprivate Key represents the private key generated by the private blockchain, and puhlic Key represents the public key generated by the private blockchain. The expressions are as follows:(7)private Key=SHA256message,puhlic Key=Secp256private Key.In the formula,message represents the sliding data of the touch screen or the user's mouse, which is regarded as a random value entered into the system, SHA256 represents the hash algorithm, and Secp256 represents the ECC elliptic curve algorithm, which is often applied to blockchain technology middle [22].The generation rate of blocks in each round affects the security of the blockchain. Letf represent the generation rate of blocks in each round, which is used to represent the expected value of the solution required for each round of proof of information transmission [23]. The block generation rate in each round is inversely proportional to the security of the blockchain, and 1/f can be used to represent the security of the blockchain. Let tP represent the propagation rate of the transaction in the blockchain, bS represent the size of the block in the network, and rD represent the duration of each round [24]. The relationship between the duration of each round, block size, transaction propagation speed, and the block generation rate of each round can be expressed by the following formula:(8)tP∝bS⋅frD.The time intervalb of block generation in the network is proportional to the duration of each round. The above formula can be changed to the following formula:(9)tP∝bSbI⋅1/f.From equations (8) and (9), it can be seen that the transaction propagation speed, block generation time interval, and block size affect the security of the blockchain in the network, and they restrict each other [25].The relationship between the time interval of block generation in the network and the block size is as follows:(10)bS=m⋅Q⋅bIFX,V.In the formula,m represents the average size of each transaction data in the network, and Q represents the number of transactions uploaded in the network per second [26]. The analysis formula (10) shows that, given the number of transactions and the size of transaction data, the block size and the time interval of block generation in the network are mutually restricted.According to the restriction relationship between the duration of each round, block size, transaction propagation speed, block generation interval, and block security, reasonably adjust the duration of each round in the network, block size, transaction propagation speed, and block generation At intervals, the privacy protection of network data is completed through the public key and the private key [27].


## 4. Simulation Experiment Analysis

In order to verify the effectiveness of the trusted computing and blockchain-based privacy data protection method proposed in this paper in practical applications, a simulation experiment is performed. The experimental environment is Ubuntu 18.04.4LTS 64 bit operating system running on Intel® Core™ i5-9400F CPU and Ubuntu 18.04.3 LTS running on Intel® Core™ i5-6300HQ CPU in VMware Workstation 14Player 14.1.1 64 bit operating system, and the operating memory of the system is 8 GB and 2 GB, respectively. In this experiment, the test hardware environment set up is shown in Figure3.Figure 3
Test environment.The software and development environment are as follows:React: A Java Script library is used to write UI. It provides data rendering and presentation as HTML views. We develop web applications based on React that are convenient for user interaction. Users interact with Ethereum and IPFS through the web interface.Ganache: Version 2.3.0-beta.1 is a blockchain client for Ethereum developers, which is convenient for local simulation of the blockchain private network and deploys and tests smart contracts on the network. The simulation experiment environment is shown in Table1.Table 1
Simulation experiment environment.
NameParameterComputer hardwareCPU Intel due to Core (TM) i5-3230M 2.6UGHz, memory size 4 GB, hard disk size 1 TBDevelopment languageJava (version number: 1.8.0 111)Development toolsEclipse (version number: Neon.2 release 4.6.2)Third-party libraryWeka (version number: 3.8.1), Mulan (version number: 1.5.0), lK-Analyzer (version number: 5.0.1)Operating systemWindows 10 Ultimate EditionOther toolsU1traF.dit (version number: 24.00.0.72), StarUML (version number: 5.0.2.1570)Based on the above background, the experimental data is taken from the power user privacy database established by the power grid company. The privacy database contains 2000 privacy data. The privacy data is classified into one, two, and three levels of privacy data sets and a tuple of privacy data sets. The number is set to 10, using the method of this paper and the method of privacy data protection in the software development database based on differential protection proposed in [6] to conduct protection experiments on the privacy data of power users.Firstly, experiments are carried out on the protection accuracy of the two protection methods. The results of the two protection methods with the change of the private data set tuple are shown in Figure4 below.Figure 4
The result of the protection method privacy data set tuple change.It can be seen from Figure4 that the protection accuracy of the privacy data protection method in the software development database based on differential protection decreases rapidly with the increase of the private data set tuple, and the protection accuracy finally stays at about 0.55. However, the proposed method is based on trusted computing in this paper Although the protection accuracy of the privacy data protection method of the blockchain also decreases with the increase of the ancestor of the privacy data set, the decrease is smaller and the decrease is slower. The protection accuracy finally stays at about 0.95, indicating the privacy data of the method in this paper. The protection accuracy is high. As can be seen from the experimental results in the figure, our method is more stable.In order to further verify the effectiveness of the method in this paper, in the process of protecting 2000 private data, the time consumed by the method in this paper and the privacy data protection method in the software development database based on differential protection proposed in [6] is compared and analyzed. The comparison result is shown in Figure 5.Figure 5
Comparison results of consumption time.It can be seen from the experimental results that, with the increase of the private data set tuples, the time consumed by the method in this paper gradually increases, the growth is slower, and the maximum consumption is 750 s, while the time consumed by the privacy data protection method in the software development database based on differential protection increases with the privacy. The increase of data set tuples rises rapidly, and the time consumed is up to 900 s, which proves that the method in this paper is more efficient and consumes less time. As the number of experiments increases, the time required by each method also increases, but the time consumed by our proposed method is significantly lower than that of the comparison method.


## 5. Conclusion

Many devices on the Internet are generating a large amount of data every moment. A large part of this data will involve the privacy of users. However, the increasingly intensive and widespread collection and processing of data generated in people’s private lives will cause serious security and privacy issues. Several inherent deficiencies of the Internet exacerbate its security and privacy challenges, including lack of central control and heterogeneity of equipment resources. Nowadays, most of these data are stored in cloud data centers, and cloud storage on the Internet has almost completely relied on data providers as trusted third parties to transmit and store data. Although the system works well in most cases, it is still subject to inherent weaknesses based on the trust model. Therefore, traditional clouds are subject to various security threats, including man-in-the-middle attacks, malware, and attacks that expose sensitive data of private consumers and companies and many more. In addition, current cloud storage applications can charge high fees for data storage that exceed their core costs, because users have almost no choice of affordable and powerful providers, and users cannot participate in the supervision of these data. Moreover, these third-party providers may experience technical failures, leading to data leakage and unavailability, which to a large extent threatens user privacy and data security. It can be seen that data security and user privacy are a major issue of the Internet, which hinders the large-scale deployment of the Internet. Therefore, this paper proposes a privacy data protection method based on trusted computing and blockchain, which not only avoids the problem of private data leakage, but also ensures the security of private data, laying a certain foundation for network data security.



---

*Source: 6274860-2021-12-17.xml*