Applied Blockchain Center (ABC)
  • System requirements for ABC
  • Hedera
    • ๐Ÿ…ฐ๏ธAbout Hedera
    • ๐Ÿ–ฅ๏ธEnvironment Setup
    • Tutorials
      • Accounts
        • Get My Account Info
        • Get Other Account Info
        • Transfer HBAR
      • Consensus Service
        • Create Topic
        • Subscribe to a topic
        • Submit a message
      • File Service
        • Create a File
        • Retrieve File
      • Scheduled_TX
        • Create Scheduled Transaction
        • Scheduled Transaction Info
        • Delete Scheduled Transaction
        • Submit Signature
      • SmartContract Service
        • Deploy to Hedera
        • Seal Document
        • Get Seal
        • Check Seal Revocation Status
        • Revoke Document
      • Token Service
        • Fungible Token
        • Non-fungible Token
  • Hyperledger Fabric
    • ๐Ÿ“‘About Hyperledger Fabric
    • ๐Ÿ’ปPrerequisite Installation
    • Fabric Installation
      • ๐ŸงชInstallation & Test
      • โœˆ๏ธLaunch Network
      • โ›“๏ธChannel Creation
      • ๐ŸššChaincode Deployment
      • โ–ถ๏ธChaincode Execution
  • Hyperledger Besu
    • Besu Network Set
Powered by GitBook
On this page
  • Note: Please Run these cmds before step 1
  • If there are containers then run :
  • Test Network Execution:
  • Certificate Generation Using CryptoGen Tool:
  • Start Docker Network

Was this helpful?

  1. Hyperledger Fabric
  2. Fabric Installation

Launch Network

We will try to understand the Test Network in-depth.

Test Network will be having below steps to be performed in sequence.

  1. Certificate Generation - CryptoGen Tool/Fabric CA

  2. Start the docker network - HLF Test Network

  3. Create a channel - Orderer will create it. (My channel)

  4. Peers will join the channel.

  5. Anchor peer update

  6. Chaincode Deployment: It has a lifecycle (Chaincode Lifecycle)

    1. Packaging

    2. Install

    3. Approve

    4. Commit

  7. Init the ledger

  8. Invoke or Query Transactions

Note: Please Run these before step 1

cd Desktop/hyperledger/fabric-samples/test-network/
./network.sh down

docker ps -aq 
docker volume ls

If there are containers then run :

docker stop $(docker ps -aq)
docker rm $(docker ps -aq)
docker volume prune

Test Network Execution:

Certificate Generation Using CryptoGen Tool:

In the test network folder do the following:

  1. Set the Config Path

export PATH=${PWD}/../bin:${PWD}:$PATH
  1. Create the Certificates for Org1

cryptogen generate --config=./organizations/cryptogen/crypto-config-org1.yaml --output="organizations"
  1. Create the certificates for Org2

cryptogen generate --config=./organizations/cryptogen/crypto-config-org2.yaml --output="organizations"
  1. Create Certificates for OrdererOrg

cryptogen generate --config=./organizations/cryptogen/crypto-config-orderer.yaml --output="organizations"

Start Docker Network

  1. Start the docker containers

export COMPOSE_PROJECT_NAME=net
IMAGE_TAG=latest docker-compose -f docker/docker-compose-test-net.yaml up
  1. Open a new Terminal

  2. Check the docker containers running status

PreviousInstallation & TestNextChannel Creation

Last updated 1 year ago

Was this helpful?

โœˆ๏ธ