生成证书
cryptogen generate --config=./crypto-config.yaml
configtxgen 默认会读取当前目录的 configtx.yaml 作为输入:
1)创建排序节点的初始区块:
configtxgen -profile Genesis -outputBlock genesis.block
2)创建应用通道 mychannel 的初始区块的交易文件 channel.tx:
configtxgen -profile Channel -outputCreateChannelTx channel.tx -channelID mychannel
3)创建配置区块的交易文件Org1MSPanchors.tx以更新mychannel中PeerOrg1的锚节点:
configtxgen -profile Channel -outputAnchorPeersUpdate Org1MSPanchors.tx -channelID mychannel -asOrg PeerOrg1MSP