简体   繁体   English

Hyperledger Fabric 在哪里存储用户的公钥和私钥?

[英]Where does Hyperledger fabric store the public key and private key of the user?

What is the role of pubkey & privkey in fabric network and how are they stored and accessed?公钥和私钥在结构网络中的作用是什么,它们是如何存储和访问的?

1.In org1.yaml, we have mentioned paths for credentialStore and cryptoStore. 1.在org1.yaml中,我们已经提到了credentialStore和cryptoStore的路径。 what type of files for the user gets stored here?用户的什么类型的文件被存储在这里? Isn't it the pubkey and privkey of the user stored in cryptoStore?不是存储在cryptoStore中的用户的公钥和私钥吗? (if true, is it just for the development environment ?) (如果属实,是否仅适用于开发环境?)

2.how is privkey accessed in the network for performing a txn? 2.如何在网络中访问私钥以执行交易? Or how does the user provide the privkey while performing a txn?或者用户在执行交易时如何提供私钥?

  1. It signs the transaction (eg. initiated by an application user, with an associated blockchain identity, issued by his/her org) with its private key and includes its public key in the transaction payload sent to peers and/or orderers.它使用其私钥签署交易(例如,由应用程序用户发起,具有关联的区块链身份,由他/她的组织发布),并将其公钥包含在发送给对等方和/或订购者的交易有效负载中。 Peers and orderers (part of the Fabric blockchain network) then verify the signatures using the public key in the transaction.节点和排序节点(Fabric 区块链网络的一部分)然后使用交易中的公钥验证签名。

  2. A state/credential store would be used to store the public certificates for enrolled identities that the application needs to use, whereas the crypto store would be used to store the private keys of identities and there are different types of stores available when using the client SDK (eg.FileKeyValueStore, CouchDBKeyValueStore as described here ) - for SDK info and perspective, see https://fabric-sdk-node.github.io/release-1.4/tutorial-network-config.html#Setup-the-stores状态/凭证存储将用于存储应用程序需要使用的注册身份的公共证书,而加密存储将用于存储身份的私钥,并且在使用客户端 SDK 时有不同类型的存储可用(例如此处描述的 FileKeyValueStore、CouchDBKeyValueStore) - 有关 SDK 信息和观点,请参阅https://fabric-sdk-node.github.io/release-1.4/tutorial-network-config.html#Setup-the-stores

  3. In the context of your question summary (user context) and this q3, probably best to understand the context of identity https://hyperledger-fabric.readthedocs.io/en/release-1.4/identity/identity.html and then wallets from the latest Fabric documentation, to consolidate your learning https://hyperledger-fabric.readthedocs.io/en/release-1.4/developapps/wallet.html?highlight=wallet from an application (end) user perspective, this is how they would interact with the ledger & the blockchain network.在您的问题摘要(用户上下文)和这个 q3 的上下文中,可能最好了解身份https://hyperledger-fabric.readthedocs.io/en/release-1.4/identity/identity.html的上下文,然后从最新的 Fabric 文档,以巩固您的学习https://hyperledger-fabric.readthedocs.io/en/release-1.4/developapps/wallet.html?highlight=wallet从应用程序(最终)用户的角度来看,这就是他们的方式与账本和区块链网络交互。

From the documentation :文档

A single wallet can hold multiple identities, each issued by a particular Certificate Authority.一个钱包可以拥有多个身份,每个身份都由特定的证书颁发机构颁发。 Each identity has a standard structure comprising a descriptive label, an X.509 certificate containing a public key, a private key, and some Fabric-specific metadata.每个身份都有一个标准结构,包括一个描述性标签、一个包含公钥、私钥和一些 Fabric 特定元数据的 X.509 证书。 在此处输入图片说明

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 有没有办法在超级账本结构中获取用户私钥和公钥以进行数据加密 - Is there a way to get user private and public key in hyperledger fabric for data encryption purposes 我可以为我的超级账本结构用户使用现有证书,私钥,公钥,而不是从CA或cryptogen创建新证书吗? - Can I use Existing Certificate, private key, public key for my hyperledger fabric user rather than creating new from CA or cryptogen? Hyperledger fabric EVM 如何从公钥生成地址? - How does Hyperledger fabric EVM generate the address from the public key? 在用户密钥生成过程中,用户私钥存储在fabric-ca中的什么位置 - Where does user private key is stored in fabric-ca in user key generation process 如何使用 Hyperledger Fabric 中生成的 ECDSA 私钥和公钥进行加密和解密 - How to encrypt and decrypt using ECDSA private key and public key generated in Hyperledger fabric Hyperledger fabric 离线创建私钥 - Hyperledger fabric create private key offline 我可以使用Hyperledger Fabric v1.0中MSP生成的公钥/私钥来加密/解密数据吗? - Can I use the public/private key generated by the MSP in Hyperledger Fabric v1.0 for encrypting/decrypting data? 使用 Fabric-CA -server 的 Hyperledger Fabric 私钥 - Hyperledger fabric Private key using Fabric-CA -server hyperledger fabric在哪里存储区块链的数据库? - Where does hyperledger fabric store the database for the blockchain? 使用用户公钥阻止数据加密,并根据其他用户的请求和 Hyperledger 结构中数据所有者的同意进行解密 - Block data encryption with Users public key and decryption on request by other user and consent of owner of data in Hyperledger fabric
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM