| The current information construction of medical system is getting faster and faster,but there are still some obvious shortcomings in medical information system,such as privacy leakage of medical data and difficulty in sharing.Therefore,how to achieve efficient sharing while ensuring data security is of great significance to the information construction in the medical field.In order to solve the current problems of medical information systems,this paper uses blockchain technology to build a blockchain model for medical data sharing.As a newly emerged technology,blockchain has the characteristics of decentralization,collective maintenance,and non-tamperability,which can effectively solve the current problems of data barriers and hacker attacks in medical information systems.Consensus algorithm is one of the underlying technologies of blockchain,which is responsible for maintaining data consistency of nodes in the network and reaching consensus on block packing.To address the problems of high energy consumption and low security in the model,this paper proposes a new consensus algorithm based on the Delegated proof of stake(DPoS)mechanism.The details of the research are as follows.(1)To address the current problem of difficult data sharing in medical information systems,a medical data sharing blockchain model is proposed,it uses a dual-chain structure to increase efficiency,combined with the Inter Planetary File System to store large-scale medical data,which achieves efficient sharing while protecting data privacy and security.(2)In the medical data sharing blockchain model proposed in this paper,the KDPOS consensus algorithm is proposed to address the problems of high energy consumption and low security.In the algorithm,nodes are classified according to their past performance,which improves the motivation of nodes to vote.In the voting process,the range of nodes that can accept votes is specified,which prevents the consensus process from being controlled by a few nodes.When malicious nodes appears in the packing queue,timely and effective processing can be carried out,which improves the algorithm security.After theoretical analysis and experimental testing,the K-DPOS consensus algorithm solves the problems of high energy consumption and low security in the medical data sharing model.(3)On the basis of the proposed medical data sharing model,the main functions of the medical data sharing platform are designed and implemented,indicating that the model proposed in this paper has good practicality. |