| Although the data on the consortium blockchain cannot be tampered with,the nodes with data access rights may maliciously access the data,resulting in data leakage.Block access records are an important basis for tracing the source of data leakage.However,the access records themselves may also be tampered with,so how to protect block access records is of great significance.To address the above problems,this thesis proposes a storage mechanism based on master-slave blocks to store block data and block access records,and a new consensus algorithm for slave blocks is proposed to improve the consensus efficiency.Combined with the newly proposed storage mechanism and consensus algorithm,a consortium blockchain system that can store access records is designed and implemented.The details of the research are as follows:(1)A data access record storage mechanism for consortium blockchain based on master-slave blocks is proposed.In this mechanism,the master block is used to store data resources,and the slave blocks of the master block are used to store the access records of the master block.This storage method makes the slave blocks also have block security features,and makes the access records become a traceable and tamper-resistant factual basis.The feasibility of the storage mechanism in practical application is verified by simulation experiments.Compared with the traditional single chain data query on the public data set,it shows that the mechanism has good performance.Finally,the data leakage scenario was simulated,and the Hash of the block that had data leakage and the time of discovering data leakage were used to successfully narrow the range of suspicious nodes that led to data leakage events,which provided favorable evidence for tracing suspicious nodes.(2)Based on the master-slave blocks storage mechanism,this thesis proposes an Aggregate Signature Practical Byzantine Fault Tolerance(AS-PBFT)algorithm for slave blocks.The AS-PBFT algorithm cancels the two stages of client initiating requests and receiving replies,and instead uses the primary node to initiate consensus.In the Prepare phase,the primary node aggregates the received node signatures,then sends the generated aggregate signatures to the verification node for verification,avoiding the communication pressure caused by multiple verification between nodes.In the Commit phase,the verification node only needs to send the message to the primary node,without the whole network broadcast,which further simplifies the consensus step.Experimental results show that AS-PBFT algorithm not only improves throughput,but also reduces consensus latency and communication times compared to PBFT and SBFT algorithms,and has better consensus performance.(3)Based on the master-slave blocks storage mechanism and AS-PBFT algorithm,this thesis designs and implements a consortium blockchain system that can store access records.The system is not only an experimental platform for the master-slave blocks storage mechanism and AS-PBFT algorithm,but also can be applied to specific industries and fields.The test results of function and performance show that the system has certain practicability. |