Blockchain/ Distributed Ledger

  • 1.  Hyperledger Fabric test-network install on Ubuntu (AWS or VM)

    Posted Mar 02, 2021 10:45:00 AM
    Edited by Kurt Seifried Mar 11, 2021 09:13:45 AM
    Hyperledger Fabric test-network install on Ubuntu (AWS or VM). 

    THIS IS OBSOLETE. Please use:

    https://github.com/cloudsecurityalliance/DLT-Security-Blockchain-TestEnv/blob/master/Hyperledger/Fabric/fabric-samples-test-network/install-system.sh

    This gets you a HyperLedger Fabric test network with 3 organizations.

    1. Get an Ubuntu 20.04 LTS system up and running, update it and fix DNS:
      1. apt-get update
      2. apt-get upgrade
      3. make sure /etc/resolv.conf points to ../run/systemd/resolve/resolv.conf and not the stub resolver
    2. Install dependencies:
      1. apt-get install curl git docker.io docker-compose nodejs npm python golang
    3. OPTIONAL: create a non root user and either give them sudo access or add them to the "docker" group
    4. Get the installer script from https://raw.githubusercontent.com/hyperledger/fabric/master/scripts/bootstrap.sh
      1. cd /opt/
      2. curl https://raw.githubusercontent.com/hyperledger/fabric/master/scripts/bootstrap.sh > bootstrap.sh
    5. Run the download script:
      1. chmod +x bootstrap.sh
      2. ./bootstrap.sh 2.2.0
    6. You can now startup the network (Using the Fabric test network - hyperledger-fabricdocs master documentation)
      1. cd fabric-samples/test-network/
      2. ./network.sh up
      3. ./network.sh createChannel 
    7. You can now add Org3 to the test network:
      1. cd addOrg3
      2. ./network.sh up
    8. Edit /root/.profile to add the following:
      1. export PATH=$PATH:/opt/fabric-samples/bin
        export FABRIC_CFG_PATH=/opt/fabric-samples/config
        export CORE_PEER_TLS_ENABLED=true
        export CORE_PEER_LOCALMSPID="Org1MSP"
        export CORE_PEER_TLS_ROOTCERT_FILE=/opt/fabric-samples/test-network/organizations/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/ca.crt
        export CORE_PEER_MSPCONFIGPATH=/opt/fabric-samples/test-network/organizations/peerOrganizations/org1.example.com/users/[email protected]/msp
        export CORE_PEER_ADDRESS=localhost:7051
      2. logout and back in and once you start the fabric network commands such as "peer channel list" will work
    9. Adding an org to the channel: Adding an Org to a Channel - hyperledger-fabricdocs master documentation 
    https://raw.githubusercontent.com/hyperledger/fabric/master/scripts/bootstrap.sh

    THIS IS OBSOLETE. Please use:

    https://github.com/cloudsecurityalliance/DLT-Security-Blockchain-TestEnv/blob/master/Hyperledger/Fabric/fabric-samples-test-network/install-system.sh

    ------------------------------
    Kurt Seifried
    Chief Blockchain Officer and Director of Special Projects
    Cloud Security Alliance
    [email protected]
    ------------------------------


  • 2.  RE: Hyperledger Fabric test-network install on Ubuntu (AWS or VM)

    Posted Mar 09, 2021 02:37:00 PM
    @Kurt Seifried testing mentions.​

    ------------------------------
    Kurt Seifried
    Chief Blockchain Officer and Director of Special Projects
    Cloud Security Alliance
    [email protected]
    ------------------------------



  • 3.  RE: Hyperledger Fabric test-network install on Ubuntu (AWS or VM)

    Posted Mar 11, 2021 09:14:00 AM
    THIS IS OBSOLETE. Please use:

    https://github.com/cloudsecurityalliance/DLT-Security-Blockchain-TestEnv/blob/master/Hyperledger/Fabric/fabric-samples-test-network/install-system.sh

    ------------------------------
    Kurt Seifried
    Chief Blockchain Officer and Director of Special Projects
    Cloud Security Alliance
    [email protected]
    ------------------------------