History For Private Data In Hyperledger Fabric

旧街凉风 提交于 2019-12-23 02:52:32

问题


Is there any way to get the history for Private data in Hyperledger Fabric node SDK.
I've tried using getHistoryForKey(key)

It returns an empty object with only { done: true }


回答1:


The API to get history for private data is not yet implemented, but is planned for a future release of Hyperledger Fabric.

In the interim you could add some minimal information to a public key in the same transaction for historical tracking. That could either be a logical key, or if the key itself is sensitive, you could take a hash of the logical key and save that as a public key. Then use GetHistoryForKey on the public key to find the transactions of the private data.



来源:https://stackoverflow.com/questions/51960671/history-for-private-data-in-hyperledger-fabric

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!