基于区块链技术的投票系统的设计与实现
发布时间:2018-03-22 00:08
本文选题:投票系统 切入点:区块链 出处:《内蒙古大学》2017年硕士论文 论文类型:学位论文
【摘要】:随着社会的进步,经济的快速发展,投票调查、意见采集在社会生活中起了越来越重要的作用。网上投票系统以高效率、节省资源、易传播等特性替代了线下投票活动。但是由于网上投票系统的数据存储在中心化服务器中,存在许多弊端。例如:(1)用户的投票信息有被泄漏的风险;(2)选民投票以后,普通的选民无法验证投票结果是否正确;(3)投票数据、结果可能会被恶意篡改。本论文利用区块链技术的去中心化、信息不可篡改、公开透明的特性,构建了公平、公正、公开透明的投票系统。本文旨在通过利用区块链中的转账交易替代投票过程,以解决现有网上投票系统存在的问题。系统为每个用户和投票选项生成一个区块链账号,并且为每个投票活动发行一种投票代币。系统中每个用户只能领取一次投票代币,用户把自己拥有的投票代币转账给投票选项的区块链账号。最后,系统统计各投票选项拥有的投票代币数量,把它记为投票选项所得票数,公示投票结果。本论文主要成果如下:(1)完成了基于区块链技术的投票系统的设计。本系统分为三层组织结构,分别是布比区块链作为底层、SDK工具作为中间件层和投票系统的业务作为实现层。设计封装了 SDK工具,方便系统后台业务灵活调用底层区块链。设计了本系统的系统业务总体模块结构,对系统中的管理员子系统、用户子系统中的各个功能模块进行详细设计。最后,根据系统的功能模块,抽象出系统数据库中的实体对象,进而设计了本系统数据库中的表结构。(2)完成了基于区块链技术的投票系统的实现。首先,实现了底层区块链的安装部署,安装了四个Ubuntu服务器作为区块链中的节点,使四个节点达成共识,保证底层区块链正常运行。其次,按照设计部分实现完成数据库部署建立,以保证投票系统的上层业务实现。再次,完成了投票系统业务实现,采用Spring+SpringMVC+Mybatis框架开发实现了基于区块链的投票系统的业务功能。最后,对系统的各个模块进行功能测试,保证了系统正常稳定运行。
[Abstract]:With the progress of society and the rapid development of economy, voting survey and opinion collection have played an increasingly important role in social life. Features such as ease of dissemination replace offline voting. But because the data of the online voting system is stored in a centralized server, there are many drawbacks. For example, the voting information of a user is at risk of being leaked. Ordinary voters can not verify whether the voting results are correct or not, and the results may be maliciously tampered with. Open and transparent voting system. This paper aims to solve the problems of the existing online voting system by using the transfer transaction in the block chain instead of the voting process. The system generates a block chain account for each user and voting option. And issue a vote token for each voting activity. In the system, each user can only receive one vote token, and the user transfers the voting token he owns to the block chain account of the voting option. Finally, The system counts the number of tokens for each voting option and counts it as the number of votes obtained by the voting option. The main results of this paper are as follows: 1) the design of the voting system based on block chain technology is completed. The system is divided into three layers. The Buby block chain is used as the bottom layer of the SDK tool as the middleware layer and the voting system as the implementation layer. The SDK tool is designed and encapsulated. It is convenient for the system background business to call the bottom block chain flexibly. The overall system business module structure is designed. The administrator subsystem and the user subsystem are designed in detail. Finally, According to the function module of the system, the entity objects in the system database are abstracted, and then the table structure in the database of the system is designed. The installation and deployment of the underlying block chain is realized, and four Ubuntu servers are installed as nodes in the block chain, so that the four nodes reach a consensus and ensure that the underlying block chain runs normally. Secondly, the database deployment is completed according to the design part. In order to ensure the implementation of the upper layer business of the voting system. Thirdly, the realization of the voting system business is completed, and the business function of the voting system based on the block chain is developed by using the Spring SpringMVC Mybatis framework. Finally, the function of each module of the system is tested. It ensures the normal and stable operation of the system.
【学位授予单位】:内蒙古大学
【学位级别】:硕士
【学位授予年份】:2017
【分类号】:TP311.52;TP311.13
【参考文献】
相关期刊论文 前10条
1 李董;魏进武;;区块链技术原理、应用领域及挑战[J];电信科学;2016年12期
2 未央;;区块链能代表信用标准的最高水平吗?[J];互联网周刊;2016年24期
3 朱岩;甘国华;邓迪;姬菲菲;陈爱平;;区块链关键技术中的安全性研究[J];信息安全研究;2016年12期
4 ,
本文编号:1646166
本文链接:https://www.wllwen.com/kejilunwen/ruanjiangongchenglunwen/1646166.html