Skip to content

Instantly share code, notes, and snippets.

@byron1st
Created March 30, 2018 03:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save byron1st/54f07e0d5afd4f4080286b874660ef30 to your computer and use it in GitHub Desktop.
Save byron1st/54f07e0d5afd4f4080286b874660ef30 to your computer and use it in GitHub Desktop.
create crypto-artifacts
# remove remaining artifacts
rm -rf channel-artifacts crypto-config
echo "*****remove remaining artifacts\n"
# generate crypto-related artifacts
cryptogen generate --config=./crypto-config.yaml
echo "*****generate crypto-related artifacts\n"
# set FABRIC_CFG_PATH as infra directory
export FABRIC_CFG_PATH=$PWD
# create the channel-artifacts directory
mkdir channel-artifacts
# generate the genesis block for the reputation channel
configtxgen -profile Trust51Genesis -outputBlock ./channel-artifacts/reputation-genesis.block
echo "*****generate the genesis block for the reputation channel\n"
# generate the channel configuration transaction for creating the reputation channel
configtxgen -profile ReputationChannel -outputCreateChannelTx ./channel-artifacts/reputation-channel.tx -channelID reputationch
echo "*****generate the channel configuration transaction for creating the reputation channel\n"
# generate the channel configuration transaction to update the anchor channel
configtxgen -profile ReputationChannel -outputAnchorPeersUpdate ./channel-artifacts/Company1anchors.tx -channelID reputationch -asOrg Company1MSP
echo "*****generate the channel configuration transaction to update the anchor channel\n"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment