Consensus Algorithm For Education Prepare package before execute Install Python version 3.12 Create virtual environment and install package as follow: python -m venv .venv # window .\.venv\Scripts\activate.bat pip install -r requirement.txt Test Simulation Test PBFT # python simulator.py pbft <num-nodes> > pbft_result.txt # Example python simulator.py pbft 10 > pbft_result.txt Test QPBFT # python simulator.py qpbft <num-management-nodes> <num-vote-nodes> > qpbft_result.txt # Example python simulator.py qpbft 6 4 > qpbft_result.txt Test Proposed # python simulator.py proposed <num-master-nodes> <num-slave-nodes> <num-sample> > proposed_result.txt # Example python simulator.py proposed 6 4 5 > proposed_result.txt