如果使用Hyperledger Composer,我是否需要使用Fabric SDK? [英] do I need to use fabric sdk if am using hyperledger composer

查看:77
本文介绍了如果使用Hyperledger Composer,我是否需要使用Fabric SDK?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Hyperledger Composer进行事务调用以及与资源(参与者,资产等)操纵有关的所有东西.我已经使用composer-rest-server生成了服务器,还使用yeoman生成器生成了有角度的前端. 这使我想问一下,SDK面料有什么用?在上述情况下我会需要吗? 请澄清,谢谢.

I am using hyperledger composer for transaction invocation and all the stuffs related to resource(participants, assets etc) manipulation. I have generated the server using composer-rest-server, and also generated the angular frontend using yeoman generator. This makes me to ask what is the use of fabric sdk? Will I need it in the above mentioned scenario? Please clarify, thanks.

推荐答案

在Hyperledger Fabric中编写链码有两种方法,

There are two ways to write chaincode in Hyperledger Fabric,

1)使用GoLang

1) Using GoLang

2)使用NodeJS

2) Using NodeJS

为了连接Hyperledger Fabric和调用chaincode事务.您将需要SDK.根据您的应用程序技术堆栈,您可以使用Fabric NodeJS SDK,Fabric Java SDK和Fabric Python SDK.

In order to connect Hyperledger Fabric and Invoke chaincode transaction. You will require SDK. Based on your application technology stack, You can either use Fabric NodeJS SDK, Fabric Java SDK and Fabric Python SDK.

另一方面; Hyperledger composer是编写链码的不同方法,它是框架的指南,可以帮助您加速链码的开发.如果使用composer开发了业务网络,则可以使用"composer rest服务器"或"composer-admin"和"composer-client"节点模块.您无需使用任何SDK即可与部署在超级账本结构上的业务网络进行交互.请参考下图以更加清楚.

On other hand; Hyperledger composer is different way of writing chaincode, which is guide of framework which can help you to accelerate your chaincode development. If you have developed business network using composer, then you can either use "composer rest server" or "composer-admin" and "composer-client" node module. You dont need to use any SDK in order to interact with Business network deployed on hyperledger fabric. Kindly refer following diagram for more clarity.

这篇关于如果使用Hyperledger Composer,我是否需要使用Fabric SDK?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆