Basic Hyperledger Fabric network setup for secure and transparent data exchange between healthcare providers, insurance companies, and pharmaceutical supply chain entities. For this network configuration, it will be used as a decentralized healthcare insurance companies network. The healthcare insurance companies network consists of five fictional actors:
- AAUI (Orderer org)
- AAJI (Orderer org)
- Prudential (Peer org)
- Manulife (Peer org)
- Allianz (Peer org)
To spin the network, firstly install Hyperledger Fabric prerequisites and CLI tool binaries. Then simply execute ./network.sh
script, which will perform:
- Creation of crypto artifacts/credentials (
script/createArtifacts.sh
). - Running docker container network (
docker-compose
). - Creation of application channel
network_health_insurance
(scripts/createChannel.sh
). - Deployment of chaincode (
scripts/deployChaincode.sh
). - Testing of chaincode (
scripts/testChaincode.sh
). This step only invokesUploadIdentity
function to check if the chaincode functions normally/
To shut down the docker network and remove the artifacts, run the following commands from project root:
$ rm -rf ./channel-artifacts
$ rm -rf ./organizations
$ docker-compose -f ./config/docker/docker-compose.yaml down --volumes --remove-orphans