使用 configtxgen 创建创世和交易时,我们需要使用密钥对吗
when creating the genesis and Transaction using configtxgen do we need to use keypair
我使用configtxgen 创建channeltx 文件和genesis Tx 文件。我的问题
创建时是否需要提供任何密钥对详细信息
genesisTx 和 channelTx.
我正在使用 config.yaml 文件,该文件的名称和 ID 字段如图所示
在下面的代码中,我们将在结构网络中使用这些字段。
我们是否也需要在此添加用户密钥对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、channeltx 时,您将必须提供 org msp,其中包含 public 个证书
- 管理员证书
- 证书
- tlscacerts
我们不需要在创世配置或通道配置中提供任何密钥对。
事实上,对于 channeltx msp 而言,仅仅需要策略是不够的
我使用configtxgen 创建channeltx 文件和genesis Tx 文件。我的问题
创建时是否需要提供任何密钥对详细信息 genesisTx 和 channelTx.
我正在使用 config.yaml 文件,该文件的名称和 ID 字段如图所示 在下面的代码中,我们将在结构网络中使用这些字段。
我们是否也需要在此添加用户密钥对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、channeltx 时,您将必须提供 org msp,其中包含 public 个证书
- 管理员证书
- 证书
- tlscacerts
我们不需要在创世配置或通道配置中提供任何密钥对。
事实上,对于 channeltx msp 而言,仅仅需要策略是不够的