hyperledger作曲家中的chaincode与hyperleger结构中的chaincode? [英] chaincode in hyperledger composer vs chaincode in hyperleger fabric?

查看:75
本文介绍了hyperledger作曲家中的chaincode与hyperleger结构中的chaincode?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

通过在Hyperledger作曲器中使用javascript编写链代码是否与在Hyperledger架构中使用go编写链代码可以实现相同的功能吗?

does same functionality can be achieved by writing chaincode with javascript in hyperledger composer as writing chaincode with go in Hyperledger fabric?

与用go编写相比,用JS编写chaincode的局限性和好处是什么?

and What are the limitations and benefits of writing chaincode in JS as compared to writing in go ?

推荐答案

关于问题2:本文可以作为并行比较进行解释(Golang(Go)和Composer模型驱动的方法)-> https://blog.selman.org/2017/07/08/开始使用区块链开发/. Hyperledger Composer的主要区别在于,Hyperledger Composer是一组用于建模,构建,集成和部署区块链解决方案(例如,供各方进行交易的业务网络)到区块链网络的抽象,工具和API. Composer业务网络存档可以部署到Hyperledger Fabric中,以作为智能合约(包括建模网络,用Javascript编写的事务逻辑,ACL,查询等)执行.

On question 2: this article can explain as a side-by-side comparison (Golang (Go) and Composer model-driven approach) -> https://blog.selman.org/2017/07/08/getting-started-with-blockchain-development/. The main difference is Hyperledger Composer is a set of abstractions, tools and APIs to model, build, integrate and deploy a blockchain solution (eg a business network for parties to transact on) to the blockchain network. Composer business network archives may be deployed to Hyperledger Fabric for execution as smart contracts (that's including the modeled network, transaction logic written in Javascript, ACLs, queries etc).

这篇关于hyperledger作曲家中的chaincode与hyperleger结构中的chaincode?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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