BiniBFT - An Optimized BFT on Fabric
Evaluation 1 - Report
Submitted By: Ashna P S
Collaborative Learning Program
Engagement Details
Name of Mentee | Ashna P S |
Evaluation Period | 06-07-2023 to 11-08-2023 |
Task | RAFT familiarization & an application implementation using it |
Date Submitted | 11-08-23 |
Mentor | Dr. Anasuya Threse Innocent |
Tasks, Objectives, and Results
This Evaluation report consolidates the candidate’s work for Hyperledger CLP - BiniBFT project by BiniWorld Innovations Pvt Ltd during the internship (Weeks 1-6). The report has been categorized into two sections: outline the key task assigned to the candidate and day-to-day activities undertaken by the candidate.
1. Key Outline of the Task assigned to the candidate (This includes Project name, Problem statement, expected Output and other relevant details)
- Completed the KBA course on basic implementation of hyperledger: https://learn.kba.ai/course/hyperledger-fabric-fundamentals-golang/
Hyperledger-Implementation-Go => https://github.com/ashnaps/Hyperledger-Implementation-Go
- Prerequisites:
- Ubuntu OS/WSL
- Curl
- docker >=23.0, check out for docker daemon error/Docker desktop prompt: https://twitter.com/ashnaa_02/status/1693759379051614712
- docker-compose
- build-essential
- nodejs
- npm
- go
- WEFT library
Further, I have highligted certain important steps & solutions to the probable errors.
Running the network
export MICROFAB_CONFIG='{ "port": 8080, "endorsing_organizations":[ { "name": "ProducersOrg" }, { "name": "SellersOrg" } ], "channels":[ { "name": "mango-channel", "endorsing_organizations":[ "ProducersOrg", "SellersOrg" ] } ] }'
docker run -e MICROFAB_CONFIG -p 8080:8080 ibmcom/ibp-microfab
Or
sudo docker run --name microfab --rm -ti -p 8080:8080 -e MICROFAB_CONFIG="${MICROFAB_CONFIG}" ibmcom/ibp-microfab
Output:
- Create wallet & Gateways:
curl -s http://console.127-0-0-1.nip.io:8080/ak/api/v1/components | weft microfab -w ./_wallets -p ./_gateways -m ./_msp -f
- Installing Binaries:
curl -sSL https://raw.githubusercontent.com/hyperledger/fabric/main/scripts/install-fabric.sh | bash -s -- binary
Incase of errors like:
- Try a different ISP, if it is Jio India.
- Use a different DNS:
- Run:
sudo nano /etc/hosts
- In the text editor (nano), scroll to the bottom of the file and add the following line:
185.199.108.133 raw.githubusercontent.com
- This tells your system that when it tries to access raw.githubusercontent.com, it should use the IP address 185.199.108.133.
- After adding the line, save the changes by pressing Ctrl + O (to write out) and then press Enter. To exit the text editor, press Ctrl + X.
- You've now added the entry to the /etc/hosts file. Try the installation again to see if it resolves the issue.
- Run:
Output - CRUD Operations
Ctrl+C - Network tear down.
- Read about real time use cases of hyperledger fabric: taXchain https://www.hyperledger.org/case-studies/taxchain-case-study