| Electronic voting is a common way of voting in daily life and it is widely used in various scenarios such as online questionnaires and weibo topics.The counting is an indispensable process in the voting system,at the same time it is very important for the voting itself to obtain a true and reliable counting result.However,in the current electronic voting system that based on a centralized network institution or a third party,it is difficult to apply the important scenarios such as elections due to the problems of opaque counting process and unreliable counting results.Blockchain is a distributed technology that has the characteristics of decentralized,de-trust,tamper-proof,and traceable.Based on the technology,it can better solve the potential problems brought by the central organization.The study aimed to solve the problems in the existing electronic counting process by blockchain technology,which is of great significance for promoting the promotion and application of electronic voting in important scenarios.The main contents are as follows.(1)Aiming at the problem that the Practical Byzantine Fault Tolerance algorithm is likely to trigger the view replacement protocol multiple times in the master node selection mode and affect the consensus efficiency,the paper proposed a scheme that called master node selected scheme based on trust degree of the multi attribute decision making(TD-Master Node).Firstly,the attributes of the alliance nodes was characterized in detail.Then the evaluation method of each attribute was determined according to various theories.Afterwards,the information entropy was used to standardize the evaluation value of each attribute and calculated the corresponding weight.Finally,the final trust degree of nodes was computed by combining weighted sum method and iterative historical trust degree.In this way,we achieved the reliability basis for how to select a master node.Through the experiments and tests,it can be seen that the TD-Master Node scheme can not only scientifically measure the reliability of the node,but also significantly reduce the frequency of errors for the master node,which is conducive to improving the consensus efficiency of the PBFT algorithm.(2)For the problem that third party counting institution does not meet the decentralization and de-trusting characteristics of blockchain and lack of credibility,a trusted electronic counting scheme based on alliance chain was proposed.Firstly,we built a counting mode without a trusted center in a distributed environment and use TD-Master Node as the basis for dividing the type of voting node.Then,PBFT and threshold signature were adopted as the consensus algorithm and verification form for the counting of votes.In particular,the minimum number of honest nodes required in PBFT was used as the threshold to obtain a legal threshold signature.Finally,the results that meet the conditions were recorded in the blockchain.The experiments show while the honest nodes exceed two-thirds of the total nodes,the counting result is completely correct. |