An open API service indexing awesome lists of open source software.

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

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.git

cd 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 -asOrg

EX: 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