With the development of Internet and communication technology,electronic voting has gradually been attached importance and applied in the society.Electronic voting can solve the problem of traditional manual voting in geographical space.However,due to the centralized management of traditional electronic voting systems,which store and manage voting data centrally,voters may have a crisis of trust.With the characteristics of decentralization and open and transparent data,blockchain can solve the problems in the current electronic voting system,make the voting process open and transparent,and enhance the credibility of voting results.Therefore,it is of practical significance to study the electronic voting technology based on block chain.This thesis mainly studies the mechanism,design and implementation of electronic voting technology based on block chain.In view of the current mainstream blockchain platform is not directly applicable to the problem of electronic voting,the block structure suitable for electronic voting is studied.Using the public ledger characteristics of blockchain,the vote data processing is regarded as the trust operation of this scheme.Based on the existing consensus mechanism and combined with the actual operation requirements of electronic voting,a chain structure suitable for electronic voting and the corresponding verification scheme of open and transparent voting data are proposed.Aiming at the difficulty of verifying user’s authenticity in blockchain,a method of authenticating user’s authenticity in blockchain network is proposed based on asymmetric encryption and digital signature technology.A voting method based on Ethereum is designed to avoid repeated voting.By taking advantage of the automatic execution triggered by ethereum smart contract,the business logic of managing voting process and automatic vote counting is written into the smart contract in the form of code,and a smart contract that can realize automatic vote counting is designed to improve the credibility of voting results.Combined with the above research content,the design and implementation of a simulation scheme based on ethereum platform.This thesis builds a private chain on the Ethereum blockchain platform,simulates real scenes for simulation experiments,and carries out functional and performance tests on the system.The test results show that the electronic voting system based on block chain designed in this thesis has good performance and can meet the needs of users,which proves the correctness and feasibility of the proposed voting scheme. |