MrL
MrL

Reputation: 1720

Hyperledger Fabric - Ledger encryption

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?

Upvotes: 0

Views: 979

Answers (1)

Sigmatics
Sigmatics

Reputation: 793

  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.

Upvotes: 2

Related Questions