https://github.com/salmandabbakuti/cool-network
Two-org three peer fabric network
https://github.com/salmandabbakuti/cool-network
hyperledger-fabric hyperledger-fabric-network hyperledger-fabric-sdk
Last synced: 4 months ago
JSON representation
Two-org three peer fabric network
- Host: GitHub
- URL: https://github.com/salmandabbakuti/cool-network
- Owner: Salmandabbakuti
- Created: 2019-07-09T09:00:36.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-10-20T00:48:44.000Z (over 5 years ago)
- Last Synced: 2025-01-03T21:39:35.591Z (5 months ago)
- Topics: hyperledger-fabric, hyperledger-fabric-network, hyperledger-fabric-sdk
- Language: Shell
- Homepage:
- Size: 46.8 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Fabric-Network-Generation
Install latest Docker images and tools for hyperledger fabric network development
```
curl -sSL https://goo.gl/6wtTN5 | bash -s
``````
git clone https://github.com/Salmandabbakuti/cool-network.gitcd cool-network
./generate.sh
./start.sh
```### Certificates Generation
>Note that we are not using first-network template, we are creating our personalized network with ```crypto-config.yaml and configtxgen.yaml```. using ```cryptogen, configtxgen``` tools, we are creating certificates and genesis blocks,channels.
```
cryptogen generate --config crypto-config.yaml --output=crypto-config```
it will generate crypto-config directory in master branch with all required dependencies of network### Starting with Genesis Block
```
configtxgen -profile OrdererGenesis -outputBlock ./channel-artifacts/genesis.block```
### Generating Channel artifacts
```
configtxgen -profile channelthreeorgs -outputCreateChannelTx ./channel-artifacts/channel.tx -channelID channelthreeorgs
```### Creating Anchor peer transactions (each command for each organization)
```
configtxgen -profile channelthreeorgs -outputAnchorPeersUpdate ./channel-artifacts/ -channelID channelthreeorgs -asOrgEX: configtxgen -profile channelthreeorgs -outputAnchorPeersUpdate ./channel-artifacts/MicrosoftAnchor.tx -channelID channelthreeorgs -asOrg MicrosoftMSP
```### Bringing Network Up and Running
```
docker-compose -f docker-compose-cli.yaml up -d
```### Chaincode Installation and Instantiation