对于 FAB-1151 隐私解决方案,您是否需要在使用 XXXPrivateData API 函数之前预先定义集合?
For FAB-1151 privacy solution, do you need to define the collection upfront before using XXXPrivateData API function?
Fabric v1.1 带有一个非常有趣的隐私功能(目前处于试验阶段),其中数据可以存储在一个集合范围内的私有侧数据库中,该集合定义了哪个组织可以访问私有数据。
如果我是正确的,我们首先需要定义集合才能使用它。我们该怎么做?
额外问题:是否可以在创建后更新集合范围并包含新组织? (与我们可以将新组织包含到现有频道的方式相同)。
谢谢
If I am correct, we first need to define the collection before being
able to use it. How do we do that?
您在实例化链代码时定义 collection...
您传递了一个新标志
--collections-config collections.json
并且 json 文件看起来像:
[
{
"name": "collectionMarbles",
"policy": "OR('Org1MSP.member', 'Org2MSP.member')",
"requiredPeerCount": 1,
"maxPeerCount": 2,
"blockToLive":1000000
},
{
"name": "collectionMarblePrivateDetails",
"policy": "OR('Org1MSP.member')",
"requiredPeerCount": 1,
"maxPeerCount": 1,
"blockToLive":3
}
]
Bonus question: is it possible to update the collection scope and
include new organization after creation? (the same way we can include
new organization to an already existing channel).
不,您无法更新 v1.1 中的 collection。
它应该在v1.2中添加。
Fabric v1.1 带有一个非常有趣的隐私功能(目前处于试验阶段),其中数据可以存储在一个集合范围内的私有侧数据库中,该集合定义了哪个组织可以访问私有数据。
如果我是正确的,我们首先需要定义集合才能使用它。我们该怎么做?
额外问题:是否可以在创建后更新集合范围并包含新组织? (与我们可以将新组织包含到现有频道的方式相同)。
谢谢
If I am correct, we first need to define the collection before being able to use it. How do we do that?
您在实例化链代码时定义 collection... 您传递了一个新标志
--collections-config collections.json
并且 json 文件看起来像:
[
{
"name": "collectionMarbles",
"policy": "OR('Org1MSP.member', 'Org2MSP.member')",
"requiredPeerCount": 1,
"maxPeerCount": 2,
"blockToLive":1000000
},
{
"name": "collectionMarblePrivateDetails",
"policy": "OR('Org1MSP.member')",
"requiredPeerCount": 1,
"maxPeerCount": 1,
"blockToLive":3
}
]
Bonus question: is it possible to update the collection scope and include new organization after creation? (the same way we can include new organization to an already existing channel).
不,您无法更新 v1.1 中的 collection。 它应该在v1.2中添加。