Hyperledger Fabric 中的部分数据隐私
Partial data privacy in Hyperledger Fabric
我们想使用 Hyperledger Fabric 创建数据共享网络。每个对等点(客户端)由一个公司代理组成,该代理是该网络的参与者。每个节点(客户端)都可以付费读取数据或贡献数据以获得一些奖励,这些奖励将定期分发。然而,由于它是区块链,所有客户端都可以看到彼此的共享数据(例如,通过简单地查看块的内容)。使用 Hyperledger 链码生成的代币将用于支付交易费用。
我想在区块链中执行以下隐私规则:
a. Client A contributed a data record includes a person's name,
company and phone. Client A was rewarded for a token after a few
weeks. This record's name and company can be viewable by looking at
the contents of the blocks. However, its 'phone' is only viewable by
the client A itself.
b. When Client B pays a fee to view the phone of this record, only
Client B, other clients who have paid and Client A will be able to
view the phone.
c. If Client A decides to leave the network, there will be no impact
to this record. Other clients can continue to pay a fee to view this
record's phone.
我看过交易凭证和渠道。如何通过通道实现实现数据隐私?
在 Fabric v1.1 中,有一个名为 "private data" 的实验性功能。有了这个特性,实际状态就保存在私有状态数据库中的对等点本地,而不包含在实际区块链本身中。我可以使用它来实现部分数据隐私吗?但是如果客户端离开网络怎么办?数据会永远消失吗?
私人数据当然是一个选项,考虑到即将推出的 1.2 将对私人数据功能进行重大改进并且不再是实验性的这一事实,更是如此。
但是这种情况也可以通过多渠道的方式来解决。实际数据记录可以进入一个单独的、新创建的通道,该通道最初只有客户 A。一旦客户 B 支付费用,它将被允许进入这个新通道,并可以从该通道的分类账中访问记录。从这里开始,您可以使用订阅模型创建具有多个记录的频道,甚至可以创建具有单个记录的频道。
我们想使用 Hyperledger Fabric 创建数据共享网络。每个对等点(客户端)由一个公司代理组成,该代理是该网络的参与者。每个节点(客户端)都可以付费读取数据或贡献数据以获得一些奖励,这些奖励将定期分发。然而,由于它是区块链,所有客户端都可以看到彼此的共享数据(例如,通过简单地查看块的内容)。使用 Hyperledger 链码生成的代币将用于支付交易费用。
我想在区块链中执行以下隐私规则:
a. Client A contributed a data record includes a person's name, company and phone. Client A was rewarded for a token after a few weeks. This record's name and company can be viewable by looking at the contents of the blocks. However, its 'phone' is only viewable by the client A itself.
b. When Client B pays a fee to view the phone of this record, only Client B, other clients who have paid and Client A will be able to view the phone.
c. If Client A decides to leave the network, there will be no impact to this record. Other clients can continue to pay a fee to view this record's phone.
我看过交易凭证和渠道。如何通过通道实现实现数据隐私?
在 Fabric v1.1 中,有一个名为 "private data" 的实验性功能。有了这个特性,实际状态就保存在私有状态数据库中的对等点本地,而不包含在实际区块链本身中。我可以使用它来实现部分数据隐私吗?但是如果客户端离开网络怎么办?数据会永远消失吗?
私人数据当然是一个选项,考虑到即将推出的 1.2 将对私人数据功能进行重大改进并且不再是实验性的这一事实,更是如此。
但是这种情况也可以通过多渠道的方式来解决。实际数据记录可以进入一个单独的、新创建的通道,该通道最初只有客户 A。一旦客户 B 支付费用,它将被允许进入这个新通道,并可以从该通道的分类账中访问记录。从这里开始,您可以使用订阅模型创建具有多个记录的频道,甚至可以创建具有单个记录的频道。