How to set up Hyperledger Fabric

How to set up Hyperledger Fabric

How to set up Hyperledger Fabric

How to set up Hyperledger Fabric

How to set up Hyperledger Fabric

Table Of Content
Read Time: 3 minutes

Thousandfold, efforts in
This article series consists of two parts. In Part 1, I will provide you a shell script to automate the task of connecting up multi-org network on hyperledger fabric with hyperledger composer. In Part 2, I will provide you a shell script to deploy and update composer network on a fabric multi-organization network.

Prerequisites:- You should be familiar with the basic concepts of Hyperledger composer. You have tried this official tutorial by hyperledger composer to set up a multi-org network.

Setting up the multi-org network while following the documentation is a good idea If you are setting it up for the first time. But it is more time-consuming at the same time. Once you get a good understanding of the concepts, you should try to automate the process for the next time, for now, I’ve already done it for you.

Also, Read Our Next Article on EOS

Steps to set up the multi-org network for hyperledger fabric composer:-

Ignore Step 1 to 6 if you have already downloaded the fabric samples and are successfully running the first-network sample on your machine.

Step 1:- Clear the existing fabric network

cd ~/fabric-dev-servers
./stopFabric.sh
./teardownFabric.sh

Step 2: Clone the fabric-samples network:-

git clone -b issue-6978 https://github.com/sstone1/fabric-samples.git

Step 3:-

cd fabric-samples

Step 4:-

curl -sSL https://goo.gl/6wtTN5 | bash -s 1.1.0 1.1.0 0.4.6

Step 5:-

cd first-network

Step 6: Generate the certificates and start the network:

./byfn.sh -m generate

./byfn.sh -m up -s couchdb -a

Step 7:- Automation begins:-

If you have read the official hyperledger composer tutorial for connecting the multi-org network with composer, you must be aware that to connect hyper ledger composer admins and participants with hyperledger fabric ,we need to create temporary directories for every organization in our fabric network and configure the connection profile in those directories which is quite a time consuming if you plan to start up your network every time. Also, we need to customize the connection profiles and paste the crypto certificates of both organizations in the connection profile. Long story short, this script will automate the stuff from step 2 to step 6 of the official hyperledger composer tutorial.

You should Create a connectionProfile.json file in your home directory and paste the following connection profile script in connectionProfile.json file:-

Now save the below script in a file and execute the script to automate the step 2 to step 6 of official hyperledger composer tutorial.

This script only does automation for two orgs network. But you can enhance it according to your needs.

<script src=”https://gist.github.com/himanshuchawla009/6c6d470f32e1dc9a6f37a4c37b581776.js”></script>

That’s it, In the next part of this tutorial. I will give you another script to automate the process of installing and updating the composer business network on the underlying fabric network. Thanks for reading. Keep Exploring. 🙂

In case of doubts and suggestions, the comments are open. See ya!

Looking for blockchain solutions (hyperledger, ethereum, Stellar, Corda), token sale (ethereum, neo, stellar) or Security Auditing? Get in touch with us: https://quillhash.typeform.com/to/KQ5Hhm

Thanks for reading. Also, do check out our earlier blog posts.


At QuillHash, we understand the Potential of Blockchain and have a good team of developers who can develop any blockchain applications like Smart Contracts, dApps,Smart Coins, DeFi, DEX on the any Blockchain Platform like Ethereum, EOS and Hyperledger.

To be up to date with our work, Join Our Community :-

Telegram | Twitter | Facebook | LinkedIn

5,514 Views

Blockchain for dog nose wrinkles' Ponzi makes off ~$127M🐶

Project promised up to 150% returns on investment in 100 days, raising about 166.4 billion South Korean won — or about $127 million — from 22,000 people.

Latest blogs for this week

Understanding Fuzzing and Fuzz Testing: A Vital Tool in Web3 Security

Read Time: 5 minutes When it comes to smart contracts, ensuring the robustness and security of code is paramount. Many techniques are employed to safeguard these contracts against vulnerabilities
Read More

How EigenLayer’s Restaking Enhances Security and Rewards in DeFi

Read Time: 7 minutes Decentralized finance (DeFi) relies on Ethereum staking to secure the blockchain and maintain consensus. Restaking allows liquid staking tokens to be staked with validators in
Read More

ERC 404 Standard: Everything You Need to Know

Read Time: 7 minutes Introduction Ethereum has significantly shaped the crypto world with its introduction of smart contracts and decentralized applications (DApps). This has led to innovative developments in
Read More

DNS Attacks:  Cascading Effects and Mitigation Strategies

Read Time: 8 minutes Introduction DNS security is vital for a safe online space. DNS translates domain names to IP addresses, crucial for internet functionality. DNS ensures unique name-value
Read More

EIP-4844 Explained: The Key to Ethereum’s Scalability with Protodanksharding

Read Time: 7 minutes Introduction  Ethereum, the driving force behind dApps, has struggled with scalability. High fees and slow processing have limited its potential. They have kept it from
Read More

QuillAudits Powers Supermoon at ETH Denver!

Read Time: 4 minutes Calling all the brightest minds and leaders in the crypto world! Are you ready to build, connect, and innovate at the hottest event during ETH
Read More

Decoding the Role of Artificial Intelligence in Metaverse and Web3

Read Time: 7 minutes Introduction  Experts predict a transformative shift in global software, driven by AI and ML, marking the dawn of a new era. PwC predicts AI will
Read More

Transforming Assets: Unlocking Real-World Asset Tokenization

Read Time: 7 minutes In the blockchain, real-world assets (RWAs) are digital tokens that stand for tangible and conventional financial assets, including money, raw materials, stocks, and bonds. As
Read More
Scroll to Top

Become a Quiffiliate!
Join our mission to safeguard web3

Sounds Interesting, Right? All you have to do is:

1

Refer QuillAudits to Web3 projects for audits.

2

Earn rewards as we conclude the audits.

3

Thereby help us Secure web3 ecosystem.

Total Rewards Shared Out: $200K+