基于联盟链的公共资源申请记录系统毕业论文

 2022-10-16 11:10

论文总字数:19871字

摘 要

区块链是一种新的操纵分布式数据存储、点对点传输、共识机制、加密算法等模式的技术。区块链可以分为联盟链,私有链和公有链三种不同的形式。三者之间的主要区别在于对于访问权限的不同。想要交易的效率越高,对应的安全性和信任程度就越低,反之交易效率越低,安全性与信任程度则越高。

高校公共资源管理普遍采用集中式的架构,采用中心化的服务器系统对学生的资源申请请求进行处理。这种中心化的方式在请求量增多时,会出现响应延迟增加,数据可用性降低等问题。随着区块链技术的出现,可以探寻一种解决上述问题的新方式。构建基于区块链的分布式系统,使得服务端能够对数据做到冗余存储,提高数据可用性,采用联盟链架构提升系统的处理能力。本设计旨在于使用联盟链设计一个高效安全的公共资源申请记录系统。

关键词:区块链;联盟链;hyperledger fabric

Public Resource Application Recording System Based on Alliance Chain

ABSTRACT

Block chain is a new technology to manipulate distributed data storage, point-to-point transmission, resonance mechanism, encryption algorithm and other modes. Block chain can be divided into alliance chain, private chain and public chain. The main difference between the three is the different access rights. The higher the transaction efficiency, the lower the corresponding security and trust level. On the contrary, the lower the transaction efficiency, the higher the security and trust level.

The centralized structure is widely used in the management of public resources in Colleges and universities, and the centralized server system is used to process the students'requests for resources. When the number of requests increases, the response delay increases and the data availability decreases. With the emergence of block chain technology, a new way to solve the above problems can be explored. A distributed system based on block chain is constructed, which enables the server to store data redundantly, improve data availability, and enhance the processing ability of the system by using federation chain architecture. The purpose of this design is to use the alliance chain to design a convenient operation and fast access to public resources applications.

Key words:Block Chain; Alliance Chain;hyperledger fabric

目 录

第一章 绪 论 1

1.1 研究的背景 1

1.2 研究的现状 1

1.3 设计的目的和意义 1

第二章 器件介绍及功能分析 2

2.1 器件介绍 2

2.1.1 VirtualBox以及Ubuntu 2

2.1.2 go 2

2.1.3 docker 3

2.1.4 Fabric 4

2.2 功能分析 4

第三章 环境配置 5

3.1 使用VirtualBox并在其中安装好Ubuntu 5

3.2 Go的安装 5

3.3 Docker安装 5

3.4 Docker-Compose的安装 6

3.5 Fabric源码下载 6

3.6 Fabric Docker镜像的下载 7

3.7 启动Fabric网络 7

3.8 完成ChainCode的测试 8

第四章 实验过程与结果分析 10

4.1 生成公私钥和证书 10

4.1.1编译生成cryptogen 10

4.1.2配置crypto-config.yaml 10

4.1.3生成公私钥和证书 10

4.2 生成创世区块和Channel配置区块 11

4.2.1编译生成configtxgen 11

4.2.2配置configtx.yaml 11

4.2.3生成创世区块 11

4.2.4生成Channel配置区块 11

4.3 配置Fabric环境的docker-compose文件 12

4.3.1配置Orderer 12

4.3.2配置Peer 13

4.4 配置CLI 13

图4.3 docker-compose-cli.yam 14

4.5 初始化Fabric环境 14

4.5.1启动Fabric环境的容器 14

4.5.2创建Channel 15

4.5.3各个Peer加入Channel 15

4.5.链上代码的安装与运行 17

4.5.1Install ChainCode安装链上代码 17

4.5.2Instantiate ChainCode实例化链上代码 17

4.5.3在一个Peer上查询并发起交易 18

5.4在另一个节点上查询交易 18

第五章 总结 20

第六章 致谢 21

参考文献 22

  1. 绪 论

1.1 研究的背景

以前的数据库管理系统[1]、都是由每个企业或机构自己单独进行管理以及维护的,当时的机构可以随意的控制自己的数据,因此其他的机构在不了解数据是如何更新以及维护的情况下,无法完全信任数据库中的数据。因此,当几个机构进行合作工作是,不同机构中对数据库的统一管理一直存在着信任问题。

剩余内容已隐藏,请支付后下载全文,论文总字数:19871字

您需要先支付 80元 才能查看全部内容!立即支付

课题毕业论文、开题报告、任务书、外文翻译、程序设计、图纸设计等资料可联系客服协助查找。