https://github.com/varunu28/federated-byzantine-agreement
Implementation of "Federated Byzantine Agreement" in Python
https://github.com/varunu28/federated-byzantine-agreement
Last synced: 14 days ago
JSON representation
Implementation of "Federated Byzantine Agreement" in Python
- Host: GitHub
- URL: https://github.com/varunu28/federated-byzantine-agreement
- Owner: varunu28
- Created: 2018-12-21T15:23:33.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2022-12-08T01:29:39.000Z (almost 3 years ago)
- Last Synced: 2024-11-08T19:49:54.215Z (12 months ago)
- Language: Python
- Size: 13.7 KB
- Stars: 4
- Watchers: 1
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Federated-Byzantine-Agreement-
Implementation of "Federated Byzantine Agreement" in Python
Implementation of FBA protocol with a quorum slice of 3 nodes.
#### How to run?
```
virtualenv venv
source venv/bin/activate
pip install -r requirements.txt
python fba_client.py 3000
python fba_server.py 3000
python fba_server.py 3001
python fba_server.py 3002
python fba_server.py 3003
```
The messages would be passed from client to the server on port 3000 from where it transmits to the nodes in the quorum. Once it gets the acceptance from a quorum slice, it sends message for confirmation to the quorum. Once it receives confirmations from the quorum slice, all the nodes in the slice would commit the transaction and the primary node would send a confirmation to the client.