mirror of
https://github.com/logos-blockchain/logos-blockchain-specs.git
synced 2026-05-29 12:39:25 +00:00
Mixnet v2 Simulation
How to run
Make sure that all dependencies specified in the requirements.txt in the project root, and run the following command to run the simulation:
python main.py
The following parameters can be configured:
usage: main.py [-h] [--running-time RUNNING_TIME] [--num-nodes NUM_NODES] [--num-mix-layers NUM_MIX_LAYERS]
Run simulation
options:
-h, --help show this help message and exit
--running-time RUNNING_TIME
Running time of the simulation (default: 30)
--num-nodes NUM_NODES
Number of nodes in the network (default: 2)
--num-mix-layers NUM_MIX_LAYERS
Number of mix layers in the network (default: 2)
TODO: Add more details
Development Status
- Modified Sphinx without encryption
- Naive P2P 1:N broadcasting
- Forwarding messages through mixes, and then broadcasting messages to all nodes
- Naive cover traffic with a constant rate
- Naive random delays in mix
- Adversary simulations
- Reporting & Visualization
- More realistic P2P broadcasting (e.g. gossipsub)
- More sophisticated cover traffic (e.g. based on the approximate block interval)
- More sophisticated mix delays (e.g. Poisson)
- Modified Sphinx with encryption