20

简介 | Ecsoya’s Fabric

 4 years ago
source link: https://ecsoya.github.io/fabric/?
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Hyperledger Fabric 是 Hyperledger 超级账本项目的基石。它是基于许可的区块链,或者更准确地说是一种分布式分类帐技术(DLT),该技术最初由 IBM 公司和 Digital Asset 创建,它更适合企业和联盟去打造区块链即服务的BAAS平台。

Spring Fabric Gateway 是我基于官方的Gateway项目,结合Spring MVC做出的一套框架,这将大大的简化Fabric区块链项目的开发。

在线演示

一、网络部署

Fabric网络的搭建有很多方式,许多云商都有自己的Fabric BAAS平台,可以直接选择。也可以自己动手搭建,详细的方法请参考Fabric 网络部署

二、官方SDK

三、Spring Fabric Gateway

这是我基于官方的Gateway项目,结合Spring MVC做出的一套框架,将Chaincode的函数调用,包装成了Spring的服务。

<dependency>
	<groupId>io.github.ecsoya</groupId>
	<artifactId>fabric-gateway-spring-boot-starter</artifactId>
	<version>1.0.5</version>
</dependency>

四、Spring Fabric Explorer

一个精简版的Fabric区块链浏览器。

<dependency>
	<groupId>io.github.ecsoya</groupId>
	<artifactId>fabric-explorer-spring-boot-starter</artifactId>
	<version>1.0.5</version>
</dependency>

五、Fabric Network Config

以上的项目,包含官方的Hyperledger Fabric Gateway SDK for Java,都离不开 Fabric Network Config 文件的支持。

所谓的配置文件,就是将所有的组织、Peer和其相关的证书,全部配置到一个JSON文件或YAML文件中,方便在项目中读取。

详细文档:Fabric Network Config

六、完整示例

更多文章


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK