问题描述
您能解释一下Hyperledger Fabric v1.0中的某些隐私机制吗-已经实施和计划将来实施的那些机制?
Can you explain some mechanisms of privacy in Hyperledger Fabric v1.0 - those already implemented and those planned to be implemented in the future?
我了解渠道就像独立的区块链.我还浏览了> https://jira.hyperledger.org/browse/FAB-1151上的文档,我发现了另外两种机制:一种是私有数据,另一种是加密.您能解释一下在以下情况下使用哪种野兽方法吗?
I understand channels are like seperate blockchains. I also went through the document on https://jira.hyperledger.org/browse/FAB-1151, where I have found two more mechanisms: one is private data, and other is encryption. Can you explain what would be the beast approach to use in the following scenario.
每辆车都需要汽车保险.假设汽车的拥有者想要更换他的保险公司.他与新保险公司签订了合同.假设还有一个监管机构.新保险公司将新合同通知监管机构.然后,监管机构会通知旧保险公司该车不再在那儿投保,但不会将新保险公司的名称告知他们.因此,我们拥有在网络中共享的资产,但也有一些私有数据,只有某些参与者才能看到.我猜这是一条链,所以在这里使用多个渠道毫无意义.
Each car needs car insurance. Let's say the owner of the car wants to change his insurance company. He signs the contract with new insurance company. Let's say there is also a regulator. The new insurance company informs the regulator about the new contract. The regulator then informs the old insurance company that the car is no longer insured there, but does not inform them about the name of the new insurance company. So we have assets that are shared in the network, but also some private data which only some participants can see. I am guessing this is one chain, so the use of multiple channels makes no sense here.
我没有完全掌握私有数据的概念.该数据是应该仅对一个对等方/公司是私有的,还是可以在多个公司之间共享,而不是全部共享?这是方案中要走的路吗?使用加密和私有数据有什么不同的原因/用例?在上述情况下应使用什么机制?
I do not completely grasp the concept of private data. Is that data supposed to be private only for one peer / company, or can it be shared between multiple companies, but not all of them? Is this the way to go in the scenario? What would be different reasons / use cases to use encryption vs. private data? What mechanism should be used in the described scenario?
推荐答案
首先,加密和私有数据这两个概念不是互斥的,其目的是是要能够同时使用它们.
First of all, these two concepts of encryption and private data are not mutual exclusive, the intent is to being able to use them both.
拥有私有数据的概念是将某些数据密钥拒之门外,以防止将其发送给订购服务,并通过八卦将其分别分发给同级设备.
The concept behind having private data is to keep certain data keys out, to prevent them to being sent to the orderering service and to distribute them separately across the peers via gossip.
现在,需要进行加密,以将私有数据划分为多个部分,这些部分将根据可见性规则进行加密,例如以便仅向相关方读取和查看数据的相关部分.
Now, the encryption needed to divide private data into portions which will be encrypted according to the visibility rules, e.g. to allow to read and see the relevant portions of the data to only involved parties.
尽管如此,请注意,FAB-1151仍在开发/设计过程中,并将在Hyperledger Fabrics v1.0之后添加.
With all that said, please note that FAB-1151 is still under development/design process and to be added post v1.0 of Hyperledger Fabrics.
这篇关于Hyperledger Fabric v1.0的隐私的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!