Hyperledger Fabric - Ledger encryption

允我心安 提交于 2019-12-11 17:22:07

问题


I have some doubts related to data registered in the ledger in HL Fabric v1.4.0.

  1. Are the data stored in the peers encrypted (world state and blockchain)?
  2. In which files of the peer is stored the ledger (blockchain part)?
  3. Is it possible to read data from the ledger data without using a chaincode?

回答1:


  1. Data is not encrypted by default. The FAQ recommends using file system encryption on the peer to achieve this. If you're using private data collections or channels the data may be encrypted even without this.

  2. The ledger is stored in a LevelDB database. The data can be found in /var/hyperledger/production/ledgersData (more here). A separate CouchDB database can also be used, in that case you can configure the storage location to your liking.

  3. You can use the Hyperledger Fabric REST API SDK to query ledger data. Hyperledger Composer also provides a REST API for your business application. You could probably read the files directly as well, since they're basically LevelDB/CouchDB database files, although I've never tried that.



来源:https://stackoverflow.com/questions/55420313/hyperledger-fabric-ledger-encryption

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