本文介绍了超级账本区块链认可政策指南/建议的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我可以按照文档这里.但是,对于应批准多少个同行的交易,是否有一些指南?

I can modify Hyperledger's endorsement policy at instantiate time as described in the docs here. However, is there some guideline on how many peers should endorse a transaction?

我了解到并非所有对等方都需要背书,但总的来说,就对等方总数而言,最小可接受数目是多少?当然,每个应用程序都有所不同,但是最好有一些指导原则/见解.

I understand that not all peers need to be endorsing peers but generally, what would be the minimum acceptable number in terms of total number of peers? Of course it varies from application to application, but would be nice to have some guideline/insights.

推荐答案

同行人数的重要性不及组织人数的重要性.

The number of peers is of lesser significance than the number of organizations.

背书策略的想法是,对等块处理逻辑希望能够知道"事务包含正确"执行的写集(使世界状态发生变化的值).

The idea behind the endorsement policy, is that the peer block processing logic wants to be able to "know" that the transaction contains a write set (values that mutate the world state) which was executed "correctly".

现在,假设您有3个组织使用的链码.您不希望拥有"Org1.member或org2.member或org3.member"的背书政策,因为那意味着如果任何组织(1,2,3)是恶意的,它可能会决定其想要的一切,并完全忽略了链码业务规则.

Now, imagine that you have a chaincode which 3 organizations use.You would not want to have an endorsement policy of "Org1.member or org2.member or org3.member" because that would mean that if any of the organizations (1,2,3) is malicious, it could dictate anything it wants, and completely ignore the chaincode business rules.

因此,理想情况下,您希望有一个背书策略,以证明大多数组织都同意某个执行结果,因此将其设置为"3个组织中的2个".

So, ideally you would want to have an endorsement policy that proves that a majority of the organizations agree to a certain execution result, and therefore set it to something like "2 of the 3 organizations".

下一步-引入点数的概念.如果您有10个同龄人,并且担心有人会侵入其中一个或多个,则可以设置认可政策以反映这一点.

Next - comes a notion of number of peers.If you have i.e 10 peers and you are afraid that someone would hack into one or more of them, you could set the endorsement policy to reflect that.

这篇关于超级账本区块链认可政策指南/建议的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-20 14:39