Hyperledger有什么样的对等类型? [英] what kind of peer types does hyperledger have?

查看:89
本文介绍了Hyperledger有什么样的对等类型?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我听说超级账本具有不同类型的对等(节点)类型.我听说有代言人,一般,主播,领导者,订购者同行.

I have heard that hyperledger has different kind of peer(node) types. I have heard that there are endorser, general, anchor, leader, orderer peers.

问题1)您能告诉我这些同龄人的角色是什么吗?

Question 1) Could you tell me what each of these peer's role is?

问题2)您能否告诉我这些同龄人每个都有什么?我的意思是谁同时拥有分类帐和链码,谁既拥有分类帐而不具有链码,又或者谁拥有链码而不具有分类帐?

Question 2) Could you tell me what each of these peer has? I mean who has the ledger and chaincode both, who has only the ledger and not the chaincode or who has the chaincode and not the ledger?

推荐答案

基本上,超级账本结构中有三种对等体

Fundamentally there are three types of peers in hyperledger fabric

1-认可同行

背书对等体是那些在隔离的chaincode容器中模拟交易并根据智能合约结果准备交易建议的对等体. 所有背书的对等方必须安装链码

Endorsing peers are those peers which simulates transactions in an isolated chaincode containers and prepares transaction proposal based on smart contract results . All endorsing peers must have chaincode installed .

2-承诺同行

这些对等点不一定安装链码,但会在其分类帐中维护完整的记录分类帐.提交和认可对等体之间的主要区别在于,提交对等体不能调用链码或运行智能合约功能,并且包括读取和写入功能.

These are the peers which dont necessarily have chaincode installed but maintain full ledger of records in their ledger . Main difference between committing and endorsing peers is that committing peers cant invoke chaincode or run smart contract functions and that include both read and write function .

3-对等点(节点):

订购对等节点是一种特殊类型的节点,其主要角色是从sdk接收已认可的交易,并根据您的配置文件将其打包为块,然后将其发送给所有其他对等节点,以便他们可以验证那些交易并更新其分类帐.排序节点会跟踪其分类账中的所有交易,包括有效交易和无效交易,而认可对等方和提交对等方仅包含有效交易.

Ordering peers are special type of nodes whose key roles are to receive endorsed transactions from sdk , package them into blocks as per your configuration file and send it to all other peers so that they can validate those transaction and update their ledgers . Ordering nodes keep track of all transactions in their ledger including valid transactions and invalid transactions while endorsing peers and committing peers only contain valid transactions.

关于锚点,领导者或管理对等方,这些都是特权集,您可以分配这些特权来执行某些特定任务集.例如用于与其他对等方通信的锚点对等方.同样,管理员可以用来创建频道或加入频道,或执行一些敏感的任务,而这些任务只能由现实中的管理员执行.

Regarding anchor , leader or admin peers these are all different set of privileges which you can assign to perform some specific set of tasks . For example anchor peers used to communicate with other peers . Similarly admin peers can be used to create channels or join channels or perform some sensitive tasks which should only be performed by admins in real world.

有关此主题的更多信息,请参见

More information on this topic can be found here

https://hyperledger-fabric.readthedocs.io /en/release-1.3/peers/peers.html

这篇关于Hyperledger有什么样的对等类型?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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