Skip to content

Commit

Permalink
[FAB-10115] Function to generate idemix creds in e2e
Browse files Browse the repository at this point in the history
This change set introduces a function in the generateArtifacts.sh script to
generate credentials for the identity mixer MSP.

Change-Id: If8cfd66a7fca9cabc3c620441690658096292ebc
Signed-off-by: Alessandro Sorniotti <ale.linux@sopit.net>
  • Loading branch information
ale-linux committed May 16, 2018
1 parent 85974a1 commit 2141d89
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions examples/e2e_cli/generateArtifacts.sh
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,35 @@ function generateCerts (){
echo
}

function generateIdemixMaterial (){
IDEMIXGEN=$FABRIC_ROOT/release/$OS_ARCH/bin/idemixgen
CURDIR=`pwd`
IDEMIXMATDIR=$CURDIR/crypto-config/idemix

if [ -f "$IDEMIXGEN" ]; then
echo "Using idemixgen -> $IDEMIXGEN"
else
echo "Building idemixgen"
make -C $FABRIC_ROOT release
fi

echo
echo "####################################################################"
echo "##### Generate idemix crypto material using idemixgen tool #########"
echo "####################################################################"

mkdir -p $IDEMIXMATDIR
cd $IDEMIXMATDIR

# Generate the idemix issuer keys
$IDEMIXGEN ca-keygen

# Generate the idemix signer keys
$IDEMIXGEN signerconfig -u OU1 -e OU1 -r 1

cd $CURDIR
}

## Generate orderer genesis block , channel configuration transaction and anchor peer update transactions
function generateChannelArtifacts() {

Expand Down

0 comments on commit 2141d89

Please sign in to comment.