Composer是否需要一个已经建立的Fabric网络? [英] Does Composer needs an already built Fabric network?

查看:62
本文介绍了Composer是否需要一个已经建立的Fabric网络?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近开始撰写作曲家教程,现在我很困惑,是启动启动区块链应用程序开发还是区块链网络开发.我们是否需要使用结构来创建一个区块链网络,然后将其与作曲家集成以为我们的结构网络创建休止点和角度应用程序?仅仅使用作曲家就能实现去中心化和不可变的交易吗?

I recently started up with composer tutorials and now I am confused if it is boot starting block chain application development or block chain network development. Do we need to create a block chain network using fabric and than integrate it with composer to create rest end points and angular application for our fabric network? can we achieve decentralizing and immutable transactions by just using composer?

推荐答案

答案是引导"应用程序开发(Composer通过安装开发" Fabric设置帮助您入门,尽管您只能使用Composer游乐场也没有运行时结构(例如,在具有本地存储的浏览器中)就可以启动),但是-您还将进一步将自己开发的智能合约(模型,访问控制,交易逻辑和功能,查询等)部署到区块链网络,例如,要加入该区块链网络的组织/团体/成员所同意的.Composer运行时安装到所有这些组织中已配置的对等实体),并且其Composer与Fabric区块链进行交互-例如,智能合约规定根据Fabric文档,将什么写入到分类账(或从中读取数据)到与您了解/配置相同的分类账中.Composer还可以公开针对该特定业务网络生成的REST API集,因此或中的应用程序组织可以与部署到区块链的业务网络进行交互.部署的业务网络/智能合约(例如贸易结算")是进入资产分类帐,参与者,身份和交易注册表以及整个更改历史记录的窗口(另一个系统注册表-包括每次交易中发生的更改).从分类的意义上说,这是注册表.

The answer is it is "bootstrapping" application development (Composer helps get you started, by installing a 'development" Fabric setup - although you could use just Composer playground too without a runtime Fabric (ie in the browser with local storage) to get started). But - you will furthermore deploy the smart contract you develop (the model, access controls, transaction logic and functions, queries etc) to the blockchain network, eg as agreed to by the organisations/parties/members that want to participate in that blockchain network. A Composer runtime is installed to configured peers in all of those organisations) and its Composer that interacts with the Fabric blockchain - eg. the smart contract dictating what gets written to the ledger (or read data from) the same ledger you read about / configure, per the Fabric documentation.Composer can also expose the set of REST APIs generated for that particular business network so applications in the organisation can interact with the business network deployed to the blockchain. The deployed business network / smart contract (say "Trade settlement") is a window into the ledger of asset, participant, identity and transaction registries and the whole history of changes (another system registry - including what changed in each transaction). That's registry in a ledger sense.

因此,Hyperledger Composer是一个开发框架和工具集,也是一个用于执行智能合约的运行时抽象层,在其中,业务网络(例如说贸易结算"区块链作为用例或网络;或供应链财务" '等)在区块链上,相关各方之间作为运行时智能合约进行部署,并且所有各方都同意这些条款(模型是什么,数据元素,安全性,访问控制,身份如何发布) ,合同条款等等).

So, Hyperledger Composer is a development framework and toolset but also a runtime abstraction layer for executing smart contracts, in which a business network (eg. say 'trade settlement' blockchain as a use case or network ; or 'supply chain finance' etc etc) is deployed as a runtime smart contract, on the blockchain, between the parties involved, and upon which all have agreed the terms (what the model is, the data elements, the security, the access control, how identities are issued, , the contract terms blah blah).

当然,Composer使开发区块链应用程序和智能合约变得更加容易-这是其目标之一,并且增加了您作为应用程序开发人员必须要做的所有一致性,验证或繁琐工作(您可以深入了解-> https://blog .selman.org/2017/07/08/getting-started-with-blockchain-development ,其中将Fabric和Composer进行了比较.简而言之,Composer目前使用Hyperledger Fabric作为底层的区块链基础架构"或底层的区块链技术,可以在安全的云环境等中以多种方式进行配置.Composer最终旨在实现生产部署/可扩展性-您将进行部署商业网络和智能合约交易逻辑(以一种主流的应用程序开发语言,因此应用程序开发人员不需要专业的语言技能)将在您(作为组织等)将要配置(即在各方之间)的区块链网络上执行(无论部署,配置,配置如何,隐私等)涉及).

Sure, Composer makes it easier to develop blockchain applications and smart contracts - that's one of its aims, as well as adding in all of the consistency, validation or gruntwork you would otherwise have to do as an application developer (you can get an insight into that here -> https://blog.selman.org/2017/07/08/getting-started-with-blockchain-development where Fabric and Composer are compared. So there's the development perspective but also the runtime perspective as I've alluded to above. Hyperledger Composer currently uses Hyperledger Fabric as the underlying 'blockchain infrastructure' or underlying blockchain technology, put simply. This can be configured in many ways in a secure Cloud environent etc etc. Composer is ultimately aimed at production deployment/scalability - you'll be deploying business networks and smart contract transaction logic (written in a mainstream app dev language so app developers don't need specialist language skills) that will execute on the blockchain network (wherever that is deployed, however configured, privacy etc) that you (as an organisation etc) will configure (ie between the parties involved).

在Composer'next'(v0.17.x)中,我们将提供本机Node.js支持,并与Fabric v1.1(alpha版本)一起运行(在撰写本文时),该Fabric版本将作为即将在不久的将来发布GA的生产版本(很明显,Fabric v1.0已经可以与Composer v0.16.x一起使用).

In Composer 'next' (v0.17.x) we will deliver native Node.js support and runs with (at the time of writing) Fabric v1.1 (alpha version) and that version of Fabric will be available as a GA production ready release in the near future (obviously, Fabric v1.0 is already out there that works with Composer v0.16.x).

因此Composer既是开发框架,工具集,建模器又是区块链上的运行时执行;以及所有管理与该业务网络合作的所有其他重要方面的信息,例如管理身份,访问控制,参与,查询,API支持以及来自远程应用程序的连接性等,对于在区块链网络上进行/交易非常重要,否则,它是面向基础架构的.希望这会有所帮助.

So Composer is both the development framework,the toolset, the modeler and the runtime execution on the blockchain ; as well as all managing all the other important aspects of working with that business network, such as managing identity,access control, participation, queries, API support and connectivity from remote apps etc, so essential to working with/transacting on a blockchain network that is otherwise infrastructure-oriented. Hope this helps.

这篇关于Composer是否需要一个已经建立的Fabric网络?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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