| Consensus mechanism plays an extremely key role in blockchain applications,which is directly related to the performance and security of the system.DPOS consensus mechanism occupies a place in the field of consensus algorithm with the advantages of high efficiency and low energy consumption.At the same time,DPOS is controversial because of its high degree of centralization,low security and inactive voting.Secure multi-party computing has unique advantages in data privacy protection and joint computing,which coincides with the consensus mechanism in some aspects.Using secure multi-party computing to generate trusted random numbers to provide randomness and fairness for consensus mechanism has become a new solution.Combining secure multi-party computing and its cryptographic technology with DPOS,and further solving the problems of DPOS mechanism,it is expected to be applied to the block platform as an efficient and secure consensus mechanism in the future.This paper is the research and application of DPOS consensus mechanism based on secure multi-party computing.The main work is as follows:(1)A secure multi-party random number generation scheme is proposed.Based on cryptographic tools such as secure multi-party computation,zero knowledge proof and homomorphic encryption,the scheme ensures that each process of protocol execution can be publicly verified,and enables multiple untrusted participants to jointly generate a trusted random number.The analysis shows that the scheme has good performance and security.(2)Aiming at the problems in DPOS,such as passive voting,bribery,node solidification caused by concentration of rights and interests,and vulnerable witness nodes caused by transparent identity,an improved DPOS scheme based on secure multi-party computing is proposed.Based on the secure multi-party random number generation protocol and the verifiable ring signature algorithm,the improved scheme redesigns the witness selection method to solve the defects caused by the voting method in the original mechanism.It has the advantages of random witness identity extraction,random block order and identity anonymity.Experimental analysis shows that the improved scheme is superior to the original consensus mechanism in terms of security and fault-tolerant efficiency.(3)The improved DPOS consensus mechanism is applied to the electronic voting scheme,and an electronic voting scheme based on DPOS consensus mechanism is proposed.This scheme can solve the problems that traditional electronic voting schemes rely too much on trusted third-party counting centers,and dishonest voters are easy to fail in the voting scheme based on smart contracts. |