[使用configtxgen创建创世纪和交易时,我们需要使用密钥对吗

问题描述 投票:0回答:1

我使用configtxgen创建channeltx文件并生成Tx文件。我的问题

  • 创建帐户时,我是否需要提供任何密钥对详细信息?genesisTx和channelTx。

  • 我正在使用config.yaml文件,该文件的名称和ID字段为show在下面的代码中,我们将在结构网络中使用此字段。

  • 我们是否还需要在此config.yaml“ MSPDir”中添加用户密钥对吗?

  • 我可以在其中找到config.yaml文件的描述。

    - &Org1
    # DefaultOrg defines the organization which is used in the sampleconfig
    # of the fabric.git development environment
    Name: Org1MSP
    
    # ID to load the MSP definition as
    ID: Org1MSP
    
    MSPDir: crypto-config/peerOrganizations/org1.example.com/msp
    
    AnchorPeers:
        # AnchorPeers defines the location of peers which can be used
        # for cross org gossip communication.  Note, this value is only
        # encoded in the genesis block in the Application section context
        - Host: peer0.org1.example.com
          Port: 7051
    
hyperledger-fabric hyperledger
1个回答
0
投票

[当您要创建创世纪时,channeltx必须提供包含公共证书的org msp

  • admincerts
  • 证书
  • tlscacerts

我们不需要在创始配置或渠道配置中提供任何密钥对实际上,对于channeltx msp而言,并不仅需要足够的策略就可以了

© www.soinside.com 2019 - 2024. All rights reserved.