An efficient implementation of the PHANTOM (GhostDAG) block-DAG protocol, complete with a block-DAG network simulation framework and other niceties.
Presented here is an efficient implementation of the PHANTOM block-DAG protocol.
This package includes:
There are two methods of installation:
Download the repository and run:
cd PHANTOM
pip install .
Download the repository and run:
cd PHANTOM
python setup.py install
There are two ways to run the simulation:
Using run_simulation.py to run a single simulation:
cd PHANTOM
python -m phantom.network_simulation.run_simulation
Using analyze_attack_success_rate.py to run multiple simulations on various combinations of run-time parameters to to analyze the success rate of a given attack on given block-DAG protocols.
cd PHANTOM
python -m phantom.network_simulation.analyze_attack_success_rate
All parameters relevant for each run method are contained in the run script and can easily be changed.