Hyperledger fabric 使用configtxgen创建genesis和事务时,是否需要使用密钥对

Hyperledger fabric 使用configtxgen创建genesis和事务时,是否需要使用密钥对,hyperledger-fabric,hyperledger,Hyperledger Fabric,Hyperledger,我使用configtxgen创建channeltx文件和genesis Tx文件。我的问题 我是否需要在创建时提供任何密钥对详细信息 genesisTx和channelTx 我使用的是config.yaml文件,其名称和Id字段如下所示 在下面的代码中,我们将在fabric network中使用此字段 我们是否还需要在此config.yaml“MSPDir”中添加用户密钥对 我可以在这里找到config.yaml文件描述 - &Org1 # DefaultOrg defines the

我使用configtxgen创建channeltx文件和genesis Tx文件。我的问题

  • 我是否需要在创建时提供任何密钥对详细信息 genesisTx和channelTx

  • 我使用的是config.yaml文件,其名称和Id字段如下所示 在下面的代码中,我们将在fabric network中使用此字段

  • 我们是否还需要在此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
    

当您想要创建genesis时,您必须提供包含公共证书的org msp

  • 管理员
  • 卡塞茨
  • tlscacerts
我们不需要在genesis配置或通道配置中提供任何密钥对

事实上,对于channeltx,msp并不仅仅需要策略