用户工具

站点工具


go:fabric-tools

差别

这里会显示出您选择的修订版和当前版本之间的差别。

到此差别页面的链接

go:fabric-tools [2018/09/18 13:49] (当前版本)
admin 创建
行 1: 行 1:
 +====== cryptogen ======
  
 +  cryptogen generate --config=./​crypto-config.yaml ​  #​机构配置,密钥生成
 +
 +====== configtxgen ======
 +
 +  configtxgen -profile TwoOrgsOrdererGenesis -outputBlock ./​channel-artifacts/​genesis.block ​  #​configtx.yaml
 +  configtxgen -profile TwoOrgsChannel -outputCreateChannelTx ./​channel-artifacts/​channel.tx -channelID $CHANNEL_NAME
 +  configtxgen -profile TwoOrgsChannel -outputAnchorPeersUpdate ./​channel-artifacts/​Org1MSPanchors.tx -channelID $CHANNEL_NAME -asOrg Org1MSP
 +  configtxgen -profile TwoOrgsChannel -outputAnchorPeersUpdate ./​channel-artifacts/​Org2MSPanchors.tx -channelID $CHANNEL_NAME -asOrg Org2MSP
 +
 +====== peer ======
 +
 +  peer channel create -o orderer:​7050 -c myc -f mxchain.net/​devmode/​myc.tx
 +  peer channel join -b ./myc.block
 +  peer channel list
 +  ​
 +  peer chaincode list --installed
 +  peer chaincode list -C myc --instantiated
 +  peer chaincode install -n exp02 -v 0 -p mxchain.net/​chaincode/​02asset/​
 +  #​ORDERER_CA=/​opt/​gopath/​src/​crypto-config/​ordererOrganizations/​example.com/​orderers/​orderer.example.com/​msp/​tlscacerts/​tlsca.example.com-cert.pem
 +  peer chaincode instantiate -o orderer.example.com:​7050 -C $CHANNEL_NAME -n exp02 -v 0 -c '​{"​Args":​["​init"​]}'​ --tls $CORE_PEER_TLS_ENABLED --cafile $ORDERER_CA
go/fabric-tools.txt · 最后更改: 2018/09/18 13:49 由 admin