Hyperledger Collaborative Learning Spotlight: BiniBFT - An Optimized BFT on Fabric

Hyperledger Collaborative Learning Spotlight: BiniBFT - An Optimized BFT on Fabric

WHAT WE WORKED ON:

Project Name

BiniBFT - An Optimized BFT on Fabric is one of the pilot Collaborative Learning Program 2023 projects selected by Hyperledger Foundation, part of the Linux Foundation. This project is proposed and mentored by Dr. A. Anasuya Threse Innocent, Founder & Director of BiniWorld Innovations Private Limited

Project Overview

The current existing implementation of Hyperledger Fabric with Raft consensus has many shortcomings such as transaction censorship and no mechanism to safeguard the network if a malicious leader gets elected. The network also has limitations on scalability that restrict the type of use cases that can be built such as real-time applications that use IoT devices. This impedes blockchain adoption and limits the type of applications and use cases that can be built on Fabric.

The goal of this project is to design and build BiniBFT, a Byzantine Fault Tolerance consensus library for Hyperledger Fabric that provides end-to-end security, high throughput with low latency and high scalability to optimize Fabric-based distributed and decentralized day-to-day applications. The design and complete details are given on this Whitepaper.

To design our own BFT, we chose six candidates suitable for Hyperledger Fabric and did a thorough review of each of them and also a comparative study. It is clearly visible that there is a need to improve the scalability and security without affecting the throughput. 

We developed the BiniBFT consensus mechanism for Hyperledger Fabric with two versions of BiniBFT namely, BiniBFT with Random Polling and The Time-Weighted BiniBFT Consensus. The design details of the protocols are given in detail in the Whitepaper. The low latency, high security, throughput, and scalability of the BiniBFT can make it to be used as the consensus for day-to-day applications using enterprise blockchain.

Tools & Technologies

Through this project we had a chance to learn and use the following tools and technologies:

  • Go
  • Hyperledger Fabric
  • Terraform
  • AWS - EC2
  • Docker
  • Documentations

Potential Impact

The drawbacks of current distributed ledger systems, such as reduced latency and security, acts as a barrier to wide-scale adoption of enterprise blockchain in the real world. The integration of a scalable BiniBFT consensus mechanism with Hyperledger Fabric can open a new world of applications and use cases ranging from distributed clean energy  management systems with zero carbon emission to supply chain management to health information systems. 

COLLABORATIVE EFFORTS AND MILESTONES:

Each of us brought unique insights and skills, contributing to the success of the project:

  • Abhishek Ranjan delved into the complexities of scaling distributed ledger networks, laying the groundwork for the project's success.
  • Ajitesh Kumar Soni led the charge in studying Raft consensus and conducting comparative studies of various protocols, shaping the direction of the project.
  • Ashna P S spearheaded the implementation of Raft consensus and facilitated seamless coordination among team members.
  • Riddhi Katarki engaged in diverse activities, from comparative studies of consensus algorithms to debugging and presentation preparations, fostering a collaborative environment.
  • Sahilsher Singh undertook a comprehensive exploration of blockchain foundations and applications, bringing invaluable insights into the project's development.
  • Siddhant Prateek Mahanayak navigated the complex landscape of consensus protocols, actively participating in designing innovative consensus mechanisms and contributing to the open-source community.

The journey within the LFX Collaborative Learning Program 2023 was a profound exploration into the depths of blockchain technology, where each participant emerged enriched with new insights, skills, and accomplishments.

Diving Deep into Consensus Protocols

At the heart of the journey lies a comprehensive examination of various consensus protocols, including Raft, pBFT, MirBFT, BFT-Smart, and Zyzzyva. Through meticulous study and analysis, we gained a significant understanding of the strengths, weaknesses, and practical implications of each protocol. From the simplicity of Raft to the robustness of pBFT and the speculative nature of Zyzzyva, each protocol offered unique insights into the intricate workings of distributed consensus.

Understanding the Role of BFT in Today and Tomorrow

BFT protocols, including pBFT, MirBFT, BFT-Smart, and Zyzzyva, offer a diverse array of solutions to the challenges posed by Byzantine failures. By comprehensively studying these protocols, we gained insight on their practical applications and potential impact on the future of distributed ledger technology. From financial services to healthcare and beyond, the adoption of BFT mechanisms has the potential to revolutionize industries, enhance security, and foster trust in decentralized systems.

Exploring the Landscape of Consensus Protocols

Consensus protocols form the bedrock of blockchain networks, enabling us to agree on the validity of transactions and maintain a consistent view of the distributed ledger. Through our exploration, we gained a deep understanding of the nuances of consensus mechanisms, including their strengths, limitations, and real-world implications. From the simplicity of Raft to the sophistication of pBFT, each protocol offers unique insights into the challenges and opportunities inherent in distributed consensus.

Thorough Testing and Assessment

The journey was not merely one of theoretical exploration but also of practical application. Through rigorous testing and assessment, the team evaluated the performance and scalability of different consensus mechanisms within the context of Hyperledger Fabric. This hands-on approach provided invaluable insights into the real-world challenges and opportunities associated with implementing blockchain solutions at scale.

Overcoming Challenges with Resilience

Along the journey, we encountered numerous challenges that tested our problem-solving abilities and resilience. From deciphering complex documentation to addressing system requirements, each obstacle became an opportunity for growth and learning. Through collaboration, experimentation, and perseverance, we navigated these challenges with determination, emerging stronger and more resilient than before.

WHAT WE GAINED WORKING WITH OUR MENTOR:

The unwavering guidance and support provided by our mentor, Dr. A. Anasuya Threse Innocent, proved invaluable in shaping the trajectory of the project. Weekly sessions with Dr. Innocent served as a cornerstone for learning, collaboration, and reflection, providing a platform for us to share insights, address challenges, and chart the course for future growth and development.

WHAT COMES NEXT:

As the journey draws to a close, we carry with us a wealth of knowledge, experience, and accomplishments that will serve as a foundation for future exploration and innovation in the field of blockchain technology. Armed with a deep understanding of consensus protocols, practical skills in implementation, and a collaborative mindset fostered through shared experiences, we are poised to make meaningful contributions to the ever-evolving landscape of distributed ledger technology.

In summary, the journey within the BiniBFT - BFT on Fabric was not merely a quest for knowledge but a transformative experience that empowered participants to embrace complexity, overcome challenges, and embark on a journey of continuous learning and growth. There's more to come, and we are excited to continue this enriching journey.

We envision BiniBFT - An Optimized BFT on Fabric becoming part of Hyperledger Labs, where it can officially become part of the broader Hyperledger ecosystem of open-source blockchain solutions.

Back to all blog posts

Sign up for Hyperledger Horizon & /dev/weekly newsletters 

By signing up, you acknowledge that your information is subject to The Linux Foundation's Privacy Policy