简体   繁体   中英

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.

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. 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).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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