| By virtue of its immutability,blockchain can realize safe storage and efficient traceability of industrial data in combination with the Industrial Internet.Blockchain can also solve problems such as difficulty in data circulation and confirming rights in the industrial field.However,due to the large amount of industrial data,if there are errors,outdated or sensitive data on the industrial blockchain,the immutability will result in the permanent storage of inappropriate content.This not only limits the development of industrial blockchain systems,but also violates the provisions of domestic and foreign policies on the right to delete personal data.Therefore,this paper conducts corresponding research on redactable blockchain technology for specific scenarios such as eliminating errors and private data on industrial blockchains,as described below.First of all,in view of the leakage risk of the Chameleon Hash algorithm in the key distribution and storage stage,this paper uses smart contracts to improve the Chameleon Hash to ensure the security of the key.In this scheme,smart contracts are designed to replace the key generation center for key generation and distribution.Users are divided into consensus nodes,computing nodes,and key holding nodes.Among them,the key holding nodes are responsible for storing key fragments.Through experiments and analysis,the execution time of each function of the Chameleon hash in this paper is at the millisecond level,and the computing resources consumed by each function of the smart contract are at the level of ten thousand gas.Therefore,the algorithm has a low loss on the basis of ensuring security.And after comparison,when the number of shards(t,n)in Distributed Chameleon Hash is 20,the optimal threshold ratio t/n is 80%.In addition,the comparison with related schemes shows that this scheme has better efficiency when the number of key holding nodes is less than 35.Then,in view of the occurrence of erroneous data and private data on the industrial blockchain,this paper proposes a redactable blockchain scheme based on Distributed Chameleon Hash and Trusted Execution Environment(TEE).On the one hand,this paper uses the Distributed Chameleon Hash to realize the function of blockchain editing.Also,this scheme uses the content verification strategy to ensure that only reasonable editing proposals and results can pass the consensus.On the other hand,this scheme designs TEE module to perform sensitive calculations related to the private key.After experiments and analysis,compared with existing redactable blockchain schemes,this scheme has both content verifiability,computational privacy and distributed key management functions.This scheme can resist replay attacks,man-inthe-middle attacks,etc.This paper compiles and runs an editable blockchain network,and verifies the editing function by comparing the block fields before and after editing.The network transaction throughput can reach thousands of TPS,meeting the real-time requirements of industrial scenarios.This scheme also tested the key steps of the algorithm and the blockchain generation time under different editing ratios.Among them,the time of one editing operation is about 1.252 s,which indicates that the lowfrequency editing operation affects the performance of the entire blockchain.Although the TEE module adds additional overhead,it is a compromise between security and efficiency.In addition,this paper designs a prototype system of redactable blockchain,which has the functions of querying basic information such as blocks,transactions,accounts,and content editing. |