Using hybrid x509 certs with Leighton-Mikhali signatures on top of ECDSA in HLF
- Clone this directory into your $HOME folder
- Start Docker (assuming Docker is installed) and remove existing docker containers by running
docker rm -f $(docker ps -aq)
- Navigate to
src/github.com/hlf-go/writing-chaincode/fabric
- run
curl -sSL https://raw.githubusercontent.com/hyperledger/fabric/release-1.1/scripts/bootstrap-1.1.0-preview.sh -o setup_script.sh
- run
bash setup_script.sh
(Note - This pulls more docker images than is necessary for this example. However this is suffcient for the example) - Change GOPATH varible by typing
GOPATH=
and hit return. Then typeGOPATH=$HOME/go
and hit return. - Then export the path to the go bin folder by returning
export PATH=$GOPATH/bin:$PATH
- Copy the up to date contents of the bin folder to the new location.
cp bin/* $HOME/go/bin/
- Start minimal fabric network (1 peer, 1 orderer, 1 CLI) by running the command
./fabricOPS.sh start
- Visit this website https://github.com/isaracorp/test-pqpki-patches/tree/master/v1.0.0 (Isara corp PQC test server).
- Clone repo and Follow instructions for patching
- export path to new libraries by returning
export PATH=/usr/local/pqpki-openssl1.0.2o/bin:$PATH
- To install on CLI container run
./fabricOPS.sh cli
, thencd
, then runcp $GOPATH/github.com/hyperledger/fabric/examples/chaincode/go/minimalcc2/sslPatches.sh ~/
then runbash sslPatches.sh
- Interact with peer by using CLI container. Run
./fabricOPS.sh cli
to enter CLI conatiner as root. - Instantiate chaincode by running
./scripts/instantiate.sh -c minimalcc2 -v 1.0 -p minimalcc2
- Invoke chaincode by running
./scripts/invoke.sh -c minimalcc2
- Cannot seem to run bash script from chaincode located at
src/github.com/hlf-go/example-chaincodes/minimalcc2/chaincode.go
Chaincode is instantiated and invoked but there is no indication that the bash script executed. I tested running the bash script from a simple go file and it works perfectly in that case.