我使用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
[当您要创建创世纪时,channeltx必须提供包含公共证书的org msp
我们不需要在创始配置或渠道配置中提供任何密钥对实际上,对于channeltx msp而言,并不仅需要足够的策略就可以了