文档详情

基于区块链的学生身份认证系统的研究与实现.docx

发布:2021-06-13约3.61万字共50页下载文档
文本预览下载声明
摘    要 区块链(Blockchain)是近些年伴随比特币而出现的一项技术,是一个个数据块,块于块之间通过哈希之进行链接成链,具有令人振奋的去中心化技术。它基于密码学,任何达成一致的双方都可以直接进行交易,无须第三方的介入,可实现一个全球同步的分布式账本,记录着所有的交易,具有高透明、不可篡改、可追溯的特点,有效的提高了交易的安全性。 本系统基于区块链设计并实现了一个类似于校园卡的学生身份认证系统。本系统基于用户和管理员的不同身份分别设计并实现了用户的注册、登陆、注销、支付、充值、修改信息、修改密码、信息查询、流水查询的功能和管理员的登陆、注销指定用户、指定用户支出与充值、修改管理员密码、修改指定用户信息和密码、查询指定用户信息、查询指定用户的流水功能、查询全部用户信息和流水功能。 本系统整体采用的是采用Java 语言开发,SpringMVC与Spring完美适配,负责控制器和视图渲染,前端部分使用JSP和jQuery,数据库使用MySQL,后端使用JDBC对应实体层和Dao层的实现,Dao层通过Java后端与MySQL数据库进行交互,根据前期设计好的功能实现最基本的数据库增删改查工作,保持可拓展性,为之后设计业务层的数据需求提供服务。前端基于用户和管理员对应的权限和功能设计不同的页面,通过session来进行用户权限和管理员权限的分类,前端的代码与后端的控制层及服务层同期实现,控制层接收到前端传来的事件之后进行相应跳转,提供相应服务。前端通过web3.js提供的接口与Solidity编写的智能合约交互,智能合约部署至测试网络正常运行后,再搭建基于以太坊的私有链网络,成功将智能合约部署至私有链,从而实现系统在私有链的部署和数据上链,通过区块链浏览器查看区块信息。 关键词:学生身份认证  区块链  以太坊  Java  Solidity  智能合约 The Student Identity Authentication System Base on Blockchain Abstract:Blockchain is a technology that has appeared with Bitcoin in recent years. It is a block of data. The blocks are linked into chains by hashes between blocks, and have exciting decentralization techniques. It is based on cryptography. Any party that agrees can directly conduct transactions. Without the intervention of a third party, a globally synchronized distributed ledger can be realized, recording all transactions, featuring high transparency, non-tamperability and traceability. Effectively improve the security of the transaction. The system designs and implements a student identity authentication system similar to the campus card based on the blockchain. The system designs and implements the users registration, login, logout, payment, recharge, modification information, password modification, information query, flow query function, administrator login, logout of designated users, and user identification based on different identities of users and administrators. Specify user expenditure and recharge, modify administrator password, modify specified user information and password, query specified user information, query t
显示全部
相似文档