gpt4 book ai didi

hyperledger-fabric - Hyperledger Fabric 中的部分数据隐私

转载 作者:行者123 更新时间:2023-12-02 07:43:46 25 4
gpt4 key购买 nike

我们希望使用 Hyperledger Fabric 创建数据共享网络。每个对等方(客户端)均由作为该网络参与者的公司代理组成。每个节点(客户端)都可以付费读取数据或贡献数据来赚取一些奖励,这些奖励将定期分发。然而,由于它是区 block 链,所有客户端都可以看到彼此的共享数据(例如,只需查看 block 的内容)。使用 Hyperledger 链码生成的代币将用于支付交易费用。

我想在区 block 链中强制执行以下隐私规则:

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.

我查看了交易证书和 channel 。如何通过 channel 实现实现数据隐私?

在 Fabric v1.1 中,有一个实验性的功能,称为“私有(private)数据”。通过此功能,实际状态保留在私有(private)状态数据库中的对等方本地,并且不包含在实际区 block 链本身中。我可以用它来实现部分数据隐私吗?但是如果客户端离开网络怎么办?数据会永远消失吗?

最佳答案

私有(private)数据当然是一种选择,而且鉴于即将推出的 1.2 将对私有(private)数据功能进行重大改进,并且它将不再是实验性的,因此更是如此。

但是这种情况也可以通过多 channel 方法来解决。实际的数据记录可以进入一个单独的、新创建的 channel ,该 channel 最初只有客户端 A。一旦客户端 B 支付费用,它将被允许进入这个新 channel ,并可以从该 channel 上的账本访问记录。从现在开始,您可以使用订阅模型创建具有多个记录的 channel ,甚至可以创建具有单个记录的 channel 。

关于hyperledger-fabric - Hyperledger Fabric 中的部分数据隐私,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49971937/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com