Skip to content

Latest commit

 

History

History
31 lines (23 loc) · 571 Bytes

README.md

File metadata and controls

31 lines (23 loc) · 571 Bytes

simple-bc-fl

Simple implementation of blockchain-based federated learning.

Note: This only works on python 3.9

How to run the code:

  • Install Ganache or Hardhat Network
  • Install solc for Ethereum:
sudo add-apt-repository ppa:ethereum/ethereum
sudo apt-get update
sudo apt-get install solc
  • Run the local Eth Network, i.e., either Ganache or Hardhat Network.
  • You may want to use virtual environment on python.
  • Install python dependencies:
pip install -r requirements.txt

  • Run the python code:
python federated.py