Hyperledger Fabric-分类帐加密 [英] Hyperledger Fabric - Ledger encryption

查看:120
本文介绍了Hyperledger Fabric-分类帐加密的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对在HL Fabric v1.4.0中分类帐中注册的数据有一些疑问.

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

  1. 存储在同级中的数据是否已加密(世界状态和区块链)?
  2. 分类账(区块链部分)存储在对等方的哪些文件中?
  3. 是否可以在不使用链码的情况下从分类帐数据中读取数据?

推荐答案

  1. 默认情况下不加密数据. FAQ 建议使用文件系统对等体上的加密可实现此目的.如果您使用的是私人数据收集或渠道,那么即使没有此数据,数据也可能会被加密.

  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.

分类帐存储在LevelDB数据库中.数据可以在 /var/hyperledger/production/ledgersData (更多此处).在这种情况下,也可以使用单独的CouchDB数据库 您可以根据自己的喜好配置存储位置.

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.

您可以使用 Hyperledger Fabric REST API SDK 来查询分类帐数据. Hyperledger Composer还为您的业务应用程序提供了REST API.您也许也可以直接读取文件,因为它们基本上是LevelDB/CouchDB数据库文件,尽管我从未尝试过.

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.

这篇关于Hyperledger Fabric-分类帐加密的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆