Skip to main content

Exploring Hyperledger

This blog post is a introduction to Hyperledger foundation and its projects. It will cover the basics which will help you to get started with Hyperledger

Updated 17 min readMarkdown

Originally published on March 5, 2024 on my previous blog.


In this blog, we will explore hyperledger foundation and its projects. In future, we will create projects using hyperledger tools before that it would be good to have the background of hyperledger foundation and its projects. This blog is basically revision notes of a Hyperledger course I took on edx. I will try to cover the key points and concepts of the course. I hope you will find it useful.

What is Hyperledger?

Hyperledger is an open source collaborative effort created to advance cross-industry blockchain technologies. It is a global collaboration, hosted by The Linux Foundation, including leaders in finance, banking, Internet of Things, supply chains, manufacturing and Technology.

We all know the importance of blockchain technology and its potential to change the way we do business. Currently, we are in the early stages of blockchain adoption and there are many challenges to overcome. Hyperledger is an effort to address these challenges and to make blockchain technology ready for the enterprise.

But the question is why we need hyperledger? There are many blockchain platforms available in the market like Ethereum, Bitcoin, Ripple, etc. Then why we need hyperledger?

How is Hyperledger different?

Well, the answer is variable requirements of different industries. If we see the features of Ethereum, it is designed for public blockchain with transparency, secure and decentralized network. But what if we need some kind of privacy, permissioned mining, and other features? This is where hyperledger comes into the picture.

Key differences with Hyperledger:

  1. Permissioned Network: Hyperledger is designed for permissioned networks. It means that only known and trusted participants can join the network. This is important for enterprises where privacy and security are the main concerns.
  2. Pluggable Consensus: Hyperledger provides a pluggable consensus algorithm. It means that we can select the consensus algorithm based on our requirements. We can use PoW, PoS, PBFT, etc. For example, Fabric uses PBFT, Sawtooth uses PoET, etc.
  3. Privacy and Confidentiality: Hyperledger provides privacy and confidentiality. It means that we can control who can see the transactions and who can participate in the network.
  4. Collaboration: Hyperledger is a open source project and anyone can contribute to it. By allowing collaboration, it is possible to ensure that the projects are up to date with the latest technologies and requirements.
  5. Modularity: Hyperledger is designed to be modular. It means that we can use the components that we need and ignore the rest. This is important because we can use the components that are required for our project and ignore the rest.
  6. Cryptocurrency: Hyperledger is not designed for cryptocurrency. It means that we can use hyperledger for various use cases without worrying about the cryptocurrency.

Project requirements

When we are thinking of using a DLT solution for a project, we need to consider various factors such as:

  1. Security: How secure is the network?
  2. Privacy: How much privacy is required?
  3. Scalability: How scalable the network should be?
  4. Performance/Speed: How fast the network should be?
  5. Decentralization: How much decentralization is required?
  6. Carbon Footprint: How much energy consumption is acceptable?
  7. Interoperability: How the network will interact with other networks?
  8. Governance: How the network will be governed?
  9. Legal and Regulatory Compliance: How the network will comply with legal and regulatory requirements?

Based on this requirement, we can select what type of blockchain will be suitable public or private, what should be the consensus algorithm, etc. Consensus is a basic aspect of blockchain technology. It is a process of achieving agreement among the nodes in a distributed network.

The various types of consensus algorithms are:

  • Proof of Work (PoW)
  • Proof of Stake (PoS)
  • Practical Byzantine Fault Tolerance (PBFT)
  • Delegated Proof of Stake (DPoS)
  • Proof of Authority (PoA)
  • Proof of Elapsed Time (PoET)

You can read more about these consensus algorithms here or any other source.

Blockchain Trilemma

The blockchain trilemma is a term used to describe the trade-offs between security, scalability, and decentralization. It is difficult to achieve all three at the same time. For example, if we want to achieve high security and decentralization, we may have to compromise on scalability. Similarly, if we want to achieve high scalability and decentralization, we may have to compromise on security.

So when we are selecting a blockchain platform, we need to consider these trade-offs and select the platform that best fits our requirements.

Hyperledger Projects

Well now we have some idea about the requirements and consensus algorithms. Let's see what hyperledger projects are available to fulfill these requirements.

Hyperledger has a number of projects under its umbrella. Each project is designed to fulfill different requirements of different industries. You can find the list of projects here.

Blockchain Tech stack

The blockchain tech stack consists of various components such as:

  1. Consensus Layer: It is the layer that is responsible for achieving agreement among the nodes in a distributed network. It consists of various consensus algorithms such as PoW, PoS, PBFT, etc.
  2. Smart Contract Layer: It is the layer that is responsible for executing the business logic. It consists of various smart contract platforms such as Ethereum, Hyperledger Fabric, etc.
  3. Data Layer: It is the layer that is responsible for storing the data. It consists of various databases such as LevelDB, CouchDB, etc.
  4. Network Layer: It is the layer that is responsible for managing the network. It consists of various network protocols such as HTTP, MQTT, etc.
  5. Application Layer: It is the layer that is responsible for interacting with the blockchain. It consists of various applications such as web applications, mobile applications, APIs, etc.

Hyperledger DLTs

Hyperledger has a number of distributed ledger technologies (DLTs) under its umbrella. Each DLT is designed to fulfill different requirements of different industries. We will now explore these DLTs in brief.

Hyperledger Fabric

Hyperledger Fabric is a permissioned blockchain platform. It is designed for enterprises and is suitable for a wide range of use cases. It is modular and provides a pluggable consensus algorithm. It provides privacy and confidentiality and is highly scalable. It is designed to be used in a consortium network.

The members of the network enters the system through a membership service provider (MSP). The MSP is responsible for authenticating the members and providing them with the necessary credentials. The MSP is also responsible for managing the members and their roles.

Hyperledger Fabric also provide the ability to create channels. A channel is a private sub-network within the main network. It is used to provide privacy and confidentiality. It is used to restrict the visibility of the transactions to a subset of the network.

Key Components of Hyperledger Fabric:

  1. Peers: It consists of two types of peers: endorsing peers and committing peers. Endorsing peers are responsible for executing the smart contracts and endorsing the transactions. Committing peers are responsible for validating the transactions and committing them to the ledger.

  2. Ordering Service: It is responsible for ordering the transactions and creating blocks. It is used to achieve consensus among the nodes in the network. It acts as a central point of control for the network.

  3. Smart Contracts: It is responsible for executing the business logic. It is written in chaincode and is executed by the endorsing peers.

  4. Ledger: It is responsible for storing the data. It consists of two types of ledgers: world state and transaction log. World state is the current state of the ledger. Transaction log is the history of the transactions.

  5. Consensus Mechanism: It provides a pluggable consensus algorithm. It means that we can select the consensus algorithm based on our requirements. The default is PBFT.

  6. Membership Service Provider (MSP): It is responsible for authenticating the members and providing them with the necessary credentials. It is also responsible for managing the members and their roles.

Key Features of Hyperledger Fabric:

  1. Permissioned Architecture: It is designed for permissioned networks. It means that only known and trusted participants can join the network.

  2. High Modularity: It is designed to be modular. It means that we can use the components that we need and ignore the rest.

  3. Pluggable Consensus: It provides a pluggable consensus algorithm. It means that we can select the consensus algorithm based on our requirements.

  4. Privacy and Confidentiality: Fabric offers channels to provide privacy and confidentiality.

  5. Multi-Language Support: It supports multiple programming languages such as Go, Java, and JS. It also supports Solidity to create smart contracts.

  6. Network of Networks: It provides the ability to create channels. A channel is a private sub-network within the main network.

Use Cases of Hyperledger Fabric:

  1. Supply Chain Management: It is used to track the movement of goods and ensure the authenticity of the products. You can read about wallmart's use case here.

Hyperledger Sawtooth

Hyperledger Sawtooth is a enterprise grade blockchain platform. It uses PoET (Proof of Elapsed Time) as a consensus algorithm. It is designed to be modular and address the specific needs of the enterprise. The design focuses on scalability by leveraging parallel transaction execution.

Key Components of Hyperledger Sawtooth:

  1. Transaction Processor: It is responsible for execution of the transactions and committing them to the ledger.

  2. Consensus Engine: It is responsible for achieving agreement among the nodes in a distributed network.

  3. Ledger: It is responsible for storing the data.

  4. Smart Contracts: It is responsible for executing the business logic.

  5. Transaction Family: It is a set of rules for processing the transactions.

Use Cases of Hyperledger Sawtooth:

  1. Fractional Ownership: BondEvalue is using Sawtooth to create a platform for fractional ownership of bonds. You can read about it here.

Hyperledger Indy

Hyperledger Indy is a distributed ledger platform designed for decentralized identity management. It is designed to provide privacy, security, and interoperability and control over personal information. It uses cryptographic algorithms such as zero-knowledge proofs, to provide privacy and confidentiality while performing authentication.

Key Components of Hyperledger Indy:

  1. Decentralized Identifiers (DIDs): It is a type of globally unique identifier for each entity.

  2. Verifiable Credentials: It is a set of claims made by an issuer about a subject. It can be selectively disclosed to a verifier, who can verify the authenticity of the claims.

  3. Zero-Knowledge Proofs: It is a method of proving the authenticity of a claim without revealing the actual claim.

  4. Identity Agents: Identity agents acts as a mediator between the user and the ledger. It is responsible for managing the user's identity, and performing other interactions with the ledger.

  5. DLT: It stores the DIDs, verifiable credentials, and other information.

Key Features of Hyperledger Indy:

  1. Self-Sovereign Identity: It provides self-sovereign identity. It means that the user has control over their own identity.

  2. Privacy and Confidentiality: It provides privacy and confidentiality. It uses cryptographic algorithms such as zero-knowledge proofs, to provide privacy and confidentiality while performing authentication.

  3. Interoperability: It provides interoperability. It means that the user can use the same identity across different platforms.

  4. Verifiable Claims: It provides verifiable claims. It means that the user can prove the authenticity of a claim without revealing the actual claim.

Use Cases of Hyperledger Indy:

VON (Verifiable Organizations Network) is using Indy to create a platform for verifiable organizations. You can read about it here.

Hyperledger Iroha

Hyperledger Iroha is a distributed ledger platform designed for light weight and easy to use such as Iot projects. It is designed to be simple and easy to use. It uses YAC (Yet Another Consensus) as a consensus algorithm.

Key Components of Hyperledger Iroha:

  1. Asset Model: It is responsible for defining and managing the assets such as currencies, tokens, etc.

  2. Account Management: It is responsible for creating and managing the accounts and to securely transfer the assets.

  3. Consensus Algorithm: It uses YAC (Yet Another Consensus) as a consensus algorithm.

  4. Commands and Queries: It provides a set of commands and queries to interact with the ledger.

Key Features of Hyperledger Iroha:

  1. Simple and Easy to Use: It is designed to be simple and easy to use by providing a set of libraries, APIs, and SDKs.

  2. Permissioned Model: It allows fine-grained control over the permissions.

  3. Fast Finality: The YAC consensus algorithm provides fast finality.

Use Cases of Hyperledger Iroha:

The National Bank of Cambodia is using Iroha to create a platform for interbank payments. You can read about it here.

Hyperledger Besu

Hyperledger Besu is an enterprise grade Ethereum compatible blockchain platform. Besu leverages the Ethereum Virtual Machine (EVM) making it compatible with Ethereum ecosystem. Besu's design focuses on compatibility with public Ethereum networks and permissioned networks.

Key Components of Hyperledger Besu:

  1. Ethereum Virtual Machine (EVM): It is responsible for executing the smart contracts written in Solidity.

  2. Consensus Algorithm: It supports various consensus algorithms such as PoW, PoA, and IBFT.

  3. Privacy and Confidentiality: It provides privacy and confidentiality by using private transactions and private networks.

  4. Interoperability: It provides interoperability by being compatible with the Ethereum ecosystem.

Key Features of Hyperledger Besu:

  1. Ethereum Compatibility: It is compatible with the Ethereum ecosystem.

  2. Permissioned Networks: It is designed for permissioned networks allowing fine-grained control over the permissions.

  3. Privacy and Confidentiality: It provides privacy and confidentiality by using private transactions and private networks.

  4. Interoperability: It provides interoperability by being compatible with the Ethereum ecosystem and existing Ethereum tools and libraries.

Use Cases of Hyperledger Besu:

Any use case of ethereum which requires permissioned governance can use Besu. One such use case is Permissioned public blockchain. You can read about LACChain's use case here.

Hyperledger Tools and Libraries

Hyperledger also provides a number of tools and libraries to help developers build and deploy blockchain applications. These tools and libraries are designed to be modular and can be used with any blockchain platform. We will now explore these tools and libraries in brief.

Hyperledger Aries

Hyperledger Aries is a toolkit for p2p interactions. It defines messaging protocols built on decentralized identifiers (DIDs) and verifiable credentials.

Key Components of Hyperledger Aries:

  1. Blockchain Interface: The interface layer is responsible for creating, signing, and reading the transactions.

  2. Secure Storage: It is responsible for securely storing the cryptographic keys and other sensitive information.

  3. Messaging Protocols: It defines messaging protocols built on decentralized identifiers (DIDs) and verifiable credentials to support off-ledger interactions.

  4. Verifiable Credential Exchange: It provides support for verifiable credentials using zero-knowledge proofs.

Key Features of Hyperledger Aries:

  1. Interoperability: It provides interoperability by supporting off-ledger interactions. It means that the user can use the same identity across different platforms.

  2. Decentralized Identity: It provides a framework for decentralized identity management.

  3. Secure and Private: It provides secure and private interactions using cryptographic algorithms such as zero-knowledge proofs.

Hyperledger AnonCreds

Hyperledger AnonCreds is a library for anonymous credentials. It provides support for anonymous credentials using zero-knowledge proofs. It is designed to prove the authenticity of a claim without revealing the actual claim. It was originally part of Hyperledger Indy and is now a standalone library.

Key Components of Hyperledger AnonCreds:

  1. Issuer: It is responsible for issuing the credentials.

  2. Holder: It is responsible for holding the credentials issued by the issuer.

  3. Verifier: It is responsible for verifying the authenticity of the credentials.

  4. Credentials: These are digital equivalent of physical credentials such as driver's license, passport, etc. They are issued by the issuer and held by the holder.

Key Features of Hyperledger AnonCreds:

  1. Implementation of the Trust over IP (ToIP) Framework

  2. Privacy and Confidentiality: It provides privacy and confidentiality by using zero-knowledge proofs.

  3. Credential Exchange: It provides complete flow for issuing, holding, and verifying the credentials.

Hyperledger Web3j

Hyperledger Web3j is a library for integrating with Ethereum. It provides support for creating, deploying, and interacting with smart contracts on the Ethereum blockchain. It is designed to be simple and easy to use.

** The above mentioned projects are the libraries. Now we will see the tools provided by hyperledger.**

Hyperledger Bevels

Hyperledger Bevels is a tool for easy deployment of Hyperledger Fabric. It provides support for creating, deploying, and managing the Hyperledger Fabric network. It has a user-friendly interface and scripts to automate the deployment process.

Bevels utilizes tools like Ansible, Helm, and Kubernetes to deploy and manage the Hyperledger Fabric network. We can define a single yaml file to spin up an entire DL network. Bevels also uses Hashicorp Vault to store the secrets and credentials when deploying in multi-cloud environments.

Key Features of Hyperledger Bevels:

  1. User-Friendly Interface
  2. Configuration Flexibility and Automated Deployment
  3. Streamlined Node management and network visualization

Hyperledger Cacti

Hyperledger Cacti is built to enhance the interoperability across different blockchain platforms. It functions as a bridge between different blockchain networks. It provides support for cross-chain transactions and cross-chain smart contracts. It uses Hashed TimeLock Contracts (HTLC) to ensure atomicity and security of the cross-chain transactions.

Cacti is designed to be modular and can be used with any blockchain platform. It provides a set of APIs and SDKs to interact with the blockchain networks.

It also offers decoupled identity ensuring flexibility and privacy regarding identity management. Authentication is done using JWT.

Hyperledger Caliper

Hyperledger Caliper is a benchmarking tool for blockchain platforms. It provides support for measuring the performance and scalability of the blockchain networks. It considers other popular blockchain platforms as reference points for comparison.

The performance metrics include transaction throughput, latency, resource utilization, and success rate. It is designed to be pluggable and can be used with any blockchain platform. The aim is to provide a accurate and consistent performance score of various blockchain platforms so that user can select the best platform for their use case.

Hyperledger Cello

Hyperledger Cello is a blockchain-as-a-service (BaaS) platform. It is aimed at providing support on-demand services for blockchain networks, so users can easily deploy and manage their blockchain networks.

Cello works through a web-based dashboard and RESTful APIs. It leverages Docker and Kubernetes to provide a scalable and flexible infrastructure.

Hyperledger FireFly

Hyperledger FireFly is a framework for data flows using blockchain. It helps legacy systems to interact with web3 data. It provides a pluggable architecture to support different blockchain platforms and data sources to be plugged in FireFly node. This allow off-chain data to be linked with on-chain data.

Hyperledger Solang

Hyperledger Solang is a compiler written in Rust that targets Solidity and Substrate. It compiles Solidity into WebAssembly. The purpose of Solang is to help Solidity developers to write smart contracts for non-EVM blockchains and also use the existing Solidity contracts on non-EVM blockchains. It uses LLVM for parsing and compiling the Solidity code.

Conclusion

In this blog, we explored hyperledger foundation and its projects. We went through each of this projects and its key components, features and use cases. We also saw the tools and libraries provided by hyperledger. I hope you found this blog useful. In the next blog, we will explore how to create a project using hyperledger tools. Stay tuned!

No comments yet. Be the first to comment.