Fabric的私人数据收集之间的通信 [英] Communications among Fabric's private data collections

查看:111
本文介绍了Fabric的私人数据收集之间的通信的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Fabric中,可以在以后的某个时间点将在私有数据集合中创建的资产转移到另一个私有数据集合中吗?在这里如何处理机密性/隐私权?

in Fabric, can an asset created in a private data collection be transferred to another private data collection at a later point in time? How is confidentiality/privacy handled here?

推荐答案

是的,资产可以从一个私有数据集合转移到另一个私有数据集合.假设链码逻辑在转移资产之前先获取了资产的状态,则链码将必须在可以访问先前私有数据集合的同位体上执行和认可.认可对等方不一定需要访问将来的私有数据集合(取决于链码逻辑是否强制执行此操作).

Yes, an asset can be transferred from one private data collection to another private data collection. Assuming the chaincode logic retrieves the state of the asset before transferring it, the chaincode would have to be executed and endorsed on a peer that has access to the prior private data collection. The endorsing peer doesn't necessarily need access to the future private data collection (it is up to the chaincode logic to enforce this or not).

假设您每个组织都有一个私人数据收集.假设OrgA的私人数据收集中有一项资产.链码可以用访问控制逻辑编写,这样只有OrgA客户端才能将OrgA资产转移到OrgB的私有数据集合中.客户必须将提案发送给OrgA对等方,以执行并认可该交易.

Let's say you have a private data collection per organization. Assume there is an asset in OrgA's private data collection. Chaincode can be written with access control logic such that only an OrgA client can transfer the OrgA asset to a private data collection of OrgB. The client would have to send the proposal to an OrgA peer to execute and endorse this transaction.

有关更多详细信息,请参见演示如何在跨部门转移私人资产的教程集合.

For more details, see the tutorial that demonstrates transferring private assets across collections.

这篇关于Fabric的私人数据收集之间的通信的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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