简体   繁体   English

Hyperledger Fabric私有数据集合中的私有数据活度设置

[英]Private data liveliness settings in a hyperledger fabric private data collection

Currently, collections_config.json file (a private data collection feature in Hyperledger Fabric) only allows to set up data liveliness to be based on the amount of blocks which needs to be reached before it gets deleted from the private data collection. 当前,collections_config.json文件(Hyperledger Fabric中的私有数据收集功能)仅允许根据从私有数据集合中删除数据之前需要达到的块数量来设置数据活度。

Are you aware of any other ways to speed this process up or control it more efficiently? 您是否知道有其他方法可以加快或更有效地控制此过程? For instance, by setting a date or an occurrence of an attribute written in a public part of the ledger that would trigger private data deletion? 例如,通过设置在分类帐的公共部分中写入的日期或属性的出现会触发私有数据删除?

To delete the private data from the private state database on collection members, you can call DelPrivateData() in chaincode. 要从集合成员的私有状态数据库中删除私有数据,可以在链码中调用DelPrivateData()。 To completely purge the private data from the block storage data structure however, you must wait for the number of blocks specified in the block-to-live policy (there is no common system time across peers, and therefore it cannot be time-based). 但是,要从块存储数据结构中完全清除私有数据,必须等待块生存策略中指定的块数(对等点之间没有通用的系统时间,因此不能基于时间) 。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM