fabric配置详解

configtx.yaml与configtxgen配合用于:

1.生成系统链(orderer)创世区块 genesis.block

configtxgen -profile TwoOrgsOrdererGenesis -outputBlock ./channel-artifacts/genesis.block

系统链创世区块中包含了OrdererMSP的证书(ca身份认证、admin操作权限、tls通信认证)和各peer组织的证书

2.生成应用通道配置 channel.tx

configtxgen -profile TwoOrgsChannel -outputCreateChannelTx ./channel-artifacts/channel.tx

应用通道配置文件中包含应用通道所属系统链的名称、该应用所属联盟名称、该联盟各组织名称

3.生成锚点Peer的更新配置交易 配置交易区块在应用通道上

应用通道创世区块中包含了从系统链中取得的应用通道组织的MSP证书以及系统链和锚节点信息(如果设置)

原文地址:https://www.cnblogs.com/show58/p/13153774.html