Created
March 30, 2018 03:14
-
-
Save byron1st/54f07e0d5afd4f4080286b874660ef30 to your computer and use it in GitHub Desktop.
create crypto-artifacts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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